From 9196858cf1d717d4537ffd04f2396bcaf6fe69a4 Mon Sep 17 00:00:00 2001 From: salma yasser Date: Mon, 28 Jul 2025 17:16:44 +0300 Subject: [PATCH 1/5] setup RN --- .../default/android/android-sourcemap.json | 0 examples/default/android/app/build.gradle | 41 +- .../app/src/main/assets/index.android.bundle | 2117 + ...avigation_elements_src_assets_backicon.png | Bin 0 -> 134 bytes ...avigation_elements_src_assets_backicon.png | Bin 0 -> 100 bytes ...ation_elements_src_assets_backiconmask.png | Bin 0 -> 913 bytes .../res/drawable-mdpi/src_images_logo.png | Bin 0 -> 86249 bytes ...avigation_elements_src_assets_backicon.png | Bin 0 -> 134 bytes ...avigation_elements_src_assets_backicon.png | Bin 0 -> 167 bytes ...avigation_elements_src_assets_backicon.png | Bin 0 -> 207 bytes .../src/main/res/raw/android_test_mapping.txt | 0 .../android/app/src/main/res/raw/mapping.txt | 111080 +++++++++++++++ examples/default/android/index.android.bundle | 2118 + 13 files changed, 115355 insertions(+), 1 deletion(-) create mode 100644 examples/default/android/android-sourcemap.json create mode 100644 examples/default/android/app/src/main/assets/index.android.bundle create mode 100644 examples/default/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigation_elements_src_assets_backicon.png create mode 100644 examples/default/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_elements_src_assets_backicon.png create mode 100644 examples/default/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_elements_src_assets_backiconmask.png create mode 100644 examples/default/android/app/src/main/res/drawable-mdpi/src_images_logo.png create mode 100644 examples/default/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigation_elements_src_assets_backicon.png create mode 100644 examples/default/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigation_elements_src_assets_backicon.png create mode 100644 examples/default/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigation_elements_src_assets_backicon.png create mode 100644 examples/default/android/app/src/main/res/raw/android_test_mapping.txt create mode 100644 examples/default/android/app/src/main/res/raw/mapping.txt create mode 100644 examples/default/android/index.android.bundle diff --git a/examples/default/android/android-sourcemap.json b/examples/default/android/android-sourcemap.json new file mode 100644 index 000000000..e69de29bb diff --git a/examples/default/android/app/build.gradle b/examples/default/android/app/build.gradle index b039dd190..4746e5a05 100644 --- a/examples/default/android/app/build.gradle +++ b/examples/default/android/app/build.gradle @@ -64,7 +64,7 @@ apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" /** * Set this to true to Run Proguard on Release builds to minify the Java bytecode. */ -def enableProguardInReleaseBuilds = false +def enableProguardInReleaseBuilds = true /** * The preferred build flavor of JavaScriptCore (JSC) @@ -114,6 +114,9 @@ android { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro" + if (enableProguardInReleaseBuilds) { + proguardFile getDefaultProguardFile('proguard-android-optimize.txt') + } } } externalNativeBuild { @@ -146,3 +149,39 @@ dependencies { androidTestImplementation('com.wix:detox:+') { transitive = true } androidTestImplementation 'junit:junit:4.12' } +task generateMappingFiles { + doLast { + def rawDir = file("src/main/res/raw") + rawDir.mkdirs() + + // Generate Proguard/R8 mapping.txt (Java obfuscation mapping) + def proguardMappingFile = file("build/outputs/mapping/release/mapping.txt") + if (proguardMappingFile.exists()) { + def mappingFile = file("src/main/res/raw/mapping.txt") + mappingFile.text = proguardMappingFile.text + println "Generated Proguard mapping.txt in res/raw directory" + println "File size: ${mappingFile.length()} bytes" + } else { + println "Warning: Proguard mapping file not found at ${proguardMappingFile.absolutePath}" + // Create a basic Proguard mapping structure as fallback + def mappingFile = file("src/main/res/raw/mapping.txt") + mappingFile.text = """# compiler: R8 +# compiler_version: 1.6.82 +# min_api: 23 +# pg_map_id: generated +# common_typos_disable +# Generated mapping file for React Native app +""" + } + + // Generate android_test_mapping.txt (empty file for now) + file("src/main/res/raw/android_test_mapping.txt").text = "" + } +} + +// Make the task run after the build +tasks.whenTaskAdded { task -> + if (task.name.contains('assembleRelease')) { + task.dependsOn generateMappingFiles + } +} \ No newline at end of file diff --git a/examples/default/android/app/src/main/assets/index.android.bundle b/examples/default/android/app/src/main/assets/index.android.bundle new file mode 100644 index 000000000..6ba1756f2 --- /dev/null +++ b/examples/default/android/app/src/main/assets/index.android.bundle @@ -0,0 +1,2117 @@ +var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; +!(function(e){"use strict";e.__r=i,e[`${__METRO_GLOBAL_PREFIX__}__d`]=function(e,n,o){if(r.has(n))return;var i={dependencyMap:o,factory:e,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};r.set(n,i)},e.__c=o,e.__registerSegment=function(e,t,n){s[e]=t,n&&n.forEach((function(t){r.has(t)||v.has(t)||v.set(t,e)}))};var r=o(),t={},n={}.hasOwnProperty;function o(){return r=new Map}function i(e){var t=e,n=r.get(t);return n&&n.isInitialized?n.publicModule.exports:d(t,n)}function a(e){var n=e,o=r.get(n);if(o&&o.importedDefault!==t)return o.importedDefault;var a=i(n),l=a&&a.__esModule?a.default:a;return r.get(n).importedDefault=l}function l(e){var o=e,a=r.get(o);if(a&&a.importedAll!==t)return a.importedAll;var l,u=i(o);if(u&&u.__esModule)l=u;else{if(l={},u)for(var d in u)n.call(u,d)&&(l[d]=u[d]);l.default=u}return r.get(o).importedAll=l}i.importDefault=a,i.importAll=l,i.context=function(){throw new Error("The experimental Metro feature `require.context` is not enabled in your project.")},i.resolveWeak=function(){throw new Error("require.resolveWeak cannot be called dynamically.")};var u=!1;function d(r,t){if(!u&&e.ErrorUtils){var n;u=!0;try{n=h(r,t)}catch(r){e.ErrorUtils.reportFatalError(r)}return u=!1,n}return h(r,t)}var c=16,f=65535;function p(e){return{segmentId:e>>>c,localId:e&f}}i.unpackModuleId=p,i.packModuleId=function(e){return(e.segmentId<0){var o,u=null!=(o=v.get(t))?o:0,d=s[u];null!=d&&(d(t),n=r.get(t),v.delete(t))}var c=e.nativeRequire;if(!n&&c){var f=p(t),h=f.segmentId;c(f.localId,h),n=r.get(t)}if(!n)throw Error('Requiring unknown module "'+t+'".');if(n.hasError)throw n.error;n.isInitialized=!0;var g=n,_=g.factory,m=g.dependencyMap;try{var w=n.publicModule;return w.id=t,_(e,i,a,l,w,w.exports,m),n.factory=void 0,n.dependencyMap=void 0,w.exports}catch(e){throw n.hasError=!0,n.error=e,n.isInitialized=!1,n.publicModule.exports=void 0,e}}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); +!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach((function(n,t){e[n]=!0})),e}function t(n,t,a){if(n.formatValueCalls++,n.formatValueCalls>200)return`[TOO BIG formatValueCalls ${n.formatValueCalls} exceeded limit of 200]`;var c=r(n,t);if(c)return c;var f=Object.keys(t),s=e(f);if(d(t)&&(f.indexOf('message')>=0||f.indexOf('description')>=0))return o(t);if(0===f.length){if(v(t)){var p=t.name?': '+t.name:'';return n.stylize('[Function'+p+']','special')}if(g(t))return n.stylize(RegExp.prototype.toString.call(t),'regexp');if(y(t))return n.stylize(Date.prototype.toString.call(t),'date');if(d(t))return o(t)}var h,b,m='',j=!1,O=['{','}'];(h=t,Array.isArray(h)&&(j=!0,O=['[',']']),v(t))&&(m=' [Function'+(t.name?': '+t.name:'')+']');return g(t)&&(m=' '+RegExp.prototype.toString.call(t)),y(t)&&(m=' '+Date.prototype.toUTCString.call(t)),d(t)&&(m=' '+o(t)),0!==f.length||j&&0!=t.length?a<0?g(t)?n.stylize(RegExp.prototype.toString.call(t),'regexp'):n.stylize('[Object]','special'):(n.seen.push(t),b=j?i(n,t,a,s,f):f.map((function(e){return l(n,t,a,s,e,j)})),n.seen.pop(),u(b,m,O)):O[0]+m+O[1]}function r(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var t="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(t,'string')}return f(e)?n.stylize(''+e,'number'):a(e)?n.stylize(''+e,'boolean'):c(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,t,r,o){for(var i=[],u=0,a=e.length;u-1&&(a=l?a.split('\n').map((function(n){return' '+n})).join('\n').slice(2):'\n'+a.split('\n').map((function(n){return' '+n})).join('\n')):a=n.stylize('[Circular]','special')),s(u)){if(l&&i.match(/^\d+$/))return a;(u=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.slice(1,u.length-1),u=n.stylize(u,'name')):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,'string'))}return u+': '+a}function u(n,e,t){return n.reduce((function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1}),0)>60?t[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+t[1]:t[0]+e+' '+n.join(', ')+' '+t[1]}function a(n){return'boolean'==typeof n}function c(n){return null===n}function f(n){return'number'==typeof n}function s(n){return void 0===n}function g(n){return p(n)&&'[object RegExp]'===h(n)}function p(n){return'object'==typeof n&&null!==n}function y(n){return p(n)&&'[object Date]'===h(n)}function d(n){return p(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,r){return t({seen:[],formatValueCalls:0,stylize:n},e,r.depth)}})(),t=0,r=1,o=2,i=3,l=[];l[t]='debug',l[r]='log',l[o]='warning',l[i]='error';function u(t){return function(){var r;r=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,(function(n){return e(n,{depth:10})})).join(', ');var u=arguments[0],a=t;'string'==typeof u&&'Warning: '===u.slice(0,9)&&a>=i&&(a=o),n.__inspectorLog&&n.__inspectorLog(l[a],r,[].slice.call(arguments),1),c.length&&(r=f('',r)),n.nativeLoggingHook(r,a)}}function a(n,e){return Array.apply(null,Array(e)).map((function(){return n}))}var c=[];function f(n,e){return c.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){var s=n.console;n.console=Object.assign({},null!=s?s:{},{error:u(i),info:u(r),log:u(r),warn:u(o),trace:u(t),debug:u(t),table:function(e){if(!Array.isArray(e)){var t=e;for(var o in e=[],t)if(t.hasOwnProperty(o)){var i=t[o];i["(index)"]=o,e.push(i)}}if(0!==e.length){var l=Object.keys(e[0]).sort(),u=[],c=[];l.forEach((function(n,t){c[t]=n.length;for(var r=0;r';return function(){for(var r=arguments.length,u=new Array(r),e=0;e=5){var h=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=o,g.nativeFlushQueueImmediate(h)}r(d[3]).counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){r(d[4]).reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){r(d[3]).beginEvent('JSTimers.callReactNativeMicrotasks()');try{null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback()}finally{r(d[3]).endEvent()}}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?r(d[3]).beginEvent(`${t}.${l}(${r(d[5]).default(s)})`):r(d[3]).beginEvent(`${t}.${l}(...)`);try{this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var u=this.getCallableModule(t);if(!u){var n=Object.keys(this._lazyCallableModules),o=n.length,h=n.join(', '),c=!0===g.RN$Bridgeless?'true':'false';r(d[6])(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module has not been registered as callable. Bridgeless Mode: ${c}. Registered callable JavaScript modules (n = ${o}): ${h}.\n A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.`)}u[l]||r(d[6])(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module exists, but the method is undefined.`),u[l].apply(u,s)}finally{r(d[3]).endEvent()}}},{key:"__invokeCallback",value:function(l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=l>>>1,n=1&l?this._successCallbacks.get(u):this._failureCallbacks.get(u);try{if(!n)return;this._successCallbacks.delete(u),this._failureCallbacks.delete(u),n.apply(void 0,t(s))}finally{}}}],[{key:"spy",value:function(t){u.prototype.__spy=!0===t?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+`${null!=t.module?t.module+'.':''}${t.method}`+`(${JSON.stringify(t.args)})`)}:!1===t?null:t}}])})();m.exports=u}),21,[22,6,7,28,29,30,31]); +__d((function(g,_r,i,a,m,e,d){m.exports=function(t){return _r(d[0])(t)||_r(d[1])(t)||_r(d[2])(t)||_r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports}),22,[23,25,26,27]); +__d((function(g,_r,i,a,m,e,d){m.exports=function(r){if(Array.isArray(r))return _r(d[0])(r)},m.exports.__esModule=!0,m.exports.default=m.exports}),23,[24]); +__d((function(g,_r,i,_a,m,_e,d){m.exports=function(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);to+17?n.substring(0,o)+u:n}if('object'!=typeof n||null===n)return n;var l=n;if(Array.isArray(n))h.length>=f?l=`[ ... array with ${n.length} values ... ]`:n.length>c&&(l=n.slice(0,c).concat([`... extra ${n.length-c} values truncated ...`]));else{(0,e.default)('object'==typeof n,'This was already found earlier');var s=Object.keys(n);if(h.length>=f)l=`{ ... object with ${s.length} keys ... }`;else if(s.length>y){for(var I of(l={},s.slice(0,y)))l[I]=n[I];l['...(truncated keys)...']=s.length-y}}return h.unshift(l),l}return function(t){if(void 0===t)return'undefined';if(null===t)return'null';if('function'==typeof t)try{return t.toString()}catch(t){return'[function unknown]'}else{if(t instanceof Error)return t.name+': '+t.message;try{var e=JSON.stringify(t,I);return void 0===e?'["'+typeof t+'" failed to stringify]':e}catch(e){if('function'==typeof t.toString)try{return t.toString()}catch(t){}}}return'["'+typeof t+'" failed to stringify]'}}var f=n({maxDepth:10,maxStringLimit:100,maxArrayLimit:50,maxObjectKeysLimit:50});_e.default=f}),30,[2,31]); +__d((function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,t,a,f,s,d],l=0;(u=new Error(n.replace(/%s/g,(function(){return c[l++]})))).name='Invariant Violation'}throw u.framesToPop=1,u}}}),31,[]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),l=n(r(d[2])),u=n(r(d[3])),o=n(r(d[4])),s=n(r(d[5])),c='android'===l.default.OS?new Map([['change','touchExplorationDidChange'],['reduceMotionChanged','reduceMotionDidChange'],['screenReaderChanged','touchExplorationDidChange'],['accessibilityServiceChanged','accessibilityServiceDidChange']]):new Map([['announcementFinished','announcementFinished'],['boldTextChanged','boldTextChanged'],['change','screenReaderChanged'],['grayscaleChanged','grayscaleChanged'],['invertColorsChanged','invertColorsChanged'],['reduceMotionChanged','reduceMotionChanged'],['reduceTransparencyChanged','reduceTransparencyChanged'],['screenReaderChanged','screenReaderChanged']]),f={isBoldTextEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentBoldTextState(n,t):t(null)}))},isGrayscaleEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentGrayscaleState(n,t):t(null)}))},isInvertColorsEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentInvertColorsState(n,t):t(null)}))},isReduceMotionEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS?null!=o.default?o.default.isReduceMotionEnabled(n):t(null):null!=s.default?s.default.getCurrentReduceMotionState(n,t):t(null)}))},prefersCrossFadeTransitions:function(){return new Promise((function(n,t){if('android'===l.default.OS)return Promise.resolve(!1);null!=(null==s.default?void 0:s.default.getCurrentPrefersCrossFadeTransitionsState)?s.default.getCurrentPrefersCrossFadeTransitionsState(n,t):t(null)}))},isReduceTransparencyEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise((function(n,t){null!=s.default?s.default.getCurrentReduceTransparencyState(n,t):t(null)}))},isScreenReaderEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS?null!=o.default?o.default.isTouchExplorationEnabled(n):t(null):null!=s.default?s.default.getCurrentVoiceOverState(n,t):t(null)}))},isAccessibilityServiceEnabled:function(){return new Promise((function(n,t){'android'===l.default.OS&&null!=o.default&&null!=o.default.isAccessibilityServiceEnabled?o.default.isAccessibilityServiceEnabled(n):t(null)}))},addEventListener:function(n,l){var u=c.get(n);return null==u?{remove:function(){}}:t.default.addListener(u,l)},setAccessibilityFocus:function(n){(0,u.default)(n,'focus')},sendAccessibilityEvent:function(n,t){'ios'===l.default.OS&&'click'===t||(0,r(d[6]).sendAccessibilityEvent)(n,t)},announceForAccessibility:function(n){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null==s.default||s.default.announceForAccessibility(n)},announceForAccessibilityWithOptions:function(n,t){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null!=s.default&&s.default.announceForAccessibilityWithOptions?null==s.default||s.default.announceForAccessibilityWithOptions(n,t):null==s.default||s.default.announceForAccessibility(n)},getRecommendedTimeoutMillis:function(n){return'android'===l.default.OS?new Promise((function(t,l){null!=o.default&&o.default.getRecommendedTimeoutMillis?o.default.getRecommendedTimeoutMillis(n,t):t(n)})):Promise.resolve(n)}};e.default=f}),32,[2,33,39,49,59,61,63]); +__d((function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),u=t(_r(d[4])),o=t(_r(d[5])),c=t(_r(d[6]));function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}var l=(function(t){function l(){return(0,e.default)(this,l),t=this,n=l,o=arguments,n=(0,u.default)(n),(0,r.default)(t,f()?Reflect.construct(n,o||[],(0,u.default)(t).constructor):n.apply(t,o));var t,n,o}return(0,c.default)(l,t),(0,n.default)(l,[{key:"emit",value:function(t){(0,_r(d[8]).beginEvent)((function(){return`RCTDeviceEventEmitter.emit#${t}`}));for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?u-1:0),s=1;s0?l[l.length-1]:null,c=l.length>1?l[l.length-2]:null,v='function'==typeof s,h='function'==typeof c;h&&r(d[1])(v,'Cannot have a non-function arg after a function arg.');var y=v?s:null,C=h?c:null,b=v+h,M=l.slice(0,l.length-b);if('sync'===o)return r(d[2]).callNativeSyncHook(n,t,M,C,y);r(d[2]).enqueueNativeCall(n,t,M,C,y)},u.type=o,u}function l(n,t){return-1!==n.indexOf(t)}function f(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=t;var s={};if(g.nativeModuleProxy)s=g.nativeModuleProxy;else{var c=g.__fbBatchedBridgeConfig;r(d[1])(c,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var v=r(d[3]);(c.remoteModuleConfig||[]).forEach((function(n,u){var l=t(n,u);l&&(l.module?s[l.name]=l.module:v(s,l.name,{get:function(){return o(l.name,u)}}))}))}m.exports=s}),43,[44,31,20,48]); +__d((function(g,_r,i,a,m,_e,d){m.exports=function(e,t){return _r(d[0])(e)||_r(d[1])(e,t)||_r(d[2])(e,t)||_r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports}),44,[45,46,26,47]); +__d((function(g,_r,i,a,m,e,d){m.exports=function(r){if(Array.isArray(r))return r},m.exports.__esModule=!0,m.exports.default=m.exports}),45,[]); +__d((function(g,_r,_i,_a,m,_e,d){m.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var l,n,u,o,f=[],i=!0,a=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(l=u.call(r)).done)&&(f.push(l.value),f.length!==t);i=!0);}catch(e){a=!0,n=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(a)throw n}}return f}},m.exports.__esModule=!0,m.exports.default=m.exports}),46,[]); +__d((function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},m.exports.__esModule=!0,m.exports.default=m.exports}),47,[]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}}),48,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),s=t(r(d[1])),c=t(r(d[2]));m.exports=function(t,n){'focus'===n&&(0,c.default)(s.default.sendAccessibilityEvent)(t,s.default.getConstants().AccessibilityEventTypes.typeViewFocused),'click'===n&&(0,c.default)(s.default.sendAccessibilityEvent)(t,s.default.getConstants().AccessibilityEventTypes.typeViewClicked)}}),49,[2,50,51]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1]));function o(n){return n%2==0}var t=!0===g.RN$Bridgeless?r(d[2]):r(d[3]),u=Object.assign({},t,{measure:function(u,s){if(o(u)){var f=(0,n.default)((0,r(d[4]).getFabricUIManager)()),c=f.findShadowNodeByTag_DEPRECATED(u);c?f.measure(c,s):(console.warn(`measure cannot find view with tag #${u}`),s())}else t.measure(u,s)},measureInWindow:function(u,s){if(o(u)){var f=(0,n.default)((0,r(d[4]).getFabricUIManager)()),c=f.findShadowNodeByTag_DEPRECATED(u);c?f.measureInWindow(c,s):(console.warn(`measure cannot find view with tag #${u}`),s())}else t.measureInWindow(u,s)},measureLayout:function(u,s,f,c){if(o(u)){var w=(0,n.default)((0,r(d[4]).getFabricUIManager)()),l=w.findShadowNodeByTag_DEPRECATED(u),E=w.findShadowNodeByTag_DEPRECATED(s);if(!l||!E)return;w.measureLayout(l,E,f,c)}else t.measureLayout(u,s,f,c)},measureLayoutRelativeToParent:function(u,s,f){if(o(u)){console.warn('RCTUIManager.measureLayoutRelativeToParent method is deprecated and it will not be implemented in newer versions of RN (Fabric) - T47686450');var c=(0,n.default)((0,r(d[4]).getFabricUIManager)()),w=c.findShadowNodeByTag_DEPRECATED(u);w&&c.measure(w,(function(n,o,t,u,s,c){f(n,o,t,u)}))}else t.measureLayoutRelativeToParent(u,s,f)},dispatchViewManagerCommand:function(u,s,f){if('number'!=typeof u)throw new Error('dispatchViewManagerCommand: found null reactTag');if(o(u)){var c=(0,n.default)((0,r(d[4]).getFabricUIManager)()),w=c.findShadowNodeByTag_DEPRECATED(u);w&&(s=`${s}`,c.dispatchCommand(w,s,f))}else t.dispatchViewManagerCommand(u,s,f)}});m.exports=u}),50,[2,51,52,55,53]); +__d((function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})}),51,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=n(r(d[1])),o=n(r(d[2])),s=n(r(d[3]));function u(n,t){console.error(`[ReactNative Architecture][JS] '${n}' is not available in the new React Native architecture.`+(t?` ${t}`:''))}var c,f,l=g.RN$LegacyInterop_UIManager_getConstants,w=(c=!1,f={},function(){return c||(f=(0,s.default)(l)(),c=!0),f}),v=g.RN$LegacyInterop_UIManager_getConstantsForViewManager,C=g.RN$LegacyInterop_UIManager_getDefaultEventTypes,p=(function(){var n=!1,t=null;return function(){return n||(t=(0,s.default)(C)(),n=!0),t}})(),h={measure:function(n,t){u('measure')},measureInWindow:function(n,t){u('measureInWindow')},measureLayout:function(n,t,o,s){u('measureLayout')},measureLayoutRelativeToParent:function(n,t,o){u('measureLayoutRelativeToParent')},dispatchViewManagerCommand:function(n,t,o){u('dispatchViewManagerCommand')}},y={createView:function(n,t,o,s){u('createView')},updateView:function(n,t,o){u('updateView')},setChildren:function(n,t){u('setChildren')},manageChildren:function(n,t,o,s,c,f){u('manageChildren')},setJSResponder:function(n,t){u('setJSResponder')},clearJSResponder:function(){u('clearJSResponder')}},E=o.default.select({android:{}}),b=o.default.select({android:{getConstantsForViewManager:function(n){return v?v(n):(u('getConstantsForViewManager'),{})},getDefaultEventTypes:function(){return C?p():(u('getDefaultEventTypes'),[])},setLayoutAnimationEnabledExperimental:function(n){n||u('setLayoutAnimationEnabledExperimental(false)','Layout animations are always enabled in the New Architecture.')},sendAccessibilityEvent:function(n,t){var o=null;if(t===8)o='focus';else if(t===32)o='windowStateChange';else if(t===1)o='click';else{if(t!==128)return void console.error(`sendAccessibilityEvent() dropping event: Called with unsupported eventType: ${t}`);o='viewHoverEnter'}var u=(0,s.default)((0,r(d[4]).getFabricUIManager)()),c=u.findShadowNodeByTag_DEPRECATED(n);c?u.sendAccessibilityEvent(c,o):console.error(`sendAccessibilityEvent() dropping event: Cannot find view with tag #${n}`)}},ios:{lazilyLoadView:function(n){return u('lazilyLoadView'),{}},focus:function(n){var t=(0,s.default)((0,r(d[4]).getFabricUIManager)()),o=t.findShadowNodeByTag_DEPRECATED(n);o?t.dispatchCommand(o,'focus',[]):console.error(`focus() noop: Cannot find view with tag #${n}`)},blur:function(n){var t=(0,s.default)((0,r(d[4]).getFabricUIManager)()),o=t.findShadowNodeByTag_DEPRECATED(n);o?t.dispatchCommand(o,'blur',[]):console.error(`blur() noop: Cannot find view with tag #${n}`)}}}),M=Object.assign({},h,E,b,y,{getViewManagerConfig:function(n){if(l){var t=w();return!t[n]&&M.getConstantsForViewManager&&(t[n]=M.getConstantsForViewManager(n)),t[n]}return u(`getViewManagerConfig('${n}')`,`If '${n}' has a ViewManager and you want to retrieve its native ViewConfig, please turn on the native ViewConfig interop layer. If you want to see if this component is registered with React Native, please call hasViewManagerConfig('${n}') instead.`),null},hasViewManagerConfig:function(n){return(0,r(d[5]).unstable_hasComponent)(n)},getConstants:function(){return l?w():(u('getConstants'),null)},findSubviewIn:function(n,t,o){var u=(0,s.default)((0,r(d[4]).getFabricUIManager)()),c=u.findShadowNodeByTag_DEPRECATED(n);c?u.findNodeAtPoint(c,t[0],t[1],(function(n){if(null!=n){var t=n,s=t.stateNode.node;if(s){var c=t.stateNode.canonical.nativeTag;u.measure(s,(function(n,t,s,u,f,l){o(c,f,l,s,u)}))}else console.error('findSubviewIn(): Cannot find node at point')}else console.error('findSubviewIn(): Cannot find node at point')})):console.error(`findSubviewIn() noop: Cannot find view with reactTag ${n}`)},viewIsDescendantOf:function(n,t,o){var u=(0,s.default)((0,r(d[4]).getFabricUIManager)()),c=u.findShadowNodeByTag_DEPRECATED(n);if(c){var f=u.findShadowNodeByTag_DEPRECATED(t);if(f){o([!!(16&u.compareDocumentPosition(f,c))])}else console.error(`viewIsDescendantOf() noop: Cannot find view with ancestorReactTag ${t}`)}else console.error(`viewIsDescendantOf() noop: Cannot find view with reactTag ${n}`)},configureNextLayoutAnimation:function(n,t,o){(0,s.default)((0,r(d[4]).getFabricUIManager)()).configureNextLayoutAnimation(n,t,o)}});l&&(Object.keys(w()).forEach((function(n){M[n]=w()[n]})),M.getConstants().ViewManagerNames&&M.getConstants().ViewManagerNames.forEach((function(n){(0,t.default)(M,n,{get:function(){return(0,s.default)(M.getConstantsForViewManager)(n)}})}))),m.exports=M}),52,[2,48,39,51,53,54]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getFabricUIManager=function(){null==t&&null!=g.nativeFabricUIManager&&(t=u(g.nativeFabricUIManager,c));return t};var t,o=n(r(d[1])),c=['createNode','cloneNode','cloneNodeWithNewChildren','cloneNodeWithNewProps','cloneNodeWithNewChildrenAndProps','createChildSet','appendChild','appendChildToSet','completeRoot','measure','measureInWindow','measureLayout','configureNextLayoutAnimation','sendAccessibilityEvent','findShadowNodeByTag_DEPRECATED','setNativeProps','dispatchCommand','compareDocumentPosition','getBoundingClientRect'];function u(n,t){var c=Object.create(n),u=function(t){(0,o.default)(c,t,{get:function(){return n[t]}})};for(var l of t)u(l);return c}}),53,[2,48]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unstable_hasComponent=function(t){var o=n.get(t);if(null==o){if(!g.__nativeComponentRegistry__hasComponent)throw`unstable_hasComponent('${t}'): Global function is not registered`;o=g.__nativeComponentRegistry__hasComponent(t),n.set(t,o)}return o};var n=new Map}),54,[]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),n=e(r(d[1])),t=e(r(d[2])),o={},f=new Set,u={},c=!1;function l(){return c||(u=n.default.getConstants(),c=!0),u}function s(e){if(void 0===o[e]&&g.nativeCallSyncHook&&n.default.getConstantsForViewManager)try{o[e]=n.default.getConstantsForViewManager(e)}catch(n){console.error("NativeUIManager.getConstantsForViewManager('"+e+"') threw an exception.",n),o[e]=null}var u=o[e];if(u)return u;if(!g.nativeCallSyncHook)return u;if(n.default.lazilyLoadView&&!f.has(e)){var c=(0,t.default)(n.default.lazilyLoadView)(e);f.add(e),null!=c&&null!=c.viewConfig&&(l()[e]=c.viewConfig,C(e))}return o[e]}var w=Object.assign({},n.default,{createView:function(e,t,o,f){n.default.createView(e,t,o,f)},getConstants:function(){return l()},getViewManagerConfig:function(e){return s(e)},hasViewManagerConfig:function(e){return null!=s(e)}});function C(e){var n=l()[e];o[e]=n,n.Manager&&(r(d[3])(n,'Constants',{get:function(){var e=r(d[4])[n.Manager],t={};return e&&Object.keys(e).forEach((function(n){var o=e[n];'function'!=typeof o&&(t[n]=o)})),t}}),r(d[3])(n,'Commands',{get:function(){var e=r(d[4])[n.Manager],t={},o=0;return e&&Object.keys(e).forEach((function(n){'function'==typeof e[n]&&(t[n]=o++)})),t}}))}n.default.getViewManagerConfig=w.getViewManagerConfig,l().ViewManagerNames&&n.default.getConstants().ViewManagerNames.forEach((function(e){r(d[3])(n.default,e,{get:function(){return(0,t.default)(n.default.getConstantsForViewManager)(e)}})})),g.nativeCallSyncHook||Object.keys(l()).forEach((function(e){r(d[5]).includes(e)||(o[e]||(o[e]=l()[e]),r(d[3])(n.default,e,{get:function(){return console.warn(`Accessing view manager configs directly off UIManager via UIManager['${e}'] is no longer supported. Use UIManager.getViewManagerConfig('${e}') instead.`),w.getViewManagerConfig(e)}}))})),m.exports=w}),55,[2,56,51,48,43,58]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),56,[57]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('UIManager')}),57,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','removeRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','updateView','viewIsDescendantOf','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','hasViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']}),58,[]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),59,[60]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('AccessibilityInfo')}),60,[42]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),61,[62]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('AccessibilityManager')}),62,[42]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))}))}),63,[64]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.dispatchCommand=function(n,o,t){return!0===g.RN$Bridgeless?r(d[0]).dispatchCommand(n,o,t):r(d[2]).dispatchCommand(n,o,t)},e.findHostInstance_DEPRECATED=function(n){return r(d[2]).findHostInstance_DEPRECATED(n)},e.findNodeHandle=function(n){return r(d[2]).findNodeHandle(n)},e.isChildPublicInstance=function(n,o){return r(d[2]).isChildPublicInstance(n,o)},e.isProfilingRenderer=function(){return Boolean(!1)},e.renderElement=function(n){var o=n.element,t=n.rootTag,u=n.useFabric,c=n.useConcurrentRoot;u?r(d[0]).render(o,t,null,c,{onCaughtError:r(d[1]).onCaughtError,onUncaughtError:r(d[1]).onUncaughtError,onRecoverableError:r(d[1]).onRecoverableError}):r(d[2]).render(o,t,void 0,{onCaughtError:r(d[1]).onCaughtError,onUncaughtError:r(d[1]).onUncaughtError,onRecoverableError:r(d[1]).onRecoverableError})},e.sendAccessibilityEvent=function(n,o){return r(d[2]).sendAccessibilityEvent(n,o)},e.unmountComponentAtNodeAndRemoveContainer=function(n){var o=n;r(d[2]).unmountComponentAtNodeAndRemoveContainer(o)},e.unstable_batchedUpdates=function(n,o){return r(d[2]).unstable_batchedUpdates(n,o)}}),64,[65,260,261]); +__d((function(g,r,i,a,m,e,d){'use strict';var t;t=r(d[0]),g.RN$stopSurface=t.stopSurface,!0!==g.RN$Bridgeless&&r(d[1]).BatchedBridge.registerCallableModule('ReactFabric',t),m.exports=t}),65,[66,234]); +__d((function(e,n,t,r,l,a,i){"use strict";n(i[0]);var u=n(i[1]),o=Array.isArray,s=!1,c=null,f=null,d=null,p=null;function h(e,n,t){e.currentTarget=p(t);try{n(e)}catch(e){s||(s=!0,c=e)}e.currentTarget=null}function g(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(o(n))throw Error("Invalid `event`.");return e.currentTarget=n?p(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}var m=Object.assign;function v(){return!0}function b(){return!1}function y(e,n,t,r){for(var l in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(l)&&((n=e[l])?this[l]=n(t):"target"===l?this.target=r:this[l]=t[l]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?v:b,this.isPropagationStopped=b,this}function S(e,n,t,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,n,t,r),l}return new this(e,n,t,r)}function k(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function w(e){e.getPooled=S,e.eventPool=[],e.release=k}m(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:b,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=b,this._dispatchInstances=this._dispatchListeners=null}}),y.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},y.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return m(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=m({},r.Interface,e),t.extend=r.extend,w(t),t},w(y);var P=y.extend({touchHistory:function(){return null}});function E(e){return"topTouchStart"===e}function R(e){return"topTouchMove"===e}var _=["topTouchStart"],T=["topTouchMove"],x=["topTouchCancel","topTouchEnd"],z=[],N={touchBank:z,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function C(e){return e.timeStamp||e.timestamp}function I(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function L(e){var n=I(e),t=z[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=C(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=C(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=C(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:C(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:C(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:C(e)},z[n]=t),N.mostRecentTimeStamp=C(e)}function U(e){var n=z[I(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=C(e),N.mostRecentTimeStamp=C(e))}function F(e){var n=z[I(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=C(e),N.mostRecentTimeStamp=C(e))}var D,Q={instrument:function(e){D=e},recordTouchTrack:function(e,n){if(null!=D&&D(e,n),R(e))n.changedTouches.forEach(U);else if(E(e))n.changedTouches.forEach(L),N.numberActiveTouches=n.touches.length,1===N.numberActiveTouches&&(N.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(F),N.numberActiveTouches=n.touches.length,1===N.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!re[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in re[t]=n,t=n.eventTypes){var l=void 0,a=t[r];if(le.hasOwnProperty(r))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+r+"`.");le[r]=a;var i=a.phasedRegistrationNames;if(i){for(l in i)i.hasOwnProperty(l)&&te(i[l],n);l=!0}else a.registrationName?(te(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function te(e,n){if(ae[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");ae[e]=n}var re=[],le={},ae={};function ie(e,n){if(null===(e=e.stateNode))return null;if(null===(e=f(e)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");return e}var ue=n(i[2]).ReactNativeViewConfigRegistry.customBubblingEventTypes,oe=n(i[2]).ReactNativeViewConfigRegistry.customDirectEventTypes;function se(e,n,t){(n=ie(e,t.dispatchConfig.phasedRegistrationNames[n]))&&(t._dispatchListeners=A(t._dispatchListeners,n),t._dispatchInstances=A(t._dispatchInstances,e))}function ce(e,n,t,r){for(var l=[];e;){l.push(e);do{e=e.return}while(e&&5!==e.tag);e=e||null}for(e=l.length;0>>=0)?32:31-(Qe(e)/Me|0)|0},Qe=Math.log,Me=Math.LN2;var Ae=128,je=4194304;function He(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Be(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&t;return 0!==a?0!==(t=a&~l)?r=He(t):0!==(e&=a)&&(r=He(e)):0!==(t&=~l)?r=He(t):0!==e&&(r=He(e)),0===r?0:0!==n&&n!==r&&!(n&l)&&((l=r&-r)>=(e=n&-n)||32===l&&4194176&e)?n:r}function We(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function Oe(e,n){return e.errorRecoveryDisabledLanes&n?0:0!==(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function Ve(){var e=Ae;return!(4194176&(Ae<<=1))&&(Ae=128),e}function $e(){var e=je;return!(62914560&(je<<=1))&&(je=4194304),e}function Ye(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function qe(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0)}function Xe(e,n,t){var r=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0,n=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0$n||(e.current=Vn[$n],Vn[$n]=null,$n--)}function Xn(e,n){$n++,Vn[$n]=e.current,e.current=n}var Gn={};var Kn="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Jn=Yn(null),Zn=Yn(null),et=Yn(null);function nt(e,n){Xn(et,n),Xn(Zn,e),Xn(Jn,null),qn(Jn),Xn(Jn,{isInAParentText:!1})}function tt(){qn(Jn),qn(Zn),qn(et)}function rt(e){var n=Jn.current,t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(Xn(Zn,e),Xn(Jn,t))}function lt(e){Zn.current===e&&(qn(Jn),qn(Zn))}var at=null,it=[],ut=0,ot=0;function st(){for(var e=ut,n=ot=ut=0;ng?(m=f,f=null):m=f.sibling;var v=p(l,f,u[g],o);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&n(l,f),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,f=m}if(g===u.length)return t(l,f),s;if(null===f){for(;gg?(m=f,f=null):m=f.sibling;var b=p(l,f,v.value,o);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&n(l,f),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,f=m}if(v.done)return t(l,f),s;if(null===f){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(f=r(f);!v.done;g++,v=u.next())null!==(v=h(f,l,g,v.value,o))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return n(l,e)})),s}function v(e,r,a,u){if("object"==typeof a&&null!==a&&a.type===_n&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case En:e:{for(var s=a.key,c=r;null!==c;){if(c.key===s){if((s=a.type)===_n){if(7===c.tag){t(e,c.sibling),(r=l(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===Dn&&rr(s)===c.type){t(e,c.sibling),nr(e,c,r=l(c,a.props),a),r.return=e,e=r;break e}t(e,c);break}n(e,c),c=c.sibling}a.type===_n?((r=Qu(a.props.children,e.mode,u,a.key)).return=e,e=r):(nr(e,r,u=Du(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return i(e);case Rn:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ju(a,e.mode,u)).return=e,e=r}return i(e);case Dn:return v(e,r,(c=a._init)(a._payload),u)}if(o(a))return g(e,r,a,u);if(An(a))return m(e,r,a,u);if("function"==typeof a.then)return v(e,r,Zt(a),u);if(a.$$typeof===Cn)return v(e,r,wa(e,a,u),u);tr(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Au(a,e.mode,u)).return=e,e=r),i(e)):t(e,r)}return function(e,n,t,r){return Jt=0,e=v(e,n,t,r),Kt=null,e}}var ar=lr(!0),ir=lr(!1),ur=Yn(null),or=Yn(0);function sr(e,n){Xn(or,e=Ci),Xn(ur,n),Ci=e|n.baseLanes}function cr(){Xn(or,Ci),Xn(ur,ur.current)}function fr(){Ci=or.current,qn(ur),qn(or)}var dr=Yn(null),pr=null;function hr(e){var n=e.alternate;Xn(br,1&br.current),Xn(dr,e),null===pr&&(null===n||null!==ur.current||null!==n.memoizedState)&&(pr=e)}function gr(e){if(22===e.tag){if(Xn(br,br.current),Xn(dr,e),null===pr){var n=e.alternate;null!==n&&null!==n.memoizedState&&(pr=e)}}else mr()}function mr(){Xn(br,br.current),Xn(dr,dr.current)}function vr(e){qn(dr),pr===e&&(pr=null),qn(br)}var br=Yn(0);function yr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||en()||en()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(128&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Sr=Ie.ReactCurrentDispatcher,kr=Ie.ReactCurrentBatchConfig,wr=0,Pr=null,Er=null,Rr=null,_r=!1,Tr=!1,xr=!1,zr=0,Nr=null,Cr=0;function Ir(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Lr(e,n){if(null===n)return!1;for(var t=0;ta?a:8;var i=kr.transition,u={_callbacks:new Set};kr.transition=null,vl(e,n,t),kr.transition=u;try{vl(e,n,r),l()}catch(e){throw e}finally{Je=a,kr.transition=i}}function gl(){return jr().memoizedState}function ml(e,n,t){var r=Ji(e);t={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},bl(e)?yl(n,t):(ct(e,n,t,r),null!==(t=pt(e))&&(eu(t,e,r),Sl(t,n,r)))}function vl(e,n,t){var r=Ji(e),l={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(bl(e))yl(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,Kn(u,i))return ct(e,n,l,0),void(null===Ri&&st())}catch(e){}ct(e,n,l,r),null!==(t=pt(e))&&(eu(t,e,r),Sl(t,n,r))}}function bl(e){var n=e.alternate;return e===Pr||null!==n&&n===Pr}function yl(e,n){Tr=_r=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Sl(e,n,t){if(4194176&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Ke(e,t)}}var kl={readContext:ka,use:Br,useCallback:Ir,useContext:Ir,useEffect:Ir,useImperativeHandle:Ir,useInsertionEffect:Ir,useLayoutEffect:Ir,useMemo:Ir,useReducer:Ir,useRef:Ir,useState:Ir,useDebugValue:Ir,useDeferredValue:Ir,useTransition:Ir,useSyncExternalStore:Ir,useId:Ir},wl={readContext:ka,use:Br,useCallback:function(e,n){return Ar().memoizedState=[e,void 0===n?null:n],e},useContext:ka,useEffect:rl,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,nl(4194308,4,ul.bind(null,n,e),t)},useLayoutEffect:function(e,n){return nl(4194308,4,e,n)},useInsertionEffect:function(e,n){nl(4,2,e,n)},useMemo:function(e,n){var t=Ar();n=void 0===n?null:n;var r=e();return xr&&e(),t.memoizedState=[r,n],r},useReducer:function(e,n,t){var r=Ar();if(void 0!==t){var l=t(n);xr&&t(n)}else l=n;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=ml.bind(null,Pr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ar().memoizedState=e},useState:function(e){var n=(e=Jr(e)).queue,t=vl.bind(null,Pr,n);return n.dispatch=t,[e.memoizedState,t]},useDebugValue:sl,useDeferredValue:function(e,n){return dl(Ar(),e,n)},useTransition:function(){var e=Jr(!1);return e=hl.bind(null,Pr,e.queue,!0,!1),Ar().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n){var t=Pr,r=Ar(),l=n();if(null===Ri)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");60&Ti||Yr(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,rl(Xr.bind(null,t,a,e),[e]),t.flags|=2048,Zr(9,qr.bind(null,t,a,l,n),{destroy:void 0},null),l},useId:function(){var e=Ar(),n=Ri.identifierPrefix;return n=":"+n+"r"+(Cr++).toString(32)+":",e.memoizedState=n}},Pl={readContext:ka,use:Br,useCallback:cl,useContext:ka,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:fl,useReducer:Or,useRef:el,useState:function(){return Or(Wr)},useDebugValue:sl,useDeferredValue:function(e,n){return pl(jr(),Er.memoizedState,e,n)},useTransition:function(){var e=Or(Wr)[0],n=jr().memoizedState;return["boolean"==typeof e?e:Hr(e),n]},useSyncExternalStore:$r,useId:gl},El={readContext:ka,use:Br,useCallback:cl,useContext:ka,useEffect:ll,useImperativeHandle:ol,useInsertionEffect:al,useLayoutEffect:il,useMemo:fl,useReducer:Vr,useRef:el,useState:function(){return Vr(Wr)},useDebugValue:sl,useDeferredValue:function(e,n){var t=jr();return null===Er?dl(t,e,n):pl(t,Er.memoizedState,e,n)},useTransition:function(){var e=Vr(Wr)[0],n=jr().memoizedState;return["boolean"==typeof e?e:Hr(e),n]},useSyncExternalStore:$r,useId:gl};function Rl(e,n){if(e&&e.defaultProps){for(var t in n=m({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function _l(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:m({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var Tl={isMounted:function(e){return!!(e=e._reactInternals)&&jn(e)===e},enqueueSetState:function(e,n,t){var r=Ji(e=e._reactInternals),l=zt(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=Nt(e,l,r))&&(eu(n,e,r),Ct(n,e,r))},enqueueReplaceState:function(e,n,t){var r=Ji(e=e._reactInternals),l=zt(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=Nt(e,l,r))&&(eu(n,e,r),Ct(n,e,r))},enqueueForceUpdate:function(e,n){var t=Ji(e=e._reactInternals),r=zt(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=Nt(e,r,t))&&(eu(n,e,t),Ct(n,e,t))}};function xl(e,n,t,r,l,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!n.prototype||!n.prototype.isPureReactComponent||(!Qt(t,r)||!Qt(l,a))}function zl(e,n,t){var r=Gn,l=n.contextType;return"object"==typeof l&&null!==l&&(r=ka(l)),n=new n(t,r),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=Tl,e.stateNode=n,n._reactInternals=e,n}function Nl(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Tl.enqueueReplaceState(n,n.state,null)}function Cl(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},Tt(e);var a=n.contextType;l.context="object"==typeof a&&null!==a?ka(a):Gn,l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(_l(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&Tl.enqueueReplaceState(l,l.state,null),Lt(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}var Il=new WeakMap;function Ll(e,n){if("object"==typeof e&&null!==e){var t=Il.get(e);"string"!=typeof t&&(t=Ht(n),Il.set(e,t))}else t=Ht(n);return{value:e,source:n,stack:t,digest:null}}function Ul(e,n,t){return"string"==typeof t&&Il.set(e,t),{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof n(i[2]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Fl(e,t){try{!1!==n(i[2]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}function Dl(e,n,t){(t=zt(t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Oi||(Oi=!0,Vi=r),Fl(e,n)},t}function Ql(e,n,t){(t=zt(t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Fl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){Fl(e,n),"function"!=typeof r&&(null===$i?$i=new Set([this]):$i.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Ml(e,n,t,r,l){if(t.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=t.tag;if(1&t.mode||0!==a&&11!==a&&15!==a||((a=t.alternate)?(t.updateQueue=a.updateQueue,t.memoizedState=a.memoizedState,t.lanes=a.lanes):(t.updateQueue=null,t.memoizedState=null)),null!==(a=dr.current)){switch(a.tag){case 13:return 1&t.mode&&(null===pr?fu():null===a.alternate&&0===Ii&&(Ii=3)),a.flags&=-257,1&a.mode?(a.flags|=65536,a.lanes=l):a===n?a.flags|=65536:(a.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=zt(2)).tag=2,Nt(t,n,2))),t.lanes|=2),r===Ot?a.flags|=16384:(null===(n=a.updateQueue)?a.updateQueue=new Set([r]):n.add(r),1&a.mode&&Ru(e,r,l)),!1;case 22:if(1&a.mode)return a.flags|=65536,r===Ot?a.flags|=16384:(null===(n=a.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=new Set([r]):t.add(r),Ru(e,r,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}if(1===e.tag)return Ru(e,r,l),fu(),!1;r=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}if(e=r=Ll(r,t),4!==Ii&&(Ii=2),null===Mi?Mi=[e]:Mi.push(e),null===n)return!0;e=n;do{switch(e.tag){case 3:return e.flags|=65536,l&=-l,e.lanes|=l,It(e,l=Dl(e,r,l)),!1;case 1:if(n=r,t=e.type,a=e.stateNode,!(128&e.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==$i&&$i.has(a))))return e.flags|=65536,l&=-l,e.lanes|=l,It(e,l=Ql(e,n,l)),!1}e=e.return}while(null!==e);return!1}var Al=Ie.ReactCurrentOwner,jl=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Hl=!1;function Bl(e,n,t,r){n.child=null===e?ir(n,null,t,r):ar(n,e.child,t,r)}function Wl(e,n,t,r,l){t=t.render;var a=n.ref;return Sa(n,l),r=Ur(e,n,t,r,a,l),null===e||Hl?(n.flags|=1,Bl(e,n,r,l),n.child):(Qr(e,n,l),ca(e,n,l))}function Ol(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Iu(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Du(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Vl(e,n,a,r,l))}if(a=e.child,!(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:Qt)(i,r)&&e.ref===n.ref)return ca(e,n,l)}return n.flags|=1,(e=Uu(a,r)).ref=n.ref,e.return=n,n.child=e}function Vl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Qt(a,r)&&e.ref===n.ref){if(Hl=!1,n.pendingProps=r=a,!(e.lanes&l))return n.lanes=e.lanes,ca(e,n,l);131072&e.flags&&(Hl=!0)}}return Xl(e,n,t,r,l)}function $l(e,n,t){var r=n.pendingProps,l=r.children,a=!!(2&n.stateNode._pendingVisibility),i=null!==e?e.memoizedState:null;if(ql(e,n),"hidden"===r.mode||a){if(128&n.flags){if(t=null!==i?i.baseLanes|t:t,null!==e){for(r=n.child=e.child,l=0;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;n.childLanes=l&~t}else n.childLanes=0,n.child=null;return Yl(e,n,t)}if(1&n.mode){if(!(536870912&t))return n.lanes=n.childLanes=536870912,Yl(e,n,null!==i?i.baseLanes|t:t);n.memoizedState={baseLanes:0,cachePool:null},null!==i?sr(n,i):cr()}else n.memoizedState={baseLanes:0,cachePool:null},cr();gr(n)}else null!==i?(sr(n,i),mr(),n.memoizedState=null):(cr(),mr());return Bl(e,n,l,t),n.child}function Yl(e,n,t){return n.memoizedState={baseLanes:t,cachePool:null},cr(),gr(n),null}function ql(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=2097664);else{if("function"!=typeof t&&"object"!=typeof t)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===t||(n.flags|=2097664)}}function Xl(e,n,t,r,l){return Sa(n,l),t=Ur(e,n,t,r,void 0,l),null===e||Hl?(n.flags|=1,Bl(e,n,t,l),n.child):(Qr(e,n,l),ca(e,n,l))}function Gl(e,n,t,r,l,a){return Sa(n,a),t=Dr(n,r,t,l),Fr(),null===e||Hl?(n.flags|=1,Bl(e,n,t,a),n.child):(Qr(e,n,a),ca(e,n,a))}function Kl(e,n,t,r,l){if(Sa(n,l),null===n.stateNode)sa(e,n),zl(n,t,r),Cl(n,t,r,l),r=!0;else if(null===e){var a=n.stateNode,i=n.memoizedProps;a.props=i;var u=a.context,o=t.contextType,s=Gn;"object"==typeof o&&null!==o&&(s=ka(o));var c=t.getDerivedStateFromProps;(o="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==r||u!==s)&&Nl(n,a,r,s),_t=!1;var f=n.memoizedState;a.state=f,Lt(n,r,a,l),u=n.memoizedState,i!==r||f!==u||_t?("function"==typeof c&&(_l(n,t,c,r),u=n.memoizedState),(i=_t||xl(n,t,i,r,f,u,s))?(o||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=u),a.props=r,a.state=u,a.context=s,r=i):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,xt(e,n),s=n.memoizedProps,o=n.type===n.elementType?s:Rl(n.type,s),a.props=o,c=n.pendingProps;var d=a.context;u=t.contextType,i=Gn,"object"==typeof u&&null!==u&&(i=ka(u)),(u="function"==typeof(f=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==c||d!==i)&&Nl(n,a,r,i),_t=!1,d=n.memoizedState,a.state=d,Lt(n,r,a,l);var p=n.memoizedState;s!==c||d!==p||_t?("function"==typeof f&&(_l(n,t,f,r),p=n.memoizedState),(o=_t||xl(n,t,o,r,d,p,i)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,i),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,i)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=i,r=o):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Jl(e,n,t,r,!1,l)}function Jl(e,n,t,r,l,a){return ql(e,n),l=!!(128&n.flags),r||l?(r=n.stateNode,Al.current=n,t=l&&"function"!=typeof t.getDerivedStateFromError?null:r.render(),n.flags|=1,null!==e&&l?(n.child=ar(n,e.child,null,a),n.child=ar(n,null,t,a)):Bl(e,n,t,a),n.memoizedState=r.state,n.child):ca(e,n,a)}var Zl={dehydrated:null,treeContext:null,retryLane:0};function ea(e){return{baseLanes:e,cachePool:null}}function na(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Qi),e}function ta(e,n,t){var r,l=n.pendingProps,a=!1,i=!!(128&n.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&br.current)),r&&(a=!0,n.flags&=-129),r=!!(32&n.flags),n.flags&=-33,null===e){if(i=l.children,l=l.fallback,a){mr(),a=n.mode;var u=n.child;return i={mode:"hidden",children:i},1&a||null===u?u=Mu(i,a,0,null):(u.childLanes=0,u.pendingProps=i),l=Qu(l,a,t,null),u.return=n,l.return=n,u.sibling=l,n.child=u,(a=n.child).memoizedState=ea(t),a.childLanes=na(e,r,t),n.memoizedState=Zl,l}return hr(n),ra(n,i)}if(null!==(u=e.memoizedState)){var o=u.dehydrated;if(null!==o)return aa(e,n,i,r,l,o,u,t)}if(a){mr(),a=l.fallback,i=n.mode,o=(u=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&i||n.child===u?(l=Uu(u,s)).subtreeFlags=31457280&u.subtreeFlags:((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null),null!==o?a=Uu(o,a):(a=Qu(a,i,t,null)).flags|=2,a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,i=null===(i=e.child.memoizedState)?ea(t):{baseLanes:i.baseLanes|t,cachePool:null},a.memoizedState=i,a.childLanes=na(e,r,t),n.memoizedState=Zl,l}return hr(n),e=(r=e.child).sibling,r=Uu(r,{mode:"visible",children:l.children}),!(1&n.mode)&&(r.lanes=t),r.return=n,r.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function ra(e,n){return(n=Mu({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function la(e,n,t,r){return null!==r&&(null===at?at=[r]:at.push(r)),ar(n,e.child,null,t),(e=ra(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function aa(e,n,t,r,l,a,i,u){if(t)return 256&n.flags?(hr(n),n.flags&=-257,la(e,n,u,r=Ul(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(mr(),n.child=e.child,n.flags|=128,null):(mr(),i=l.fallback,t=n.mode,l=Mu({mode:"visible",children:l.children},t,0,null),(i=Qu(i,t,u,null)).flags|=2,l.return=n,i.return=n,l.sibling=i,n.child=l,1&n.mode&&ar(n,e.child,null,u),(l=n.child).memoizedState=ea(u),l.childLanes=na(e,r,u),n.memoizedState=Zl,i);if(hr(n),!(1&n.mode))return la(e,n,u,null);if(en())return r=en().digest,(i=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).digest=r,la(e,n,u,r=Ul(i,r,void 0));if(r=!!(u&e.childLanes),Hl||r){if(null!==(r=Ri)){if(42&(l=u&-u))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=l&(r.suspendedLanes|u)?0:l)&&l!==i.retryLane)throw i.retryLane=l,ft(e,l),eu(r,e,l),jl}return en()||fu(),la(e,n,u,null)}return en()?(n.flags|=128,n.child=e.child,xu.bind(null,e),en(),null):((e=ra(n,l.children)).flags|=4096,e)}function ia(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),ya(e.return,n,t)}function ua(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function oa(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Bl(e,n,r.children,t),2&(r=br.current))r=1&r|2,n.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ia(e,t,n);else if(19===e.tag)ia(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Xn(br,r),1&n.mode)switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===yr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),ua(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===yr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}ua(n,!0,t,null,a);break;case"together":ua(n,!1,null,null,void 0);break;default:n.memoizedState=null}else n.memoizedState=null;return n.child}function sa(e,n){!(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ca(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Ui|=n.lanes,!(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Uu(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Uu(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function fa(e,n,t){switch(n.tag){case 3:case 4:nt(n,n.stateNode.containerInfo);break;case 27:case 5:rt(n);break;case 10:var r=n.memoizedProps.value,l=n.type._context;Xn(pa,l._currentValue2),l._currentValue2=r;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(hr(n),n.flags|=128,null):t&n.child.childLanes?ta(e,n,t):(hr(n),null!==(e=ca(e,n,t))?e.sibling:null);hr(n);break;case 19:if(r=!!(t&n.childLanes),128&e.flags){if(r)return oa(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),Xn(br,br.current),r)break;return null;case 22:case 23:return n.lanes=0,$l(e,n,t)}return ca(e,n,t)}function da(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)Hl=!0;else{if(!(e.lanes&t||128&n.flags))return Hl=!1,fa(e,n,t);Hl=!!(131072&e.flags)}else Hl=!1;switch(n.lanes=0,n.tag){case 2:var r=n.type;sa(e,n),e=n.pendingProps,Sa(n,t);var l=Ur(null,n,r,e,void 0,t);return n.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Tt(n),l.updater=Tl,n.stateNode=l,l._reactInternals=n,Cl(n,r,e,t),n=Jl(null,n,r,!0,!1,t)):(n.tag=0,Bl(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(sa(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=Lu(r),e=Rl(r,e),l){case 0:n=Xl(null,n,r,e,t);break e;case 1:n=Kl(null,n,r,e,t);break e;case 11:n=Wl(null,n,r,e,t);break e;case 14:n=Ol(null,n,r,Rl(r.type,e),t);break e}throw Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function.")}return n;case 0:return r=n.type,l=n.pendingProps,Xl(e,n,r,l=n.elementType===r?l:Rl(r,l),t);case 1:return r=n.type,l=n.pendingProps,Kl(e,n,r,l=n.elementType===r?l:Rl(r,l),t);case 3:if(nt(n,n.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");return l=n.pendingProps,r=n.memoizedState.element,xt(e,n),Lt(n,l,null,t),(l=n.memoizedState.element)===r?n=ca(e,n,t):(Bl(e,n,l,t),n=n.child),n;case 26:case 27:case 5:return rt(n),r=n.pendingProps.children,ql(e,n),Bl(e,n,r,t),n.child;case 6:return null;case 13:return ta(e,n,t);case 4:return nt(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=ar(n,null,r,t):Bl(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,Wl(e,n,r,l=n.elementType===r?l:Rl(r,l),t);case 7:return Bl(e,n,n.pendingProps,t),n.child;case 8:case 12:return Bl(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,l=n.pendingProps;var a=n.memoizedProps,i=l.value;if(Xn(pa,r._currentValue2),r._currentValue2=i,null!==a)if(Kn(a.value,i)){if(a.children===l.children){n=ca(e,n,t);break e}}else for(null!==(a=n.child)&&(a.return=n);null!==a;){var u=a.dependencies;if(null!==u){i=a.child;for(var o=u.firstContext;null!==o;){if(o.context===r){if(1===a.tag){(o=zt(t&-t)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?o.next=o:(o.next=c.next,c.next=o),s.pending=o}}a.lanes|=t,null!==(o=a.alternate)&&(o.lanes|=t),ya(a.return,t,n),u.lanes|=t;break}o=o.next}}else if(10===a.tag)i=a.type===n.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=t,null!==(u=i.alternate)&&(u.lanes|=t),ya(i,t,n),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===n){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}Bl(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Sa(n,t),r=r(l=ka(l)),n.flags|=1,Bl(e,n,r,t),n.child;case 14:return l=Rl(r=n.type,n.pendingProps),Ol(e,n,r,l=Rl(r.type,l),t);case 15:return Vl(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Rl(r,l),sa(e,n),n.tag=1,Sa(n,t),zl(n,r,l),Cl(n,r,l,t),Jl(null,n,r,!0,!1,t);case 19:return oa(e,n,t);case 22:return $l(e,n,t)}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}var pa=Yn(null),ha=null,ga=null,ma=null;function va(){ma=ga=ha=null}function ba(e){e._currentValue2=pa.current,qn(pa)}function ya(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Sa(e,n){ha=e,ma=ga=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&n)&&(Hl=!0),e.firstContext=null)}function ka(e){return Pa(ha,e)}function wa(e,n,t){return null===ha&&Sa(e,t),Pa(e,n)}function Pa(e,n){var t=n._currentValue2;if(ma!==n)if(n={context:n,memoizedValue:t,next:null},null===ga){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ga=n,e.dependencies={lanes:0,firstContext:n}}else ga=ga.next=n;return t}var Ea=Ie.ReactCurrentBatchConfig;function Ra(){}function _a(e,n){if(null!==e&&e.child===n.child)return!1;if(16&n.flags)return!0;for(e=n.child;null!==e;){if(12854&e.flags||12854&e.subtreeFlags)return!0;e=e.sibling}return!1}function Ta(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=Sn(a)),on(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");on(e.node,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),Ta(e,l,!0,!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function xa(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=Sn(a)),sn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");sn(e,a.node)}else if(4!==l.tag)if(22===l.tag&&null!==l.memoizedState)null!==(a=l.child)&&(a.return=l),xa(e,l,!(null!==l.memoizedProps&&"manual"===l.memoizedProps.mode),!0);else if(null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function za(e,n){if(_a(e,n)){var t=(e=n.stateNode).containerInfo,r=un();xa(r,n,!1,!1),e.pendingChildren=r,n.flags|=4,cn(t,r)}}function Na(e,n){null!==n?e.flags|=4:16384&e.flags&&(n=22!==e.tag?$e():536870912,e.lanes|=n)}function Ca(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ia(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function La(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:case 17:return Ia(t),null;case 3:return l=t.stateNode,tt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==at&&(ru(at),at=null)),za(e,t),Ia(t),null;case 26:case 27:case 5:if(lt(t),r=t.type,null!==e&&null!=t.stateNode){r=e.stateNode;var a=e.memoizedProps;if((e=_a(e,t))||a!==l){e:{if(a=_e(null,a,l,r.canonical.viewConfig.validAttributes),r.canonical.currentProps=l,l=r.node,e)l=null!==a?ln(l,a):rn(l);else{if(null===a){l=r;break e}l=an(l,a)}l={node:l,canonical:r.canonical}}l===r?t.stateNode=r:(t.stateNode=l,e?Ta(l,t,!1,!1):t.flags|=4)}else t.stateNode=r}else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ia(t),null}a=et.current,e=gn,gn+=2,r=hn(r);var u=_e(null,ve,l,r.validAttributes);Ta(e={node:a=tn(e,r.uiViewClassName,a,u,t),canonical:{nativeTag:e,viewConfig:r,currentProps:l,internalInstanceHandle:t,publicInstance:u=n(i[2]).createPublicInstance(e,r,t)}},t,!1,!1),t.stateNode=e}return Ia(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==l?(t.stateNode=mn(l,et.current,Jn.current,t),t.flags|=4):t.stateNode=e.stateNode;else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");t.stateNode=mn(l,et.current,Jn.current,t)}return Ia(t),null;case 13:if(l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==l&&null!==l.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,Ia(t),a=!1}else null!==at&&(ru(at),at=null),a=!0;if(!a)return 256&t.flags?(vr(t),t):(vr(t),null)}return vr(t),128&t.flags?(t.lanes=r,t):((l=null!==l)!==(null!==e&&null!==e.memoizedState)&&l&&(t.child.flags|=8192),Na(t,t.updateQueue),Ia(t),null);case 4:return tt(),za(e,t),Ia(t),null;case 10:return ba(t.type._context),Ia(t),null;case 19:if(qn(br),null===(a=t.memoizedState))return Ia(t),null;if(l=!!(128&t.flags),null===(u=a.rendering))if(l)Ca(a,!1);else{if(0!==Ii||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=yr(e))){for(t.flags|=128,Ca(a,!1),e=u.updateQueue,t.updateQueue=e,Na(t,e),t.subtreeFlags=0,e=r,l=t.child;null!==l;)Fu(l,e),l=l.sibling;return Xn(br,1&br.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[3]).unstable_now()>Bi&&(t.flags|=128,l=!0,Ca(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=yr(u))){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Na(t,e),Ca(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return Ia(t),null}else 2*n(i[3]).unstable_now()-a.renderingStartTime>Bi&&536870912!==r&&(t.flags|=128,l=!0,Ca(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[3]).unstable_now(),t.sibling=null,e=br.current,Xn(br,l?1&e|2:1&e),t):(Ia(t),null);case 22:case 23:return vr(t),fr(),l=null!==t.memoizedState,null!==e?null!==e.memoizedState!==l&&(t.flags|=8192):l&&(t.flags|=8192),l&&1&t.mode?!!(536870912&r)&&!(128&t.flags)&&(Ia(t),6&t.subtreeFlags&&(t.flags|=8192)):Ia(t),null!==(e=t.updateQueue)&&Na(t,e.retryQueue),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ua(e,n){switch(n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return tt(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return lt(n),null;case 13:if(vr(n),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return qn(br),null;case 4:return tt(),null;case 10:return ba(n.type._context),null;case 22:case 23:return vr(n),fr(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;default:return null}}function Fa(e,n){switch(n.tag){case 3:case 4:tt();break;case 26:case 27:case 5:lt(n);break;case 13:vr(n);break;case 19:qn(br);break;case 10:ba(n.type._context);break;case 22:case 23:vr(n),fr()}}var Da=!1,Qa=!1,Ma="function"==typeof WeakSet?WeakSet:Set,Aa=null;function ja(e,n){try{var t=e.ref;if(null!==t){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=vn(r);break;default:l=r}"function"==typeof t?e.refCleanup=t(l):t.current=l}}catch(t){Eu(e,n,t)}}function Ha(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){Eu(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){Eu(e,n,t)}else t.current=null}function Ba(e,n,t){try{t()}catch(t){Eu(e,n,t)}}var Wa=!1;function Oa(e,n){for(Aa=n;null!==Aa;)if(n=(e=Aa).child,1028&e.subtreeFlags&&null!==n)n.return=e,Aa=n;else for(;null!==Aa;){e=Aa;try{var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&r&&null!==t){var l=t.memoizedProps,a=t.memoizedState,i=e.stateNode,u=i.getSnapshotBeforeUpdate(e.elementType===e.type?l:Rl(e.type,l),a);i.__reactInternalSnapshotBeforeUpdate=u}break;default:if(1024&r)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){Eu(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Aa=n;break}Aa=e.return}return t=Wa,Wa=!1,t}function Va(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,i=a.destroy;void 0!==i&&(a.destroy=void 0,Ba(n,t,i))}l=l.next}while(l!==r)}}function $a(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create,l=t.inst;r=r(),l.destroy=r}t=t.next}while(t!==n)}}function Ya(e,n){try{$a(n,e)}catch(n){Eu(e,e.return,n)}}function qa(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Ft(n,t)}catch(n){Eu(e,e.return,n)}}}function Xa(e){try{throw Error("The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue.")}catch(n){Eu(e,e.return,n)}}function Ga(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:ai(e,t),4&r&&Ya(t,5);break;case 1:if(ai(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){Eu(t,t.return,e)}else{var l=t.elementType===t.type?n.memoizedProps:Rl(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(l,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Eu(t,t.return,e)}}64&r&&qa(t),512&r&&ja(t,t.return);break;case 3:if(ai(e,t),64&r&&null!==(r=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 27:case 5:e=vn(t.child.stateNode);break;case 1:e=t.child.stateNode}try{Ft(r,e)}catch(e){Eu(t,t.return,e)}}break;case 26:case 27:case 5:ai(e,t),null===n&&4&r&&Xa(t),512&r&&ja(t,t.return);break;case 12:case 13:default:ai(e,t);break;case 22:if(1&t.mode){if(!(l=null!==t.memoizedState||Da)){n=null!==n&&null!==n.memoizedState||Qa;var a=Da,i=Qa;Da=l,(Qa=n)&&!i?ui(e,t,!!(8772&t.subtreeFlags)):ai(e,t),Da=a,Qa=i}}else ai(e,t);512&r&&("manual"===t.memoizedProps.mode?ja(t,t.return):Ha(t,t.return))}}function Ka(e){var n=e.alternate;null!==n&&(e.alternate=null,Ka(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ja(e,n,t){for(t=t.child;null!==t;)Za(e,n,t),t=t.sibling}function Za(e,n,t){if(Ue&&"function"==typeof Ue.onCommitFiberUnmount)try{Ue.onCommitFiberUnmount(Le,t)}catch(e){}switch(t.tag){case 26:case 27:case 5:Qa||Ha(t,n);case 6:Ja(e,n,t);break;case 18:break;case 4:un(),Ja(e,n,t);break;case 0:case 11:case 14:case 15:if(!Qa){var r=t.updateQueue;if(null!==r&&null!==(r=r.lastEffect)){var l=r=r.next;do{var a=l.tag,i=l.inst,u=i.destroy;void 0!==u&&(2&a||4&a)&&(i.destroy=void 0,Ba(t,n,u)),l=l.next}while(l!==r)}}Ja(e,n,t);break;case 1:if(!Qa&&(Ha(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Eu(t,n,e)}Ja(e,n,t);break;case 21:Ja(e,n,t);break;case 22:Ha(t,n),1&t.mode?(Qa=(r=Qa)||null!==t.memoizedState,Ja(e,n,t),Qa=r):Ja(e,n,t);break;default:Ja(e,n,t)}}function ei(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new Ma),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new Ma),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function ni(e,n){var t=ei(e);n.forEach((function(n){var r=zu.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}function ti(e,n){var t=n.deletions;if(null!==t)for(var r=0;re?32:e,null===qi)var r=!1;else{if(e=qi,qi=null,Xi=0,6&Ei)throw Error("Cannot flush passive effects while already rendering.");var l=Ei;if(Ei|=4,vi(e.current),ci(e,e.current),Ei=l,kt(!1),Ue&&"function"==typeof Ue.onPostCommitFiberRoot)try{Ue.onPostCommitFiberRoot(Le,e)}catch(e){}r=!0}return r}finally{Je=t,Pi.transition=n}}return!1}function Pu(e,n,t){null!==(e=Nt(e,n=Dl(e,n=Ll(t,n),2),2))&&(qe(e,2),St(e))}function Eu(e,n,t){if(3===e.tag)Pu(e,e,t);else for(;null!==n;){if(3===n.tag){Pu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$i||!$i.has(r))){null!==(n=Nt(n,e=Ql(n,e=Ll(t,e),2),2))&&(qe(n,2),St(n));break}}n=n.return}}function Ru(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Si;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(Ni=!0,l.add(t),e=_u.bind(null,e,n,t),n.then(e,e))}function _u(e,t,r){var l=e.pingCache;null!==l&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,Ri===e&&(Ti&r)===r&&(4===Ii||3===Ii&&(62914560&Ti)===Ti&&300>n(i[3]).unstable_now()-Hi?!(2&Ei)&&ou(e,0):Di|=r),St(e)}function Tu(e,n){0===n&&(n=1&e.mode?$e():2),null!==(e=ft(e,n))&&(qe(e,n),St(e))}function xu(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Tu(e,t)}function zu(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Tu(e,t)}function Nu(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cu(e,n,t,r){return new Nu(e,n,t,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===In)return 11;if(e===Fn)return 14}return 2}function Uu(e,n){var t=e.alternate;return null===t?((t=Cu(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=31457280&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Fu(e,n){e.flags&=31457282;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Du(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Iu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _n:return Qu(t.children,l,a,n);case Tn:i=8,1&(l|=8)&&(l|=16);break;case xn:return(e=Cu(12,t,n,2|l)).elementType=xn,e.lanes=a,e;case Ln:return(e=Cu(13,t,n,l)).elementType=Ln,e.lanes=a,e;case Un:return(e=Cu(19,t,n,l)).elementType=Un,e.lanes=a,e;case Qn:return Mu(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case zn:i=10;break e;case Cn:i=9;break e;case Nn:case In:i=11;break e;case Fn:i=14;break e;case Dn:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Cu(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Qu(e,n,t,r){return(e=Cu(7,e,r,n)).lanes=t,e}function Mu(e,n,t,r){(e=Cu(22,e,r,n)).elementType=Qn,e.lanes=t;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(!(2&l._pendingVisibility)){var n=ft(e,2);null!==n&&(l._pendingVisibility|=2,eu(n,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(2&l._pendingVisibility){var n=ft(e,2);null!==n&&(l._pendingVisibility&=-3,eu(n,e,2))}}};return e.stateNode=l,e}function Au(e,n,t){return(e=Cu(6,e,null,n)).lanes=t,e}function ju(e,n,t){return(n=Cu(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Hu(e,n,t,r,l,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onRecoverableError=l,this.formState=a,this.incompleteTransitions=new Map}function Bu(e,n,t){var r=3=(null!=a?a:0)}));if(0!==n.length)try{t.callback(new p(n),v,f)}catch(t){console.error(t)}};for(var s of b.entries()){var y=(0,a.default)(s,2),v=y[0];l(y[1])}}}};function P(){(0,s.default)('missing-native-performance-observer','Missing native implementation of PerformanceObserver')}function E(){var t=Array.from(b.values()).map((function(t){return t.entryTypes})).reduce((function(t,n){return z(t,n)}),new Map);for(var n of t){var o=(0,a.default)(n,2),f=o[0],u=o[1];null==c.default||c.default.setDurationThreshold((0,r(d[11]).performanceEntryTypeToRaw)(f),null!=u?u:0)}}var O=(0,l.default)("callback"),k=(0,l.default)("type"),j=(0,l.default)("validateObserveOptions");function M(t){var n=t.type,a=t.entryTypes,o=t.durationThreshold;if(!n&&!a)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and type arguments.");if(a&&n)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must include either entryTypes or type arguments.");if('multiple'===(0,u.default)(this,k)[k]&&n)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This observer has performed observe({entryTypes:...}, therefore it cannot perform observe({type:...})");if('single'===(0,u.default)(this,k)[k]&&a)throw new Error("Failed to execute 'observe' on 'PerformanceObserver': This PerformanceObserver has performed observe({type:...}, therefore it cannot perform observe({entryTypes:...})");if(a&&void 0!==o)throw new TypeError("Failed to execute 'observe' on 'PerformanceObserver': An observe() call must not include both entryTypes and durationThreshold arguments.")}function z(t,n){var o=new Map;for(var f of t){var u,l=(0,a.default)(f,2),s=l[0],y=l[1];if(n.has(s))o.set(s,Math.min(null!=y?y:0,null!=(u=n.get(s))?u:0));else o.set(s,y)}return o}(e.default=(function(){return(0,f.default)((function t(n){(0,o.default)(this,t),Object.defineProperty(this,j,{value:M}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),(0,u.default)(this,O)[O]=n}),[{key:"observe",value:function(t){var a;if(c.default){var o;(0,u.default)(this,j)[j](t),t.entryTypes?((0,u.default)(this,k)[k]='multiple',o=new Map(t.entryTypes.map((function(t){return[t,void 0]})))):((0,u.default)(this,k)[k]='single',o=new Map([[t.type,t.durationThreshold]]));var f=null==(a=b.get(this))?void 0:a.entryTypes,l=f?z(o,f):o;if(!f||f.size!==l.size){b.set(this,{callback:(0,u.default)(this,O)[O],entryTypes:l}),T||(c.default.setOnPerformanceEntryCallback(w),T=!0);var s,y,v=f?(s=new Set(o.keys()),y=new Set(f.keys()),new Set((0,n.default)(s).filter((function(t){return!y.has(t)})))):new Set(o.keys());for(var p of v){var M;if(!h.has(p)){var S=(0,r(d[11]).performanceEntryTypeToRaw)(p);c.default.startReporting(S)}h.set(p,(null!=(M=h.get(p))?M:0)+1)}E()}}else P()}},{key:"disconnect",value:function(){if(c.default){var t=b.get(this);if(t){for(var n of t.entryTypes.keys()){var a,o=null!=(a=h.get(n))?a:0;1===o?(h.delete(n),c.default.stopReporting((0,r(d[11]).performanceEntryTypeToRaw)(n))):0!==o&&h.set(n,o-1)}b.delete(this),0===b.size&&(c.default.setOnPerformanceEntryCallback(void 0),T=!1),E()}}else P()}}])})()).supportedEntryTypes=c.default?c.default.getSupportedPerformanceEntryTypes?Object.freeze(c.default.getSupportedPerformanceEntryTypes().map(r(d[11]).rawToPerformanceEntryType)):Object.freeze(['mark','measure','event']):Object.freeze([])}),79,[2,80,22,44,6,7,37,38,76,81,78,82]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PerformanceEntry=e.ALWAYS_LOGGED_ENTRY_TYPES=void 0;var n=t(r(d[1])),u=t(r(d[2]));e.ALWAYS_LOGGED_ENTRY_TYPES=['mark','measure'],e.PerformanceEntry=(function(){return(0,u.default)((function t(u){(0,n.default)(this,t),this.name=u.name,this.entryType=u.entryType,this.startTime=u.startTime,this.duration=u.duration}),[{key:"toJSON",value:function(){return{name:this.name,entryType:this.entryType,startTime:this.startTime,duration:this.duration}}}])})()}),80,[2,6,7]); +__d((function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var n=t(_r(d[1])),e=t(_r(d[2])),r=t(_r(d[3])),o=t(_r(d[4])),u=t(_r(d[5])),c=t(_r(d[6]));function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}_e.default=(function(t){function s(t){var e,u,c,f,p,y,v,h,S;return(0,n.default)(this,s),v=this,h=s,S=[{name:t.name,entryType:'event',startTime:null!=(e=t.startTime)?e:0,duration:null!=(u=t.duration)?u:0}],h=(0,o.default)(h),(y=(0,r.default)(v,l()?Reflect.construct(h,S||[],(0,o.default)(v).constructor):h.apply(v,S))).processingStart=null!=(c=t.processingStart)?c:0,y.processingEnd=null!=(f=t.processingEnd)?f:0,y.interactionId=null!=(p=t.interactionId)?p:0,y}return(0,c.default)(s,t),(0,e.default)(s,[{key:"toJSON",value:function(){return Object.assign({},(t=s,n="toJSON",e=this,r=3,c=(0,u.default)((0,o.default)(1&r?t.prototype:t),n,e),2&r&&"function"==typeof c?function(t){return c.apply(e,t)}:c)([]),{processingStart:this.processingStart,processingEnd:this.processingEnd,interactionId:this.interactionId});var t,n,e,r,c}}])})(_r(d[7]).PerformanceEntry)}),81,[2,6,7,11,13,34,14,80]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.RawPerformanceEntryTypeValues=void 0,e.performanceEntryTypeToRaw=function(n){switch(n){case'mark':return o.MARK;case'measure':return o.MEASURE;case'event':return o.EVENT;default:throw new TypeError(`performanceEntryTypeToRaw: unexpected performance entry type received: ${n}`)}},e.rawToPerformanceEntry=function(n){return n.entryType===o.EVENT?new t.default({name:n.name,startTime:n.startTime,duration:n.duration,processingStart:n.processingStart,processingEnd:n.processingEnd,interactionId:n.interactionId}):new(r(d[2]).PerformanceEntry)({name:n.name,entryType:c(n.entryType),startTime:n.startTime,duration:n.duration})},e.rawToPerformanceEntryType=c;var t=n(r(d[1])),o=e.RawPerformanceEntryTypeValues={MARK:1,MEASURE:2,EVENT:3};function c(n){switch(n){case o.MARK:return'mark';case o.MEASURE:return'measure';case o.EVENT:return'event';default:throw new TypeError(`rawToPerformanceEntryType: unexpected performance entry type received: ${n}`)}}}),82,[2,81,80]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),f=t(r(d[3])),n=t(r(d[4])),o=(0,n.default)("jsHeapSizeLimit"),s=(0,n.default)("totalJSHeapSize"),S=(0,n.default)("usedJSHeapSize");e.default=(function(){return(0,l.default)((function t(l){(0,u.default)(this,t),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),null!=l&&((0,f.default)(this,o)[o]=l.jsHeapSizeLimit,(0,f.default)(this,s)[s]=l.totalJSHeapSize,(0,f.default)(this,S)[S]=l.usedJSHeapSize)}),[{key:"jsHeapSizeLimit",get:function(){return(0,f.default)(this,o)[o]}},{key:"totalJSHeapSize",get:function(){return(0,f.default)(this,s)[s]}},{key:"usedJSHeapSize",get:function(){return(0,f.default)(this,S)[S]}}])})()}),83,[2,6,7,37,38]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),o=(0,f.default)("startTime"),c=(0,f.default)("endTime"),s=(0,f.default)("initializeRuntimeStart"),v=(0,f.default)("initializeRuntimeEnd"),h=(0,f.default)("executeJavaScriptBundleEntryPointStart"),y=(0,f.default)("executeJavaScriptBundleEntryPointEnd");e.default=(function(){return(0,u.default)((function t(u){(0,n.default)(this,t),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),null!=u&&((0,l.default)(this,o)[o]=u.startTime,(0,l.default)(this,c)[c]=u.endTime,(0,l.default)(this,s)[s]=u.initializeRuntimeStart,(0,l.default)(this,v)[v]=u.initializeRuntimeEnd,(0,l.default)(this,h)[h]=u.executeJavaScriptBundleEntryPointStart,(0,l.default)(this,y)[y]=u.executeJavaScriptBundleEntryPointEnd)}),[{key:"startTime",get:function(){return(0,l.default)(this,o)[o]}},{key:"endTime",get:function(){return(0,l.default)(this,c)[c]}},{key:"initializeRuntimeStart",get:function(){return(0,l.default)(this,s)[s]}},{key:"initializeRuntimeEnd",get:function(){return(0,l.default)(this,v)[v]}},{key:"executeJavaScriptBundleEntryPointStart",get:function(){return(0,l.default)(this,h)[h]}},{key:"executeJavaScriptBundleEntryPointEnd",get:function(){return(0,l.default)(this,y)[y]}}])})()}),84,[2,6,7,37,38]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('NativePerformanceCxx')}),85,[42]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceMeasure=_e.PerformanceMark=void 0;var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5]));function f(e,t,n){return t=(0,o.default)(t),(0,u.default)(e,c()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}_e.PerformanceMark=(function(e){function u(e,t){var o,l;return(0,n.default)(this,u),l=f(this,u,[{name:e,entryType:'mark',startTime:null!=(o=null==t?void 0:t.startTime)?o:performance.now(),duration:0}]),t&&(l.detail=t.detail),l}return(0,l.default)(u,e),(0,t.default)(u)})(r(d[6]).PerformanceEntry),_e.PerformanceMeasure=(function(e){function u(e,t){var o,l;return(0,n.default)(this,u),l=f(this,u,[{name:e,entryType:'measure',startTime:0,duration:null!=(o=null==t?void 0:t.duration)?o:0}]),t&&(l.detail=t.detail),l}return(0,l.default)(u,e),(0,t.default)(u)})(r(d[6]).PerformanceEntry)}),86,[2,7,6,11,13,14,80]); +__d((function(g,r,i,a,m,_e,d){'use strict';if(r(d[0]).installConsoleErrorReporter(),!g.__fbDisableExceptionsManager){r(d[1]).setGlobalHandler((function(e,o){try{r(d[0]).handleException(e,o)}catch(o){throw console.log('Failed to print error: ',o.message),e}}))}}),87,[88,29]); +__d((function(g,r,i,a,m,_e,d){'use strict';var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]),s=r(d[4]);function c(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(c=function(){return!!n})()}var l,u=(function(l){function u(){var n,s,l,f;e(this,u);for(var p=arguments.length,y=new Array(p),E=0;E|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce((function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n}),[])}}),94,[]); +__d((function(g,r,_i,a,m,e,d){'use strict';var t=/^ {4}at (.+?)(?: \((native)\)?| \((address at )?(.*?):(\d+):(\d+)\))$/,s=/^ {4}... skipping (\d+) frames$/,n=/^ {4}at .*$/;function u(n){var u,i=n.match(t);if(i)return{type:'FRAME',functionName:i[1],location:'native'===i[2]?{type:'NATIVE'}:'address at '===i[3]?(u=i[4],'InternalBytecode.js'===u?{type:'INTERNAL_BYTECODE',sourceUrl:i[4],line1Based:Number.parseInt(i[5],10),virtualOffset0Based:Number.parseInt(i[6],10)}:{type:'BYTECODE',sourceUrl:i[4],line1Based:Number.parseInt(i[5],10),virtualOffset0Based:Number.parseInt(i[6],10)}):{type:'SOURCE',sourceUrl:i[4],line1Based:Number.parseInt(i[5],10),column1Based:Number.parseInt(i[6],10)}};var p=n.match(s);return p?{type:'SKIPPED',count:Number.parseInt(p[1],10)}:void 0}m.exports=function(t){for(var s=t.split(/\n/),i=[],p=-1,o=0;o-1}m.exports={isNativeFunction:t,hasNativeConstructor:function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)}}}),105,[]); +__d((function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof E?n:E,h=Object.create(u.prototype),f=new A(i||[]);return c(h,"_invoke",{value:F(t,o,f)}),h}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var v="suspendedStart",w="suspendedYield",b="executing",L="completed",x={};function E(){}function _(){}function j(){}var O={};s(O,h,(function(){return this}));var k=Object.getPrototypeOf,G=k&&k(k(Y([])));G&&G!==o&&i.call(G,h)&&(O=G);var N=j.prototype=E.prototype=Object.create(O);function P(t){["next","throw","return"].forEach((function(n){s(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function o(c,u,h,f){var l=y(t[c],t,u);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then((function(t){o("next",t,h,f)}),(function(t){o("throw",t,h,f)})):n.resolve(p).then((function(t){s.value=t,h(s)}),(function(t){return o("throw",t,h,f)}))}f(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n((function(n,c){o(t,i,n,c)}))}return u=u?u.then(c,c):c()}})}function F(t,n,o){var i=v;return function(c,u){if(i===b)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return q()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=S(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===v)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=b;var l=y(t,n,o);if("normal"===l.type){if(i=o.done?L:w,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function S(t,o){var i=o.method,c=t.iterator[i];if(c===n)return o.delegate=null,"throw"===i&&t.iterator.return&&(o.method="return",o.arg=n,S(t,o),"throw"===o.method)||"return"!==i&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+i+"' method")),x;var u=y(c,t.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,x;var h=u.arg;return h?h.done?(o[t.resultName]=h.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function I(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function R(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function Y(t){if(t){var o=t[h];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,u=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),R(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;R(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:Y(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),106,[]); +__d((function(g,r,i,a,m,e,d){'use strict';if(!0!==g.RN$Bridgeless){var l=function(l){r(d[0]).polyfillGlobal(l,(function(){return r(d[1])[l]}))};l('setTimeout'),l('clearTimeout'),l('setInterval'),l('clearInterval'),l('requestAnimationFrame'),l('cancelAnimationFrame'),l('requestIdleCallback'),l('cancelIdleCallback')}else null!=r(d[2]).default&&r(d[3]).useModernRuntimeScheduler()&&(r(d[0]).polyfillGlobal('requestIdleCallback',(function(){return r(d[4]).default.requestIdleCallback})),r(d[0]).polyfillGlobal('cancelIdleCallback',(function(){return r(d[4]).default.cancelIdleCallback})));null!=r(d[2]).default&&r(d[3]).enableMicrotasks()?(g.RN$enableMicrotasksInReact=!0,r(d[0]).polyfillGlobal('queueMicrotask',(function(){return r(d[5]).default.queueMicrotask})),r(d[0]).polyfillGlobal('setImmediate',(function(){return r(d[6]).setImmediate})),r(d[0]).polyfillGlobal('clearImmediate',(function(){return r(d[6]).clearImmediate}))):(r(d[0]).polyfillGlobal('queueMicrotask',(function(){return r(d[7]).default})),!0!==g.RN$Bridgeless&&(r(d[0]).polyfillGlobal('setImmediate',(function(){return r(d[1]).queueReactNativeMicrotask})),r(d[0]).polyfillGlobal('clearImmediate',(function(){return r(d[1]).clearReactNativeMicrotask}))))}),107,[99,108,111,112,114,115,116,117]); +__d((function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=16.666666666666668,n=[],i=[],l=[],o=[],c=[],u={},f=1,s=[],v=!1;function h(){var e=l.indexOf(null);return-1===e&&(e=l.length),e}function T(e,t){var o=f++,c=h();return l[c]=o,n[c]=e,i[c]=t,o}function k(e,o,c){e>f&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=l.indexOf(e);if(-1!==u){var v=i[u],h=n[u];if(h&&v){'setInterval'!==v&&p(u);try{'setTimeout'===v||'setInterval'===v||'queueReactNativeMicrotask'===v?h():'requestAnimationFrame'===v?h(g.performance.now()):'requestIdleCallback'===v?h({timeRemaining:function(){return Math.max(0,t-(g.performance.now()-o))},didTimeout:!!c}):console.error('Tried to call a callback with invalid type: '+v)}catch(e){s.push(e)}}else console.error('No callback found for timerID '+e)}}function w(){if(0===o.length)return!1;var e=o;o=[];for(var t=0;t0}function p(e){l[e]=null,n[e]=null,i[e]=null}function N(e){if(null!=e){var t=l.indexOf(e);if(-1!==t){var n=i[t];p(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&M(e)}}}var b,I={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(c.splice(e,1),k(i,g.performance.now(),!0)),delete u[i],0===c.length&&R(!1)}),n);u[i]=l}return i},cancelIdleCallback:function(e){N(e);var t=c.indexOf(e);-1!==t&&c.splice(t,1);var n=u[e];n&&(I.clearTimeout(n),delete u[e]),0===c.length&&R(!1)},clearTimeout:function(e){N(e)},clearInterval:function(e){N(e)},clearReactNativeMicrotask:function(e){N(e);var t=o.indexOf(e);-1!==t&&o.splice(t,1)},cancelAnimationFrame:function(e){N(e)},callTimers:function(e){r(d[2])(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),s.length=0;for(var t=0;t0){if(n>1)for(var i=1;i0){var n=c;c=[];for(var i=0;i0){var u=Array.from(l).join(', ');throw new Error(`Feature flags were accessed before being overridden: ${u}`)}t=n};var t,u=n(r(d[1])),l=new Set;function o(n,t,u){var l;return function(){var n;null==l&&(l=null!=(n=t())?n:u);return l}}var c=new Set;function f(n){c.has(n)||(c.add(n),console.error(`Could not access feature flag '${n}' because native module method was not available`))}}),113,[2,111]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('NativeIdleCallbacksCxx')}),114,[42]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('NativeMicrotasksCxx')}),115,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=1,n=new Set;var o={setImmediate:function(o){for(var u=arguments.length,s=new Array(u>1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?a._interceptor&&a._interceptor.loadingFailed(e,t):a._interceptor&&a._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach((function(e){e&&e.remove()})),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders,s=new Map;for(var r of Object.keys(e)){var n=e[r],a=r.toLowerCase(),o=s.get(a);o?(o.headerValue+=', '+n,s.set(a,o)):s.set(a,{lowerHeaderName:a,upperHeaderName:r.toUpperCase(),headerValue:n})}return(0,t.default)(s.values()).sort((function(e,t){return e.upperHeaderNamet.upperHeaderName?1:0})).map((function(e){return e.lowerHeaderName+': '+e.headerValue})).join('\r\n')+'\r\n'}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var r=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(_r(d[13]).default.addListener('didSendNetworkData',(function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkResponse',(function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))}))),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkData',(function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkIncrementalData',(function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))}))),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkDataProgress',(function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))}))),this._subscriptions.push(_r(d[13]).default.addListener('didCompleteNetworkResponse',(function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))})));var n='text';'arraybuffer'===this._responseType&&(n='base64'),'blob'===this._responseType&&(n='blob');var a;a='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(a),s._performanceLogger.startTimespan(s._perfKey),_r(d[11])(s._method,'XMLHttpRequest method needs to be defined (%s).',a),_r(d[11])(s._url,'XMLHttpRequest URL needs to be defined (%s).',a),_r(d[13]).default.sendRequest(s._method,s._trackingName,s._url,s._headers,e,n,r,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&_r(d[13]).default.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce((function(e,s){return e[s.toLowerCase()]=t[s],e}),{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,t){var r,n,u,h,p;'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(r=a,n="addEventListener",u=this,h=3,p=(0,s.default)((0,o.default)(1&h?r.prototype:r),n,u),2&h&&"function"==typeof p?function(e){return p.apply(u,e)}:p)([e,t])}}],[{key:"setInterceptor",value:function(e){a._interceptor=e}}])})(h.default.apply(void 0,(0,t.default)(f)));v.UNSENT=0,v.OPENED=1,v.HEADERS_RECEIVED=2,v.LOADING=3,v.DONE=4,v._interceptor=null,m.exports=v}),119,[2,22,34,7,6,11,13,14,120,121,126,31,129,130]); +__d((function(g,r,_i,a,m,e,d){ +/** + * @author Toru Nagashima + * @copyright 2015 Toru Nagashima. All rights reserved. + * See LICENSE file in root directory for full license. + */ +'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;t(this,s);var l=r(d[2]);this.data=l.createFromParts(n,o).data}),[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,s){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'',o=r(d[2]),l=this.data,h=l.offset,u=l.size;return'number'==typeof t&&(t>u&&(t=u),h+=t,u-=t,'number'==typeof s&&(s<0&&(s=this.size+s),s>this.size&&(s=this.size),u=s-t)),o.createFromOptions({blobId:this.data.blobId,offset:h,size:u,type:n,__collector:this.data.__collector})}},{key:"close",value:function(){r(d[2]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}])})();m.exports=n}),124,[6,7,121]); +__d((function(g,r,i,a,m,e,d){var t=new Map;m.exports={register:function(n){var u=t.get(n);null!=u?t.set(n,u+1):t.set(n,1)},unregister:function(n){var u=t.get(n);null!=u&&(u<=1?t.delete(n):t.set(n,u-1))},has:function(n){return t.get(n)||!1}}}),125,[]); +__d((function(g,r,i,a,m,e,d){var t=(0,r(d[0])(r(d[1])).default)();m.exports=t}),126,[2,127]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){return new u},_e.getCurrentTimestamp=void 0;var e,n=t(_r(d[1])),s=t(_r(d[2])),i=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var s={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&{}.hasOwnProperty.call(t,r)){var o=i?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(s,r,o):s[r]=t[r]}return s.default=t,n&&n.set(t,s),s})(_r(d[3]));t(_r(d[4]));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var r={},o=_e.getCurrentTimestamp=null!=(e=g.nativeQPLTimestamp)?e:function(){return g.performance.now()},u=(function(){return(0,s.default)((function t(){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1}),[{key:"addTimespan",value:function(t,e,n,s,i){this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,endTime:n,totalTime:n-(e||0),startExtras:s,endExtras:i})}},{key:"append",value:function(t){this._timespans=Object.assign({},t.getTimespans(),this._timespans),this._extras=Object.assign({},t.getExtras(),this._extras),this._points=Object.assign({},t.getPoints(),this._points),this._pointExtras=Object.assign({},t.getPointExtras(),this._pointExtras)}},{key:"clear",value:function(){this._timespans={},this._extras={},this._points={}}},{key:"clearCompleted",value:function(){for(var t in this._timespans){var e;null!=(null==(e=this._timespans[t])?void 0:e.totalTime)&&delete this._timespans[t]}this._extras={},this._points={}}},{key:"close",value:function(){this._closed=!0}},{key:"currentTimestamp",value:function(){return o()}},{key:"getExtras",value:function(){return this._extras}},{key:"getPoints",value:function(){return this._points}},{key:"getPointExtras",value:function(){return this._pointExtras}},{key:"getTimespans",value:function(){return this._timespans}},{key:"hasTimespan",value:function(t){return!!this._timespans[t]}},{key:"isClosed",value:function(){return this._closed}},{key:"logEverything",value:function(){}},{key:"markPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=e,n&&(this._pointExtras[t]=n))}},{key:"removeExtra",value:function(t){var e=this._extras[t];return delete this._extras[t],e}},{key:"setExtra",value:function(t,e){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=e)}},{key:"startTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:e,startExtras:n},r[t]=i.beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var s=this._timespans[t];s&&null!=s.startTime&&null==s.endTime&&(s.endExtras=n,s.endTime=e,s.totalTime=s.endTime-(s.startTime||0),null!=r[t]&&(i.endAsyncEvent(t,r[t]),delete r[t]))}}}])})()}),127,[2,6,7,28,128]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}}),128,[]); +__d((function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=c(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,f=c(t),A=f[0],C=f[1],y=new o(i(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=16383,A=0,C=h-u;AC?C:A+i));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0;u<64;++u)t[u]=h[u],n[h.charCodeAt(u)]=u;function c(t){var n=t.length;if(n%4>0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function i(t,n,o){return 3*(n+o)/4-o}function f(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63}),129,[]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),u=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),f=e(r(d[5])),l=e(r(d[6])),c=e(r(d[7])),s=e(r(d[8])),v=e(r(d[9]));function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function y(e){var t=[];for(var u in e)t.push([u,e[u]]);return t}var h=1;var k=(function(e){function l(){return(0,t.default)(this,l),e=this,u=l,f=['ios'!==c.default.OS?null:v.default],u=(0,o.default)(u),(0,n.default)(e,p()?Reflect.construct(u,f||[],(0,o.default)(e).constructor):u.apply(e,f));var e,u,f}return(0,f.default)(l,e),(0,u.default)(l,[{key:"sendRequest",value:function(e,t,u,n,o,f,l,c,p,k){var R=(0,s.default)(o);R&&R.formData&&(R.formData=R.formData.map((function(e){return Object.assign({},e,{headers:y(e.headers)})})));var b=h++;v.default.sendRequest(e,u,b,y(n),Object.assign({},R,{trackingName:t}),f,l,c,k),p(b)}},{key:"abortRequest",value:function(e){v.default.abortRequest(e)}},{key:"clearCookies",value:function(e){v.default.clearCookies(e)}}])})(l.default);_e.default=new k}),130,[2,6,7,11,13,14,131,39,132,135]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5]));e.default=(function(){return(0,l.default)((function t(l){(0,n.default)(this,t),'ios'===u.default.OS&&(0,s.default)(null!=l,'`new NativeEventEmitter()` requires a non-null argument.');var o=!!l&&'function'==typeof l.addListener,v=!!l&&'function'==typeof l.removeListeners;l&&o&&v?this._nativeModule=l:null!=l&&(o||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}),[{key:"addListener",value:function(t,n,l){var u,s=this;null==(u=this._nativeModule)||u.addListener(t);var v=o.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u-1};function c(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function y(t){return'string'!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError('Headers constructor: expected name/value pair to be length 2, found'+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function b(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError('Already read')):void(t.bodyUsed=!0)}function w(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function v(t){var e=new FileReader,o=w(e);return e.readAsArrayBuffer(t),o}function E(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?i:n),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal||(function(){if('AbortController'in e)return(new AbortController).signal})(),this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&s)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(s),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==o.cache&&'no-cache'!==o.cache)){var h=/([?&])_=[^&]*/;h.test(this.url)?this.url=this.url.replace(h,'$1_='+(new Date).getTime()):this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}function x(t){var e=new FormData;return t.trim().split('&').forEach((function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function B(t,e){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new p(e.headers),this.url=e.url||'',this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},_.call(g.prototype),_.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},B.error=function(){var t=new B(null,{status:200,statusText:''});return t.ok=!1,t.status=0,t.type='error',t};var O=[301,302,303,307,308];B.redirect=function(t,e){if(-1===O.indexOf(e))throw new RangeError('Invalid status code');return new B(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function P(o,n){return new Promise((function(s,u){var f=new g(o,n);if(f.signal&&f.signal.aborted)return u(new t.DOMException('Aborted','AbortError'));var l=new XMLHttpRequest;function b(){l.abort()}if(l.onload=function(){var t,e,o={statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||'',e=new p,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map((function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t})).forEach((function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();try{e.append(n,i)}catch(t){console.warn('Response '+t.message)}}})),e)};0===f.url.indexOf('file://')&&(l.status<200||l.status>599)?o.status=200:o.status=l.status,o.url='responseURL'in l?l.responseURL:o.headers.get('X-Request-URL');var n='response'in l?l.response:l.responseText;setTimeout((function(){s(new B(n,o))}),0)},l.onerror=function(){setTimeout((function(){u(new TypeError('Network request failed'))}),0)},l.ontimeout=function(){setTimeout((function(){u(new TypeError('Network request timed out'))}),0)},l.onabort=function(){setTimeout((function(){u(new t.DOMException('Aborted','AbortError'))}),0)},l.open(f.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(f.url),!0),'include'===f.credentials?l.withCredentials=!0:'omit'===f.credentials&&(l.withCredentials=!1),'responseType'in l&&(i?l.responseType='blob':h&&(l.responseType='arraybuffer')),n&&'object'==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var w=[];Object.getOwnPropertyNames(n.headers).forEach((function(t){w.push(c(t)),l.setRequestHeader(t,y(n.headers[t]))})),f.headers.forEach((function(t,e){-1===w.indexOf(e)&&l.setRequestHeader(e,t)}))}else f.headers.forEach((function(t,e){l.setRequestHeader(e,t)}));f.signal&&(f.signal.addEventListener('abort',b),l.onreadystatechange=function(){4===l.readyState&&f.signal.removeEventListener('abort',b)}),l.send(void 0===f._bodyInit?null:f._bodyInit)}))}P.polyfill=!0,e.fetch||(e.fetch=P,e.Headers=p,e.Request=g,e.Response=B),t.Headers=p,t.Request=g,t.Response=B,t.fetch=P,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})}),138,[]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]),t=e(r(d[1])),o=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),l=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),y=e(r(d[10])),b=e(r(d[11])),p=e(r(d[12])),v=e(r(d[13])),_=e(r(d[14])),E=e(r(d[15])),k=e(r(d[16])),S=["headers"];function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}var N=0,O=(function(e){function E(e,n,c){var l,f,y,v;(0,o.default)(this,E),f=this,y=E,y=(0,u.default)(y),(l=(0,s.default)(f,I()?Reflect.construct(y,v||[],(0,u.default)(f).constructor):y.apply(f,v))).CONNECTING=0,l.OPEN=1,l.CLOSING=2,l.CLOSED=3,l.readyState=0,l.url=e,'string'==typeof n&&(n=[n]);var _=c||{},k=_.headers,O=void 0===k?{}:k,w=(0,t.default)(_,S);return w&&'string'==typeof w.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),O.origin=w.origin,delete w.origin),Object.keys(w).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(w).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(n)||(n=null),l._eventEmitter=new h.default('ios'!==b.default.OS?null:p.default),l._socketId=N++,l._registerEvents(),p.default.connect(e,n,{headers:O},l._socketId),l}return(0,c.default)(E,e),(0,n.default)(E,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?f.default.addWebSocketHandler(this._socketId):f.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof l.default)return(0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),void f.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');p.default.sendBinary((0,y.default)(e),this._socketId)}else p.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');p.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var o='number'==typeof e?e:1e3,n='string'==typeof t?t:'';p.default.close(o,n,this._socketId),f.default.isAvailable&&'blob'===this._binaryType&&f.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach((function(e){return e.remove()})),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',(function(t){if(t.id===e._socketId){var o=t.data;switch(t.type){case'binary':o=_.default.toByteArray(t.data).buffer;break;case'blob':o=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.default('message',{data:o}))}})),this._eventEmitter.addListener('websocketOpen',(function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new v.default('open')))})),this._eventEmitter.addListener('websocketClosed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())})),this._eventEmitter.addListener('websocketFailed',(function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('error',{message:t.message})),e.dispatchEvent(new v.default('close',{code:1006,reason:t.message})),e._unregisterEvents(),e.close())}))]}}])})(E.default.apply(void 0,['close','error','message','open']));O.CONNECTING=0,O.OPEN=1,O.CLOSING=2,O.CLOSED=3,m.exports=O}),139,[2,4,6,7,11,13,14,124,121,131,134,39,140,142,129,120,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),140,[141]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('WebSocketModule')}),141,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]),n=t((function t(n,c){s(this,t),this.type=n.toString(),Object.assign(this,c)}));m.exports=n}),142,[7,6]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),n=r(d[1]),e=r(d[2]),u=r(d[3]),o=r(d[4]);function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}var s=(function(s){function l(n,o,s){var f,h,p,v;return t(this,l),r(d[5])(null!=n&&null!=o,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),h=this,v=[n,s],p=u(p=l),(f=e(h,c()?Reflect.construct(p,v||[],u(h).constructor):p.apply(h,v))).data.name=o,f}return o(l,s),n(l,[{key:"name",get:function(){return r(d[5])(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}])})(r(d[6]));m.exports=s}),143,[6,7,11,13,14,31,124]); +__d((function(g,r,i,a,m,_e,d){var t=r(d[0]),e=t(r(d[1])),o=t(r(d[2])),n=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7]));function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}var h=(function(t){function f(){var t,o,u,l;return(0,e.default)(this,f),o=this,u=f,u=(0,s.default)(u),(t=(0,n.default)(o,y()?Reflect.construct(u,l||[],(0,s.default)(o).constructor):u.apply(o,l))).EMPTY=0,t.LOADING=1,t.DONE=2,t._aborted=!1,t._reset(),t}return(0,u.default)(f,t),(0,o.default)(f,[{key:"_reset",value:function(){this._readyState=0,this._error=null,this._result=null}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent({type:'readystatechange'}),2===t&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsDataURL(t.data).then((function(t){if(!e._aborted){var o=t.split(',')[1],n=(0,r(d[8]).toByteArray)(o);e._result=n.buffer,e._setReadyState(2)}}),(function(t){e._aborted||(e._error=t,e._setReadyState(2))}))}},{key:"readAsDataURL",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsDataURL(t.data).then((function(t){e._aborted||(e._result=t,e._setReadyState(2))}),(function(t){e._aborted||(e._error=t,e._setReadyState(2))}))}},{key:"readAsText",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then((function(t){e._aborted||(e._result=t,e._setReadyState(2))}),(function(t){e._aborted||(e._error=t,e._setReadyState(2))}))}},{key:"abort",value:function(){this._aborted=!0,0!==this._readyState&&2!==this._readyState&&(this._reset(),this._setReadyState(2)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}])})(f.default.apply(void 0,['abort','error','load','loadstart','loadend','progress']));h.EMPTY=0,h.LOADING=1,h.DONE=2,m.exports=h}),144,[2,6,7,11,13,14,145,120,129]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),145,[146]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('FileReaderModule')}),146,[42]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var n=t(r(d[1])),o=t(r(d[2])),s=t(r(d[3])),u=null;if(s.default&&'string'==typeof s.default.getConstants().BLOB_URI_SCHEME){var h=s.default.getConstants();u=h.BLOB_URI_SCHEME+':','string'==typeof h.BLOB_URI_HOST&&(u+=`//${h.BLOB_URI_HOST}/`)}var f=e.URLSearchParams=(function(){return(0,o.default)((function t(o){var s=this;(0,n.default)(this,t),this._searchParams=[],'object'==typeof o&&Object.keys(o).forEach((function(t){return s.append(t,o[t])}))}),[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:Symbol.iterator,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce((function(n,o,s){return n+encodeURIComponent(o[0])+'='+encodeURIComponent(o[1])+(s===t?'':'&')}),'')}}])})();function c(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URL=(function(){return(0,o.default)((function t(o,s){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||c(o))this._url=o,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!c(u=s))throw new TypeError(`Invalid base URL: ${u}`)}else u=s.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),o.startsWith('/')||(o=`/${o}`),u.endsWith(o)&&(o=''),this._url=`${u}${o}`}}),[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._searchParamsInstance.toString(),n=this._url.indexOf('?')>-1?'&':'?';return this._url+n+t}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return`${u}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`}},{key:"revokeObjectURL",value:function(t){}}])})()}),147,[2,6,7,122]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),o=r(d[2]),n=r(d[3]),l=r(d[4]);function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}Object.defineProperty(_e,'__esModule',{value:!0});var c=(function(c){function p(){var e,l,c;throw t(this,p),e=this,l=n(l=p),o(e,u()?Reflect.construct(l,c||[],n(e).constructor):l.apply(e,c)),new TypeError("AbortSignal cannot be constructed directly")}return l(p,c),e(p,[{key:"aborted",get:function(){var t=b.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}])})(r(d[5]).EventTarget);r(d[5]).defineEventAttribute(c.prototype,"abort");var b=new WeakMap;Object.defineProperties(c.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(c.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var p=(function(){return e((function e(){var o;t(this,e),f.set(this,(o=Object.create(c.prototype),r(d[5]).EventTarget.call(o),b.set(o,!1),o))}),[{key:"signal",get:function(){return y(this)}},{key:"abort",value:function(){var t;t=y(this),!1===b.get(t)&&(b.set(t,!0),t.dispatchEvent({type:"abort"}))}}])})(),f=new WeakMap;function y(t){var e=f.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(p.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(p.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=p,_e.AbortSignal=c,_e.default=p,m.exports=p,m.exports.AbortController=m.exports.default=p,m.exports.AbortSignal=c}),148,[6,7,11,13,14,120]); +__d((function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})}),149,[150]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),o=t(r(d[2])),s=t(r(d[3])),l=t(r(d[4])),u=(function(){function t(){(0,n.default)(this,t)}return(0,o.default)(t,null,[{key:"alert",value:function(n,o,l,u){if('ios'===s.default.OS)t.prompt(n,o,l,'default',void 0,void 0,u);else if('android'===s.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:n||'',message:o||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=l?l.slice(0,3):[{text:"OK"}],y=p.pop(),b=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),b&&(v.buttonNegative=b.text||''),y&&(v.buttonPositive=y.text||"OK");c.showAlert(v,(function(t){return console.warn(t)}),(function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?b.onPress&&b.onPress():n===f.buttonPositive&&y.onPress&&y.onPress():t===f.dismissed&&u&&u.onDismiss&&u.onDismiss()}))}}},{key:"prompt",value:function(t,n,o){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0,v=arguments.length>6?arguments[6]:void 0;if('ios'===s.default.OS){var p,y,b,h=[],P=[];'function'==typeof o?h=[o]:Array.isArray(o)&&o.forEach((function(t,n){if(h[n]=t.onPress,'cancel'===t.style?p=String(n):'destructive'===t.style&&(y=String(n)),t.isPreferred&&(b=String(n)),t.text||n<(o||[]).length-1){var s={};s[n]=t.text||'',P.push(s)}})),l.default.alertWithArgs({title:t||'',message:n||void 0,buttons:P,type:u||void 0,defaultValue:c,cancelButtonKey:p,destructiveButtonKey:y,preferredButtonKey:b,keyboardType:f,userInterfaceStyle:(null==v?void 0:v.userInterfaceStyle)||void 0},(function(t,n){var o=h[t];o&&o(n)}))}}}])})();m.exports=u}),150,[2,6,7,39,151,152]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));function n(){}m.exports={alertWithArgs:function(f,o){t.default&&t.default.showAlert(f,n,o||n)}}}),151,[2,152]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),152,[153]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('DialogManagerAndroid')}),153,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t?g.navigator={product:'ReactNative'}:r(d[0]).polyfillObjectProperty(t,'product',(function(){return'ReactNative'}))}),154,[99]); +__d((function(g,r,i,a,m,e,d){'use strict';var n;if(!0===g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',(function(){return r(d[1])})),!0!==g.RN$Bridgeless&&n('JSTimers',(function(){return r(d[2])})),n('HeapCapture',(function(){return r(d[3])})),n('SamplingProfiler',(function(){return r(d[4])})),n('RCTLog',(function(){return r(d[5])})),n('RCTDeviceEventEmitter',(function(){return r(d[6]).default})),n('RCTNativeAppEventEmitter',(function(){return r(d[7])})),n('GlobalPerformanceLogger',(function(){return r(d[8])})),n('HMRClient',(function(){return r(d[9])}))}),155,[20,28,108,156,159,162,33,163,126,164]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t}),156,[2,157]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),157,[158]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCHeapCapture')}),158,[42]); +__d((function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o}),159,[160]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),160,[161]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('JSCSamplingProfiler')}),161,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,l={logIfNoNativeHook:function(o){for(var t=arguments.length,f=new Array(t>1?t-1:0),c=1;c1?f-1:0),v=1;v>>8)>>>0,u|=0)}}}),190,[191,193]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n){var o=(0,r(d[2]).normalizeColorObject)(n);if(null!=o)return o}if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}}),191,[2,192,193]); +__d((function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,u){var s=u<.5?u*(1+t):u+t-u*t,c=2*u-s,l=r(c,s,n+.3333333333333333),o=r(c,s,n),g=r(c,s,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,u){if(t+u>=1){var s=Math.round(255*t/(t+u));return s<<24|s<<16|s<<8}var c=r(0,1,n+.3333333333333333)*(1-t-u)+t,l=r(0,1,n)*(1-t-u)+t,o=r(0,1,n-.3333333333333333)*(1-t-u)+t;return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*o)<<8}var u,s='[-+]?\\d*\\.?\\d+',c="[-+]?\\d*\\.?\\d+%";function l(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function f(r){return(parseFloat(r)%360+360)%360/360}function p(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function w(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;var u,s=h();if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;var c=w(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|p(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|p(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(f(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(f(u[6]),y(u[7]),y(u[8]))|p(u[9]))>>>0:(n(f(u[2]),y(u[3]),y(u[4]))|p(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(f(u[1]),y(u[2]),y(u[3])))>>>0:null}}),192,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=void 0;e.PlatformColor=function(){for(var o=arguments.length,n=new Array(o),t=0;t=l)return n[c];return n[n.length-1]||1},e.setUrlCacheBreaker=function(n){t=n};var t,u=n(r(d[1]))}),209,[2,210]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),n=t(r(d[2])),o=(function(){function t(){(0,u.default)(this,t)}return(0,n.default)(t,null,[{key:"get",value:function(){return r(d[3]).default.get('window').scale}},{key:"getFontScale",value:function(){return r(d[3]).default.get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(u){return Math.round(u*t.get())}},{key:"roundToNearestPixel",value:function(u){var n=t.get();return Math.round(u*n)/n}},{key:"startDetecting",value:function(){}}])})();e.default=o}),210,[2,6,7,211]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,l=t(r(d[1])),s=t(r(d[2])),c=t(r(d[3])),u=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6])),h=new u.default,w=!1,v=(function(){return(0,s.default)((function t(){(0,l.default)(this,t)}),null,[{key:"get",value:function(t){return(0,f.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var l=t.screen,s=t.window,c=t.windowPhysicalPixels;c&&(s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale});var u=t.screenPhysicalPixels;u?l={width:u.width/u.scale,height:u.height/u.scale,scale:u.scale,fontScale:u.fontScale}:null==l&&(l=s),n={window:s,screen:l},w?h.emit('change',n):w=!0}},{key:"addEventListener",value:function(t,n){return(0,f.default)('change'===t,'Trying to subscribe to unknown event: "%s"',t),h.addListener(t,n)}}])})();c.default.addListener('didUpdateDimensions',(function(t){v.set(t)})),v.set(o.default.getConstants().Dimensions);e.default=v}),211,[2,6,7,33,36,212,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),212,[213]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).getEnforcing('DeviceInfo'),n=null,r={getConstants:function(){return null==n&&(n=t.getConstants()),n}};_e.default=r}),213,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];if(Number.isFinite(n)&&n>0)return Math.round(160*n)+'dpi';throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','ktx','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.slice(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}}),214,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.customDirectEventTypes=e.customBubblingEventTypes=void 0,e.get=function(t){var o;if(l.has(t))o=l.get(t);else{var s=u.get(t);'function'!=typeof s&&(0,n.default)(!1,'View config getter callback for component `%s` must be a function (received `%s`).%s',t,null===s?'null':typeof s,'string'==typeof t[0]&&/[a-z]/.test(t[0])?' Make sure to start component names with a capital letter.':''),c(o=s()),l.set(t,o),u.set(t,null)}return(0,n.default)(o,'View config not found for name %s',t),o},e.register=function(t,o){return(0,n.default)(!u.has(t),'Tried to register two views with the same name %s',t),(0,n.default)('function'==typeof o,'View config getter callback for component `%s` must be a function (received `%s`)',t,null===o?'null':typeof o),u.set(t,o),t};var n=t(r(d[1])),o=e.customBubblingEventTypes={},s=e.customDirectEventTypes={},u=new Map,l=new Map;function c(t){var n=t.bubblingEventTypes,u=t.directEventTypes;if(null!=n)for(var l in n)null==o[l]&&(o[l]=n[l]);if(null!=u)for(var c in u)null==s[c]&&(s[c]=u[c])}}),215,[2,31]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o of['validAttributes','bubblingEventTypes','directEventTypes']){var u=Object.keys(f(t[o],n[o]));if(u.length>0){var s,c=null!=(s=n.uiViewClassName)?s:t.uiViewClassName;console.error(`'${c}' has a view config that does not match native. '${o}' is missing: ${u.join(', ')}`)}}},e.getConfigWithoutViewProps=function(t,o){if(!t[o])return{};return Object.keys(t[o]).filter((function(t){return!n.default[o][t]})).reduce((function(n,f){return n[f]=t[o][f],n}),{})},e.stringifyViewConfig=function(t){return JSON.stringify(t,(function(t,n){return'function'==typeof n?`\u0192 ${n.name}`:n}),2)};var n=t(r(d[1])),o=['transform','hitSlop'];function f(t,n){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)o.includes(c)||(n?t.hasOwnProperty(c)&&s(t[c],n[c],c):u[c]={});return u}}),216,[2,217]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u}),217,[2,218]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o={topAccessibilityAction:{registrationName:'onAccessibilityAction'},onGestureHandlerEvent:(0,r(d[2]).DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerEvent'}),onGestureHandlerStateChange:(0,r(d[2]).DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerStateChange'}),topContentSizeChange:{registrationName:'onContentSizeChange'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topMessage:{registrationName:'onMessage'},topSelectionChange:{registrationName:'onSelectionChange'},topLoadingFinish:{registrationName:'onLoadingFinish'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topLoadingStart:{registrationName:'onLoadingStart'},topLoadingError:{registrationName:'onLoadingError'},topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topScrollEndDrag:{registrationName:'onScrollEndDrag'},topScroll:{registrationName:'onScroll'},topLayout:{registrationName:'onLayout'}},l={backgroundColor:{process:r(d[3]).default},transform:!0,transformOrigin:!0,experimental_filter:{process:r(d[4]).default},opacity:!0,elevation:!0,shadowColor:{process:r(d[3]).default},zIndex:!0,renderToHardwareTextureAndroid:!0,testID:!0,nativeID:!0,accessibilityLabelledBy:!0,accessibilityLabel:!0,accessibilityHint:!0,accessibilityRole:!0,accessibilityCollection:!0,accessibilityCollectionItem:!0,accessibilityState:!0,accessibilityActions:!0,accessibilityValue:!0,importantForAccessibility:!0,role:!0,rotation:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0,accessibilityLiveRegion:!0,width:!0,minWidth:!0,collapsable:!0,collapsableChildren:!0,maxWidth:!0,height:!0,minHeight:!0,maxHeight:!0,flex:!0,flexGrow:!0,rowGap:!0,columnGap:!0,gap:!0,flexShrink:!0,flexBasis:!0,aspectRatio:!0,flexDirection:!0,flexWrap:!0,alignSelf:!0,alignItems:!0,alignContent:!0,justifyContent:!0,overflow:!0,display:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginInline:!0,marginInlineEnd:!0,marginInlineStart:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,padding:!0,paddingBlock:!0,paddingBlockEnd:!0,paddingBlockStart:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingInline:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,borderWidth:!0,borderStartWidth:!0,borderEndWidth:!0,borderTopWidth:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,start:!0,end:!0,left:!0,right:!0,top:!0,bottom:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,position:!0,style:n.default,experimental_layoutConformance:!0},s={directEventTypes:o,bubblingEventTypes:{topChange:{phasedRegistrationNames:{captured:'onChangeCapture',bubbled:'onChange'}},topSelect:{phasedRegistrationNames:{captured:'onSelectCapture',bubbled:'onSelect'}},topTouchEnd:{phasedRegistrationNames:{captured:'onTouchEndCapture',bubbled:'onTouchEnd'}},topTouchCancel:{phasedRegistrationNames:{captured:'onTouchCancelCapture',bubbled:'onTouchCancel'}},topTouchStart:{phasedRegistrationNames:{captured:'onTouchStartCapture',bubbled:'onTouchStart'}},topTouchMove:{phasedRegistrationNames:{captured:'onTouchMoveCapture',bubbled:'onTouchMove'}},topPointerCancel:{phasedRegistrationNames:{captured:'onPointerCancelCapture',bubbled:'onPointerCancel'}},topPointerDown:{phasedRegistrationNames:{captured:'onPointerDownCapture',bubbled:'onPointerDown'}},topPointerEnter:{phasedRegistrationNames:{captured:'onPointerEnterCapture',bubbled:'onPointerEnter',skipBubbling:!0}},topPointerLeave:{phasedRegistrationNames:{captured:'onPointerLeaveCapture',bubbled:'onPointerLeave',skipBubbling:!0}},topPointerMove:{phasedRegistrationNames:{captured:'onPointerMoveCapture',bubbled:'onPointerMove'}},topPointerUp:{phasedRegistrationNames:{captured:'onPointerUpCapture',bubbled:'onPointerUp'}},topPointerOut:{phasedRegistrationNames:{captured:'onPointerOutCapture',bubbled:'onPointerOut'}},topPointerOver:{phasedRegistrationNames:{captured:'onPointerOverCapture',bubbled:'onPointerOver'}},topClick:{phasedRegistrationNames:{captured:'onClickCapture',bubbled:'onClick'}}},validAttributes:Object.assign({},l,{onLayout:!0,onMoveShouldSetResponder:!0,onMoveShouldSetResponderCapture:!0,onStartShouldSetResponder:!0,onStartShouldSetResponderCapture:!0,onResponderGrant:!0,onResponderReject:!0,onResponderStart:!0,onResponderEnd:!0,onResponderRelease:!0,onResponderMove:!0,onResponderTerminate:!0,onResponderTerminationRequest:!0,onShouldBlockNativeResponder:!0,onTouchStart:!0,onTouchMove:!0,onTouchEnd:!0,onTouchCancel:!0,onClick:!0,onClickCapture:!0,onPointerEnter:!0,onPointerEnterCapture:!0,onPointerLeave:!0,onPointerLeaveCapture:!0,onPointerMove:!0,onPointerMoveCapture:!0,onPointerOut:!0,onPointerOutCapture:!0,onPointerOver:!0,onPointerOverCapture:!0})};e.default=s}),218,[2,188,219,190,194]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionallyIgnoredEventHandlers=function(n){if('ios'===t.default.OS)return n;return},e.DynamicallyInjectedByGestureHandler=function(n){return u.add(n),n},e.isIgnored=function(n){if('object'==typeof n&&null!=n)return u.has(n);return!1};var t=n(r(d[1])),u=new WeakSet}),219,[2,39]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.stringifyValidationResult=function(t,u){var s=u.differences;return[`StaticViewConfigValidator: Invalid static view config for '${t}'.`,''].concat((0,n.default)(s.map((function(t){var n=t.type,u=t.path;switch(n){case'missing':return`- '${u.join('.')}' is missing.`;case'unequal':return`- '${u.join('.')}' is the wrong value.`;case'unexpected':return`- '${u.join('.')}' is present but not expected to be.`}}))),['']).join('\n')},e.validate=function(t,n,s){var l=[];if(u(l,[],{bubblingEventTypes:n.bubblingEventTypes,directEventTypes:n.directEventTypes,uiViewClassName:n.uiViewClassName,validAttributes:n.validAttributes},{bubblingEventTypes:s.bubblingEventTypes,directEventTypes:s.directEventTypes,uiViewClassName:s.uiViewClassName,validAttributes:s.validAttributes}),0===l.length)return{type:'valid'};return{type:'invalid',differences:l}};var n=t(r(d[1]));function u(t,l,c,o){for(var p in c){var v=c[p];if(o.hasOwnProperty(p)){var f=o[p],y=s(v);if(null!=y){var b=s(f);if(null!=b){l.push(p),u(t,l,y,b),l.pop();continue}}v!==f&&t.push({path:[].concat((0,n.default)(l),[p]),type:'unequal',nativeValue:v,staticValue:f})}else t.push({path:[].concat((0,n.default)(l),[p]),type:'missing',nativeValue:v})}for(var h in o)c.hasOwnProperty(h)||(0,r(d[2]).isIgnored)(o[h])||t.push({path:[].concat((0,n.default)(l),[h]),type:'unexpected',staticValue:o[h]})}function s(t){return'object'!=typeof t||Array.isArray(t)?null:t}}),220,[2,22,219]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var n=t(r(d[1]));function u(t,n){var u;return null==t||null==n?null!=(u=null!=t?t:n)?u:{}:Object.assign({},t,n)}}),221,[2,217]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(n){var o={};return n.supportedCommands.forEach((function(n){o[n]=function(o){for(var t=arguments.length,u=new Array(t>1?t-1:0),f=1;f=0;n--)if(f[n]())return;u.exitApp()}));var u={exitApp:function(){t.default&&t.default.invokeDefaultBackPressHandler()},addEventListener:function(n,t){return-1===f.indexOf(t)&&f.push(t),{remove:function(){return u.removeEventListener(n,t)}}},removeEventListener:function(n,t){var i=f.indexOf(t);-1!==i&&f.splice(i,1)}};m.exports=u}),231,[2,232,33]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),232,[233]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('DeviceEventManager')}),233,[42]); +__d((function(g,r,i,a,m,e,d){m.exports={get BatchedBridge(){return r(d[0])},get ExceptionsManager(){return r(d[1])},get Platform(){return r(d[2])},get RCTEventEmitter(){return r(d[3])},get ReactNativeViewConfigRegistry(){return r(d[4])},get TextInputState(){return r(d[5])},get UIManager(){return r(d[6])},get deepDiffer(){return r(d[7])},get deepFreezeAndThrowOnMutationInDev(){return r(d[8])},get flattenStyle(){return r(d[9])},get ReactFiberErrorDialog(){return r(d[10]).default},get legacySendAccessibilityEvent(){return r(d[11])},get RawEventEmitter(){return r(d[12]).default},get CustomEvent(){return r(d[13]).default},get createAttributePayload(){return r(d[14]).create},get diffAttributePayloads(){return r(d[14]).diff},get createPublicInstance(){return r(d[15]).createPublicInstance},get createPublicTextInstance(){return r(d[15]).createPublicTextInstance},get getNativeTagFromPublicInstance(){return r(d[15]).getNativeTagFromPublicInstance},get getNodeFromPublicInstance(){return r(d[15]).getNodeFromPublicInstance},get getInternalInstanceHandleFromPublicInstance(){return r(d[15]).getInternalInstanceHandleFromPublicInstance}}}),234,[20,88,39,235,215,236,50,238,239,227,240,49,241,242,244,245]); +__d((function(g,r,i,a,m,e,d){'use strict';var t={register:function(t){g.RN$Bridgeless?g.RN$registerCallableModule('RCTEventEmitter',(function(){return t})):r(d[0]).registerCallableModule('RCTEventEmitter',t)}};m.exports=t}),235,[20]); +__d((function(g,r,i,a,m,e,d){r(d[0]);var n=null,u=new Set;function t(u){n!==u&&null!=u&&(n=u)}function o(u){n===u&&null!=u&&(n=null)}m.exports={currentlyFocusedInput:function(){return n},focusInput:t,blurInput:o,currentlyFocusedField:function(){return r(d[1]).findNodeHandle(n)},focusField:function(n){},blurField:function(n){},focusTextInput:function(u){if('number'!=typeof u&&null!=u){var o;if(!(n!==u&&!1!==(null==(o=u.currentProps)?void 0:o.editable)))return;t(u),r(d[2]).Commands.focus(u)}},blurTextInput:function(u){'number'!=typeof u&&n===u&&null!=u&&(o(u),r(d[2]).Commands.blur(u))},registerInput:function(n){'number'!=typeof n&&u.add(n)},unregisterInput:function(n){'number'!=typeof n&&u.delete(n)},isTextInput:function(n){return'number'!=typeof n&&u.has(n)}}}),236,[16,63,237]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n})(_r(d[1])),o=e(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.Commands=(0,o.default)({supportedCommands:['focus','blur','setTextAndSelection']});var n=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidTextInput',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}}},directEventTypes:{topScroll:{registrationName:'onScroll'}},validAttributes:{maxFontSizeMultiplier:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,autoFocus:!0,placeholder:!0,inlineImagePadding:!0,contextMenuHidden:!0,textShadowColor:{process:_r(d[3]).default},maxLength:!0,selectTextOnFocus:!0,textShadowRadius:!0,underlineColorAndroid:{process:_r(d[3]).default},textDecorationLine:!0,submitBehavior:!0,textAlignVertical:!0,fontStyle:!0,textShadowOffset:!0,selectionColor:{process:_r(d[3]).default},selectionHandleColor:{process:_r(d[3]).default},placeholderTextColor:{process:_r(d[3]).default},importantForAutofill:!0,lineHeight:!0,textTransform:!0,returnKeyType:!0,keyboardType:!0,multiline:!0,color:{process:_r(d[3]).default},autoComplete:!0,numberOfLines:!0,letterSpacing:!0,returnKeyLabel:!0,fontSize:!0,onKeyPress:!0,cursorColor:{process:_r(d[3]).default},text:!0,showSoftInputOnFocus:!0,textAlign:!0,autoCapitalize:!0,autoCorrect:!0,caretHidden:!0,secureTextEntry:!0,textBreakStrategy:!0,onScroll:!0,onContentSizeChange:!0,disableFullscreenUI:!0,includeFontPadding:!0,fontWeight:!0,fontFamily:!0,allowFontScaling:!0,onSelectionChange:!0,mostRecentEventCount:!0,inlineImageLeft:!0,editable:!0,fontVariant:!0,borderBottomRightRadius:!0,borderBottomColor:{process:_r(d[3]).default},borderRadius:!0,borderRightColor:{process:_r(d[3]).default},borderColor:{process:_r(d[3]).default},borderTopRightRadius:!0,borderStyle:!0,borderBottomLeftRadius:!0,borderLeftColor:{process:_r(d[3]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[3]).default}}},a=t.get('AndroidTextInput',(function(){return n}));_e.default=a}),237,[2,186,222,190]); +__d((function(g,r,i,a,m,e,d){'use strict';var n;var t=function(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s='number'==typeof f?arguments.length>3?arguments[3]:void 0:f,c='number'==typeof f?f:-1;if(0===c)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var l=null==s?void 0:s.unsafelyIgnoreFunctions;return null==l&&(!n||!n.onDifferentFunctionsIgnored||s&&'unsafelyIgnoreFunctions'in s||n.onDifferentFunctionsIgnored(o.name,u.name),l=!0),!l}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var v=o.length;if(u.length!==v)return!0;for(var y=0;y0;)y(n,f[t],o);else if(f&&u>0){var c=f;for(var l in i)if(i[l]){var s=c[l];if(void 0!==s){var p=o[l];if(p){if('function'==typeof s&&(s=!0),void 0===s&&(s=null),'object'!=typeof p)n[l]=s;else if('function'==typeof p.diff||'function'==typeof p.process){var v='function'==typeof p.process?p.process(s):s;n[l]=v}i[l]=!1,u--}}}}}function s(n,f,o,t){var i,u=f.length0&&n&&(y(n,s,c),i=null);for(var _ in f)void 0===o[_]&&(c=t[_])&&(n&&void 0!==n[_]||void 0!==(v=f[_])&&('object'!=typeof c||'function'==typeof c.diff||'function'==typeof c.process?((n||(n={}))[_]=null,i||(i={}),i[_]||(i[_]=!0,u++)):n=A(n,v,c)));return n}function b(n,f,o){return h(n,t,f,o)}function j(n,f,o){return h(n,f,t,o)}}),244,[2,227,238]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createPublicInstance=function(n,t,a){null==e&&(e=r.enableAccessToHostTreeInFabric()?_r(d[1]).default:_r(d[2]).default);return new e(n,t,a)},_e.createPublicTextInstance=function(e){null==n&&(n=_r(d[3]).default);return new n(e)},_e.getInternalInstanceHandleFromPublicInstance=function(e){if(null!=e._internalInstanceHandle)return e._internalInstanceHandle;return e.__internalInstanceHandle},_e.getNativeTagFromPublicInstance=function(e){return e.__nativeTag},_e.getNodeFromPublicInstance=function(e){if(null==e.__internalInstanceHandle)return null;null==t&&(t=_r(d[4]));return t.getNodeFromInternalInstanceHandle(e.__internalInstanceHandle)};var e,n,t,r=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var c=l?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(r,u,c):r[u]=e[u]}return r.default=e,t&&t.set(e,r),r})(_r(d[0]));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:n})(e)}}),245,[112,246,255,256,65]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),u=e(_r(d[3])),a=e(_r(d[4])),r=e(_r(d[5])),o=e(_r(d[6])),f=e(_r(d[7])),l=e(_r(d[8])),i=(e(_r(d[9])),y(_r(d[10]))),c=y(_r(d[11])),s=e(_r(d[12])),v=e(_r(d[13]));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(u,r,o):u[r]=e[r]}return u.default=e,n&&n.set(e,u),u}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var w=function(){},b=(0,f.default)("viewConfig");_e.default=(function(e){function f(e,n,r){var l,i,c,s;return(0,t.default)(this,f),i=this,c=f,s=[r],c=(0,a.default)(c),l=(0,u.default)(i,p()?Reflect.construct(c,s||[],(0,a.default)(i).constructor):c.apply(i,s)),Object.defineProperty(l,b,{writable:!0,value:void 0}),l.__nativeTag=e,l.__internalInstanceHandle=r,(0,o.default)(l,b)[b]=n,l}return(0,r.default)(f,e),(0,n.default)(f,[{key:"offsetHeight",get:function(){return Math.round((0,i.getBoundingClientRect)(this,{includeTransform:!1}).height)}},{key:"offsetLeft",get:function(){var e=(0,c.getShadowNode)(this);if(null!=e){var t=s.default.getOffset(e);return Math.round(t[2])}return 0}},{key:"offsetParent",get:function(){var e=(0,c.getShadowNode)(this);if(null!=e){var t=s.default.getOffset(e);if(null!=t[0]){var n=t[0];return(0,c.getPublicInstanceFromInternalInstanceHandle)(n)}}return null}},{key:"offsetTop",get:function(){var e=(0,c.getShadowNode)(this);if(null!=e){var t=s.default.getOffset(e);return Math.round(t[1])}return 0}},{key:"offsetWidth",get:function(){return Math.round((0,i.getBoundingClientRect)(this,{includeTransform:!1}).width)}},{key:"blur",value:function(){l.default.blurTextInput(this)}},{key:"focus",value:function(){l.default.focusTextInput(this)}},{key:"measure",value:function(e){var t=(0,c.getShadowNode)(this);null!=t&&(0,v.default)((0,_r(d[14]).getFabricUIManager)()).measure(t,e)}},{key:"measureInWindow",value:function(e){var t=(0,c.getShadowNode)(this);null!=t&&(0,v.default)((0,_r(d[14]).getFabricUIManager)()).measureInWindow(t,e)}},{key:"measureLayout",value:function(e,t,n){if(e instanceof c.default){var u=(0,c.getShadowNode)(this),a=(0,c.getShadowNode)(e);null!=u&&null!=a&&(0,v.default)((0,_r(d[14]).getFabricUIManager)()).measureLayout(u,a,null!=n?n:w,null!=t?t:w)}}},{key:"setNativeProps",value:function(e){var t=(0,_r(d[15]).create)(e,(0,o.default)(this,b)[b].validAttributes),n=(0,c.getShadowNode)(this);null!=n&&null!=t&&(0,v.default)((0,_r(d[14]).getFabricUIManager)()).setNativeProps(n,t)}}])})(i.default)}),246,[2,6,7,11,13,14,37,38,236,247,248,249,250,51,53,244]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t){}}),247,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_e.getBoundingClientRect=v;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),l=e(_r(d[5])),o=e(_r(d[6])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var o=u?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(r,l,o):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r})(_r(d[7])),a=e(_r(d[8]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var s=_e.default=(function(e){function o(){return(0,t.default)(this,o),e=this,n=o,l=arguments,n=(0,u.default)(n),(0,r.default)(e,c()?Reflect.construct(n,l||[],(0,u.default)(e).constructor):n.apply(e,l));var e,n,l}return(0,l.default)(o,e),(0,n.default)(o,[{key:"childElementCount",get:function(){return h(this).length}},{key:"children",get:function(){return(0,_r(d[9]).createHTMLCollection)(h(this))}},{key:"clientHeight",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getInnerSize(e)[1]:0}},{key:"clientLeft",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getBorderWidth(e)[3]:0}},{key:"clientTop",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getBorderWidth(e)[0]:0}},{key:"clientWidth",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getInnerSize(e)[0]:0}},{key:"firstElementChild",get:function(){var e=h(this);return 0===e.length?null:e[0]}},{key:"id",get:function(){var e,t,n,r=(0,i.getInstanceHandle)(this),u=null==r||null==(e=r.stateNode)||null==(e=e.canonical)?void 0:e.currentProps;return null!=(t=null!=(n=null==u?void 0:u.id)?n:null==u?void 0:u.nativeID)?t:''}},{key:"lastElementChild",get:function(){var e=h(this);return 0===e.length?null:e[e.length-1]}},{key:"nextElementSibling",get:function(){return(0,_r(d[10]).getElementSibling)(this,'next')}},{key:"nodeName",get:function(){return this.tagName}},{key:"nodeType",get:function(){return i.default.ELEMENT_NODE}},{key:"nodeValue",get:function(){return null},set:function(e){}},{key:"previousElementSibling",get:function(){return(0,_r(d[10]).getElementSibling)(this,'previous')}},{key:"scrollHeight",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getScrollSize(e)[1]:0}},{key:"scrollLeft",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getScrollPosition(e)[0]:0}},{key:"scrollTop",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getScrollPosition(e)[1]:0}},{key:"scrollWidth",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getScrollSize(e)[0]:0}},{key:"tagName",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getTagName(e):''}},{key:"textContent",get:function(){var e=(0,i.getShadowNode)(this);return null!=e?a.default.getTextContent(e):''}},{key:"getBoundingClientRect",value:function(){return v(this,{includeTransform:!0})}},{key:"hasPointerCapture",value:function(e){var t=(0,i.getShadowNode)(this);return null!=t&&a.default.hasPointerCapture(t,e)}},{key:"setPointerCapture",value:function(e){var t=(0,i.getShadowNode)(this);null!=t&&a.default.setPointerCapture(t,e)}},{key:"releasePointerCapture",value:function(e){var t=(0,i.getShadowNode)(this);null!=t&&a.default.releasePointerCapture(t,e)}}])})(i.default);function h(e){return(0,i.getChildNodes)(e).filter((function(e){return e instanceof s}))}function v(e,t){var n=t.includeTransform,r=(0,i.getShadowNode)(e);if(null!=r){var u=a.default.getBoundingClientRect(r,n);return new o.default(u[0],u[1],u[2],u[3])}return new o.default(0,0,0,0)}}),248,[2,6,7,11,13,14,71,249,250,253,254]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getChildNodes=T,e.getInstanceHandle=c,e.getPublicInstanceFromInternalInstanceHandle=I,e.getShadowNode=E;var t,l=n(r(d[1])),u=n(r(d[2])),o=n(r(d[3])),N=n(r(d[4])),s=e.default=(function(){function n(t){var l;(0,u.default)(this,n),l=t,this[O]=l}return(0,o.default)(n,[{key:"childNodes",get:function(){var n=T(this);return(0,r(d[5]).createNodeList)(n)}},{key:"firstChild",get:function(){var n=T(this);return 0===n.length?null:n[0]}},{key:"isConnected",get:function(){var n=E(this);return null!=n&&N.default.isConnected(n)}},{key:"lastChild",get:function(){var n=T(this);return 0===n.length?null:n[n.length-1]}},{key:"nextSibling",get:function(){var n=f(this),t=(0,l.default)(n,2),u=t[0],o=t[1];return o===u.length-1?null:u[o+1]}},{key:"nodeName",get:function(){throw new TypeError('`nodeName` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"nodeType",get:function(){throw new TypeError('`nodeType` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"nodeValue",get:function(){throw new TypeError('`nodeValue` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"parentElement",get:function(){var n=this.parentNode;return null==t&&(t=r(d[6]).default),n instanceof t?n:null}},{key:"parentNode",get:function(){var n,t=E(this);if(null==t)return null;var l=N.default.getParentNode(t);return null==l?null:null!=(n=I(l))?n:null}},{key:"previousSibling",get:function(){var n=f(this),t=(0,l.default)(n,2),u=t[0],o=t[1];return 0===o?null:u[o-1]}},{key:"textContent",get:function(){throw new TypeError('`textContent` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"compareDocumentPosition",value:function(t){if(t===this)return 0;var l=E(this),u=E(t);return null==l||null==u?n.DOCUMENT_POSITION_DISCONNECTED:N.default.compareDocumentPosition(l,u)}},{key:"contains",value:function(t){return t===this||!!(this.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINED_BY)}},{key:"getRootNode",value:function(){for(var n=this,t=this.parentNode;null!=t;)n=t,t=t.parentNode;return n}},{key:"hasChildNodes",value:function(){return T(this).length>0}}])})();s.ELEMENT_NODE=1,s.ATTRIBUTE_NODE=2,s.TEXT_NODE=3,s.CDATA_SECTION_NODE=4,s.ENTITY_REFERENCE_NODE=5,s.ENTITY_NODE=6,s.PROCESSING_INSTRUCTION_NODE=7,s.COMMENT_NODE=8,s.DOCUMENT_NODE=9,s.DOCUMENT_TYPE_NODE=10,s.DOCUMENT_FRAGMENT_NODE=11,s.NOTATION_NODE=12,s.DOCUMENT_POSITION_DISCONNECTED=1,s.DOCUMENT_POSITION_PRECEDING=2,s.DOCUMENT_POSITION_FOLLOWING=4,s.DOCUMENT_POSITION_CONTAINS=8,s.DOCUMENT_POSITION_CONTAINED_BY=16,s.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var O=Symbol('internalInstanceHandle');function c(n){return n[O]}function E(n){return r(d[7]).getNodeFromInternalInstanceHandle(c(n))}function T(n){var t=E(n);return null==t?[]:N.default.getChildNodes(t).map((function(n){return I(n)})).filter(Boolean)}function f(n){var t=n.parentNode;if(null==t)return[[n],0];var l=T(t),u=l.indexOf(n);if(-1===u)throw new TypeError("Missing node in parent's child node list");return[l,u]}function I(n){return r(d[7]).getPublicInstanceFromInternalInstanceHandle(n)}}),249,[2,44,6,7,250,251,248,65]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(u,a,i):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[1])),n=e(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var u=t.get('NativeDOMCxx'),o={getParentNode:function(e){return(0,n.default)(u).getParentNode(e)},getChildNodes:function(e){return(0,n.default)(u).getChildNodes(e)},isConnected:function(e){return(0,n.default)(u).isConnected(e)},compareDocumentPosition:function(e,t){return(0,n.default)(u).compareDocumentPosition(e,t)},getTextContent:function(e){return(0,n.default)(u).getTextContent(e)},getBoundingClientRect:function(e,t){return(0,n.default)(u).getBoundingClientRect(e,t)},getOffset:function(e){return(0,n.default)(u).getOffset(e)},getScrollPosition:function(e){return(0,n.default)(u).getScrollPosition(e)},getScrollSize:function(e){return(0,n.default)(u).getScrollSize(e)},getInnerSize:function(e){return(0,n.default)(u).getInnerSize(e)},getBorderWidth:function(e){return(0,n.default)(u).getBorderWidth(e)},getTagName:function(e){return(0,n.default)(u).getTagName(e)},hasPointerCapture:function(e,t){return(0,n.default)(u).hasPointerCapture(e,t)},setPointerCapture:function(e,t){return(0,n.default)(u).setPointerCapture(e,t)},releasePointerCapture:function(e,t){return(0,n.default)(u).releasePointerCapture(e,t)},measure:function(e,t){return(0,n.default)(u).measure(e,t)},measureInWindow:function(e,t){return(0,n.default)(u).measureInWindow(e,t)},measureLayout:function(e,t,r,o){return(0,n.default)(u).measureLayout(e,t,r,o)}};_e.default=o}),250,[2,42,51]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createNodeList=function(t){return new f(t)},e.default=void 0;var u=t(r(d[1])),n=t(r(d[2])),i=t(r(d[3])),l=(0,t(r(d[4])).default)("length"),f=e.default=(function(){return(0,n.default)((function t(n){(0,u.default)(this,t),Object.defineProperty(this,l,{writable:!0,value:void 0});for(var f=0;f=(0,i.default)(this,l)[l])return null;return this[t]}},{key:"entries",value:function(){return(0,r(d[5]).createEntriesIterator)(this)}},{key:"forEach",value:function(t,u){for(var n=0;n<(0,i.default)(this,l)[l];n++)null==u?t(this[n],n,this):t.call(u,this[n],n,this)}},{key:"keys",value:function(){return(0,r(d[5]).createKeyIterator)(this)}},{key:"values",value:function(){return(0,r(d[5]).createValueIterator)(this)}},{key:Symbol.iterator,value:function(){return(0,r(d[5]).createValueIterator)(this)}}])})()}),251,[2,6,7,37,38,252]); +__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createEntriesIterator=function*(t){for(var n=0;n=(0,l.default)(this,i)[i])return null;return this[t]}},{key:"namedItem",value:function(t){return null}},{key:Symbol.iterator,value:function(){return(0,r(d[5]).createValueIterator)(this)}}])})()}),253,[2,6,7,37,38,252]); +__d((function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getElementSibling=function(l,u){var t,f=l.parentNode;if(null==f)return null;var o=(0,r(d[0]).getChildNodes)(f),v=o.indexOf(l);if(-1===v)return null;var c='next'===u?1:-1,_=v+c;null==n&&(n=r(d[1]).default);for(;null!=o[_]&&!(o[_]instanceof n);)_+=c;return null!=(t=o[_])?t:null}}),254,[249,248]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),l=n(r(d[2])),u=n(r(d[3])),s=(n(r(d[4])),(0,n(r(d[5])).default)((0,r(d[6]).getFabricUIManager)())),o=s.measure,c=s.measureInWindow,f=s.measureLayout,I=s.getBoundingClientRect,v=s.setNativeProps,_=function(){};e.default=(function(){function n(l,u,s){(0,t.default)(this,n),this.__nativeTag=l,this._viewConfig=u,this.__internalInstanceHandle=s}return(0,l.default)(n,[{key:"blur",value:function(){u.default.blurTextInput(this)}},{key:"focus",value:function(){u.default.focusTextInput(this)}},{key:"measure",value:function(n){var t=(0,r(d[7]).getNodeFromInternalInstanceHandle)(this.__internalInstanceHandle);null!=t&&o(t,n)}},{key:"measureInWindow",value:function(n){var t=(0,r(d[7]).getNodeFromInternalInstanceHandle)(this.__internalInstanceHandle);null!=t&&c(t,n)}},{key:"measureLayout",value:function(t,l,u){if('number'!=typeof t&&t instanceof n){var s=(0,r(d[7]).getNodeFromInternalInstanceHandle)(this.__internalInstanceHandle),o=(0,r(d[7]).getNodeFromInternalInstanceHandle)(t.__internalInstanceHandle);null!=s&&null!=o&&f(s,o,null!=u?u:_,null!=l?l:_)}}},{key:"unstable_getBoundingClientRect",value:function(){var n=(0,r(d[7]).getNodeFromInternalInstanceHandle)(this.__internalInstanceHandle);if(null!=n){var t=I(n,!0);if(t)return new DOMRect(t[0],t[1],t[2],t[3])}return new DOMRect(0,0,0,0)}},{key:"setNativeProps",value:function(n){var t=(0,r(d[8]).create)(n,this._viewConfig.validAttributes),l=(0,r(d[7]).getNodeFromInternalInstanceHandle)(this.__internalInstanceHandle);null!=l&&null!=t&&v(l,t)}}])})()}),255,[2,6,7,236,247,51,53,65,244]); +__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),f=t(r(d[5])),c=t(r(d[6])),l=t(r(d[7]));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}_e.default=(function(t){function c(){return(0,e.default)(this,c),t=this,n=c,f=arguments,n=(0,o.default)(n),(0,u.default)(t,v()?Reflect.construct(n,f||[],(0,o.default)(t).constructor):n.apply(t,f));var t,n,f}return(0,f.default)(c,t),(0,n.default)(c,[{key:"nodeName",get:function(){return'#text'}},{key:"nodeType",get:function(){return l.default.TEXT_NODE}}])})(c.default)}),256,[2,6,7,11,13,14,257,249]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),a=t(_r(d[4])),u=t(_r(d[5])),o=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var o=a?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(r,u,o):r[u]=t[u]}return r.default=t,n&&n.set(t,r),r})(_r(d[6])),i=t(_r(d[7]));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}_e.default=(function(t){function l(){return(0,e.default)(this,l),t=this,n=l,u=arguments,n=(0,a.default)(n),(0,r.default)(t,f()?Reflect.construct(n,u||[],(0,a.default)(t).constructor):n.apply(t,u));var t,n,u}return(0,u.default)(l,t),(0,n.default)(l,[{key:"nextElementSibling",get:function(){return(0,_r(d[8]).getElementSibling)(this,'next')}},{key:"previousElementSibling",get:function(){return(0,_r(d[8]).getElementSibling)(this,'previous')}},{key:"data",get:function(){var t=(0,o.getShadowNode)(this);return null!=t?i.default.getTextContent(t):''}},{key:"length",get:function(){return this.data.length}},{key:"textContent",get:function(){return this.data}},{key:"nodeValue",get:function(){return this.data}},{key:"substringData",value:function(t,e){var n=this.data;if(t<0)throw new TypeError(`Failed to execute 'substringData' on 'CharacterData': The offset ${t} is negative.`);if(t>n.length)throw new TypeError(`Failed to execute 'substringData' on 'CharacterData': The offset ${t} is greater than the node's length (${n.length}).`);var r=e<0||e>n.length?n.length:e;return n.slice(t,t+r)}}])})(o.default)}),257,[2,6,7,11,13,14,249,250,254]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),258,[259]); +__d((function(_g,_r,i,_a,_m,_e,_d){ +/** + * @license React + * scheduler.native.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +'use strict';function e(e,n){var t=e.length;e.push(n);e:for(;0>>1,r=e[l];if(!(0>>1;lu(c,t))fu(s,c)?(e[l]=s,e[f]=t,l=f):(e[l]=c,e[o]=t,l=o);else{if(!(fu(s,t)))break e;e[l]=s,e[f]=t,l=f}}}return n}function u(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var l;if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;l=function(){return r.now()}}else{var a=Date,o=a.now();l=function(){return a.now()-o}}var c=[],f=[],s=1,d=null,v=3,b=!1,m=!1,p=!1,y="function"==typeof setTimeout?setTimeout:null,h="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function g(u){for(var l=n(f);null!==l;){if(null===l.callback)t(f);else{if(!(l.startTime<=u))break;t(f),l.sortIndex=l.expirationTime,e(c,l)}l=n(f)}}function R(e){if(p=!1,g(e),!m)if(null!==n(c))m=!0,I=k,P||(P=!0,S());else{var t=n(f);null!==t&&E(R,t.startTime-e)}}function k(e,u){m=!1,p&&(p=!1,h(x),x=-1),b=!0;var r=v;try{e:{for(g(u),d=n(c);null!==d&&(!(d.expirationTime>u)||e&&!T());){var a=d.callback;if("function"==typeof a){d.callback=null,v=d.priorityLevel;var o=a(d.expirationTime<=u);if(u=l(),"function"==typeof o){d.callback=o,g(u);var s=!0;break e}d===n(c)&&t(c),g(u)}else t(c);d=n(c)}if(null!==d)s=!0;else{var y=n(f);null!==y&&E(R,y.startTime-u),s=!1}}return s}finally{d=null,v=r,b=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,P=!1,I=null,x=-1,w=-1;function T(){return!(5>l()-w)}function C(){if(null!==I){var e=l();w=e;var n=!0;try{n=I(!0,e)}finally{n?S():(P=!1,I=null)}}else P=!1}if("function"==typeof _)S=function(){_(C)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,N=L.port2;L.port1.onmessage=C,S=function(){N.postMessage(null)}}else S=function(){y(C,0)};function E(e,n){x=y((function(){e(l())}),n)}var M="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_UserBlockingPriority:2,j="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_NormalPriority:3,q="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_LowPriority:4,B="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_ImmediatePriority:1,F="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_scheduleCallback:function(t,u,r){var a=l();switch("object"==typeof r&&null!==r?r="number"==typeof(r=r.delay)&&0a?(t.sortIndex=r,e(f,t),null===n(c)&&t===n(f)&&(p?(h(x),x=-1):p=!0,E(R,r-a))):(t.sortIndex=o,e(c,t),m||b||(m=!0,I=k,P||(P=!0,S()))),t},U="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_cancelCallback:function(e){e.callback=null},Y="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_getCurrentPriorityLevel:function(){return v},D="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_shouldYield:T,W="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_requestPaint:function(){},z="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_now:l;function A(){throw Error("Not implemented.")}_e.unstable_IdlePriority="undefined"!=typeof nativeRuntimeScheduler?nativeRuntimeScheduler.unstable_IdlePriority:5,_e.unstable_ImmediatePriority=B,_e.unstable_LowPriority=q,_e.unstable_NormalPriority=j,_e.unstable_Profiling=null,_e.unstable_UserBlockingPriority=M,_e.unstable_cancelCallback=U,_e.unstable_continueExecution=A,_e.unstable_forceFrameRate=A,_e.unstable_getCurrentPriorityLevel=Y,_e.unstable_getFirstCallbackNode=A,_e.unstable_next=A,_e.unstable_now=z,_e.unstable_pauseExecution=A,_e.unstable_requestPaint=W,_e.unstable_runWithPriority=A,_e.unstable_scheduleCallback=F,_e.unstable_shouldYield=D,_e.unstable_wrapCallback=A}),259,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.onCaughtError=function(n,o){var t;t=n instanceof Error?n:'string'==typeof n?new(r(d[0]).SyntheticError)(n):new(r(d[0]).SyntheticError)('Unspecified error');try{t.componentStack=o.componentStack,t.isComponentError=!0}catch(n){}(0,r(d[0]).handleException)(t,!1)},e.onRecoverableError=function(n,o){var t;t=n instanceof Error?n:'string'==typeof n?new(r(d[0]).SyntheticError)(n):new(r(d[0]).SyntheticError)('Unspecified error');try{t.componentStack=o.componentStack,t.isComponentError=!0}catch(n){}console.warn(t)},e.onUncaughtError=function(n,o){var t;t=n instanceof Error?n:'string'==typeof n?new(r(d[0]).SyntheticError)(n):new(r(d[0]).SyntheticError)('Unspecified error');try{t.componentStack=o.componentStack,t.isComponentError=!0}catch(n){}(0,r(d[0]).handleException)(t,!0)}}),260,[88]); +__d((function(g,r,i,a,m,e,d){'use strict';var t;t=r(d[0]),m.exports=t}),261,[262]); +__d((function(e,n,t,r,l,a,i){"use strict";n(i[0]);var u=n(i[1]),o=Array.isArray,s=!1,c=null,f=null,d=null,p=null;function h(e,n,t){e.currentTarget=p(t);try{n(e)}catch(e){s||(s=!0,c=e)}e.currentTarget=null}function g(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(o(n))throw Error("Invalid `event`.");return e.currentTarget=n?p(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}var m=Object.assign;function v(){return!0}function b(){return!1}function y(e,n,t,r){for(var l in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(l)&&((n=e[l])?this[l]=n(t):"target"===l?this.target=r:this[l]=t[l]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?v:b,this.isPropagationStopped=b,this}function S(e,n,t,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,n,t,r),l}return new this(e,n,t,r)}function k(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function w(e){e.getPooled=S,e.eventPool=[],e.release=k}m(y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:b,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=b,this._dispatchInstances=this._dispatchListeners=null}}),y.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},y.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return m(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=m({},r.Interface,e),t.extend=r.extend,w(t),t},w(y);var _=y.extend({touchHistory:function(){return null}});function P(e){return"topTouchStart"===e}function T(e){return"topTouchMove"===e}var E=["topTouchStart"],R=["topTouchMove"],x=["topTouchCancel","topTouchEnd"],z=[],C={touchBank:z,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function N(e){return e.timeStamp||e.timestamp}function I(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function L(e){var n=I(e),t=z[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=N(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=N(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=N(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:N(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:N(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:N(e)},z[n]=t),C.mostRecentTimeStamp=N(e)}function U(e){var n=z[I(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=N(e),C.mostRecentTimeStamp=N(e))}function F(e){var n=z[I(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=N(e),C.mostRecentTimeStamp=N(e))}var M,D={instrument:function(e){M=e},recordTouchTrack:function(e,n){if(null!=M&&M(e,n),T(e))n.changedTouches.forEach(U);else if(P(e))n.changedTouches.forEach(L),C.numberActiveTouches=n.touches.length,1===C.numberActiveTouches&&(C.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(F),C.numberActiveTouches=n.touches.length,1===C.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!re[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in re[t]=n,t=n.eventTypes){var l=void 0,a=t[r];if(le.hasOwnProperty(r))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+r+"`.");le[r]=a;var i=a.phasedRegistrationNames;if(i){for(l in i)i.hasOwnProperty(l)&&te(i[l],n);l=!0}else a.registrationName?(te(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function te(e,n){if(ae[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");ae[e]=n}var re=[],le={},ae={};function ie(e,n){if(null===(e=e.stateNode))return null;if(null===(e=f(e)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");return e}var ue=n(i[2]).ReactNativeViewConfigRegistry.customBubblingEventTypes,oe=n(i[2]).ReactNativeViewConfigRegistry.customDirectEventTypes;function se(e,n,t){(n=ie(e,t.dispatchConfig.phasedRegistrationNames[n]))&&(t._dispatchListeners=A(t._dispatchListeners,n),t._dispatchInstances=A(t._dispatchInstances,e))}function ce(e,n,t,r){for(var l=[];e;){l.push(e);do{e=e.return}while(e&&5!==e.tag);e=e||null}for(e=l.length;0i||(a=i),Ee(a,e,l)}}}),f=function(e){return be.get(e._nativeTag)||null},d=ye,p=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&null!=e.canonical&&(n=e.canonical.nativeTag,e=e.canonical.publicInstance),!n)throw Error("All native instances should have a tag.");return e},J.injection.injectGlobalResponderHandler({onChange:function(e,t,r){null!==t?n(i[2]).UIManager.setJSResponder(t.stateNode._nativeTag,r):n(i[2]).UIManager.clearJSResponder()}});var Re=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xe=Symbol.for("react.element"),ze=Symbol.for("react.portal"),Ce=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ie=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),Ue=Symbol.for("react.consumer"),Fe=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),je=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Be=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ve=Symbol.iterator;function Oe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ve&&e[Ve]||e["@@iterator"])?e:null}function He(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{!!(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function We(e){if(He(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Ye(e){var n=e.alternate;if(!n){if(null===(n=He(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return We(l),e;if(a===r)return We(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function $e(e){return null!==(e=Ye(e))?qe(e):null}function qe(e){var n=e.tag;if(5===n||26===n||27===n||6===n)return e;for(e=e.child;null!==e;){if(null!==(n=qe(e)))return n;e=e.sibling}return null}Symbol.for("react.client.reference");var Xe={},Ge=null,Ke=0,Je={unsafelyIgnoreFunctions:!0};function Ze(e,t){return"object"!=typeof t||null===t||n(i[2]).deepDiffer(e,t,Je)}function en(e,n,t){if(o(n))for(var r=n.length;r--&&0>>=0)?32:31-(dn(e)/pn|0)|0},dn=Math.log,pn=Math.LN2;var hn=128,gn=4194304;function mn(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&t;return 0!==a?0!==(t=a&~l)?r=mn(t):0!==(e&=a)&&(r=mn(e)):0!==(t&=~l)?r=mn(t):0!==e&&(r=mn(e)),0===r?0:0!==n&&n!==r&&!(n&l)&&((l=r&-r)>=(e=n&-n)||32===l&&4194176&e)?n:r}function bn(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function yn(e,n){return e.errorRecoveryDisabledLanes&n?0:0!==(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function Sn(){var e=hn;return!(4194176&(hn<<=1))&&(hn=128),e}function kn(){var e=gn;return!(62914560&(gn<<=1))&&(gn=4194304),e}function wn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function _n(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0)}function Pn(e,n,t){var r=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0,n=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0An||(e.current=Qn[An],Qn[An]=null,An--)}function Vn(e,n){An++,Qn[An]=e.current,e.current=n}var On={};var Hn="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Wn=jn(null),Yn=jn(null),$n=jn(null);function qn(e,n){Vn($n,n),Vn(Yn,e),Vn(Wn,null),Bn(Wn),Vn(Wn,{isInAParentText:!1})}function Xn(){Bn(Wn),Bn(Yn),Bn($n)}function Gn(e){var n=Wn.current,t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(Vn(Yn,e),Vn(Wn,t))}function Kn(e){Yn.current===e&&(Bn(Wn),Bn(Yn))}var Jn=null,Zn=[],et=0,nt=0;function tt(){for(var e=et,n=nt=et=0;ng?(m=f,f=null):m=f.sibling;var v=p(l,f,u[g],o);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&n(l,f),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,f=m}if(g===u.length)return t(l,f),s;if(null===f){for(;gg?(m=f,f=null):m=f.sibling;var b=p(l,f,v.value,o);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&n(l,f),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,f=m}if(v.done)return t(l,f),s;if(null===f){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(f=r(f);!v.done;g++,v=u.next())null!==(v=h(f,l,g,v.value,o))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return n(l,e)})),s}function v(e,r,a,u){if("object"==typeof a&&null!==a&&a.type===Ce&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case xe:e:{for(var s=a.key,c=r;null!==c;){if(c.key===s){if((s=a.type)===Ce){if(7===c.tag){t(e,c.sibling),(r=l(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===je&&Xt(s)===c.type){t(e,c.sibling),$t(e,c,r=l(c,a.props),a),r.return=e,e=r;break e}t(e,c);break}n(e,c),c=c.sibling}a.type===Ce?((r=Cu(a.props.children,e.mode,u,a.key)).return=e,e=r):($t(e,r,u=zu(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return i(e);case ze:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=Lu(a,e.mode,u)).return=e,e=r}return i(e);case je:return v(e,r,(c=a._init)(a._payload),u)}if(o(a))return g(e,r,a,u);if(Oe(a))return m(e,r,a,u);if("function"==typeof a.then)return v(e,r,Wt(a),u);if(a.$$typeof===Fe)return v(e,r,ha(e,a,u),u);qt(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Iu(a,e.mode,u)).return=e,e=r),i(e)):t(e,r)}return function(e,n,t,r){return Ht=0,e=v(e,n,t,r),Ot=null,e}}var Kt=Gt(!0),Jt=Gt(!1),Zt=jn(null),er=jn(0);function nr(e,n){Vn(er,e=Pi),Vn(Zt,n),Pi=e|n.baseLanes}function tr(){Vn(er,Pi),Vn(Zt,Zt.current)}function rr(){Pi=er.current,Bn(Zt),Bn(er)}var lr=jn(null),ar=null;function ir(e){var n=e.alternate;Vn(cr,1&cr.current),Vn(lr,e),null===ar&&(null===n||null!==Zt.current||null!==n.memoizedState)&&(ar=e)}function ur(e){if(22===e.tag){if(Vn(cr,cr.current),Vn(lr,e),null===ar){var n=e.alternate;null!==n&&null!==n.memoizedState&&(ar=e)}}else or()}function or(){Vn(cr,cr.current),Vn(lr,lr.current)}function sr(e){Bn(lr),ar===e&&(ar=null),Bn(cr)}var cr=jn(0);function fr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||zn()||zn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(128&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var dr=Re.ReactCurrentDispatcher,pr=Re.ReactCurrentBatchConfig,hr=0,gr=null,mr=null,vr=null,br=!1,yr=!1,Sr=!1,kr=0,wr=null,_r=0;function Pr(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Tr(e,n){if(null===n)return!1;for(var t=0;ta?a:8;var i=pr.transition,u={_callbacks:new Set};pr.transition=null,sl(e,n,t),pr.transition=u;try{sl(e,n,r),l()}catch(e){throw e}finally{Rn=a,pr.transition=i}}function ul(){return Ir().memoizedState}function ol(e,n,t){var r=Wi(e);t={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},cl(e)?fl(n,t):(rt(e,n,t,r),null!==(t=it(e))&&($i(t,e,r),dl(t,n,r)))}function sl(e,n,t){var r=Wi(e),l={lane:r,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(cl(e))fl(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var i=n.lastRenderedState,u=a(i,t);if(l.hasEagerState=!0,l.eagerState=u,Hn(u,i))return rt(e,n,l,0),void(null===bi&&tt())}catch(e){}rt(e,n,l,r),null!==(t=it(e))&&($i(t,e,r),dl(t,n,r))}}function cl(e){var n=e.alternate;return e===gr||null!==n&&n===gr}function fl(e,n){yr=br=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function dl(e,n,t){if(4194176&t){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,En(e,t)}}var pl={readContext:pa,use:Ur,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useSyncExternalStore:Pr,useId:Pr},hl={readContext:pa,use:Ur,useCallback:function(e,n){return Nr().memoizedState=[e,void 0===n?null:n],e},useContext:pa,useEffect:Xr,useImperativeHandle:function(e,n,t){t=null!=t?t.concat([e]):null,$r(4194308,4,Zr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return $r(4194308,4,e,n)},useInsertionEffect:function(e,n){$r(4,2,e,n)},useMemo:function(e,n){var t=Nr();n=void 0===n?null:n;var r=e();return Sr&&e(),t.memoizedState=[r,n],r},useReducer:function(e,n,t){var r=Nr();if(void 0!==t){var l=t(n);Sr&&t(n)}else l=n;return r.memoizedState=r.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},r.queue=e,e=e.dispatch=ol.bind(null,gr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Nr().memoizedState=e},useState:function(e){var n=(e=Hr(e)).queue,t=sl.bind(null,gr,n);return n.dispatch=t,[e.memoizedState,t]},useDebugValue:nl,useDeferredValue:function(e,n){return ll(Nr(),e,n)},useTransition:function(){var e=Hr(!1);return e=il.bind(null,gr,e.queue,!0,!1),Nr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n){var t=gr,r=Nr(),l=n();if(null===bi)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");60&Si||Ar(t,n,l),r.memoizedState=l;var a={value:l,getSnapshot:n};return r.queue=a,Xr(Br.bind(null,t,a,e),[e]),t.flags|=2048,Wr(9,jr.bind(null,t,a,l,n),{destroy:void 0},null),l},useId:function(){var e=Nr(),n=bi.identifierPrefix;return n=":"+n+"r"+(_r++).toString(32)+":",e.memoizedState=n}},gl={readContext:pa,use:Ur,useCallback:tl,useContext:pa,useEffect:Gr,useImperativeHandle:el,useInsertionEffect:Kr,useLayoutEffect:Jr,useMemo:rl,useReducer:Mr,useRef:Yr,useState:function(){return Mr(Fr)},useDebugValue:nl,useDeferredValue:function(e,n){return al(Ir(),mr.memoizedState,e,n)},useTransition:function(){var e=Mr(Fr)[0],n=Ir().memoizedState;return["boolean"==typeof e?e:Lr(e),n]},useSyncExternalStore:Qr,useId:ul},ml={readContext:pa,use:Ur,useCallback:tl,useContext:pa,useEffect:Gr,useImperativeHandle:el,useInsertionEffect:Kr,useLayoutEffect:Jr,useMemo:rl,useReducer:Dr,useRef:Yr,useState:function(){return Dr(Fr)},useDebugValue:nl,useDeferredValue:function(e,n){var t=Ir();return null===mr?ll(t,e,n):al(t,mr.memoizedState,e,n)},useTransition:function(){var e=Dr(Fr)[0],n=Ir().memoizedState;return["boolean"==typeof e?e:Lr(e),n]},useSyncExternalStore:Qr,useId:ul};function vl(e,n){if(e&&e.defaultProps){for(var t in n=m({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function bl(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:m({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var yl={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,n,t){var r=Wi(e=e._reactInternals),l=kt(r);l.payload=n,null!=t&&(l.callback=t),null!==(n=wt(e,l,r))&&($i(n,e,r),_t(n,e,r))},enqueueReplaceState:function(e,n,t){var r=Wi(e=e._reactInternals),l=kt(r);l.tag=1,l.payload=n,null!=t&&(l.callback=t),null!==(n=wt(e,l,r))&&($i(n,e,r),_t(n,e,r))},enqueueForceUpdate:function(e,n){var t=Wi(e=e._reactInternals),r=kt(t);r.tag=2,null!=n&&(r.callback=n),null!==(n=wt(e,r,t))&&($i(n,e,t),_t(n,e,t))}};function Sl(e,n,t,r,l,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!n.prototype||!n.prototype.isPureReactComponent||(!zt(t,r)||!zt(l,a))}function kl(e,n,t){var r=On,l=n.contextType;return"object"==typeof l&&null!==l&&(r=pa(l)),n=new n(t,r),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=yl,e.stateNode=n,n._reactInternals=e,n}function wl(e,n,t,r){e=n.state,"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&yl.enqueueReplaceState(n,n.state,null)}function _l(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},yt(e);var a=n.contextType;l.context="object"==typeof a&&null!==a?pa(a):On,l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(bl(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&yl.enqueueReplaceState(l,l.state,null),Tt(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}var Pl=new WeakMap;function Tl(e,n){if("object"==typeof e&&null!==e){var t=Pl.get(e);"string"!=typeof t&&(t=Lt(n),Pl.set(e,t))}else t=Lt(n);return{value:e,source:n,stack:t,digest:null}}function El(e,n,t){return"string"==typeof t&&Pl.set(e,t),{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}if("function"!=typeof n(i[2]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Rl(e,t){try{!1!==n(i[2]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}function xl(e,n,t){(t=kt(t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Di||(Di=!0,Qi=r),Rl(e,n)},t}function zl(e,n,t){(t=kt(t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Rl(e,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){Rl(e,n),"function"!=typeof r&&(null===Ai?Ai=new Set([this]):Ai.add(this));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}function Cl(e,n,t,r,l){if(t.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=t.tag;if(1&t.mode||0!==a&&11!==a&&15!==a||((a=t.alternate)?(t.updateQueue=a.updateQueue,t.memoizedState=a.memoizedState,t.lanes=a.lanes):(t.updateQueue=null,t.memoizedState=null)),null!==(a=lr.current)){switch(a.tag){case 13:return 1&t.mode&&(null===ar?lu():null===a.alternate&&0===Ti&&(Ti=3)),a.flags&=-257,1&a.mode?(a.flags|=65536,a.lanes=l):a===n?a.flags|=65536:(a.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=kt(2)).tag=2,wt(t,n,2))),t.lanes|=2),r===Mt?a.flags|=16384:(null===(n=a.updateQueue)?a.updateQueue=new Set([r]):n.add(r),1&a.mode&&bu(e,r,l)),!1;case 22:if(1&a.mode)return a.flags|=65536,r===Mt?a.flags|=16384:(null===(n=a.updateQueue)?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=n):null===(t=n.retryQueue)?n.retryQueue=new Set([r]):t.add(r),bu(e,r,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}if(1===e.tag)return bu(e,r,l),lu(),!1;r=Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}if(e=r=Tl(r,t),4!==Ti&&(Ti=2),null===Ni?Ni=[e]:Ni.push(e),null===n)return!0;e=n;do{switch(e.tag){case 3:return e.flags|=65536,l&=-l,e.lanes|=l,Pt(e,l=xl(e,r,l)),!1;case 1:if(n=r,t=e.type,a=e.stateNode,!(128&e.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Ai&&Ai.has(a))))return e.flags|=65536,l&=-l,e.lanes|=l,Pt(e,l=zl(e,n,l)),!1}e=e.return}while(null!==e);return!1}var Nl=Re.ReactCurrentOwner,Il=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ll=!1;function Ul(e,n,t,r){n.child=null===e?Jt(n,null,t,r):Kt(n,e.child,t,r)}function Fl(e,n,t,r,l){t=t.render;var a=n.ref;return da(n,l),r=Er(e,n,t,r,a,l),null===e||Ll?(n.flags|=1,Ul(e,n,r,l),n.child):(zr(e,n,l),ta(e,n,l))}function Ml(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Tu(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=zu(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Dl(e,n,a,r,l))}if(a=e.child,!(e.lanes&l)){var i=a.memoizedProps;if((t=null!==(t=t.compare)?t:zt)(i,r)&&e.ref===n.ref)return ta(e,n,l)}return n.flags|=1,(e=Ru(a,r)).ref=n.ref,e.return=n,n.child=e}function Dl(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(zt(a,r)&&e.ref===n.ref){if(Ll=!1,n.pendingProps=r=a,!(e.lanes&l))return n.lanes=e.lanes,ta(e,n,l);131072&e.flags&&(Ll=!0)}}return Bl(e,n,t,r,l)}function Ql(e,n,t){var r=n.pendingProps,l=r.children,a=!!(2&n.stateNode._pendingVisibility),i=null!==e?e.memoizedState:null;if(jl(e,n),"hidden"===r.mode||a){if(128&n.flags){if(t=null!==i?i.baseLanes|t:t,null!==e){for(r=n.child=e.child,l=0;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;n.childLanes=l&~t}else n.childLanes=0,n.child=null;return Al(e,n,t)}if(1&n.mode){if(!(536870912&t))return n.lanes=n.childLanes=536870912,Al(e,n,null!==i?i.baseLanes|t:t);n.memoizedState={baseLanes:0,cachePool:null},null!==i?nr(n,i):tr()}else n.memoizedState={baseLanes:0,cachePool:null},tr();ur(n)}else null!==i?(nr(n,i),or(),n.memoizedState=null):(tr(),or());return Ul(e,n,l,t),n.child}function Al(e,n,t){return n.memoizedState={baseLanes:t,cachePool:null},tr(),ur(n),null}function jl(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=2097664);else{if("function"!=typeof t&&"object"!=typeof t)throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");null!==e&&e.ref===t||(n.flags|=2097664)}}function Bl(e,n,t,r,l){return da(n,l),t=Er(e,n,t,r,void 0,l),null===e||Ll?(n.flags|=1,Ul(e,n,t,l),n.child):(zr(e,n,l),ta(e,n,l))}function Vl(e,n,t,r,l,a){return da(n,a),t=xr(n,r,t,l),Rr(),null===e||Ll?(n.flags|=1,Ul(e,n,t,a),n.child):(zr(e,n,a),ta(e,n,a))}function Ol(e,n,t,r,l){if(da(n,l),null===n.stateNode)na(e,n),kl(n,t,r),_l(n,t,r,l),r=!0;else if(null===e){var a=n.stateNode,i=n.memoizedProps;a.props=i;var u=a.context,o=t.contextType,s=On;"object"==typeof o&&null!==o&&(s=pa(o));var c=t.getDerivedStateFromProps;(o="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i!==r||u!==s)&&wl(n,a,r,s),bt=!1;var f=n.memoizedState;a.state=f,Tt(n,r,a,l),u=n.memoizedState,i!==r||f!==u||bt?("function"==typeof c&&(bl(n,t,c,r),u=n.memoizedState),(i=bt||Sl(n,t,i,r,f,u,s))?(o||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=u),a.props=r,a.state=u,a.context=s,r=i):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,St(e,n),s=n.memoizedProps,o=n.type===n.elementType?s:vl(n.type,s),a.props=o,c=n.pendingProps;var d=a.context;u=t.contextType,i=On,"object"==typeof u&&null!==u&&(i=pa(u)),(u="function"==typeof(f=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==c||d!==i)&&wl(n,a,r,i),bt=!1,d=n.memoizedState,a.state=d,Tt(n,r,a,l);var p=n.memoizedState;s!==c||d!==p||bt?("function"==typeof f&&(bl(n,t,f,r),p=n.memoizedState),(o=bt||Sl(n,t,o,r,d,p,i)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,i),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,i)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=i,r=o):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return Hl(e,n,t,r,!1,l)}function Hl(e,n,t,r,l,a){return jl(e,n),l=!!(128&n.flags),r||l?(r=n.stateNode,Nl.current=n,t=l&&"function"!=typeof t.getDerivedStateFromError?null:r.render(),n.flags|=1,null!==e&&l?(n.child=Kt(n,e.child,null,a),n.child=Kt(n,null,t,a)):Ul(e,n,t,a),n.memoizedState=r.state,n.child):ta(e,n,a)}var Wl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null}}function $l(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=Ci),e}function ql(e,n,t){var r,l=n.pendingProps,a=!1,i=!!(128&n.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&!!(2&cr.current)),r&&(a=!0,n.flags&=-129),r=!!(32&n.flags),n.flags&=-33,null===e){if(i=l.children,l=l.fallback,a){or(),a=n.mode;var u=n.child;return i={mode:"hidden",children:i},1&a||null===u?u=Nu(i,a,0,null):(u.childLanes=0,u.pendingProps=i),l=Cu(l,a,t,null),u.return=n,l.return=n,u.sibling=l,n.child=u,(a=n.child).memoizedState=Yl(t),a.childLanes=$l(e,r,t),n.memoizedState=Wl,l}return ir(n),Xl(n,i)}if(null!==(u=e.memoizedState)){var o=u.dehydrated;if(null!==o)return Kl(e,n,i,r,l,o,u,t)}if(a){or(),a=l.fallback,i=n.mode,o=(u=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&i||n.child===u?(l=Ru(u,s)).subtreeFlags=31457280&u.subtreeFlags:((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null),null!==o?a=Ru(o,a):(a=Cu(a,i,t,null)).flags|=2,a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,i=null===(i=e.child.memoizedState)?Yl(t):{baseLanes:i.baseLanes|t,cachePool:null},a.memoizedState=i,a.childLanes=$l(e,r,t),n.memoizedState=Wl,l}return ir(n),e=(r=e.child).sibling,r=Ru(r,{mode:"visible",children:l.children}),!(1&n.mode)&&(r.lanes=t),r.return=n,r.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function Xl(e,n){return(n=Nu({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Gl(e,n,t,r){return null!==r&&(null===Jn?Jn=[r]:Jn.push(r)),Kt(n,e.child,null,t),(e=Xl(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Kl(e,n,t,r,l,a,i,u){if(t)return 256&n.flags?(ir(n),n.flags&=-257,Gl(e,n,u,r=El(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")))):null!==n.memoizedState?(or(),n.child=e.child,n.flags|=128,null):(or(),i=l.fallback,t=n.mode,l=Nu({mode:"visible",children:l.children},t,0,null),(i=Cu(i,t,u,null)).flags|=2,l.return=n,i.return=n,l.sibling=i,n.child=l,1&n.mode&&Kt(n,e.child,null,u),(l=n.child).memoizedState=Yl(u),l.childLanes=$l(e,r,u),n.memoizedState=Wl,i);if(ir(n),!(1&n.mode))return Gl(e,n,u,null);if(zn())return r=zn().digest,(i=Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.")).digest=r,Gl(e,n,u,r=El(i,r,void 0));if(r=!!(u&e.childLanes),Ll||r){if(null!==(r=bi)){if(42&(l=u&-u))l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(0!==(l=l&(r.suspendedLanes|u)?0:l)&&l!==i.retryLane)throw i.retryLane=l,lt(e,l),$i(r,e,l),Il}return zn()||lu(),Gl(e,n,u,null)}return zn()?(n.flags|=128,n.child=e.child,ku.bind(null,e),zn(),null):((e=Xl(n,l.children)).flags|=4096,e)}function Jl(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),fa(e.return,n,t)}function Zl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function ea(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(Ul(e,n,r.children,t),2&(r=cr.current))r=1&r|2,n.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jl(e,t,n);else if(19===e.tag)Jl(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Vn(cr,r),1&n.mode)switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===fr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Zl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===fr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Zl(n,!0,t,null,a);break;case"together":Zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}else n.memoizedState=null;return n.child}function na(e,n){!(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function ta(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Ri|=n.lanes,!(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=Ru(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ru(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function ra(e,n,t){switch(n.tag){case 3:case 4:qn(n,n.stateNode.containerInfo);break;case 27:case 5:Gn(n);break;case 10:var r=n.memoizedProps.value,l=n.type._context;Vn(aa,l._currentValue),l._currentValue=r;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(ir(n),n.flags|=128,null):t&n.child.childLanes?ql(e,n,t):(ir(n),null!==(e=ta(e,n,t))?e.sibling:null);ir(n);break;case 19:if(r=!!(t&n.childLanes),128&e.flags){if(r)return ea(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),Vn(cr,cr.current),r)break;return null;case 22:case 23:return n.lanes=0,Ql(e,n,t)}return ta(e,n,t)}function la(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps)Ll=!0;else{if(!(e.lanes&t||128&n.flags))return Ll=!1,ra(e,n,t);Ll=!!(131072&e.flags)}else Ll=!1;switch(n.lanes=0,n.tag){case 2:var r=n.type;na(e,n),e=n.pendingProps,da(n,t);var l=Er(null,n,r,e,void 0,t);return n.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,yt(n),l.updater=yl,n.stateNode=l,l._reactInternals=n,_l(n,r,e,t),n=Hl(null,n,r,!0,!1,t)):(n.tag=0,Ul(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(na(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=Eu(r),e=vl(r,e),l){case 0:n=Bl(null,n,r,e,t);break e;case 1:n=Ol(null,n,r,e,t);break e;case 11:n=Fl(null,n,r,e,t);break e;case 14:n=Ml(null,n,r,vl(r.type,e),t);break e}throw Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function.")}return n;case 0:return r=n.type,l=n.pendingProps,Bl(e,n,r,l=n.elementType===r?l:vl(r,l),t);case 1:return r=n.type,l=n.pendingProps,Ol(e,n,r,l=n.elementType===r?l:vl(r,l),t);case 3:if(qn(n,n.stateNode.containerInfo),null===e)throw Error("Should have a current fiber. This is a bug in React.");return l=n.pendingProps,r=n.memoizedState.element,St(e,n),Tt(n,l,null,t),(l=n.memoizedState.element)===r?n=ta(e,n,t):(Ul(e,n,l,t),n=n.child),n;case 26:case 27:case 5:return Gn(n),r=n.pendingProps.children,jl(e,n),Ul(e,n,r,t),n.child;case 6:return null;case 13:return ql(e,n,t);case 4:return qn(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Kt(n,null,r,t):Ul(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,Fl(e,n,r,l=n.elementType===r?l:vl(r,l),t);case 7:return Ul(e,n,n.pendingProps,t),n.child;case 8:case 12:return Ul(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,l=n.pendingProps;var a=n.memoizedProps,i=l.value;if(Vn(aa,r._currentValue),r._currentValue=i,null!==a)if(Hn(a.value,i)){if(a.children===l.children){n=ta(e,n,t);break e}}else for(null!==(a=n.child)&&(a.return=n);null!==a;){var u=a.dependencies;if(null!==u){i=a.child;for(var o=u.firstContext;null!==o;){if(o.context===r){if(1===a.tag){(o=kt(t&-t)).tag=2;var s=a.updateQueue;if(null!==s){var c=(s=s.shared).pending;null===c?o.next=o:(o.next=c.next,c.next=o),s.pending=o}}a.lanes|=t,null!==(o=a.alternate)&&(o.lanes|=t),fa(a.return,t,n),u.lanes|=t;break}o=o.next}}else if(10===a.tag)i=a.type===n.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");i.lanes|=t,null!==(u=i.alternate)&&(u.lanes|=t),fa(i,t,n),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===n){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}Ul(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,da(n,t),r=r(l=pa(l)),n.flags|=1,Ul(e,n,r,t),n.child;case 14:return l=vl(r=n.type,n.pendingProps),Ml(e,n,r,l=vl(r.type,l),t);case 15:return Dl(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:vl(r,l),na(e,n),n.tag=1,da(n,t),kl(n,r,l),_l(n,r,l,t),Hl(null,n,r,!0,!1,t);case 19:return ea(e,n,t);case 22:return Ql(e,n,t)}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}var aa=jn(null),ia=null,ua=null,oa=null;function sa(){oa=ua=ia=null}function ca(e){e._currentValue=aa.current,Bn(aa)}function fa(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function da(e,n){ia=e,oa=ua=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&n)&&(Ll=!0),e.firstContext=null)}function pa(e){return ga(ia,e)}function ha(e,n,t){return null===ia&&da(e,t),ga(e,n)}function ga(e,n){var t=n._currentValue;if(oa!==n)if(n={context:n,memoizedValue:t,next:null},null===ua){if(null===e)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ua=n,e.dependencies={lanes:0,firstContext:n}}else ua=ua.next=n;return t}var ma=Re.ReactCurrentBatchConfig;function va(){}function ba(e,n){null!==n?e.flags|=4:16384&e.flags&&(n=22!==e.tag?kn():536870912,e.lanes|=n)}function ya(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sa(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function ka(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:case 17:return Sa(t),null;case 3:return r=t.stateNode,Xn(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Jn&&(Gi(Jn),Jn=null)),Sa(t),null;case 26:case 27:case 5:Kn(t);var a=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==l&&(t.flags|=4);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Sa(t),null}e=$n.current,r=In(),a=Cn(a);var u=ln(null,Xe,l,a.validAttributes);n(i[2]).UIManager.createView(r,a.uiViewClassName,e,u),e=new un(r,a,t),ve.set(r,t),be.set(r,l);e:for(r=t.child;null!==r;){if(5===r.tag||6===r.tag)e._children.push(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;null===r.sibling;){if(null===r.return||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e,Un(e)&&(t.flags|=4)}return Sa(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==l&&(t.flags|=4);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=$n.current,!Wn.current.isInAParentText)throw Error("Text strings must be rendered within a component.");e=In(),n(i[2]).UIManager.createView(e,"RCTRawText",r,{text:l}),ve.set(e,t),t.stateNode=e}return Sa(t),null;case 13:if(l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==l&&null!==l.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,Sa(t),a=!1}else null!==Jn&&(Gi(Jn),Jn=null),a=!0;if(!a)return 256&t.flags?(sr(t),t):(sr(t),null)}return sr(t),128&t.flags?(t.lanes=r,t):((r=null!==l)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192),ba(t,t.updateQueue),Sa(t),null);case 4:return Xn(),Sa(t),null;case 10:return ca(t.type._context),Sa(t),null;case 19:if(Bn(cr),null===(a=t.memoizedState))return Sa(t),null;if(l=!!(128&t.flags),null===(u=a.rendering))if(l)ya(a,!1);else{if(0!==Ti||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=fr(e))){for(t.flags|=128,ya(a,!1),e=u.updateQueue,t.updateQueue=e,ba(t,e),t.subtreeFlags=0,e=t.child;null!==e;)xu(e,r),e=e.sibling;return Vn(cr,1&cr.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[3]).unstable_now()>Fi&&(t.flags|=128,l=!0,ya(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=fr(u))){if(t.flags|=128,l=!0,r=e.updateQueue,t.updateQueue=r,ba(t,r),ya(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return Sa(t),null}else 2*n(i[3]).unstable_now()-a.renderingStartTime>Fi&&536870912!==r&&(t.flags|=128,l=!0,ya(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=a.last)?r.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[3]).unstable_now(),t.sibling=null,r=cr.current,Vn(cr,l?1&r|2:1&r),t):(Sa(t),null);case 22:case 23:return sr(t),rr(),l=null!==t.memoizedState,null!==e?null!==e.memoizedState!==l&&(t.flags|=8192):l&&(t.flags|=8192),l&&1&t.mode?!!(536870912&r)&&!(128&t.flags)&&(Sa(t),6&t.subtreeFlags&&(t.flags|=8192)):Sa(t),null!==(r=t.updateQueue)&&ba(t,r.retryQueue),null;case 24:case 25:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function wa(e,n){switch(n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Xn(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return Kn(n),null;case 13:if(sr(n),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return Bn(cr),null;case 4:return Xn(),null;case 10:return ca(n.type._context),null;case 22:case 23:return sr(n),rr(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;default:return null}}function _a(e,n){switch(n.tag){case 3:case 4:Xn();break;case 26:case 27:case 5:Kn(n);break;case 13:sr(n);break;case 19:Bn(cr);break;case 10:ca(n.type._context);break;case 22:case 23:sr(n),rr()}}var Pa=!1,Ta=!1,Ea="function"==typeof WeakSet?WeakSet:Set,Ra=null;function xa(e,n){try{var t=e.ref;if(null!==t){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=Fn(r);break;default:l=r}"function"==typeof t?e.refCleanup=t(l):t.current=l}}catch(t){vu(e,n,t)}}function za(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){vu(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){vu(e,n,t)}else t.current=null}function Ca(e,n,t){try{t()}catch(t){vu(e,n,t)}}var Na=!1;function Ia(e,n){for(Ra=n;null!==Ra;)if(n=(e=Ra).child,1028&e.subtreeFlags&&null!==n)n.return=e,Ra=n;else for(;null!==Ra;){e=Ra;try{var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 15:case 3:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&r&&null!==t){var l=t.memoizedProps,a=t.memoizedState,i=e.stateNode,u=i.getSnapshotBeforeUpdate(e.elementType===e.type?l:vl(e.type,l),a);i.__reactInternalSnapshotBeforeUpdate=u}break;default:if(1024&r)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){vu(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Ra=n;break}Ra=e.return}return t=Na,Na=!1,t}function La(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,i=a.destroy;void 0!==i&&(a.destroy=void 0,Ca(n,t,i))}l=l.next}while(l!==r)}}function Ua(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create,l=t.inst;r=r(),l.destroy=r}t=t.next}while(t!==n)}}function Fa(e,n){try{Ua(n,e)}catch(n){vu(e,e.return,n)}}function Ma(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Rt(n,t)}catch(n){vu(e,e.return,n)}}}function Da(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ja(e,t),4&r&&Fa(t,5);break;case 1:if(Ja(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){vu(t,t.return,e)}else{var l=t.elementType===t.type?n.memoizedProps:vl(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(l,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){vu(t,t.return,e)}}64&r&&Ma(t),512&r&&xa(t,t.return);break;case 3:if(Ja(e,t),64&r&&null!==(r=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 27:case 5:e=Fn(t.child.stateNode);break;case 1:e=t.child.stateNode}try{Rt(r,e)}catch(e){vu(t,t.return,e)}}break;case 26:case 27:case 5:Ja(e,t),512&r&&xa(t,t.return);break;case 12:case 13:default:Ja(e,t);break;case 22:if(1&t.mode){if(!(l=null!==t.memoizedState||Pa)){n=null!==n&&null!==n.memoizedState||Ta;var a=Pa,i=Ta;Pa=l,(Ta=n)&&!i?ei(e,t,!!(8772&t.subtreeFlags)):Ja(e,t),Pa=a,Ta=i}}else Ja(e,t);512&r&&("manual"===t.memoizedProps.mode?xa(t,t.return):za(t,t.return))}}function Qa(e){var n=e.alternate;null!==n&&(e.alternate=null,Qa(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Aa(e){return 5===e.tag||3===e.tag||4===e.tag}function ja(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Aa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ba(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){if("number"==typeof r)throw Error("Container does not support insertBefore operation")}else n(i[2]).UIManager.setChildren(r,["number"==typeof e?e:e._nativeTag]);else if(4!==l&&null!==(e=e.child))for(Ba(e,t,r),e=e.sibling;null!==e;)Ba(e,t,r),e=e.sibling}function Va(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){var a=(l=r._children).indexOf(e);0<=a?(l.splice(a,1),t=l.indexOf(t),l.splice(t,0,e),n(i[2]).UIManager.manageChildren(r._nativeTag,[a],[t],[],[],[])):(t=l.indexOf(t),l.splice(t,0,e),n(i[2]).UIManager.manageChildren(r._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[t],[]))}else t="number"==typeof e?e:e._nativeTag,0<=(a=(l=r._children).indexOf(e))?(l.splice(a,1),l.push(e),n(i[2]).UIManager.manageChildren(r._nativeTag,[a],[l.length-1],[],[],[])):(l.push(e),n(i[2]).UIManager.manageChildren(r._nativeTag,[],[],[t],[l.length-1],[]));else if(4!==l&&null!==(e=e.child))for(Va(e,t,r),e=e.sibling;null!==e;)Va(e,t,r),e=e.sibling}var Oa=null,Ha=!1;function Wa(e,n,t){for(t=t.child;null!==t;)Ya(e,n,t),t=t.sibling}function Ya(e,t,r){if(sn&&"function"==typeof sn.onCommitFiberUnmount)try{sn.onCommitFiberUnmount(on,r)}catch(e){}switch(r.tag){case 26:case 27:case 5:Ta||za(r,t);case 6:var l=Oa,a=Ha;Oa=null,Wa(e,t,r),Ha=a,null!==(Oa=l)&&(Ha?(e=Oa,Ln(r.stateNode),n(i[2]).UIManager.manageChildren(e,[],[],[],[],[0])):(e=Oa,Ln(t=r.stateNode),t=(r=e._children).indexOf(t),r.splice(t,1),n(i[2]).UIManager.manageChildren(e._nativeTag,[],[],[],[],[t])));break;case 18:null!==Oa&&zn();break;case 4:l=Oa,a=Ha,Oa=r.stateNode.containerInfo,Ha=!0,Wa(e,t,r),Oa=l,Ha=a;break;case 0:case 11:case 14:case 15:if(!Ta&&(null!==(l=r.updateQueue)&&null!==(l=l.lastEffect))){a=l=l.next;do{var u=a.tag,o=a.inst,s=o.destroy;void 0!==s&&(2&u||4&u)&&(o.destroy=void 0,Ca(r,t,s)),a=a.next}while(a!==l)}Wa(e,t,r);break;case 1:if(!Ta&&(za(r,t),"function"==typeof(l=r.stateNode).componentWillUnmount))try{l.props=r.memoizedProps,l.state=r.memoizedState,l.componentWillUnmount()}catch(e){vu(r,t,e)}Wa(e,t,r);break;case 21:Wa(e,t,r);break;case 22:za(r,t),1&r.mode?(Ta=(l=Ta)||null!==r.memoizedState,Wa(e,t,r),Ta=l):Wa(e,t,r);break;default:Wa(e,t,r)}}function $a(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new Ea),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new Ea),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function qa(e,n){var t=$a(e);n.forEach((function(n){var r=wu.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}function Xa(e,n){var t=n.deletions;if(null!==t)for(var r=0;re?32:e,null===Bi)var r=!1;else{if(e=Bi,Bi=null,Vi=0,6&vi)throw Error("Cannot flush passive effects while already rendering.");var l=vi;if(vi|=4,ci(e.current),ri(e,e.current),vi=l,ht(!1),sn&&"function"==typeof sn.onPostCommitFiberRoot)try{sn.onPostCommitFiberRoot(on,e)}catch(e){}r=!0}return r}finally{Rn=t,mi.transition=n}}return!1}function mu(e,n,t){null!==(e=wt(e,n=xl(e,n=Tl(t,n),2),2))&&(_n(e,2),pt(e))}function vu(e,n,t){if(3===e.tag)mu(e,e,t);else for(;null!==n;){if(3===n.tag){mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ai||!Ai.has(r))){null!==(n=wt(n,e=zl(n,e=Tl(t,e),2),2))&&(_n(n,2),pt(n));break}}n=n.return}}function bu(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new pi;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(_i=!0,l.add(t),e=yu.bind(null,e,n,t),n.then(e,e))}function yu(e,t,r){var l=e.pingCache;null!==l&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,bi===e&&(Si&r)===r&&(4===Ti||3===Ti&&(62914560&Si)===Si&&300>n(i[3]).unstable_now()-Ui?!(2&vi)&&nu(e,0):zi|=r),pt(e)}function Su(e,n){0===n&&(n=1&e.mode?kn():2),null!==(e=lt(e,n))&&(_n(e,n),pt(e))}function ku(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Su(e,t)}function wu(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),Su(e,t)}function _u(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,n,t,r){return new _u(e,n,t,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Eu(e){if("function"==typeof e)return Tu(e)?1:0;if(null!=e){if((e=e.$$typeof)===Me)return 11;if(e===Ae)return 14}return 2}function Ru(e,n){var t=e.alternate;return null===t?((t=Pu(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=31457280&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function xu(e,n){e.flags&=31457282;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function zu(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Tu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ce:return Cu(t.children,l,a,n);case Ne:i=8,1&(l|=8)&&(l|=16);break;case Ie:return(e=Pu(12,t,n,2|l)).elementType=Ie,e.lanes=a,e;case De:return(e=Pu(13,t,n,l)).elementType=De,e.lanes=a,e;case Qe:return(e=Pu(19,t,n,l)).elementType=Qe,e.lanes=a,e;case Be:return Nu(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:i=10;break e;case Fe:i=9;break e;case Ue:case Me:i=11;break e;case Ae:i=14;break e;case je:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Pu(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Cu(e,n,t,r){return(e=Pu(7,e,r,n)).lanes=t,e}function Nu(e,n,t,r){(e=Pu(22,e,r,n)).elementType=Be,e.lanes=t;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(!(2&l._pendingVisibility)){var n=lt(e,2);null!==n&&(l._pendingVisibility|=2,$i(n,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(2&l._pendingVisibility){var n=lt(e,2);null!==n&&(l._pendingVisibility&=-3,$i(n,e,2))}}};return e.stateNode=l,e}function Iu(e,n,t){return(e=Pu(6,e,null,n)).lanes=t,e}function Lu(e,n,t){return(n=Pu(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Uu(e,n,t,r,l,a){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wn(0),this.hiddenUpdates=wn(null),this.identifierPrefix=r,this.onRecoverableError=l,this.formState=a,this.incompleteTransitions=new Map}function Fu(e,n,t){var r=3=0||(ce=0);var fe=E,pe=(0,s.default)(de);null!=pe&&('number'==typeof pe.fontWeight&&(pe.fontWeight=pe.fontWeight.toString()),null!=pe.userSelect&&(fe=y[pe.userSelect],delete pe.userSelect),null!=pe.verticalAlign&&(pe.textAlignVertical=S[pe.verticalAlign],delete pe.verticalAlign));var be=null!=_?_:C;if((0,r.useContext)(o.default))return(0,c.jsx)(_r(d[11]).NativeVirtualText,Object.assign({},U,re,{accessibilityLabel:ee,accessibilityState:ne,isHighlighted:Z,isPressable:se,nativeID:be,numberOfLines:ce,ref:u,selectable:fe,selectionColor:ue,style:pe,disabled:w}));te!==le&&(null!=te&&!1!==te||null!=le&&!1!==le)&&(ne=Object.assign({},ne,{disabled:te}));var Re=a.default.select({ios:!1!==b,android:null==b?null!=W||null!=D:b,default:b});return(0,c.jsx)(o.default.Provider,{value:!0,children:(0,c.jsx)(_r(d[11]).NativeText,Object.assign({},U,re,{accessibilityLabel:ee,accessibilityState:ne,accessible:Re,allowFontScaling:!1!==O,disabled:te,ellipsizeMode:null!=k?k:'tail',isHighlighted:Z,nativeID:be,numberOfLines:ce,ref:u,selectable:fe,selectionColor:ue,style:pe}))})}));function v(e){var l=(0,r.useState)(e),t=(0,n.default)(l,2),s=t[0],i=t[1];return!s&&e&&i(e),s}R.displayName='Text';var y={auto:!0,text:!0,none:!1,contain:!0,all:!0},S={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=R}),273,[2,44,4,274,275,227,190,39,184,16,223,284]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PressabilityDebugView=function(e){return null},_e.isEnabled=function(){return!1},_e.setEnabled=function(e){};e(_r(d[1])),e(_r(d[2])),(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var i=o?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(u,f,i):u[f]=e[f]}u.default=e,r&&r.set(e,u)})(_r(d[3])),_r(d[4]);function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(e){return e?r:n})(e)}}),274,[2,183,191,16,223]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=(0,l.useRef)(null);null!=n&&null==t.current&&(t.current=new u.default(n));var f=t.current;return(0,l.useEffect)((function(){null!=n&&null!=f&&f.configure(n)}),[n,f]),(0,l.useEffect)((function(){if(null!=f)return function(){f.reset()}}),[f]),null==f?null:f.getEventHandlers()};var u=n(r(d[1])),l=r(d[2])}),275,[2,276,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),E=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),R=e(_r(d[5])),_=e(_r(d[6])),o=e(_r(d[7])),l=e(_r(d[8]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var E=r(t);if(E&&E.has(e))return E.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in e)if("default"!==R&&{}.hasOwnProperty.call(e,R)){var _=i?Object.getOwnPropertyDescriptor(e,R):null;_&&(_.get||_.set)?Object.defineProperty(n,R,_):n[R]=e[R]}n.default=e,E&&E.set(e,n)})(_r(d[9]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,E=new WeakMap;return(r=function(e){return e?E:t})(e)}var u=Object.freeze({NOT_RESPONDER:{DELAY:'ERROR',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'ERROR',RESPONDER_TERMINATED:'ERROR',ENTER_PRESS_RECT:'ERROR',LEAVE_PRESS_RECT:'ERROR',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_IN:{DELAY:'RESPONDER_ACTIVE_PRESS_IN',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:'RESPONDER_ACTIVE_PRESS_OUT',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},ERROR:{DELAY:'NOT_RESPONDER',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'NOT_RESPONDER',LEAVE_PRESS_RECT:'NOT_RESPONDER',LONG_PRESS_DETECTED:'NOT_RESPONDER'}}),a=function(e){return'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},s=function(e){return'RESPONDER_ACTIVE_PRESS_OUT'===e||'RESPONDER_ACTIVE_PRESS_IN'===e},S=function(e){return'RESPONDER_INACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_PRESS_IN'===e||'RESPONDER_ACTIVE_LONG_PRESS_IN'===e},T=function(e){return'RESPONDER_TERMINATED'===e||'RESPONDER_RELEASE'===e},c=30,O=20,P=20,N=20,D=10;_e.default=(function(){return(0,E.default)((function e(E){var n=this;(0,t.default)(this,e),this._eventHandlers=null,this._hoverInDelayTimeout=null,this._hoverOutDelayTimeout=null,this._isHovered=!1,this._longPressDelayTimeout=null,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._responderID=null,this._responderRegion=null,this._touchState='NOT_RESPONDER',this._measureCallback=function(e,t,E,i,R,_){(e||t||E||i||R||_)&&(n._responderRegion={bottom:_+i,left:R,right:R+E,top:_})},this.configure(E)}),[{key:"configure",value:function(e){this._config=e}},{key:"reset",value:function(){this._cancelHoverInDelayTimeout(),this._cancelHoverOutDelayTimeout(),this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout(),this._config=Object.freeze({})}},{key:"getEventHandlers",value:function(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}},{key:"_createEventHandlers",value:function(){var e=this,t={onBlur:function(t){var E=e._config.onBlur;null!=E&&E(t)},onFocus:function(t){var E=e._config.onFocus;null!=E&&E(t)}},E={onStartShouldSetResponder:function(){var t;return null==(t=!e._config.disabled)||t},onResponderGrant:function(t){t.persist(),e._cancelPressOutDelayTimeout(),e._responderID=t.currentTarget,e._touchState='NOT_RESPONDER',e._receiveSignal('RESPONDER_GRANT',t);var E=v(e._config.delayPressIn);E>0?e._pressDelayTimeout=setTimeout((function(){e._receiveSignal('DELAY',t)}),E):e._receiveSignal('DELAY',t);var n=v(e._config.delayLongPress,10,500-E);return e._longPressDelayTimeout=setTimeout((function(){e._handleLongPress(t)}),n+E),!0===e._config.blockNativeResponder},onResponderMove:function(t){var E=e._config.onPressMove;null!=E&&E(t);var n=e._responderRegion;if(null!=n){var i=f(t);if(null==i)return e._cancelLongPressDelayTimeout(),void e._receiveSignal('LEAVE_PRESS_RECT',t);if(null!=e._touchActivatePosition){var R=e._touchActivatePosition.pageX-i.pageX,_=e._touchActivatePosition.pageY-i.pageY;Math.hypot(R,_)>D&&e._cancelLongPressDelayTimeout()}e._isTouchWithinResponderRegion(i,n)?e._receiveSignal('ENTER_PRESS_RECT',t):(e._cancelLongPressDelayTimeout(),e._receiveSignal('LEAVE_PRESS_RECT',t))}},onResponderRelease:function(t){e._receiveSignal('RESPONDER_RELEASE',t)},onResponderTerminate:function(t){e._receiveSignal('RESPONDER_TERMINATED',t)},onResponderTerminationRequest:function(){var t=e._config.cancelable;return null==t||t},onClick:function(t){var E;if(null==t||null==(E=t.nativeEvent)||null==E.hasOwnProperty||!E.hasOwnProperty('pointerType'))if((null==t?void 0:t.currentTarget)===(null==t?void 0:t.target)){var n=e._config,i=n.onPress,R=n.disabled;null!=i&&!0!==R&&i(t)}else null==t||t.stopPropagation()}};if(i.default.shouldPressibilityUseW3CPointerEventsForHover()){var n={onPointerEnter:void 0,onPointerLeave:void 0},R=this._config,o=R.onHoverIn,l=R.onHoverOut;return null!=o&&(n.onPointerEnter=function(t){if(e._isHovered=!0,e._cancelHoverOutDelayTimeout(),null!=o){var E=v(e._config.delayHoverIn);E>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){o(h(t))}),E)):o(h(t))}}),null!=l&&(n.onPointerLeave=function(t){if(e._isHovered&&(e._isHovered=!1,e._cancelHoverInDelayTimeout(),null!=l)){var E=v(e._config.delayHoverOut);E>0?(t.persist(),e._hoverOutDelayTimeout=setTimeout((function(){l(h(t))}),E)):l(h(t))}}),Object.assign({},t,E,n)}var r='ios'===_.default.OS||'android'===_.default.OS?null:{onMouseEnter:function(t){if((0,_r(d[10]).isHoverEnabled)()){e._isHovered=!0,e._cancelHoverOutDelayTimeout();var E=e._config.onHoverIn;if(null!=E){var n=v(e._config.delayHoverIn);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}},onMouseLeave:function(t){if(e._isHovered){e._isHovered=!1,e._cancelHoverInDelayTimeout();var E=e._config.onHoverOut;if(null!=E){var n=v(e._config.delayHoverOut);n>0?(t.persist(),e._hoverInDelayTimeout=setTimeout((function(){E(t)}),n)):E(t)}}}};return Object.assign({},t,E,r)}},{key:"_receiveSignal",value:function(e,t){var E;null!=t.nativeEvent.timestamp&&o.default.emitEvent((function(){return{signal:e,nativeTimestamp:t.nativeEvent.timestamp}}));var n=this._touchState,i=null==(E=u[n])?void 0:E[e];null==this._responderID&&'RESPONDER_RELEASE'===e||((0,l.default)(null!=i&&'ERROR'!==i,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',e,n,'number'==typeof this._responderID?this._responderID:'<>'),n!==i&&(this._performTransitionSideEffects(n,i,e,t),this._touchState=i))}},{key:"_performTransitionSideEffects",value:function(e,t,E,i){T(E)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var R='NOT_RESPONDER'===e&&'RESPONDER_INACTIVE_PRESS_IN'===t,o=!s(e)&&s(t);if((R||o)&&this._measureResponderRegion(),S(e)&&'LONG_PRESS_DETECTED'===E){var l=this._config.onLongPress;null!=l&&l(i)}var r=a(e),u=a(t);if(!r&&u?this._activate(i):r&&!u&&this._deactivate(i),S(e)&&'RESPONDER_RELEASE'===E){u||r||(this._activate(i),this._deactivate(i));var c=this._config,O=c.onLongPress,P=c.onPress,N=c.android_disableSound;if(null!=P)null!=O&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===e||('android'===_.default.OS&&!0!==N&&n.default.playTouchSound(),P(i))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(e){var t=this._config.onPressIn,E=f(e),n=E.pageX,i=E.pageY;this._touchActivatePosition={pageX:n,pageY:i},this._touchActivateTime=Date.now(),null!=t&&t(e)}},{key:"_deactivate",value:function(e){var t=this._config.onPressOut;if(null!=t){var E,n=v(this._config.minPressDuration,0,130),i=Date.now()-(null!=(E=this._touchActivateTime)?E:0),R=Math.max(n-i,v(this._config.delayPressOut));R>0?(e.persist(),this._pressOutDelayTimeout=setTimeout((function(){t(e)}),R)):t(e)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?R.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(e,t){var E,n,i,R,_=(0,_r(d[11]).normalizeRect)(this._config.hitSlop),o=(0,_r(d[11]).normalizeRect)(this._config.pressRectOffset),l=t.bottom,r=t.left,u=t.right,a=t.top;return null!=_&&(null!=_.bottom&&(l+=_.bottom),null!=_.left&&(r-=_.left),null!=_.right&&(u+=_.right),null!=_.top&&(a-=_.top)),l+=null!=(E=null==o?void 0:o.bottom)?E:c,r-=null!=(n=null==o?void 0:o.left)?n:O,u+=null!=(i=null==o?void 0:o.right)?i:P,a-=null!=(R=null==o?void 0:o.top)?R:N,e.pageX>r&&e.pageXa&&e.pageY1&&void 0!==arguments[1]?arguments[1]:0,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=e?e:E)}var f=function(e){var t=e.nativeEvent,E=t.changedTouches,n=t.touches;return null!=n&&n.length>0?n[0]:null!=E&&E.length>0?E[0]:e.nativeEvent};function h(e){var t=e.nativeEvent,E=t.clientX,n=t.clientY;return Object.assign({},e,{nativeEvent:{clientX:E,clientY:n,pageX:E,pageY:n,timestamp:e.timeStamp}})}}),276,[2,6,7,277,280,50,39,281,31,16,282,283]); +__d((function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o}),277,[2,278]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),278,[279]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('SoundManager')}),279,[42]); +__d((function(g,r,i,a,m,e,d){m.exports={shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1}}}),280,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=new((function(){return(0,s.default)((function t(){(0,n.default)(this,t),this._listeners=[]}),[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach((function(t){return t(n)}))}}}])})());e.default=u}),281,[2,6,7]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return o};var t=n(r(d[1])),o=!1;if('web'===t.default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var u=0,c=function(){u=Date.now(),o&&(o=!1)};document.addEventListener('touchstart',c,!0),document.addEventListener('touchmove',c,!0),document.addEventListener('mousemove',(function(){o||Date.now()-u<1e3||(o=!0)}),!0)}}),282,[2,39]); +__d((function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}}),283,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var n=t(r(d[1])),l=t(r(d[2])),o={validAttributes:{isHighlighted:!0,isPressable:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,dynamicTypeRamp:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0,lineBreakStrategyIOS:!0},directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'},u={validAttributes:{isHighlighted:!0,isPressable:!0,maxFontSizeMultiplier:!0},uiViewClassName:'RCTVirtualText'},s=e.NativeText=(0,l.default)('RCTText',(function(){return(0,r(d[3]).createViewConfig)(o)}));e.NativeVirtualText=g.RN$Bridgeless||n.default.hasViewManagerConfig('RCTVirtualText')?(0,l.default)('RCTVirtualText',(function(){return(0,r(d[3]).createViewConfig)(u)})):s}),284,[2,50,269,221]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),s=e(_r(d[1])),t=e(_r(d[2])),i=e(_r(d[3])),o=e(_r(d[4])),n=e(_r(d[5])),a=e(_r(d[6])),r=(e(_r(d[7])),e(_r(d[8]))),l=e(_r(d[9])),p=e(_r(d[10])),c=e(_r(d[11])),u=(function(e,s){if(!s&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=b(s);if(t&&t.has(e))return t.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var a=o?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i})(_r(d[12])),h=(_r(d[13]),["onBlur","onFocus"]);function b(e){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(b=function(e){return e?t:s})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var y=(function(e){function l(){var e,s,i,a;(0,t.default)(this,l);for(var p=arguments.length,c=new Array(p),u=0;u1&&void 0!==arguments[1]?arguments[1]:{},i=n.iterations,r=void 0===i?-1:i,o=n.resetBeforeIteration,a=void 0===o||o,u=!1,s=0;return{start:function(n){var i=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};u||s===r||!1===o.finished?n&&n(o):(s++,a&&t.reset(),t.start(i))};t&&0!==r?t._isUsingNativeDriver()?t._startNativeLoop(r):i():n&&n({finished:!0})},stop:function(){u=!0,t.stop()},reset:function(){s=0,u=!1,t.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return t._isUsingNativeDriver()}}},event:function(t,n){var i=new(_r(d[17]).AnimatedEvent)(t,n);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:o.default,attachNativeEvent:_r(d[17]).attachNativeEvent,forkEvent:function(t,n){return t?t instanceof _r(d[17]).AnimatedEvent?(t.__addListener(n),t):function(){'function'==typeof t&&t.apply(void 0,arguments),n.apply(void 0,arguments)}:n},unforkEvent:function(t,n){t&&t instanceof _r(d[17]).AnimatedEvent&&t.__removeListener(n)},Event:_r(d[17]).AnimatedEvent}}),288,[2,289,311,314,315,320,312,321,322,307,323,324,298,325,326,304,310,303]); +__d((function(g,_r,i,a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),o=t(_r(d[3])),r=t(_r(d[4])),s=t(_r(d[5])),u=t(_r(d[6])),l=t(_r(d[7])),_=t(_r(d[8]));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}_e.default=(function(t){function _(t){var n,s,u,h,f,v,p;return(0,e.default)(this,_),f=this,v=_,v=(0,r.default)(v),(h=(0,o.default)(f,c()?Reflect.construct(v,p||[],(0,r.default)(f).constructor):v.apply(f,p)))._deceleration=null!=(n=t.deceleration)?n:.998,h._velocity=t.velocity,h._useNativeDriver=l.default.shouldUseNativeDriver(t),h._platformConfig=t.platformConfig,h.__isInteraction=null!=(s=t.isInteraction)?s:!h._useNativeDriver,h.__iterations=null!=(u=t.iterations)?u:1,h}return(0,u.default)(_,t),(0,n.default)(_,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,n,o,r){if(this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),!this._useNativeDriver&&!0===r.__isNative)throw new Error("Attempting to run JS driven animation on animated node that has been moved to \"native\" earlier by starting an animation with `useNativeDriver: true`");this._useNativeDriver?this.__startNativeAnimation(r):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){var t,e,n,o,u;(t=_,e="stop",n=this,o=3,u=(0,s.default)((0,r.default)(1&o?t.prototype:t),e,n),2&o&&"function"==typeof u?function(t){return u.apply(n,t)}:u)([]),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}])})(_.default)}),289,[2,6,7,11,13,34,14,290,296]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=l(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}return n.default=e,a&&a.set(e,n),n})(_r(d[1])),a=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),r=e(_r(d[6])),u=e(_r(d[7]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(l=function(e){return e?a:t})(e)}var s,f=null!=o.default?o.default:r.default,c=1,p=1,v=new Set,N=!1,A=[],b=[],O='android'===i.default.OS&&!(null==f||!f.queueAndExecuteBatchedOperations)&&t.animatedShouldUseSingleOp(),h=null,w={},y={},V=null,T=null,q=O?['createAnimatedNode','updateAnimatedNodeConfig','getValue','startListeningToAnimatedNodeValue','stopListeningToAnimatedNodeValue','connectAnimatedNodes','disconnectAnimatedNodes','startAnimatingNode','stopAnimation','setAnimatedNodeValue','setAnimatedNodeOffset','flattenAnimatedNodeOffset','extractAnimatedNodeOffset','connectAnimatedNodeToView','disconnectAnimatedNodeFromView','restoreDefaultValues','dropAnimatedNode','addAnimatedEventToView','removeAnimatedEventFromView','addListener','removeListener'].reduce((function(e,t,a){return e[t]=a+1,e}),{}):f,S={getValue:function(e,t){(0,u.default)(q,'Native animated module is not available'),O?(t&&(w[e]=t),S.queueOperation(q.getValue,e)):S.queueOperation(q.getValue,e,t)},setWaitingForIdentifier:function(e){v.add(e),N=!0,t.animatedShouldDebounceQueueFlush()&&h&&clearTimeout(h)},unsetWaitingForIdentifier:function(e){v.delete(e),0===v.size&&(N=!1,S.disableQueue())},disableQueue:function(){((0,u.default)(q,'Native animated module is not available'),t.animatedShouldDebounceQueueFlush())?(clearImmediate(h),h=setImmediate(S.flushQueue)):S.flushQueue()},flushQueue:function(){if((0,u.default)(f||!1,'Native animated module is not available'),h=null,(!O||0!==b.length)&&(O||0!==A.length))if(O)V&&T||E(),null==f||null==f.queueAndExecuteBatchedOperations||f.queueAndExecuteBatchedOperations(b),b.length=0;else{'android'===i.default.OS&&(null==f||null==f.startOperationBatch||f.startOperationBatch());for(var e=0,t=A.length;e1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:0;if(n>=s)return!1;if(e instanceof f.default)return!0;if(Array.isArray(e)){for(var r of e)if(t(r,n+1))return!0}else if(y(e)){if(c.isValidElement(e))return!1;for(var u in e)if(t(e[u],n+1))return!0}return!1};var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),u=t(_r(d[4])),a=t(_r(d[5])),i=t(_r(d[6])),f=t(_r(d[7])),o=t(_r(d[8])),c=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var i=u?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r})(_r(d[9]));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function _(t,e,n,r){var i=(0,a.default)((0,u.default)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}var s=5;function y(t){return null!==t&&'object'==typeof t&&Object.getPrototypeOf(t).isPrototypeOf(Object)}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n>=s||(t instanceof f.default?e(t):Array.isArray(t)?t.forEach((function(t){p(t,e,n+1)})):y(t)&&Object.values(t).forEach((function(t){p(t,e,n+1)})))}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>=s)return t;if(t instanceof f.default)return e(t);if(Array.isArray(t))return t.map((function(t){return h(t,e,n+1)}));if(y(t)){var r={};for(var u in t)r[u]=h(t[u],e,n+1);return r}return t}_e.default=(function(t){function a(t){var n,i,f,o;return(0,e.default)(this,a),i=this,f=a,f=(0,u.default)(f),(n=(0,r.default)(i,v()?Reflect.construct(f,o||[],(0,u.default)(i).constructor):f.apply(i,o)))._value=t,n}return(0,i.default)(a,t),(0,n.default)(a,[{key:"__getValue",value:function(){return h(this._value,(function(t){return t.__getValue()}))}},{key:"__getAnimatedValue",value:function(){return h(this._value,(function(t){return t.__getAnimatedValue()}))}},{key:"__attach",value:function(){var t=this;_(a,"__attach",this,3)([]),p(this._value,(function(e){e.__addChild(t)}))}},{key:"__detach",value:function(){var t=this;p(this._value,(function(e){e.__removeChild(t)})),_(a,"__detach",this,3)([])}},{key:"__makeNative",value:function(t){p(this._value,(function(e){e.__makeNative(t)})),_(a,"__makeNative",this,3)([t])}},{key:"__getNativeConfig",value:function(){return{type:'object',value:h(this._value,(function(t){return{nodeTag:t.__getNativeTag()}}))}}}])})(o.default)}),299,[2,6,7,11,13,34,14,298,300,16]); +__d((function(g,_r,i,a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),_=t(_r(d[3])),l=t(_r(d[4])),r=t(_r(d[5])),c=t(_r(d[6])),s=t(_r(d[7])),u=t(_r(d[8]));function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function h(t,e,n,_){var c=(0,r.default)((0,l.default)(1&_?t.prototype:t),e,n);return 2&_&&"function"==typeof c?function(t){return c.apply(n,t)}:c}_e.default=(function(t){function r(){var t,n,c,s;return(0,e.default)(this,r),n=this,c=r,c=(0,l.default)(c),(t=(0,_.default)(n,o()?Reflect.construct(c,s||[],(0,l.default)(n).constructor):c.apply(n,s)))._children=[],t}return(0,c.default)(r,t),(0,n.default)(r,[{key:"__makeNative",value:function(t){if(!this.__isNative)for(var e of(this.__isNative=!0,this._children))e.__makeNative(t),s.default.API.connectAnimatedNodes(this.__getNativeTag(),e.__getNativeTag());h(r,"__makeNative",this,3)([t])}},{key:"__addChild",value:function(t){0===this._children.length&&this.__attach(),this._children.push(t),this.__isNative&&(t.__makeNative(this.__getPlatformConfig()),s.default.API.connectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()))}},{key:"__removeChild",value:function(t){var e=this._children.indexOf(t);-1!==e?(this.__isNative&&t.__isNative&&s.default.API.disconnectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()),this._children.splice(e,1),0===this._children.length&&this.__detach()):console.warn("Trying to remove a child that doesn't exist")}},{key:"__getChildren",value:function(){return this._children}},{key:"__callListeners",value:function(t){if(h(r,"__callListeners",this,3)([t]),!this.__isNative)for(var e of this._children)e.__getValue&&e.__callListeners(e.__getValue())}}])})(u.default)}),300,[2,6,7,11,13,34,14,290,298]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),a=t(_r(d[2])),n=t(_r(d[3])),r=t(_r(d[4])),u=t(_r(d[5])),i=t(_r(d[6])),l=p(_r(d[7])),f=t(_r(d[8])),o=t(_r(d[9])),s=t(_r(d[10])),_=t(_r(d[11])),c=p(_r(d[12])),v=t(_r(d[13])),y=t(_r(d[14]));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,a=new WeakMap;return(h=function(t){return t?a:e})(t)}function p(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var a=h(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var i=r?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=t[u]}return n.default=t,a&&a.set(t,n),n}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function O(t,e,a,n){var i=(0,u.default)((0,r.default)(1&n?t.prototype:t),e,a);return 2&n&&"function"==typeof i?function(t){return i.apply(a,t)}:i}function w(t,e){var a=(0,f.default)(t),n={};for(var r in a){var u=a[r];null!=u&&'transform'===r?n[r]=l.shouldUseAnimatedObjectForTransform()?new c.default(u):new v.default(u):u instanceof _.default?n[r]=u:(0,c.hasAnimatedNode)(u)?n[r]=new c.default(u):e&&(n[r]=u)}return n}_e.default=(function(t){function u(t){var a,i,l,f;return(0,e.default)(this,u),i=this,l=u,l=(0,r.default)(l),(a=(0,n.default)(i,k()?Reflect.construct(l,f||[],(0,r.default)(i).constructor):l.apply(i,f)))._inputStyle=t,a._style=w(t,'web'!==o.default.OS),a}return(0,i.default)(u,t),(0,a.default)(u,[{key:"__getValue",value:function(){var t={};for(var e in this._style){var a=this._style[e];a instanceof _.default?t[e]=a.__getValue():t[e]=a}return'web'===o.default.OS?[this._inputStyle,t]:t}},{key:"__getAnimatedValue",value:function(){var t={};for(var e in this._style){var a=this._style[e];a instanceof _.default&&(t[e]=a.__getAnimatedValue())}return t}},{key:"__attach",value:function(){for(var t in this._style){var e=this._style[t];e instanceof _.default&&e.__addChild(this)}}},{key:"__detach",value:function(){for(var t in this._style){var e=this._style[t];e instanceof _.default&&e.__removeChild(this)}O(u,"__detach",this,3)([])}},{key:"__makeNative",value:function(t){for(var e in this._style){var a=this._style[e];a instanceof _.default&&a.__makeNative(t)}O(u,"__makeNative",this,3)([t])}},{key:"__getNativeConfig",value:function(){var t={};for(var e in this._style)if(this._style[e]instanceof _.default){var a=this._style[e];a.__makeNative(this.__getPlatformConfig()),t[e]=a.__getNativeTag()}return s.default.validateStyles(t),{type:'style',style:t}}}])})(y.default)}),301,[2,6,7,11,13,34,14,112,227,39,290,298,299,302,300]); +__d((function(g,_r,i,a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),f=t(_r(d[4])),u=t(_r(d[5])),o=t(_r(d[6])),c=t(_r(d[7])),s=t(_r(d[8])),l=t(_r(d[9])),_=t(_r(d[10]));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function h(t,e,n,r){var f=(0,o.default)((0,u.default)(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof f?function(t){return f.apply(n,t)}:f}_e.default=(function(t){function o(t){var e,r,c,s;return(0,n.default)(this,o),r=this,c=o,c=(0,u.default)(c),(e=(0,f.default)(r,v()?Reflect.construct(c,s||[],(0,u.default)(r).constructor):c.apply(r,s)))._transforms=t,e}return(0,c.default)(o,t),(0,r.default)(o,[{key:"__makeNative",value:function(t){this._transforms.forEach((function(e){for(var n in e){var r=e[n];r instanceof l.default&&r.__makeNative(t)}})),h(o,"__makeNative",this,3)([t])}},{key:"__getValue",value:function(){return this._get((function(t){return t.__getValue()}))}},{key:"__getAnimatedValue",value:function(){return this._get((function(t){return t.__getAnimatedValue()}))}},{key:"__attach",value:function(){var t=this;this._transforms.forEach((function(e){for(var n in e){var r=e[n];r instanceof l.default&&r.__addChild(t)}}))}},{key:"__detach",value:function(){var t=this;this._transforms.forEach((function(e){for(var n in e){var r=e[n];r instanceof l.default&&r.__removeChild(t)}})),h(o,"__detach",this,3)([])}},{key:"__getNativeConfig",value:function(){var t=[];return this._transforms.forEach((function(e){for(var n in e){var r=e[n];r instanceof l.default?t.push({type:'animated',property:n,nodeTag:r.__getNativeTag()}):t.push({type:'static',property:n,value:s.default.transformDataType(r)})}})),s.default.validateTransform(t),{type:'transform',transforms:t}}},{key:"_get",value:function(t){return this._transforms.map((function(n){var r={};for(var f in n){var u=n[f];if(u instanceof l.default)r[f]=t(u);else if(Array.isArray(u))r[f]=u.map((function(e){return e instanceof l.default?t(e):e}));else if('object'==typeof u)for(var o of(r[f]={},Object.entries(u))){var c=(0,e.default)(o,2),s=c[0],_=c[1];_ instanceof l.default?r[f][s]=t(_):r[f][s]=_}else r[f]=u}return r}))}}])})(_.default)}),302,[2,44,6,7,11,13,34,14,290,298,300]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedEvent=void 0,e.attachNativeEvent=v;var n=t(r(d[1])),s=t(r(d[2])),o=t(r(d[3])),f=t(r(d[4])),l=t(r(d[5])),u=t(r(d[6]));function v(t,n,s,v){var c=[],_=function(t,n){if(t instanceof f.default)t.__makeNative(v),c.push({nativeEventPath:n,animatedValueTag:t.__getNativeTag()});else if(t instanceof l.default)_(t.x,n.concat('x')),_(t.y,n.concat('y'));else if('object'==typeof t)for(var s in t)_(t[s],n.concat(s))};(0,u.default)(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),_(s[0].nativeEvent,[]);var h=(0,r(d[7]).findNodeHandle)(t);return null!=h&&c.forEach((function(t){o.default.API.addAnimatedEventToView(h,n,t)})),{detach:function(){null!=h&&c.forEach((function(t){o.default.API.removeAnimatedEventFromView(h,n,t.animatedValueTag)}))}}}e.AnimatedEvent=(function(){return(0,s.default)((function t(s,f){var l=this;(0,n.default)(this,t),this._listeners=[],this._callListeners=function(){for(var t=arguments.length,n=new Array(t),s=0;s0?setTimeout(h,0):setImmediate(h))}function h(){f=0;var l=o.size;c.forEach((function(n){return o.add(n)})),s.forEach((function(n){return o.delete(n)}));var h=o.size;if(0!==l&&0===h?n.emit(t.Events.interactionComplete):0===l&&0!==h&&n.emit(t.Events.interactionStart),0===h)for(;u.hasTasksToProcess();)if(u.processNext(),v>0&&r(d[4]).getEventLoopRunningTime()>=v){p();break}c.clear(),s.clear()}m.exports=t}),305,[2,36,31,306,20]); +__d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),t=r(d[1]),u=(function(){return t((function t(u){var s=u.onMoreTasks;e(this,t),this._onMoreTasks=s,this._queueStack=[{tasks:[],popable:!1}]}),[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach((function(e){return t.enqueue(e)}))}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map((function(t){return Object.assign({},t,{tasks:t.tasks.filter((function(t){return-1===e.indexOf(t)}))})})).filter((function(e,t){return e.tasks.length>0||0===t}))}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(r(d[2])('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then((function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()})).catch((function(t){setTimeout((function(){throw t.message=`TaskQueue: Error resolving Promise in task ${e.name}: ${t.message}`,t}),0)}))}}])})();m.exports=u}),306,[6,7,31]); +__d((function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),a=t(_r(d[3])),o=t(_r(d[4])),r=t(_r(d[5])),u=t(_r(d[6])),i=t(_r(d[7])),l=t(_r(d[8])),f=t(_r(d[9])),p=t(_r(d[10])),c=t(_r(d[11])),s=t(_r(d[12]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function g(t,e,n,a){var u=(0,r.default)((0,o.default)(1&a?t.prototype:t),e,n);return 2&a&&"function"==typeof u?function(t){return u.apply(n,t)}:u}function _(t){var e=t.outputRange,n=t.inputRange,a=t.easing||f.default.linear,o='extend';void 0!==t.extrapolateLeft?o=t.extrapolateLeft:void 0!==t.extrapolate&&(o=t.extrapolate);var r='extend';return void 0!==t.extrapolateRight?r=t.extrapolateRight:void 0!==t.extrapolate&&(r=t.extrapolate),function(t){(0,s.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var u=b(t,n);return v(t,n[u],n[u+1],e[u],e[u+1],a,o,r)}}function v(t,e,n,a,o,r,u,i){var l=t;if(ln){if('identity'===i)return l;'clamp'===i&&(l=n)}return a===o?a:e===n?t<=e?a:o:(e===-1/0?l=-l:n===1/0?l-=e:l=(l-e)/(n-e),l=r(l),a===-1/0?l=-l:o===1/0?l+=a:l=l*(o-a)+a,l)}var y=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function x(t){var e=(0,i.default)(t);if((0,s.default)(null==e||'object'!=typeof e,'PlatformColors are not supported'),'number'==typeof e)return{isColor:!0,components:[(4278190080&(e=e||0))>>>24,(16711680&e)>>>16,(65280&e)>>>8,(255&e)/255]};for(var n,a=[],o=0;null!=(n=y.exec(t));)n.index>o&&a.push(t.substring(o,n.index)),a.push(parseFloat(n[0])),o=n.index+n[0].length;return(0,s.default)(a.length>0,'outputRange must contain color or value with numeric component'),o=2,'Bad output range');var e=t.outputRange.map(x),n=e[0].isColor,a=e.map((function(t){return n?t.components:t.components.filter((function(t){return'number'==typeof t}))})),o=a[0].map((function(e,n){return _(Object.assign({},t,{outputRange:a.map((function(t){return t[n]}))}))}));return n?function(t){var e=o.map((function(e,n){var a=e(t);return n<3?Math.round(a):Math.round(1e3*a)/1e3}));return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}:function(t){var n=o.map((function(e){return e(t)})),a=0;return e[0].components.map((function(t){return'number'==typeof t?n[a++]:t})).join('')}}function b(t,e){var n;for(n=1;n=t);++n);return n-1}_e.default=(function(t){function r(t,n){var u,i,l,f;return(0,e.default)(this,r),i=this,l=r,l=(0,o.default)(l),(u=(0,a.default)(i,h()?Reflect.construct(l,f||[],(0,o.default)(i).constructor):l.apply(i,f)))._parent=t,u._config=n,u}return(0,u.default)(r,t),(0,n.default)(r,[{key:"_getInterpolation",value:function(){if(!this._interpolation){var t=this._config;t.outputRange&&'string'==typeof t.outputRange[0]?this._interpolation=R(t):this._interpolation=_(t)}return this._interpolation}},{key:"__makeNative",value:function(t){this._parent.__makeNative(t),g(r,"__makeNative",this,3)([t])}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return(0,s.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._getInterpolation()(t)}},{key:"interpolate",value:function(t){return new r(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),g(r,"__detach",this,3)([])}},{key:"__getNativeConfig",value:function(){var t=this._config.outputRange,e=null;return'string'==typeof t[0]&&(t=t.map((function(t){var n=(0,l.default)(t);return'number'==typeof n?(e='color',n):p.default.transformDataType(t)}))),{inputRange:this._config.inputRange,outputRange:t,outputType:e,extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}])})(c.default)}),307,[2,6,7,11,13,34,14,191,190,308,290,300,31]); +__d((function(g,r,i,a,m,e,d){'use strict';var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={step0:function(n){return n>0?1:0},step1:function(n){return n>=1?1:0},linear:function(n){return n},ease:function(u){return n||(n=t.bezier(.42,0,1,1)),n(u)},quad:function(n){return n*n},cubic:function(n){return n*n*n},poly:function(n){return function(t){return Math.pow(t,n)}},sin:function(n){return 1-Math.cos(n*Math.PI/2)},circle:function(n){return 1-Math.sqrt(1-n*n)},exp:function(n){return Math.pow(2,10*(n-1))},elastic:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*n)}},back:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((n+1)*t-n)}},bounce:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var t=n-.5454545454545454;return 7.5625*t*t+.75}if(n<.9090909090909091){var u=n-.8181818181818182;return 7.5625*u*u+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375},bezier:function(n,t,u,o){return(0,r(d[0]).default)(n,t,u,o)},in:function(n){return n},out:function(n){return function(t){return 1-n(1-t)}},inOut:function(n){return function(t){return t<.5?n(2*t)/2:1-n(2*(1-t))/2}}};e.default=t}),308,[309]); +__d((function(g,r,_i,a,m,e,d){ +/** + * BezierEasing - use bezier curve for transition easing function + * https://github.com/gre/bezier-easing + * @copyright 2014-2015 Gaëtan Renaudeau. MIT License. + */ +'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,u,o,v){if(!(n>=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var l=c?new Float32Array(f):new Array(f);if(n!==u||o!==v)for(var s=0;s=t?_(u,v,n,o):0===s?v:b(u,f,f+i,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:w(h(t),u,v)}};var n=4,t=.001,u=1e-7,o=10,f=11,i=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function l(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((v(t,u)*n+l(t,u))*n+s(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*l(t,u)*n+s(t)}function b(n,t,f,i,c){var v,l,s=0,y=t,b=f;do{(v=w(l=y+(b-y)/2,i,c)-n)>0?b=l:y=l}while(Math.abs(v)>u&&++s0,'Stiffness value must be greater than 0'),(0,h.default)(y._damping>0,'Damping value must be greater than 0'),(0,h.default)(y._mass>0,'Mass value must be greater than 0'),y}return(0,o.default)(u,t),(0,i.default)(u,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig}}},{key:"start",value:function(t,e,i,s,n){var a=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=e,this.__onEnd=i,this._lastTime=Date.now(),this._frameTime=0,s instanceof u){var o=s.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=o.lastTime}var l=function(){if(!a._useNativeDriver&&!0===n.__isNative)throw new Error("Attempting to run JS driven animation on animated node that has been moved to \"native\" earlier by starting an animation with `useNativeDriver: true`");a._useNativeDriver?a.__startNativeAnimation(n):a.onUpdate()};this._delay?this._timeout=setTimeout(l,this._delay):l()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var e=(t-this._lastTime)/1e3;this._frameTime+=e;var i=this._damping,s=this._mass,n=this._stiffness,a=-this._initialVelocity,o=i/(2*Math.sqrt(n*s)),l=Math.sqrt(n/s),r=l*Math.sqrt(1-o*o),u=this._toValue-this._startPosition,h=0,f=0,_=this._frameTime;if(o<1){var c=Math.exp(-o*l*_);h=this._toValue-c*((a+o*l*u)/r*Math.sin(r*_)+u*Math.cos(r*_)),f=o*l*c*(Math.sin(r*_)*(a+o*l*u)/r+u*Math.cos(r*_))-c*(Math.cos(r*_)*(a+o*l*u)-r*u*Math.sin(r*_))}else{var m=Math.exp(-l*_);h=this._toValue-m*(u+(a+l*u)*_),f=m*(a*(_*l-1)+_*u*(l*l))}if(this._lastTime=t,this._lastPosition=h,this._lastVelocity=f,this._onUpdate(h),this.__active){var v=!1;this._overshootClamping&&0!==this._stiffness&&(v=this._startPositionthis._toValue:h>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function b(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function y(t){return t&&t.r instanceof f.default&&t.g instanceof f.default&&t.b instanceof f.default&&t.a instanceof f.default}_e.default=(function(t){function r(t,i){var s,l,u,o;(0,e.default)(this,r),l=this,u=r,u=(0,n.default)(u),(s=(0,a.default)(l,h()?Reflect.construct(u,o||[],(0,n.default)(l).constructor):u.apply(l,o)))._suspendCallbacks=0;var _=null!=t?t:g;if(y(_)){var c=_;s.r=c.r,s.g=c.g,s.b=c.b,s.a=c.a}else{var v,k=null!=(v=p(_))?v:g,C=g;b(k)?C=k:s.nativeColor=k,s.r=new f.default(C.r),s.g=new f.default(C.g),s.b=new f.default(C.b),s.a=new f.default(C.a)}return null!=i&&i.useNativeDriver&&s.__makeNative(),s}return(0,s.default)(r,t),(0,i.default)(r,[{key:"setValue",value:function(t){var e,i=this,a=!1;if(this.__isNative){var n=this.__getNativeTag();v.setWaitingForIdentifier(n.toString())}var r=null!=(e=p(t))?e:g;if(this._withSuspendedCallbacks((function(){if(b(r)){var t=r;i.r.setValue(t.r),i.g.setValue(t.g),i.b.setValue(t.b),i.a.setValue(t.a),null!=i.nativeColor&&(i.nativeColor=null,a=!0)}else{var e=r;i.nativeColor!==e&&(i.nativeColor=e,a=!0)}})),this.__isNative){var s=this.__getNativeTag();a&&v.updateAnimatedNodeConfig(s,this.__getNativeConfig()),v.unsetWaitingForIdentifier(s.toString())}else(0,f.flushValue)(this);this.__callListeners(this.__getValue())}},{key:"setOffset",value:function(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}},{key:"flattenOffset",value:function(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}},{key:"extractOffset",value:function(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}},{key:"stopAnimation",value:function(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}},{key:"__getValue",value:function(){return null!=this.nativeColor?this.nativeColor:`rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`}},{key:"__attach",value:function(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),c(r,"__attach",this,3)([])}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),c(r,"__detach",this,3)([])}},{key:"_withSuspendedCallbacks",value:function(t){this._suspendCallbacks++,t(),this._suspendCallbacks--}},{key:"__callListeners",value:function(t){0===this._suspendCallbacks&&c(r,"__callListeners",this,3)([t])}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),c(r,"__makeNative",this,3)([t])}},{key:"__getNativeConfig",value:function(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor}}}])})(o.default)}),312,[2,6,7,11,13,34,14,191,290,304,300,193]); +__d((function(g,r,i,a,m,e,d){'use strict';function n(n){return 3.62*(n-30)+194}function t(n){return 3*(n-8)+25}Object.defineProperty(e,"__esModule",{value:!0}),e.fromBouncinessAndSpeed=function(o,u){function f(n,t,o){return(n-t)/(o-t)}function c(n,t,o){return t+n*(o-t)}function s(n,t,o){return n*o+(1-n)*t}function p(n){return 44e-6*Math.pow(n,3)-.006*Math.pow(n,2)+.36*n+2}function M(n){return 45e-8*Math.pow(n,3)-332e-6*Math.pow(n,2)+.1078*n+5.84}var h=f(o/1.7,0,20);h=c(h,0,.8);var w=c(f(u/1.7,0,20),.5,200),v=(_=h,O=w,l=O<=18?(b=O,7e-4*Math.pow(b,3)-.031*Math.pow(b,2)+.64*b+1.28):O>18&&O<=44?p(O):M(O),A=.01,s(2*_-_*_,l,A));var _,l,A;var O,b;return{stiffness:n(w),damping:t(v)}},e.fromOrigamiTensionAndFriction=function(o,u){return{stiffness:n(o),damping:t(u)}}}),313,[]); +__d((function(g,_r,i,a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;t(_r(d[1]));var e,n=t(_r(d[2])),o=t(_r(d[3])),r=t(_r(d[4])),u=t(_r(d[5])),s=t(_r(d[6])),_=t(_r(d[7])),l=t(_r(d[8])),f=(t(_r(d[9])),t(_r(d[10])));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function v(){if(!e){var t=_r(d[11]).default;e=t.inOut(t.ease)}return e}_e.default=(function(t){function e(t){var o,s,_,f,c,p,y,V,N;return(0,n.default)(this,e),y=this,V=e,V=(0,u.default)(V),(p=(0,r.default)(y,h()?Reflect.construct(V,N||[],(0,u.default)(y).constructor):V.apply(y,N)))._toValue=t.toValue,p._easing=null!=(o=t.easing)?o:v(),p._duration=null!=(s=t.duration)?s:500,p._delay=null!=(_=t.delay)?_:0,p.__iterations=null!=(f=t.iterations)?f:1,p._useNativeDriver=l.default.shouldUseNativeDriver(t),p._platformConfig=t.platformConfig,p.__isInteraction=null!=(c=t.isInteraction)?c:!p._useNativeDriver,p}return(0,_.default)(e,t),(0,o.default)(e,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){var t,n,o,r,_;(t=e,n="stop",o=this,r=3,_=(0,s.default)((0,u.default)(1&r?t.prototype:t),n,o),2&r&&"function"==typeof _?function(t){return _.apply(o,t)}:_)([]),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}])})(f.default)}),314,[2,75,6,7,11,13,34,14,290,312,296,308]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var l=o.forwardRef((function(o,l){var i=(0,u.default)(o),s=(0,t.default)(i,2),c=s[0],p=s[1],y=(0,n.default)(p,l),v=c.passthroughAnimatedPropExplicitValues,_=c.style,O=null==v?void 0:v.style,j=(0,a.useMemo)((function(){return(0,r.default)(_,O)}),[O,_]);return(0,f.jsx)(e,Object.assign({},c,v,{style:j,ref:y}))}));return l.displayName=`Animated(${e.displayName||'Anonymous'})`,l};var t=e(_r(d[1])),r=e(_r(d[2])),n=(e(_r(d[3])),e(_r(d[4]))),u=e(_r(d[5])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),o=a,f=_r(d[7]);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}}),315,[2,44,226,183,316,317,16,223]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return E},event:n.default.event,createAnimatedComponent:u.default,attachNativeEvent:r(d[8]).attachNativeEvent,forkEvent:n.default.forkEvent,unforkEvent:n.default.unforkEvent,Event:r(d[8]).AnimatedEvent}}),327,[2,288,315,312,307,298,304,310,303]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}u.default=e,r&&r.set(e,u)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.default=(0,r.default)(t.default)}),328,[2,329,315,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),n=e(_r(d[2])),i=e(_r(d[3])),r=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var l=r?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i})(_r(d[7])),a=e(_r(d[8])),u=_r(d[9]),c=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var h=_r(d[10]);function v(e){return null!=e?e:1}function C(e){return'number'==typeof Object(e).length}var y=(function(e){function f(e){var t,i,l,s;return(0,n.default)(this,f),i=this,l=f,s=[e],l=(0,o.default)(l),(t=(0,r.default)(i,p()?Reflect.construct(l,s||[],(0,o.default)(i).constructor):l.apply(i,s)))._virtualizedListPairs=[],t._captureRef=function(e){t._listRef=e},t._getItem=function(e,n){var i=v(t.props.numColumns);if(i>1){for(var r=[],o=0;o1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var i,r=v(t.props.numColumns),o=null!=(i=t.props.keyExtractor)?i:_r(d[11]).keyExtractor;return r>1?(_r(d[12])(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map((function(e,t){return o(e,n*r+t)})).join(':')):o(e,n)},t._renderer=function(e,t,n,i,r){var o=v(i),l=function(n){return e?(0,u.jsx)(e,Object.assign({},n)):t?t(n):null},s=function(e){if(o>1){var t=e.item,i=e.index;return _r(d[12])(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,u.jsx)(_r(d[13]),{style:_r(d[14]).compose(b.row,n),children:t.map((function(t,n){var r=l({item:t,index:i*o+n,separators:e.separators});return null!=r?(0,u.jsx)(h.Fragment,{children:r},n):null}))})}return l(e)};return e?{ListItemComponent:s}:{renderItem:s}},t._memoizedRenderer=(0,a.default)(t._renderer),t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map((function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}})):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged((function(){var e;return _r(d[12])(t.props.onViewableItemsChanged,"Changing the nullability of onViewableItemsChanged is not supported. Once a function or null is supplied that cannot be changed."),(e=t.props).onViewableItemsChanged.apply(e,arguments)}))}),t}return(0,l.default)(f,e),(0,i.default)(f,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){_r(d[12])(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),_r(d[12])(null==e.onViewableItemsChanged==(null==this.props.onViewableItemsChanged),'Changing onViewableItemsChanged nullability on the fly is not supported'),_r(d[12])(!_r(d[15])(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),_r(d[12])(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,i=e.horizontal,r=e.columnWrapperStyle,o=e.onViewableItemsChanged,l=e.viewabilityConfigCallbackPairs,s=v(this.props.numColumns);_r(d[12])(!t&&!n,'FlatList does not support custom data formats.'),s>1?_r(d[12])(!i,'numColumns does not support horizontal.'):_r(d[12])(!r,'columnWrapperStyle not supported for single column lists'),_r(d[12])(!(o&&l),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,i=v(this.props.numColumns),r=null!=(n=this.props.keyExtractor)?n:_r(d[11]).keyExtractor;t.item.forEach((function(n,o){_r(d[12])(null!=t.index,'Missing index!');var l=t.index*i+o;e.push(Object.assign({},t,{item:n,key:r(n,l),index:l}))}))}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var i=v(t.props.numColumns);if(e)if(i>1){var r=[],o=[];n.viewableItems.forEach((function(e){return t._pushMultiColumnViewable(o,e)})),n.changed.forEach((function(e){return t._pushMultiColumnViewable(r,e)})),e({viewableItems:o,changed:r})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,i=n.numColumns,r=n.columnWrapperStyle,o=n.removeClippedSubviews,l=n.strictMode,a=void 0!==l&&l,f=(0,t.default)(n,c),p=a?this._memoizedRenderer:this._renderer;return(0,u.jsx)(_r(d[11]).VirtualizedList,Object.assign({},f,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=o,s.shouldUseRemoveClippedSubviewsAsDefaultOnIOS(),null==e||e)},p(this.props.ListItemComponent,this.props.renderItem,r,i,this.props.extraData)))}}])})(h.PureComponent),b=_r(d[14]).create({row:{flexDirection:'row'}});m.exports=y}),329,[2,4,6,7,11,13,14,112,330,223,16,331,31,183,225,238]); +__d((function(g,r,_i2,a,m,e,d){'use strict';var t=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function n(n,u){if(n.length!==u.length)return!1;for(var i=0;i1?'after':x<-1?'before':'none',_=Math.max(0,w-.5*k),j=Math.max(0,C+.5*k);if(v.getCellMetricsApprox(h-1,t).offset*y<_)return{first:Math.max(0,h-1-o),last:h-1};var L=f([_,w,C,j],t,v,y),S=(0,n.default)(L,4),A=S[0],E=S[1],I=S[2],R=S[3];A=null==A?0:A,E=null==E?Math.max(0,A):E,R=null==R?h-1:R,I=null==I?Math.min(R,E+o-1):I;var z={first:E,last:I},B=l(u,z);for(;!(E<=A&&I>=R);){var F=B>=o,J=E<=u.first||E>u.last,N=E>A&&(!F||!J),P=I>=u.last||I=E&&E>=0&&I=A&&I<=R&&E<=z.first&&I>=z.last))throw new Error('Bad window calculation '+JSON.stringify({first:E,last:I,itemCount:h,overscanFirst:A,overscanLast:R,visible:z}));return{first:E,last:I}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)},e.newRangeCount=l;var n=t(r(d[1]));function f(t,n,f){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=n.getItemCount(n.data),s=[],u=0;up)){s[u]=M;break}c=M+1}}return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}}),332,[2,44]); +__d((function(g,_r,_i2,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),i=e(_r(d[2])),n=e(_r(d[3])),r=e(_r(d[4])),o=e(_r(d[5])),s=e(_r(d[6])),l=e(_r(d[7])),a=e(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=e(_r(d[11])),f=e(_r(d[12])),p=e(_r(d[13])),_=e(_r(d[14])),v=e(_r(d[15])),y=e(_r(d[16])),C=e(_r(d[17])),S=e(_r(d[18])),L=e(_r(d[19])),b=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=R(t);if(i&&i.has(e))return i.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,i&&i.set(e,n),n})(_r(d[20])),M=_r(d[21]),I=_r(d[22]),w=["onContentSizeChange"];function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(R=function(e){return e?i:t})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}var k=!1,T='';function V(e,t){return e*t/2}var O=(function(e){function v(e){var t,i,o,a,u,C,L;if((0,r.default)(this,v),u=this,C=v,L=[e],C=(0,l.default)(C),(a=(0,s.default)(u,x()?Reflect.construct(C,L||[],(0,l.default)(u).constructor):C.apply(u,L)))._getScrollMetrics=function(){return a._scrollMetrics},a._getOutermostParentListRef=function(){return a._isNestedWithSameOrientation()?a.context.getOutermostParentListRef():a},a._registerAsNestedChild=function(e){a._nestedChildLists.add(e.ref,e.cellKey),a._hasInteracted&&e.ref.recordInteraction()},a._unregisterAsNestedChild=function(e){a._nestedChildLists.remove(e.ref)},a._onUpdateSeparators=function(e,t){e.forEach((function(e){var i=null!=e&&a._cellRefs[e];i&&i.updateSeparatorProps(t)}))},a._getSpacerKey=function(e){return e?'height':'width'},a._cellRefs={},a._listMetrics=new _.default,a._footerLength=0,a._hasTriggeredInitialScrollToIndex=!1,a._hasInteracted=!1,a._hasMore=!1,a._hasWarned={},a._headerLength=0,a._hiPriInProgress=!1,a._indicesToKeys=new Map,a._lastFocusedCellKey=null,a._nestedChildLists=new f.default,a._offsetFromParentVirtualizedList=0,a._pendingViewabilityUpdate=!1,a._prevParentOffset=0,a._scrollMetrics={dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},a._scrollRef=null,a._sentStartForContentLength=0,a._sentEndForContentLength=0,a._viewabilityTuples=[],a._captureScrollRef=function(e){a._scrollRef=e},a._defaultRenderScrollComponent=function(e){var t,i=e.onRefresh;if(a._isNestedWithSameOrientation()){e.onContentSizeChange;var r=(0,n.default)(e,w);return(0,I.jsx)(M.View,Object.assign({},r))}return i?((0,S.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!=(t=e.refreshing)?t:'undefined')+'`'),(0,I.jsx)(M.ScrollView,Object.assign({},e,{refreshControl:null==e.refreshControl?(0,I.jsx)(M.RefreshControl,{refreshing:e.refreshing,onRefresh:i,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):(0,I.jsx)(M.ScrollView,Object.assign({},e))},a._onCellLayout=function(e,t,i){a._listMetrics.notifyCellLayout({cellIndex:i,cellKey:t,layout:e.nativeEvent.layout,orientation:a._orientation()})&&a._scheduleCellsToRenderUpdate(),a._triggerRemeasureForChildListsInCell(t),a._computeBlankness(),a._updateViewableItems(a.props,a.state.cellsAroundViewport)},a._onCellFocusCapture=function(e){a._lastFocusedCellKey=e,a._updateCellsToRender()},a._onCellUnmount=function(e){delete a._cellRefs[e],a._listMetrics.notifyCellUnmounted(e)},a._onLayout=function(e){a._isNestedWithSameOrientation()?a.measureLayoutRelativeToContainingList():a._scrollMetrics.visibleLength=a._selectLength(e.nativeEvent.layout),a.props.onLayout&&a.props.onLayout(e),a._scheduleCellsToRenderUpdate(),a._maybeCallOnEdgeReached()},a._onLayoutEmpty=function(e){a.props.onLayout&&a.props.onLayout(e)},a._onLayoutFooter=function(e){a._triggerRemeasureForChildListsInCell(a._getFooterCellKey()),a._footerLength=a._selectLength(e.nativeEvent.layout)},a._onLayoutHeader=function(e){a._headerLength=a._selectLength(e.nativeEvent.layout)},a._onContentSizeChange=function(e,t){a._listMetrics.notifyListContentLayout({layout:{width:e,height:t},orientation:a._orientation()}),a._maybeScrollToInitialScrollIndex(e,t),a.props.onContentSizeChange&&a.props.onContentSizeChange(e,t),a._scheduleCellsToRenderUpdate(),a._maybeCallOnEdgeReached()},a._convertParentScrollMetrics=function(e){var t=e.offset-a._offsetFromParentVirtualizedList,i=e.visibleLength,n=t-a._scrollMetrics.offset;return{visibleLength:i,contentLength:a._listMetrics.getContentLength(),offset:t,dOffset:n}},a._onScroll=function(e){a._nestedChildLists.forEach((function(t){t._onScroll(e)})),a.props.onScroll&&a.props.onScroll(e);var t=e.timeStamp,i=a._selectLength(e.nativeEvent.layoutMeasurement),n=a._selectLength(e.nativeEvent.contentSize),r=a._offsetFromScrollEvent(e),o=r-a._scrollMetrics.offset;if(a._isNestedWithSameOrientation()){if(0===a._listMetrics.getContentLength())return;var s=a._convertParentScrollMetrics({visibleLength:i,offset:r});i=s.visibleLength,n=s.contentLength,r=s.offset,o=s.dOffset}var l=a._scrollMetrics.timestamp?Math.max(1,t-a._scrollMetrics.timestamp):1,c=o/l;l>500&&a._scrollMetrics.dt>500&&n>5*i&&!a._hasWarned.perf&&((0,h.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:l,prevDt:a._scrollMetrics.dt,contentLength:n}),a._hasWarned.perf=!0);var u=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;a._scrollMetrics={dt:l,dOffset:o,offset:r,timestamp:t,velocity:c,visibleLength:i,zoomScale:u},a.state.pendingScrollUpdateCount>0&&a.setState((function(e){return{pendingScrollUpdateCount:e.pendingScrollUpdateCount-1}})),a._updateViewableItems(a.props,a.state.cellsAroundViewport),a.props&&(a._maybeCallOnEdgeReached(),0!==c&&a._fillRateHelper.activate(),a._computeBlankness(),a._scheduleCellsToRenderUpdate())},a._onScrollBeginDrag=function(e){a._nestedChildLists.forEach((function(t){t._onScrollBeginDrag(e)})),a._viewabilityTuples.forEach((function(e){e.viewabilityHelper.recordInteraction()})),a._hasInteracted=!0,a.props.onScrollBeginDrag&&a.props.onScrollBeginDrag(e)},a._onScrollEndDrag=function(e){a._nestedChildLists.forEach((function(t){t._onScrollEndDrag(e)}));var t=e.nativeEvent.velocity;t&&(a._scrollMetrics.velocity=a._selectOffset(t)),a._computeBlankness(),a.props.onScrollEndDrag&&a.props.onScrollEndDrag(e)},a._onMomentumScrollBegin=function(e){a._nestedChildLists.forEach((function(t){t._onMomentumScrollBegin(e)})),a.props.onMomentumScrollBegin&&a.props.onMomentumScrollBegin(e)},a._onMomentumScrollEnd=function(e){a._nestedChildLists.forEach((function(t){t._onMomentumScrollEnd(e)})),a._scrollMetrics.velocity=0,a._computeBlankness(),a.props.onMomentumScrollEnd&&a.props.onMomentumScrollEnd(e)},a._updateCellsToRender=function(){a._updateViewableItems(a.props,a.state.cellsAroundViewport),a.setState((function(e,t){var i=a._adjustCellsAroundViewport(t,e.cellsAroundViewport,e.pendingScrollUpdateCount),n=v._createRenderMask(t,i,a._getNonViewportRenderRegions(t));return i.first===e.cellsAroundViewport.first&&i.last===e.cellsAroundViewport.last&&n.equals(e.renderMask)?null:{cellsAroundViewport:i,renderMask:n}}))},a._createViewToken=function(e,t,i){var n=i.data,r=(0,i.getItem)(n,e);return{index:e,item:r,key:v._keyExtractor(r,e,i),isViewable:t}},a._getNonViewportRenderRegions=function(e){if(!a._lastFocusedCellKey||!a._cellRefs[a._lastFocusedCellKey])return[];var t=a._cellRefs[a._lastFocusedCellKey].props.index,i=e.getItemCount(e.data);if(t>=i||v._getItemKey(e,t)!==a._lastFocusedCellKey)return[];for(var n=t,r=0,o=n-1;o>=0&&rV?v._getItemKey(a.props,V):null,pendingScrollUpdateCount:null!=a.props.initialScrollIndex&&a.props.initialScrollIndex>0?1:0},a}return(0,a.default)(v,e),(0,o.default)(v,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,i=this.props.getItemCount(this.props.data)-1;if(!(i<0)){var n=this._listMetrics.getCellMetricsApprox(i,this.props),r=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);this.scrollToOffset({animated:t,offset:r})}}},{key:"scrollToIndex",value:function(e){var t=this.props,i=t.data,n=t.getItemCount,r=t.getItemLayout,o=t.onScrollToIndexFailed,s=e.animated,l=e.index,a=e.viewOffset,c=e.viewPosition;if((0,S.default)(l>=0,`scrollToIndex out of range: requested index ${l} but minimum is 0`),(0,S.default)(n(i)>=1,`scrollToIndex out of range: item length ${n(i)} but minimum is 1`),(0,S.default)(lthis._listMetrics.getHighestMeasuredCellIndex())return(0,S.default)(!!o,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void o({averageItemLength:this._listMetrics.getAverageCellLength(),highestMeasuredFrameIndex:this._listMetrics.getHighestMeasuredCellIndex(),index:l});var u=this._listMetrics.getCellMetricsApprox(Math.floor(l),this.props),h=Math.max(0,this._listMetrics.getCellOffsetApprox(l,this.props)-(c||0)*(this._scrollMetrics.visibleLength-u.length))-(a||0);this.scrollToOffset({offset:h,animated:s})}},{key:"scrollToItem",value:function(e){for(var t=e.item,i=this.props,n=i.data,r=i.getItem,o=(0,i.getItemCount)(n),s=0;s0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,S.default)(n,'VirtualizedList: The "getItemCount" prop must be provided');var s=n(r);null==o||this._hasTriggeredInitialScrollToIndex||!(o<0||s>0&&o>=s)||this._hasWarned.initialScrollIndex||(console.warn(`initialScrollIndex "${o}" is not valid (list has ${s} items)`),this._hasWarned.initialScrollIndex=!0)}},{key:"_adjustCellsAroundViewport",value:function(e,t,i){var n,r=e.data,o=e.getItemCount,s=(0,_r(d[23]).onEndReachedThresholdOrDefault)(e.onEndReachedThreshold),l=this._scrollMetrics,a=l.offset,c=l.visibleLength,u=this._listMetrics.getContentLength(),h=u-c-a;if(c<=0||u<=0)return t.last>=o(r)?v._constrainToItemCount(t,e):t;if(e.disableVirtualization){var f=h0)return t.last>=o(r)?v._constrainToItemCount(t,e):t;n=(0,_r(d[24]).computeWindowedRenderLimits)(e,(0,_r(d[23]).maxToRenderPerBatchOrDefault)(e.maxToRenderPerBatch),(0,_r(d[23]).windowSizeOrDefault)(e.windowSize),t,this._listMetrics,this._scrollMetrics),(0,S.default)(n.last0){var p=this._findFirstChildWithMore(n.first,n.last);n.last=null!=p?p:n.last}return n}},{key:"_findFirstChildWithMore",value:function(e,t){for(var i=e;i<=t;i++){var n=this._indicesToKeys.get(i);if(null!=n&&this._nestedChildLists.anyInCell(n,(function(e){return e.hasMore()})))return i}return null}},{key:"componentDidMount",value:function(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey})}},{key:"componentWillUnmount",value:function(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),this._updateCellsToRenderBatcher.dispose({abort:!0}),this._viewabilityTuples.forEach((function(e){e.viewabilityHelper.dispose()})),this._fillRateHelper.deactivateAndFlush()}},{key:"_pushCells",value:function(e,t,i,n,r,o){var s,l=this,a=this.props,c=a.CellRendererComponent,u=a.ItemSeparatorComponent,h=a.ListHeaderComponent,f=a.ListItemComponent,p=a.data,_=a.debug,y=a.getItem,S=a.getItemCount,L=a.getItemLayout,b=a.horizontal,M=a.renderItem,w=h?1:0,R=S(p)-1;r=Math.min(R,r);for(var x=function(){var n=y(p,k),r=v._keyExtractor(n,k,l.props);l._indicesToKeys.set(k,r),i.has(k+w)&&t.push(e.length);var a=null==L||_||l._fillRateHelper.enabled();e.push((0,I.jsx)(C.default,Object.assign({CellRendererComponent:c,ItemSeparatorComponent:k0){k=!1,T='';var S=this._getSpacerKey(!c),L=this.state.renderMask.enumerateRegions(),w=L[L.length-1],R=null!=w&&w.isSpacer?w:null;for(var x of L)if(x.isSpacer){if(this.props.disableVirtualization)continue;var V=x===R&&!this.props.getItemLayout?(0,u.default)(x.first-1,x.last,this._listMetrics.getHighestMeasuredCellIndex()):x.last,O=this._listMetrics.getCellMetricsApprox(x.first,this.props),z=this._listMetrics.getCellMetricsApprox(V,this.props),P=z.offset+z.length-O.offset;f.push((0,I.jsx)(M.View,{style:(0,i.default)({},S,P)},`$spacer-${x.first}`))}else this._pushCells(f,_,p,x.first,x.last,h);!this._hasWarned.keys&&k&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",T),this._hasWarned.keys=!0)}if(o){var F=b.isValidElement(o)?o:(0,I.jsx)(o,{});f.push((0,I.jsx)(_r(d[25]).VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),children:(0,I.jsx)(M.View,{onLayout:this._onLayoutFooter,style:M.StyleSheet.compose(h,this.props.ListFooterComponentStyle),children:F})},"$footer"))}var A=Object.assign({},this.props,{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:null!=(e=this.props.scrollEventThrottle)?e:1e-4,invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:_,style:h?[h,this.props.style]:this.props.style,isInvertedVirtualizedList:this.props.inverted,maintainVisibleContentPosition:null!=this.props.maintainVisibleContentPosition?Object.assign({},this.props.maintainVisibleContentPosition,{minIndexForVisible:this.props.maintainVisibleContentPosition.minIndexForVisible+(this.props.ListHeaderComponent?1:0)}):void 0});this._hasMore=this.state.cellsAroundViewport.last0)){var l=this._scrollMetrics,a=l.visibleLength,c=l.offset,u=c,h=this._listMetrics.getContentLength()-a-c;u<.001&&(u=0),h<.001&&(h=0);var f=u<=(null!=r?r*a:2),p=h<=(null!=s?s*a:2);o&&this.state.cellsAroundViewport.last===i(t)-1&&p&&this._listMetrics.getContentLength()!==this._sentEndForContentLength&&(this._sentEndForContentLength=this._listMetrics.getContentLength(),o({distanceFromEnd:h})),null!=n&&0===this.state.cellsAroundViewport.first&&f&&this._listMetrics.getContentLength()!==this._sentStartForContentLength&&(this._sentStartForContentLength=this._listMetrics.getContentLength(),n({distanceFromStart:u})),f||(this._sentStartForContentLength=0),p||(this._sentEndForContentLength=0)}}},{key:"_maybeScrollToInitialScrollIndex",value:function(e,t){e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex0||null!=this.props.getItemLayout)&&this._shouldRenderWithPriority()&&!this._hiPriInProgress)return this._hiPriInProgress=!0,this._updateCellsToRenderBatcher.dispose({abort:!0}),void this._updateCellsToRender();this._updateCellsToRenderBatcher.schedule()}},{key:"_shouldRenderWithPriority",value:function(){var e=this.state.cellsAroundViewport,t=e.first,i=e.last,n=this._scrollMetrics,r=n.offset,o=n.visibleLength,s=n.velocity,l=this.props.getItemCount(this.props.data),a=!1,c=(0,_r(d[23]).onStartReachedThresholdOrDefault)(this.props.onStartReachedThreshold),u=(0,_r(d[23]).onEndReachedThresholdOrDefault)(this.props.onEndReachedThreshold);if(t>0){var h=r-this._listMetrics.getCellMetricsApprox(t,this.props).offset;a=h<0||s<-2&&h=0&&i2&&f0||this._viewabilityTuples.forEach((function(n){n.viewabilityHelper.onUpdate(e,i._scrollMetrics.offset,i._scrollMetrics.visibleLength,i._listMetrics,i._createViewToken,n.onViewableItemsChanged,t)}))}}],[{key:"_findItemIndexWithKey",value:function(e,t,i){var n=e.getItemCount(e.data);if(null!=i&&i>=0&&i=0&&i.last>=i.first-1&&i.last0){var s=[i].concat((0,t.default)(null!=n?n:[]));for(var l of s)o.addCells(l);if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var a=v._initialRenderRegion(e);o.addCells(a)}var c=new Set(e.stickyHeaderIndices);v._ensureClosestStickyHeader(e,c,o,i.first)}return o}},{key:"_initialRenderRegion",value:function(e){var t,i=e.getItemCount(e.data),n=Math.max(0,Math.min(i-1,Math.floor(null!=(t=e.initialScrollIndex)?t:0)));return{first:n,last:Math.min(i,n+(0,_r(d[23]).initialNumToRenderOrDefault)(e.initialNumToRender))-1}}},{key:"_ensureClosestStickyHeader",value:function(e,t,i,n){for(var r=e.ListHeaderComponent?1:0,o=n-1;o>=0;o--)if(t.has(o+r)){i.addCells({first:o,last:o});break}}},{key:"getDerivedStateFromProps",value:function(e,t){var i,n,r=e.getItemCount(e.data);if(r===t.renderMask.numCells())return t;var o=null,s=t.firstVisibleItemKey,l=null!=(i=null==(n=e.maintainVisibleContentPosition)?void 0:n.minIndexForVisible)?i:0,a=e.getItemCount(e.data)>l?v._getItemKey(e,l):null;if(null!=e.maintainVisibleContentPosition&&null!=s&&null!=a)if(a!==s){var c=r-t.renderMask.numCells()+l,u=v._findItemIndexWithKey(e,s,c);o=null!=u?u-l:null}else o=null;var h=v._constrainToItemCount(null!=o?{first:t.cellsAroundViewport.first+o,last:t.cellsAroundViewport.last+o}:t.cellsAroundViewport,e);return{cellsAroundViewport:h,renderMask:v._createRenderMask(e,h),firstVisibleItemKey:a,pendingScrollUpdateCount:null!=o?t.pendingScrollUpdateCount+1:t.pendingScrollUpdateCount}}},{key:"_constrainToItemCount",value:function(e,t){var i=t.getItemCount(t.data)-1,n=(0,_r(d[23]).maxToRenderPerBatchOrDefault)(t.maxToRenderPerBatch),r=Math.max(0,i-n);return{first:(0,u.default)(0,e.first,r),last:Math.min(i,e.last)}}},{key:"_keyExtractor",value:function(e,t,i){if(null!=i.keyExtractor)return i.keyExtractor(e,t);var n=(0,_r(d[24]).keyExtractor)(e,t);return n===String(t)&&(k=!0,e.type&&e.type.displayName&&(T=e.type.displayName)),n}}])})(v.default);O.contextType=_r(d[25]).VirtualizedListContext;var E=M.StyleSheet.create({verticallyInverted:'android'===M.Platform.OS?{transform:[{scale:-1}]}:{transform:[{scaleY:-1}]},horizontallyInverted:{transform:[{scaleX:-1}]},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}});m.exports=O}),333,[2,22,197,4,6,7,11,13,14,334,335,336,337,338,339,340,341,342,31,51,16,18,223,344,332,343,345]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),l=r(d[2]).InteractionManager,s=(function(){return n((function n(l,s){t(this,n),this._delay=s,this._callback=l}),[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout((function(){t._taskHandle=l.runAfterInteractions((function(){t._taskHandle=null,t._callback()}))}),this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}])})();m.exports=s}),334,[6,7,18]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){return nu?u:n}}),335,[]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(){var n;return(n=console).log.apply(n,arguments)}}),336,[]); +__d((function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[1])),t=l(r(d[2])),o=l(r(d[3]));e.default=(function(){return(0,t.default)((function l(){(0,n.default)(this,l),this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map}),[{key:"add",value:function(l,n){var t;(0,o.default)(!this._childrenToCellKey.has(l),'Trying to add already present child list');var h=null!=(t=this._cellKeyToChildren.get(n))?t:new Set;h.add(l),this._cellKeyToChildren.set(n,h),this._childrenToCellKey.set(l,n)}},{key:"remove",value:function(l){var n=this._childrenToCellKey.get(l);(0,o.default)(null!=n,'Trying to remove non-present child list'),this._childrenToCellKey.delete(l);var t=this._cellKeyToChildren.get(n);(0,o.default)(t,'_cellKeyToChildren should contain cellKey'),t.delete(l),0===t.size&&this._cellKeyToChildren.delete(n)}},{key:"forEach",value:function(l){for(var n of this._cellKeyToChildren.values())for(var t of n)l(t)}},{key:"forEachInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)n(h)}},{key:"anyInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)if(n(h))return!0;return!1}},{key:"size",value:function(){return this._childrenToCellKey.size}}])})()}),337,[2,6,7,31]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),l=(t(r(d[3])),(0,s.default)((function t(){(0,n.default)(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}))),_=[],o=10,h=null,u=(function(){return(0,s.default)((function t(s){(0,n.default)(this,t),this._anyBlankStartTime=null,this._enabled=!1,this._info=new l,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._listMetrics=s,this._enabled=(h||0)>Math.random(),this._resetData()}),[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(h,Math.max(0,p.offset-_)));for(var y=0,b=s.last,M=this._listMetrics.getCellMetrics(b,t);b>=s.first&&(!M||!M.isMounted);)M=this._listMetrics.getCellMetrics(b,t),b--;if(M&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=S,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new l,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===h&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),_.push(t),{remove:function(){_=_.filter((function(s){return t!==s}))}}}},{key:"setSampleRate",value:function(t){h=t}},{key:"setMinSampleCount",value:function(t){o=t}}])})();m.exports=u}),338,[2,7,6,339]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),s=t(r(d[3]));e.default=(function(){return(0,l.default)((function t(){(0,n.default)(this,t),this._averageCellLength=0,this._cellMetrics=new Map,this._highestMeasuredCellIndex=0,this._measuredCellsLength=0,this._measuredCellsCount=0,this._orientation={horizontal:!1,rtl:!1}}),[{key:"notifyCellLayout",value:function(t){var n=t.cellIndex,l=t.cellKey,s=t.orientation,o=t.layout;this._invalidateIfOrientationChanged(s);var h={index:n,length:this._selectLength(o),isMounted:!0,offset:this.flowRelativeOffset(o)},u=this._cellMetrics.get(l);if(u&&h.offset===u.offset&&h.length===u.length)return u.isMounted=!0,!1;if(u){var f=h.length-u.length;this._measuredCellsLength+=f}else this._measuredCellsLength+=h.length,this._measuredCellsCount+=1;return this._averageCellLength=this._measuredCellsLength/this._measuredCellsCount,this._cellMetrics.set(l,h),this._highestMeasuredCellIndex=Math.max(this._highestMeasuredCellIndex,n),!0}},{key:"notifyCellUnmounted",value:function(t){var n=this._cellMetrics.get(t);n&&(n.isMounted=!1)}},{key:"notifyListContentLayout",value:function(t){var n=t.orientation,l=t.layout;this._invalidateIfOrientationChanged(n),this._contentLength=this._selectLength(l)}},{key:"getAverageCellLength",value:function(){return this._averageCellLength}},{key:"getHighestMeasuredCellIndex",value:function(){return this._highestMeasuredCellIndex}},{key:"getCellMetricsApprox",value:function(t,n){var l=this.getCellMetrics(t,n);if(l&&l.index===t)return l;var o=n.data,h=n.getItemCount;return(0,s.default)(t>=0&&t=0&&t0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};(0,s.default)(this,t),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=n}),[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,o,l){var c=t.getItemCount(t.data),h=this._config,f=h.itemVisiblePercentThreshold,v=h.viewAreaCoveragePercentThreshold,_=null!=v,w=_?v:f;r(d[5])(null!=w&&null!=f!=(null!=v),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var I=[];if(0===c)return I;var b=-1,y=l||{first:0,last:c-1},p=y.first,M=y.last;if(M>=c)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:l,itemCount:c})),[];for(var C=p;C<=M;C++){var T=o.getCellMetrics(C,t);if(T){var k=Math.floor(T.offset-n),V=Math.floor(k+T.length);if(k0)b=C,u(_,w,k,V,s,T.length)&&I.push(C);else if(b>=0)break}}return I}},{key:"onUpdate",value:function(t,n,s,o,l,u,c){var h=this,f=t.getItemCount(t.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==f&&o.getCellMetrics(0,t)){var v=[];if(f&&(v=this.computeViewableItems(t,n,s,o,c)),this._viewableIndices.length!==v.length||!this._viewableIndices.every((function(t,n){return t===v[n]})))if(this._viewableIndices=v,this._config.minimumViewTime){var _=setTimeout((function(){h._timers.delete(_),h._onUpdateSync(t,v,u,l)}),this._config.minimumViewTime);this._timers.add(_)}else this._onUpdateSync(t,v,u,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(t,s,o,l){var u=this;s=s.filter((function(t){return u._viewableIndices.includes(t)}));var c=this._viewableItems,h=new Map(s.map((function(n){var s=l(n,!0,t);return[s.key,s]}))),f=[];for(var v of h){var _=(0,n.default)(v,2),w=_[0],I=_[1];c.has(w)||f.push(I)}for(var b of c){var y=(0,n.default)(b,2),p=y[0],M=y[1];h.has(p)||f.push(Object.assign({},M,{isViewable:!1}))}f.length>0&&(this._viewableItems=h,o({viewableItems:Array.from(h.values()),changed:f,viewabilityConfig:this._config}))}}])})());function u(t,n,s,o,l,u){if(h(s,o,l))return!0;var f=c(s,o,l);return 100*(t?f/l:f/u)>=n}function c(t,n,s){var o=Math.min(n,s)-Math.max(t,0);return Math.max(0,o)}function h(t,n,s){return t>=0&&n<=s&&n>t}m.exports=l}),341,[2,44,6,7,339,31]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),l=e(_r(d[6])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[7])),i=_r(d[8]),p=_r(d[9]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}_e.default=(function(e){function u(){var e,r,a,l;(0,t.default)(this,u);for(var s=arguments.length,i=new Array(s),p=0;p=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=t,this._regions=0===t?[]:[{first:0,last:t-1,isSpacer:!0}]}),[{key:"enumerateRegions",value:function(){return this._regions}},{key:"addCells",value:function(s){var l;if((0,f.default)(s.first>=0&&s.first=-1&&s.last=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.lastS.last&&(v.isSpacer?k.push({first:S.last+1,last:v.last,isSpacer:!0}):S.last=v.last);var y=[].concat(C,[S],k),R=p-c+1;(l=this._regions).splice.apply(l,[c,R].concat((0,t.default)(y)))}}}},{key:"numCells",value:function(){return this._numCells}},{key:"equals",value:function(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every((function(t,i){return t.first===s._regions[i].first&&t.last===s._regions[i].last&&t.isSpacer===s._regions[i].isSpacer}))}},{key:"_findRegion",value:function(s){for(var t=0,i=this._regions.length-1;t<=i;){var l=Math.floor((t+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];sn.last&&(t=l+1)}(0,f.default)(!1,`A region was not found containing cellIdx ${s}`)}}])})()}),345,[2,22,44,6,7,31]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),a=e(_r(d[6])),l=e(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[10])),p=_r(d[11]),f=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var S=(function(e){function t(){var e,n,i,l;(0,r.default)(this,t);for(var s=arguments.length,c=new Array(s),f=0;f0&&this.props.stickySectionHeadersEnabled)r+=i.__getListMetrics().getCellMetricsApprox(t-e.itemIndex,i.props).length;var o=Object.assign({},e,{viewOffset:r,index:t});this._listRef.scrollToIndex(o)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,r=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,f)),i=this.props.ListHeaderComponent?1:0,o=this.props.stickySectionHeadersEnabled?[]:void 0,a=0;for(var l of this.props.sections)null!=o&&o.push(a+i),a+=2,a+=this.props.getItemCount(l.data);var u=this._renderItem(a);return(0,p.jsx)(s.default,Object.assign({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:o,renderItem:u,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return a},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(u)+1))return-1===t?{section:s,key:c+':header',index:null,header:!0,trailingSection:a[l+1]}:t===i(u)?{section:s,key:c+':footer',index:null,header:!1,trailingSection:a[l+1]}:{section:s,key:c+':'+(s.keyExtractor||o||_r(d[12]).keyExtractor)(r(u,t),t),index:t,leadingItem:r(u,t-1),leadingSection:a[l-1],trailingItem:r(u,t+1),trailingSection:a[l+1]};t-=i(u)+1}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}])})(c.PureComponent);function _(e){var n=e.LeadingSeparatorComponent,r=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,a=e.setSelfHighlightCallback,l=e.updateHighlightFor,s=e.setSelfUpdatePropsCallback,u=e.updatePropsFor,f=e.item,h=e.index,v=e.section,S=e.inverted,_=c.useState(!1),I=(0,t.default)(_,2),y=I[0],x=I[1],b=c.useState(!1),k=(0,t.default)(b,2),C=k[0],H=k[1],E=c.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),w=(0,t.default)(E,2),P=w[0],j=w[1],O=c.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),F=(0,t.default)(O,2),M=F[0],R=F[1];c.useEffect((function(){return a(i,H),s(i,R),function(){s(i,null),a(i,null)}}),[i,a,R,s]);var V={highlight:function(){x(!0),H(!0),null!=o&&l(o,!0)},unhighlight:function(){x(!1),H(!1),null!=o&&l(o,!1)},updateProps:function(e,t){'leading'===e?null!=n?j(Object.assign({},P,t)):null!=o&&u(o,Object.assign({},P,t)):'trailing'===e&&null!=r&&R(Object.assign({},M,t))}},L=e.renderItem({item:f,index:h,section:v,separators:V}),U=null!=n&&(0,p.jsx)(n,Object.assign({highlighted:y},P)),B=null!=r&&(0,p.jsx)(r,Object.assign({highlighted:C},M)),K=U||B,T=!1===S?U:B,W=!1===S?B:U;return(0,p.jsxs)(p.Fragment,{children:[K?T:null,L,K?W:null]})}m.exports=S}),346,[2,44,4,6,7,11,13,14,333,31,16,223,332]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}u.default=e,r&&r.set(e,u)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.default=(0,r.default)(t.default)}),347,[2,348,315,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),a=e(_r(d[2])),n=e(_r(d[3])),r=e(_r(d[4])),i=e(_r(d[5])),l=e(_r(d[6])),o=e(_r(d[7])),u=e(_r(d[8])),c=e(_r(d[9])),s=e(_r(d[10])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=y(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n})(_r(d[11])),h=_r(d[12]),b=["height","width"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(y=function(e){return e?a:t})(e)}var p=1;function v(e,t){var a=p++;return t&&t(a),u.default.prefetchImage(e,a)}function w(){return(w=(0,a.default)((function*(e){return u.default.queryCache(e)}))).apply(this,arguments)}var S=f.forwardRef((function(e,a){var r,u,f,y,p,v,w,S,j,I,O,M,_,k,x,L,P,W,C=(0,_r(d[13]).getImageSourcesFromImageProps)(e)||{uri:void 0,width:void 0,height:void 0},F=(0,c.default)(e.defaultSource),E=(0,c.default)(e.loadingIndicatorSource);if(e.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');if(null!=e.defaultSource&&null!=e.loadingIndicatorSource)throw new Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.');if(Array.isArray(C))P=(0,n.default)([z.base,e.style]),W=C;else{var A,R,T=C.uri,q=null!=(A=C.width)?A:e.width,B=null!=(R=C.height)?R:e.height;P=(0,n.default)([{width:q,height:B},z.base,e.style]),W=[C],''===T&&console.warn('source.uri should not be an empty string')}e.height,e.width;var D=(0,t.default)(e,b),H=e.onLoadStart,N=e.onLoad,G=e.onLoadEnd,J=e.onError,K=Object.assign({},D,{style:P,shouldNotifyLoadEvents:!!(H||N||G||J),src:W,source:W,headers:(null==C||null==(r=C[0])?void 0:r.headers)||(null==C?void 0:C.headers),defaultSrc:F?F.uri:null,loadingIndicatorSrc:E?E.uri:null,accessibilityLabel:null!=(u=null!=(f=e['aria-label'])?f:e.accessibilityLabel)?u:e.alt,accessibilityLabelledBy:null!=(y=null==e?void 0:e['aria-labelledby'])?y:null==e?void 0:e.accessibilityLabelledBy,accessible:void 0!==e.alt||e.accessible,accessibilityState:{busy:null!=(p=e['aria-busy'])?p:null==(v=e.accessibilityState)?void 0:v.busy,checked:null!=(w=e['aria-checked'])?w:null==(S=e.accessibilityState)?void 0:S.checked,disabled:null!=(j=e['aria-disabled'])?j:null==(I=e.accessibilityState)?void 0:I.disabled,expanded:null!=(O=e['aria-expanded'])?O:null==(M=e.accessibilityState)?void 0:M.expanded,selected:null!=(_=e['aria-selected'])?_:null==(k=e.accessibilityState)?void 0:k.selected}}),Q=(null!=(x=P)&&x.objectFit?(0,_r(d[14]).convertObjectFitToResizeMode)(P.objectFit):null)||e.resizeMode||(null==(L=P)?void 0:L.resizeMode)||'cover',U=(0,_r(d[15]).useWrapRefWithImageAttachedCallbacks)(a);return(0,h.jsx)(l.default.Consumer,{children:function(e){var t=null!==e?Object.assign({},K,{internal_analyticTag:e}):K;return(0,h.jsx)(i.default.Consumer,{children:function(e){return e?(0,h.jsx)(s.default,{style:P,resizeMode:Q,headers:K.headers,src:W,ref:U}):(0,h.jsx)(o.default,Object.assign({},t,{resizeMode:Q,ref:U}))}})}})})),j=(0,_r(d[15]).unstable_getImageComponentDecorator)();null!=j&&(S=j(S));var I=S;I.displayName='Image',I.getSize=function(e,t,a){var n=u.default.getSize(e);if('function'!=typeof t)return n;n.then((function(e){return t(e.width,e.height)})).catch(a||function(){console.warn('Failed to get size for image: '+e)})},I.getSizeWithHeaders=function(e,t,a,n){var r=u.default.getSizeWithHeaders(e,t);if('function'!=typeof a)return r;r.then((function(e){return a(e.width,e.height)})).catch(n||function(){console.warn('Failed to get size for image: '+e)})},I.prefetch=v,I.prefetchWithMetadata=function(e,t,a,n){return v(e,n)},I.abortPrefetch=function(e){u.default.abortRequest(e)},I.queryCache=function(e){return w.apply(this,arguments)},I.resolveAssetSource=c.default;var z=r.default.create({base:{overflow:'hidden'}});m.exports=I}),348,[2,4,349,227,225,184,350,351,352,204,354,16,223,355,356,357]); +__d((function(g,_r,_i,_a,m,_e,d){function n(n,t,e,o,r,u,i){try{var c=n[u](i),s=c.value}catch(n){return void e(n)}c.done?t(s):Promise.resolve(s).then(o,r)}m.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(r,u){var i=t.apply(e,o);function c(t){n(i,r,u,c,s,"next",t)}function s(t){n(i,r,u,c,s,"throw",t)}c(void 0)}))}},m.exports.__esModule=!0,m.exports.default=m.exports}),349,[]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=o?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=t[f]}return u.default=t,n&&n.set(t,u),u})(_r(d[0])).createContext(null);_e.default=t}),350,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=a(r);if(o&&o.has(e))return o.get(e);var t={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=n?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(t,i,s):t[i]=e[i]}return t.default=e,o&&o.set(e,t),t})(_r(d[1])),o=e(_r(d[2])),t=e(_r(d[3]));function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,o=new WeakMap;return(a=function(e){return e?o:r})(e)}_e.Commands=(0,o.default)({supportedCommands:['setIsVisible_EXPERIMENTAL']});var n=_e.__INTERNAL_VIEW_CONFIG='android'===t.default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,internal_analyticTag:!0,resizeMethod:!0,resizeMode:!0,resizeMultiplier:!0,tintColor:{process:_r(d[4]).default},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,src:!0,source:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,defaultSrc:!0,overlayColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},accessible:!0,progressiveRenderingEnabled:!0,fadeDuration:!0,borderBottomRightRadius:!0,borderTopRightRadius:!0,loadingIndicatorSrc:!0}}:{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:Object.assign({blurRadius:!0,capInsets:{diff:_r(d[5])},defaultSource:{process:_r(d[6])},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:_r(d[4]).default}},(0,_r(d[7]).ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))},i=r.get('RCTImageView',(function(){return n}));_e.default=i}),351,[2,186,222,39,190,202,204,219]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),352,[353]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('ImageLoader')}),353,[42]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTTextInlineImage',bubblingEventTypes:{},directEventTypes:{},validAttributes:{resizeMode:!0,src:!0,tintColor:{process:_r(d[1]).default},headers:!0}},n=e.get('RCTTextInlineImage',(function(){return r}));_e.default=n}),354,[186,190]); +__d((function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourcesFromImageProps=function(s){var o,n=(0,l.default)(s.source),u=s.crossOrigin,c=s.referrerPolicy,h=s.src,f=s.srcSet,p=s.width,v=s.height,w={};'use-credentials'===u&&(w['Access-Control-Allow-Credentials']='true');null!=c&&(w['Referrer-Policy']=c);if(null!=f){var x=[],P=f.split(', '),y=!0;P.forEach((function(s){var l=s.split(' '),o=(0,t.default)(l,2),n=o[0],u=o[1],c=void 0===u?'1x':u;if(c.endsWith('x')){var h=parseInt(c.split('x')[0],10);isNaN(h)||(y=1!==h&&y,x.push({headers:w,scale:h,uri:n,width:p,height:v}))}else console.warn('The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.')})),y&&null!=h&&x.push({headers:w,scale:1,uri:h,width:p,height:v}),0===x.length&&console.warn('The provided value for srcSet is not valid.'),o=x}else o=null!=h?[{uri:h,headers:w,width:p,height:v}]:n;return o};var t=s(r(d[1])),l=s(r(d[2]))}),355,[2,44,204]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.convertObjectFitToResizeMode=function(n){return{contain:'contain',cover:'cover',fill:'stretch','scale-down':'contain'}[n]}}),356,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.unstable_getImageComponentDecorator=function(){return t},_e.unstable_registerImageAttachedCallback=function(e){a.add(e)},_e.unstable_setImageComponentDecorator=function(e){t=e},_e.unstable_unregisterImageAttachedCallback=function(e){a.delete(e)},_e.useWrapRefWithImageAttachedCallbacks=function(e){var t=(0,r.useRef)([]),u=(0,r.useRef)(null);null==u.current&&(u.current=function(e){null==e?t.current.length>0&&(t.current.forEach((function(e){return e()})),t.current=[]):a.forEach((function(n){var r=n(e);null!=r&&t.current.push(r)}))});return(0,n.default)(e,u.current)};var t,n=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var c=a?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(r,o,c):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[2]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var a=new Set}),357,[2,316,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var r=e(_r(d[1])),t=(e(_r(d[2])),e(_r(d[3]))),n=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),f=e(_r(d[7])),a=e(_r(d[8])),u=e(_r(d[9])),s=e(_r(d[10])),i=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var f=o?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(n,l,f):n[l]=e[l]}return n.default=e,t&&t.set(e,n),n})(_r(d[11])),c=i,p=_r(d[12]);function y(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(y=function(e){return e?t:r})(e)}var j=c.forwardRef((function(e,r){return'android'===f.default.OS&&null!=e.refreshControl&&null!=e.style?(0,p.jsx)(v,Object.assign({scrollEventThrottle:1e-4},e,{ref:r,refreshControl:e.refreshControl})):(0,p.jsx)(O,Object.assign({scrollEventThrottle:1e-4},e,{ref:r}))})),v=c.forwardRef((function(e,f){var u=(0,i.useMemo)((function(){var r=(0,o.default)((0,n.default)(e.style)),t=r.outer,l=r.inner;return{intermediatePropsForRefreshControl:{style:t},intermediatePropsForScrollView:Object.assign({},e,{style:l})}}),[e]),y=u.intermediatePropsForRefreshControl,j=u.intermediatePropsForScrollView,v=(0,s.default)(y),O=(0,r.default)(v,2),b=O[0],h=O[1],P=c.cloneElement(e.refreshControl,Object.assign({},b,{ref:h})),_=(0,s.default)(j),w=(0,r.default)(_,2),C=w[0],M=w[1],F=(0,a.default)(M,f);return(0,p.jsx)(t.default,Object.assign({},C,{ref:F,refreshControl:P,style:l.default.compose(C.style,b.style)}))})),O=(0,u.default)(t.default);_e.default=j}),358,[2,44,359,364,227,368,225,39,316,315,317,16,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]),t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),s=e(_r(d[6])),f=p(_r(d[7])),a=(p(_r(d[8])),_r(d[9])),u=["tintColor","titleColor","title"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var h=(function(e){function l(){var e,t,n,s;(0,r.default)(this,l);for(var f=arguments.length,a=new Array(f),u=0;u0&&(this._scrollAnimatedValueAttachment=s.default.attachNativeEvent(this._scrollView.nativeInstance,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,n){n?this._stickyHeaderRefs.set(e,n):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,n,t){var o=this.props.stickyHeaderIndices;if(o){var r=A.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,r)){var l=n.nativeEvent.layout.y;this._headerLayoutYs.set(t,l);var i=o.indexOf(e),a=o[i-1];if(null!=a){var s=this._stickyHeaderRefs.get(this._getKeyForIndex(a,r));s&&s.setNextHeaderY&&s.setNextHeaderY(l)}}}}},{key:"render",value:function(){var e=this,o=!0===this.props.horizontal?z:P,r=(0,t.default)(o,2),l=r[0],i=r[1],a=[!0===this.props.horizontal&&G.contentContainerHorizontal,this.props.contentContainerStyle],s=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},c=this.props.stickyHeaderIndices,u=this.props.children;u=A.Children.toArray(u),null!=c&&c.length>0&&(u=u.map((function(n,t){var o=n?c.indexOf(t):-1;if(o>-1){var r=n.key,l=c[o+1],i=e.props.StickyHeaderComponent||M.default;return(0,C.jsx)(i,{ref:function(n){return e._setStickyHeaderRef(r,n)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(l,u)),onLayout:function(n){return e._onStickyHeaderLayout(t,n,r)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:n},r)}return n}))),u=(0,C.jsx)(E.default.Provider,{value:!0===this.props.horizontal?E.HORIZONTAL:E.VERTICAL,children:u});var S=Array.isArray(c)&&c.length>0,y=null!=this.props.maintainVisibleContentPosition||'android'===_.default.OS&&null!=this.props.snapToAlignment,v=(0,C.jsx)(i,Object.assign({},s,{ref:this._innerView.getForwardingRef(this.props.innerViewRef),style:a,removeClippedSubviews:('android'!==_.default.OS||!S)&&this.props.removeClippedSubviews,collapsable:!1,collapsableChildren:!y,children:u})),b=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,w=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,T=!0===this.props.horizontal?G.baseHorizontal:G.baseVertical,R=this.props,k=R.experimental_endDraggingSensitivityMultiplier,V=(0,n.default)(R,N),H=Object.assign({},V,{alwaysBounceHorizontal:b,alwaysBounceVertical:w,style:f.default.compose(T,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,endDraggingSensitivityMultiplier:k,enableSyncOnScroll:!!this.state.onScrollEmitter||void 0,scrollEventThrottle:S?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:_.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),O=this.props.decelerationRate;null!=O&&(H.decelerationRate=(0,I.default)(O));var D=this.props.refreshControl,K=this._scrollView.getForwardingRef(this.props.scrollViewRef);if(D){if('ios'===_.default.OS)return(0,C.jsxs)(l,Object.assign({},H,{ref:K,children:[D,v]}));if('android'===_.default.OS){var x=(0,h.default)((0,p.default)(H.style)),B=x.outer,L=x.inner;return A.cloneElement(D,{style:f.default.compose(T,B)},(0,C.jsx)(l,Object.assign({},H,{style:f.default.compose(T,L),ref:K,children:v})))}}return(0,C.jsx)(l,Object.assign({},H,{ref:K,children:v}))}}])})(A.Component);F.Context=E.default;var G=f.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function U(e){var n={getForwardingRef:(0,K.default)((function(t){return function(o){var r=null==o?null:e(o);n.nativeInstance=o,n.publicInstance=r,null!=t&&('function'==typeof t?t(r):t.current=r)}})),nativeInstance:null,publicInstance:null};return n}function Y(e,n){return(0,C.jsx)(F,Object.assign({},e,{scrollViewRef:n}))}Y.displayName='ScrollView';var Z=A.forwardRef(Y);Z.Context=E.default,Z.displayName='ScrollView',m.exports=Z}),364,[2,4,44,6,7,11,13,14,288,365,50,227,368,225,211,369,39,36,370,236,183,374,376,377,378,379,380,381,382,31,330,51,16,223,261,63]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),l={setGlobalOptions:function(l){void 0!==l.debug&&r(d[2])(t.default,'Trying to debug FrameRateLogger without the native module!'),null==t.default||t.default.setGlobalOptions({debug:!!l.debug})},setContext:function(l){null==t.default||t.default.setContext(l)},beginScroll:function(){null==t.default||t.default.beginScroll()},endScroll:function(){null==t.default||t.default.endScroll()}};m.exports=l}),365,[2,366,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),366,[367]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('FrameRateLogger')}),367,[42]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var c=null,t=null;if(null!=s)for(var n of(c={},t={},Object.keys(s)))switch(n){case'margin':case'marginHorizontal':case'marginVertical':case'marginBottom':case'marginTop':case'marginLeft':case'marginRight':case'flex':case'flexGrow':case'flexShrink':case'flexBasis':case'alignSelf':case'height':case'minHeight':case'maxHeight':case'width':case'minWidth':case'maxWidth':case'position':case'left':case'right':case'bottom':case'top':case'transform':case'transformOrigin':case'rowGap':case'columnGap':case'gap':c[n]=s[n];break;default:t[n]=s[n]}return{outer:c,inner:t}}}),368,[]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(){r(d[0]).blurTextInput(r(d[0]).currentlyFocusedInput())}}),369,[236]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),y=(function(){return(0,u.default)((function t(){var u=this;(0,n.default)(this,t),this._emitter=new l.default('ios'!==f.default.OS?null:c.default),this.addListener('keyboardDidShow',(function(t){u._currentlyShowing=t})),this.addListener('keyboardDidHide',(function(t){u._currentlyShowing=null}))}),[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,s.default)()}},{key:"isVisible",value:function(){return!!this._currentlyShowing}},{key:"metrics",value:function(){var t;return null==(t=this._currentlyShowing)?void 0:t.endCoordinates}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&o.default.configureNext({duration:n,update:{duration:n,type:null!=u&&o.default.Types[u]||'keyboard'}})}}])})();m.exports=new y}),370,[2,6,7,131,371,369,39,372]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]),n=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r})(_r(d[1])),t=e(_r(d[2]));function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:n})(e)}var r=n.isLayoutAnimationEnabled();function i(e,n,a){var i;if(!t.default.isDisableAnimations&&r){var o,u=!1,l=function(){u||(u=!0,clearTimeout(c),null==n||n())},c=setTimeout(l,(null!=(i=e.duration)?i:0)+17),s=(0,_r(d[3]).getFabricUIManager)();if(null!=s&&s.configureNextLayoutAnimation)null==(o=g)||null==(o=o.nativeFabricUIManager)||o.configureNextLayoutAnimation(e,l,null!=a?a:function(){});else null!=_r(d[4])&&_r(d[4]).configureNextLayoutAnimation&&_r(d[4]).configureNextLayoutAnimation(e,null!=l?l:function(){},null!=a?a:function(){})}}function o(e,n,t){return{duration:e,create:{type:n,property:t},update:{type:n},delete:{type:n,property:t}}}var u={easeInEaseOut:o(300,'easeInEaseOut','opacity'),linear:o(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},l={configureNext:i,create:o,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:u,easeInEaseOut:i.bind(null,u.easeInEaseOut),linear:i.bind(null,u.linear),spring:i.bind(null,u.spring),setEnabled:function(e){}};m.exports=l}),371,[2,112,39,53,50]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),372,[373]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('KeyboardObserver')}),373,[42]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),374,[375]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidHorizontalScrollContentView',validAttributes:{removeClippedSubviews:!0}};e.default=r(d[2]).get('AndroidHorizontalScrollContentView',(function(){return o}))}),375,[2,267,186]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r(o);if(t&&t.has(e))return t.get(e);var n={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(r=function(e){return e?t:o})(e)}var o=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,maintainVisibleContentPosition:!0,endFillColor:{process:_r(d[1]).default},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,horizontal:!0,enableSyncOnScroll:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollPerfTag:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToStart:!0,snapToOffsets:!0,contentOffset:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderRadius:!0,borderStyle:!0,borderRightColor:{process:_r(d[1]).default},borderColor:{process:_r(d[1]).default},borderBottomColor:{process:_r(d[1]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[1]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[1]).default},pointerEvents:!0}},t=e.get('AndroidHorizontalScrollView',(function(){return o}));_e.default=t}),376,[186,190]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}}),377,[2,39]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(u,i,a):u[i]=e[i]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}},n=e.get('RCTScrollContentView',(function(){return r}));_e.default=n}),378,[186]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=r(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}n.default=e,o&&o.set(e,n)})(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(r=function(e){return e?o:t})(e)}_e.default=(0,t.default)({supportedCommands:['flashScrollIndicators','scrollTo','scrollToEnd','zoomToRect']})}),379,[2,222,16]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.VERTICAL=_e.HORIZONTAL=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(null);_e.default=t,_e.HORIZONTAL=Object.freeze({horizontal:!0}),_e.VERTICAL=Object.freeze({horizontal:!1})}),380,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var o=(function(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(o);if(t&&t.has(e))return t.get(e);var r={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=l?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r})(_r(d[1])),t=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:o})(e)}var r=_e.__INTERNAL_VIEW_CONFIG='android'===t.default.OS?{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'}},validAttributes:{contentOffset:{diff:_r(d[3])},decelerationRate:!0,enableSyncOnScroll:!0,disableIntervalMomentum:!0,maintainVisibleContentPosition:!0,pagingEnabled:!0,scrollEnabled:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,sendMomentumEvents:!0,borderRadius:!0,nestedScrollEnabled:!0,scrollEventThrottle:!0,borderStyle:!0,borderRightColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},borderBottomColor:{process:_r(d[4]).default},persistentScrollbar:!0,horizontal:!0,endFillColor:{process:_r(d[4]).default},fadingEdgeLength:!0,overScrollMode:!0,borderTopLeftRadius:!0,scrollPerfTag:!0,borderTopColor:{process:_r(d[4]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[4]).default},pointerEvents:!0,isInvertedVirtualizedList:!0}}:{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'},topScrollToTop:{registrationName:'onScrollToTop'}},validAttributes:Object.assign({alwaysBounceHorizontal:!0,alwaysBounceVertical:!0,automaticallyAdjustContentInsets:!0,automaticallyAdjustKeyboardInsets:!0,automaticallyAdjustsScrollIndicatorInsets:!0,bounces:!0,bouncesZoom:!0,canCancelContentTouches:!0,centerContent:!0,contentInset:{diff:_r(d[5])},contentOffset:{diff:_r(d[3])},contentInsetAdjustmentBehavior:!0,decelerationRate:!0,endDraggingSensitivityMultiplier:!0,enableSyncOnScroll:!0,directionalLockEnabled:!0,disableIntervalMomentum:!0,indicatorStyle:!0,inverted:!0,keyboardDismissMode:!0,maintainVisibleContentPosition:!0,maximumZoomScale:!0,minimumZoomScale:!0,pagingEnabled:!0,pinchGestureEnabled:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollIndicatorInsets:{diff:_r(d[5])},scrollToOverflowEnabled:!0,scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,zoomScale:!0},(0,_r(d[6]).ConditionallyIgnoredEventHandlers)({onScrollBeginDrag:!0,onMomentumScrollEnd:!0,onScrollEndDrag:!0,onMomentumScrollBegin:!0,onScrollToTop:!0,onScroll:!0}))},l=o.get('RCTScrollView',(function(){return r}));_e.default=l}),381,[2,186,39,201,190,202,219]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),u=e(_r(d[3])),r=e(_r(d[4])),a=e(_r(d[5])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(u,a,l):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[6])),o=l,i=_r(d[7]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var s=o.forwardRef((function(e,u){var f=e.inverted,s=e.scrollViewHeight,c=e.hiddenOnScroll,v=e.scrollAnimatedValue,h=e.nextHeaderLayoutY,y=(0,l.useState)(!1),R=(0,t.default)(y,2),b=R[0],O=R[1],_=(0,l.useState)(0),L=(0,t.default)(_,2),S=L[0],w=L[1],P=(0,l.useState)(0),j=(0,t.default)(P,2),x=j[0],E=j[1],M=(0,l.useState)(null),k=(0,t.default)(M,2),C=k[0],D=k[1],I=(0,l.useState)(h),V=(0,t.default)(I,2),Y=V[0],H=V[1],T=(0,l.useState)(!1),W=(0,t.default)(T,2),A=W[0],z=W[1],N=(0,l.useCallback)((function(e){null!=e&&(e.setNextHeaderY=H,z((0,_r(d[8]).isPublicInstance)(e)))}),[]),q=(0,a.default)(N,u),B=(0,l.useMemo)((function(){return!0===c?n.default.diffClamp(v.interpolate({extrapolateLeft:'clamp',inputRange:[S,S+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-x,0):null}),[v,x,S,c]),F=(0,l.useState)((function(){var e=v.interpolate({inputRange:[-1,0],outputRange:[0,0]});return null!=B?n.default.add(e,B):e})),G=(0,t.default)(F,2),J=G[0],K=G[1],Q=(0,l.useRef)(!0),U=(0,l.useRef)(null);(0,l.useEffect)((function(){0!==C&&null!=C&&(Q.current=!1)}),[C]);var X=(0,l.useCallback)((function(e){var t=e.value,n='android'===r.default.OS?15:64;0!==t||Q.current?(null!=U.current&&clearTimeout(U.current),U.current=setTimeout((function(){return D(t)}),n)):Q.current=!0}),[]);(0,l.useEffect)((function(){var e=[-1,0],t=[0,0];if(b)if(!0===f){if(null!=s){var u=S+x-s;if(u>0){e.push(u),t.push(0),e.push(u+1),t.push(1);var r=(Y||0)-x-s;r>u&&(e.push(r,r+1),t.push(r-u,r-u))}}}else{e.push(S),t.push(0);var a=(Y||0)-x;a>=S?(e.push(a,a+1),t.push(a-S,a-S)):(e.push(S+1),t.push(1))}var l,o=v.interpolate({inputRange:e,outputRange:t});return null!=B&&(o=n.default.add(o,B)),A&&(l=o.addListener(X)),K(o),function(){l&&o.removeListener(l),null!=U.current&&clearTimeout(U.current)}}),[Y,b,x,S,s,v,f,B,X,A]);var Z=o.Children.only(e.children),$=A&&null!=C?{style:{transform:[{translateY:C}]}}:null;return(0,i.jsx)(n.default.View,{collapsable:!1,nativeID:e.nativeID,onLayout:function(t){w(t.nativeEvent.layout.y),E(t.nativeEvent.layout.height),O(!0),e.onLayout(t);var n=o.Children.only(e.children);n.props.onLayout&&n.props.onLayout(t)},ref:q,style:[Z.props.style,p.header,{transform:[{translateY:J}]}],passthroughAnimatedPropExplicitValues:$,children:o.cloneElement(Z,{style:p.fill,onLayout:void 0})})})),p=u.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});_e.default=s}),382,[2,44,287,225,39,316,16,223,319]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}u.default=e,r&&r.set(e,u)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.default=(0,r.default)(t.default)}),383,[2,384,315,16]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[8])),l=_r(d[9]),s=["stickySectionHeadersEnabled"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}_e.default=(function(e){function f(){var e,t,n,o;(0,r.default)(this,f);for(var u=arguments.length,l=new Array(u),s=0;s is only supported on iOS.'),null)}}),396,[2,397,225,39,400,401,16,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var o=a?Object.getOwnPropertyDescriptor(e,f):null;o&&(o.get||o.set)?Object.defineProperty(u,f,o):u[f]=e[f]}u.default=e,r&&r.set(e,u)})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var u=t.default.select({ios:_r(d[4]).default,default:r.default});_e.default=u}),397,[2,39,183,16,398]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),398,[399]); +__d((function(g,r,i,a,m,e,d){var _=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;_(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTSafeAreaView',validAttributes:{}};e.default=r(d[2]).get('RCTSafeAreaView',(function(){return t}))}),399,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,f.useState)((function(){return u.default.get('window')})),o=(0,n.default)(t,2),c=o[0],l=o[1];return(0,f.useEffect)((function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var n=u.default.addEventListener('change',t);return t({window:u.default.get('window')}),function(){n.remove()}}),[c]),c};var n=t(r(d[1])),u=t(r(d[2])),f=r(d[3])}),400,[2,44,211,16]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),401,[402]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var u=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTInputAccessoryView',validAttributes:{backgroundColor:{process:r(d[2]).default}}};e.default=r(d[3]).get('RCTInputAccessoryView',(function(){return u}))}),402,[2,267,190,186]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),o=t(_r(d[2])),n=t(_r(d[3])),a=t(_r(d[4])),r=t(_r(d[5])),i=t(_r(d[6])),u=t(_r(d[7])),s=t(_r(d[8])),l=t(_r(d[9])),f=t(_r(d[10])),c=t(_r(d[11])),h=t(_r(d[12])),y=t(_r(d[13])),p=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=v(e);if(o&&o.has(t))return o.get(t);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&{}.hasOwnProperty.call(t,r)){var i=a?Object.getOwnPropertyDescriptor(t,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=t[r]}return n.default=t,o&&o.set(t,n),n})(_r(d[14])),b=_r(d[15]),_=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(v=function(t){return t?o:e})(t)}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}var O=(function(t){function v(t){var e,a,u,l;return(0,n.default)(this,v),a=this,u=v,l=[t],u=(0,i.default)(u),(e=(0,r.default)(a,k()?Reflect.construct(u,l||[],(0,i.default)(a).constructor):u.apply(a,l)))._frame=null,e._keyboardEvent=null,e._subscriptions=[],e._initialFrameHeight=0,e._bottom=0,e._onKeyboardChange=function(t){e._keyboardEvent=t,e._updateBottomIfNecessary()},e._onLayout=(function(){var t=(0,o.default)((function*(t){var o=e._frame;e._frame=t.nativeEvent.layout,e._initialFrameHeight||(e._initialFrameHeight=e._frame.height),o&&o.height===e._frame.height||(yield e._updateBottomIfNecessary()),e.props.onLayout&&e.props.onLayout(t)}));return function(e){return t.apply(this,arguments)}})(),e._setBottom=function(t){var o,n=null==(o=e.props.enabled)||o;e._bottom=t,n&&e.setState({bottom:t})},e._updateBottomIfNecessary=(0,o.default)((function*(){var t;if(null!=e._keyboardEvent){var o=e._keyboardEvent,n=o.duration,a=o.easing,r=o.endCoordinates,i=yield e._relativeKeyboardHeight(r);if(e._bottom!==i)e._setBottom(i),(null==(t=e.props.enabled)||t)&&n&&a&&s.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:s.default.Types[a]||'keyboard'}})}else e._setBottom(0)})),e.state={bottom:0},e.viewRef=p.createRef(),e}return(0,u.default)(v,t),(0,a.default)(v,[{key:"_relativeKeyboardHeight",value:(O=(0,o.default)((function*(t){var e,o=this._frame;if(!o||!t)return 0;if('ios'===f.default.OS&&0===t.screenY&&(yield c.default.prefersCrossFadeTransitions()))return 0;var n=t.screenY-(null!=(e=this.props.keyboardVerticalOffset)?e:0);return'height'===this.props.behavior?Math.max(this.state.bottom+o.y+o.height-n,0):Math.max(o.y+o.height-n,0)})),function(t){return O.apply(this,arguments)})},{key:"componentDidUpdate",value:function(t,e){var o;(null==(o=this.props.enabled)||o)&&this._bottom!==e.bottom&&this.setState({bottom:this._bottom})}},{key:"componentDidMount",value:function(){'ios'===f.default.OS?this._subscriptions=[y.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[y.default.addListener('keyboardDidHide',this._onKeyboardChange),y.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach((function(t){t.remove()}))}},{key:"render",value:function(){var t=this.props,o=t.behavior,n=t.children,a=t.contentContainerStyle,r=t.enabled,i=void 0===r||r,u=(t.keyboardVerticalOffset,t.style),s=(t.onLayout,(0,e.default)(t,_)),f=!0===i?this.state.bottom:0;switch(o){case'height':var c;return null!=this._frame&&this.state.bottom>0&&(c={height:this._initialFrameHeight-f,flex:0}),(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,c),onLayout:this._onLayout},s,{children:n}));case'position':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:u,onLayout:this._onLayout},s,{children:(0,b.jsx)(h.default,{style:l.default.compose(a,{bottom:f}),children:n})}));case'padding':return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,style:l.default.compose(u,{paddingBottom:f}),onLayout:this._onLayout},s,{children:n}));default:return(0,b.jsx)(h.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:u},s,{children:n}))}}}]);var O})(p.Component);_e.default=O}),403,[2,4,349,6,7,11,13,14,371,225,39,32,183,370,16,223]); +__d((function(g,r,i,a,m,_e,d){var t,e=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),p=e(r(d[6])),c=(e(r(d[7])),e(r(d[8]))),h=(e(r(d[9])),e(r(d[10]))),f=r(d[11]);function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var S=r(d[12]),y=0,b=(function(t){function e(t){var n,s,p,c;return(0,o.default)(this,e),s=this,p=e,c=[t],p=(0,u.default)(p),(n=(0,l.default)(s,v()?Reflect.construct(p,c||[],(0,u.default)(s).constructor):p.apply(s,c)))._identifier=y++,n.state={isRendered:!0===t.visible},n}return(0,p.default)(e,t),(0,s.default)(e,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){this.setState({isRendered:!1}),this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(t){!1===t.visible&&!0===this.props.visible&&this.setState({isRendered:!0})}},{key:"_shouldShowModal",value:function(){return!0===this.props.visible}},{key:"render",value:function(){if(!this._shouldShowModal())return null;var t={backgroundColor:!0===this.props.transparent?'transparent':'white'},e=this.props.animationType||'none',n=this.props.presentationStyle;n||(n='fullScreen',!0===this.props.transparent&&(n='overFullScreen'));var o=this.props.children;return(0,f.jsx)(h.default,{animationType:e,presentationStyle:n,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,identifier:this._identifier,style:_.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange,testID:this.props.testID,children:(0,f.jsx)(r(d[13]).VirtualizedListContextResetter,{children:(0,f.jsx)(r(d[14]).Context.Provider,{value:null,children:(0,f.jsx)(r(d[15]),{style:[_.container,t],collapsable:!1,children:o})})})})}},{key:"_shouldSetResponder",value:function(){return!0}}])})(S.Component);b.defaultProps={visible:!0,hardwareAccelerated:!1},b.contextType=r(d[16]).RootTagContext;var R=r(d[17]).getConstants().isRTL?'right':'left',_=r(d[18]).create({modal:{position:'absolute'},container:(0,n.default)((0,n.default)((0,n.default)({},R,0),"top",0),"flex",1)}),x=null!=(t=c.default.unstable_Modal)?t:b;m.exports=x}),404,[2,197,6,7,11,13,14,131,405,406,408,223,16,331,364,183,228,410,225]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_Modal:null}}),405,[]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),406,[407]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ModalManager')}),407,[42]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),408,[409]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTModalHostView',directEventTypes:{topRequestClose:{registrationName:'onRequestClose'},topShow:{registrationName:'onShow'},topDismiss:{registrationName:'onDismiss'},topOrientationChange:{registrationName:'onOrientationChange'}},validAttributes:Object.assign({animationType:!0,presentationStyle:!0,transparent:!0,statusBarTranslucent:!0,hardwareAccelerated:!0,visible:!0,animated:!0,supportedOrientations:!0,identifier:!0},r(d[2]).ConditionallyIgnoredEventHandlers({onRequestClose:!0,onShow:!0,onDismiss:!0,onOrientationChange:!0}))};e.default=r(d[3]).get('RCTModalHostView',(function(){return n}))}),409,[2,267,219,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(){if(t.default){var n=t.default.getConstants();return{isRTL:n.isRTL,doLeftAndRightSwapInRTL:n.doLeftAndRightSwapInRTL,localeIdentifier:n.localeIdentifier}}return{isRTL:!1,doLeftAndRightSwapInRTL:!0}})();m.exports={getConstants:function(){return n},allowRTL:function(n){t.default&&t.default.allowRTL(n)},forceRTL:function(n){t.default&&t.default.forceRTL(n)},swapLeftAndRightInRTL:function(n){t.default&&t.default.swapLeftAndRightInRTL(n)},isRTL:n.isRTL,doLeftAndRightSwapInRTL:n.doLeftAndRightSwapInRTL}}),410,[2,411]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),411,[412]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('I18nManager')}),412,[42]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var l=e(_r(d[1])),a=e(_r(d[2])),n=e(_r(d[3])),s=e(_r(d[4])),i=e(_r(d[5])),t=e(_r(d[6])),r=(function(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=f(l);if(a&&a.has(e))return a.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var t=s?Object.getOwnPropertyDescriptor(e,i):null;t&&(t.get||t.set)?Object.defineProperty(n,i,t):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n})(_r(d[7])),o=r,u=_r(d[8]),c=["accessible","accessibilityState","aria-live","android_disableSound","android_ripple","aria-busy","aria-checked","aria-disabled","aria-expanded","aria-label","aria-selected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","hitSlop","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function f(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,a=new WeakMap;return(f=function(e){return e?a:l})(e)}function b(e){var a=(0,r.useState)(!1),n=(0,l.default)(a,2);return[n[0]||e,n[1]]}var y=o.memo(o.forwardRef((function(e,o){var f,y,v,p,P,O,_,h,I,w=e.accessible,H=e.accessibilityState,x=e['aria-live'],S=e.android_disableSound,j=e.android_ripple,L=e['aria-busy'],M=e['aria-checked'],k=e['aria-disabled'],R=e['aria-expanded'],V=e['aria-label'],D=e['aria-selected'],W=e.cancelable,N=e.children,q=e.delayHoverIn,z=e.delayHoverOut,A=e.delayLongPress,B=e.disabled,C=e.focusable,E=e.hitSlop,F=e.onHoverIn,G=e.onHoverOut,J=e.onLongPress,K=e.onPress,Q=e.onPressIn,T=e.onPressOut,U=e.pressRetentionOffset,X=e.style,Y=e.testOnly_pressed,Z=e.unstable_pressDelay,$=(0,a.default)(e,c),ee=(0,r.useRef)(null),le=(0,s.default)(o,ee),ae=(0,t.default)(j,ee),ne=b(!0===Y),se=(0,l.default)(ne,2),ie=se[0],te=se[1],re='function'==typeof N||'function'==typeof X,oe={busy:null!=L?L:null==H?void 0:H.busy,checked:null!=M?M:null==H?void 0:H.checked,disabled:null!=k?k:null==H?void 0:H.disabled,expanded:null!=R?R:null==H?void 0:H.expanded,selected:null!=D?D:null==H?void 0:H.selected};oe=null!=B?Object.assign({},oe,{disabled:B}):oe;var ue={max:null!=(f=e['aria-valuemax'])?f:null==(y=e.accessibilityValue)?void 0:y.max,min:null!=(v=e['aria-valuemin'])?v:null==(p=e.accessibilityValue)?void 0:p.min,now:null!=(P=e['aria-valuenow'])?P:null==(O=e.accessibilityValue)?void 0:O.now,text:null!=(_=e['aria-valuetext'])?_:null==(h=e.accessibilityValue)?void 0:h.text},de='off'===x?'none':null!=x?x:e.accessibilityLiveRegion,ce=null!=V?V:e.accessibilityLabel,fe=Object.assign({},$,null==ae?void 0:ae.viewProps,{accessible:!1!==w,accessibilityViewIsModal:null!=(I=$['aria-modal'])?I:$.accessibilityViewIsModal,accessibilityLiveRegion:de,accessibilityLabel:ce,accessibilityState:oe,focusable:!1!==C,accessibilityValue:ue,hitSlop:E}),be=(0,r.useMemo)((function(){return{cancelable:W,disabled:B,hitSlop:E,pressRectOffset:U,android_disableSound:S,delayHoverIn:q,delayHoverOut:z,delayLongPress:A,delayPressIn:Z,onHoverIn:F,onHoverOut:G,onLongPress:J,onPress:K,onPressIn:function(e){null!=ae&&ae.onPressIn(e),re&&te(!0),null!=Q&&Q(e)},onPressMove:null==ae?void 0:ae.onPressMove,onPressOut:function(e){null!=ae&&ae.onPressOut(e),re&&te(!1),null!=T&&T(e)}}}),[S,ae,W,q,z,A,B,E,F,G,J,K,Q,T,U,te,re,Z]),ye=(0,n.default)(be);return(0,u.jsxs)(i.default,Object.assign({},fe,ye,{ref:le,style:'function'==typeof X?X({pressed:ie}):X,collapsable:!1,children:['function'==typeof N?N({pressed:ie}):N,null]}))})));y.displayName='Pressable';_e.default=y}),413,[2,44,4,275,316,183,414,16,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,l){var u=null!=e?e:{},a=u.color,i=u.borderless,f=u.radius,s=u.foreground;return(0,o.useMemo)((function(){if('android'===r.default.OS&&(null!=a||null!=i||null!=f)){var e=(0,n.default)(a);(0,t.default)(null==e||'number'==typeof e,'Unexpected color given for Ripple color');var o={type:'RippleAndroid',color:e,borderless:!0===i,rippleRadius:f};return{viewProps:!0===s?{nativeForegroundAndroid:o}:{nativeBackgroundAndroid:o},onPressIn:function(e){var n,r,t=l.current;null!=t&&(_r(d[6]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0),_r(d[6]).Commands.setPressed(t,!0))},onPressMove:function(e){var n,r,t=l.current;null!=t&&_r(d[6]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0)},onPressOut:function(e){var n=l.current;null!=n&&_r(d[6]).Commands.setPressed(n,!1)}}}return null}),[i,a,s,f,l])};var n=e(_r(d[1])),r=e(_r(d[2])),t=(e(_r(d[3])),e(_r(d[4]))),o=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(n);if(r&&r.has(e))return r.get(e);var t={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=o?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(t,u,a):t[u]=e[u]}return t.default=e,r&&r.set(e,t),t})(_r(d[5]));function l(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:n})(e)}}),414,[2,190,39,183,31,16,185]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),l=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),r=e(_r(d[5])),a=v(_r(d[6])),u=v(_r(d[7])),i=v(_r(d[8])),s=_r(d[9]),c=["disabled","ios_backgroundColor","onChange","onValueChange","style","thumbColor","trackColor","value"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(f=function(e){return e?l:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var l=f(t);if(l&&l.has(e))return l.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var a=o?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}return n.default=e,l&&l.set(e,n),n}var b=function(){return!1},p=function(){return!0},C=i.forwardRef((function(e,f){var v=e.disabled,C=e.ios_backgroundColor,y=e.onChange,h=e.onValueChange,O=e.style,R=e.thumbColor,_=e.trackColor,j=e.value,k=(0,l.default)(e,c),S=null==_?void 0:_.false,w=null==_?void 0:_.true,P=i.useRef(null),T=(0,r.default)(P,f),M=i.useState({value:null}),V=(0,t.default)(M,2),E=V[0],F=V[1],W=function(e){null==y||y(e),null==h||h(e.nativeEvent.value),F({value:e.nativeEvent.value})};if(i.useLayoutEffect((function(){var e,t=!0===j;null!=E.value&&E.value!==t&&null!=(null==(e=P.current)?void 0:e.setNativeProps)&&('android'===o.default.OS?a.Commands.setNativeValue(P.current,t):u.Commands.setValue(P.current,t))}),[j,E]),'android'===o.default.OS){var q,x=k.accessibilityState,D=null!=v?v:null==x?void 0:x.disabled,N={accessibilityState:D!==(null==x?void 0:x.disabled)?Object.assign({},x,{disabled:D}):x,enabled:!0!==D,on:!0===j,style:O,thumbTintColor:R,trackColorForFalse:S,trackColorForTrue:w,trackTintColor:!0===j?w:S};return(0,s.jsx)(a.default,Object.assign({},k,N,{accessibilityRole:null!=(q=e.accessibilityRole)?q:'switch',onChange:W,onResponderTerminationRequest:b,onStartShouldSetResponder:p,ref:T}))}var L,z={disabled:v,onTintColor:w,style:n.default.compose({height:31,width:51},n.default.compose(O,null==C?null:{backgroundColor:C,borderRadius:16})),thumbTintColor:R,tintColor:S,value:!0===j};return(0,s.jsx)(u.default,Object.assign({},k,z,{accessibilityRole:null!=(L=e.accessibilityRole)?L:'switch',onChange:W,onResponderTerminationRequest:b,onStartShouldSetResponder:p,ref:T}))}));_e.default=C}),415,[2,44,4,225,39,316,416,418,16,223]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),416,[417]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;e(_r(d[1])),e(_r(d[2])),(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var l=o?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}a.default=e,n&&n.set(e,a)})(_r(d[3]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidSwitch',bubblingEventTypes:{topChange:{phasedRegistrationNames:{captured:'onChangeCapture',bubbled:'onChange'}}},validAttributes:Object.assign({disabled:!0,enabled:!0,thumbColor:{process:_r(d[4]).default},trackColorForFalse:{process:_r(d[4]).default},trackColorForTrue:{process:_r(d[4]).default},value:!0,on:!0,thumbTintColor:{process:_r(d[4]).default},trackTintColor:{process:_r(d[4]).default}},_r(d[5]).ConditionallyIgnoredEventHandlers({onChange:!0}))};_e.default=_r(d[6]).get('AndroidSwitch',(function(){return r})),_e.Commands={setNativeValue:function(e,t){_r(d[7]).dispatchCommand(e,"setNativeValue",[t])}}}),417,[2,222,267,16,190,219,186,63]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),418,[419]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;e(_r(d[1])),e(_r(d[2])),(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,n&&n.set(e,o)})(_r(d[3]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTSwitch',bubblingEventTypes:{topChange:{phasedRegistrationNames:{captured:'onChangeCapture',bubbled:'onChange'}}},validAttributes:Object.assign({disabled:!0,value:!0,tintColor:{process:_r(d[4]).default},onTintColor:{process:_r(d[4]).default},thumbTintColor:{process:_r(d[4]).default},thumbColor:{process:_r(d[4]).default},trackColorForFalse:{process:_r(d[4]).default},trackColorForTrue:{process:_r(d[4]).default}},_r(d[5]).ConditionallyIgnoredEventHandlers({onChange:!0}))};_e.default=_r(d[6]).get('RCTSwitch',(function(){return r})),_e.Commands={setValue:function(e,t){_r(d[7]).dispatchCommand(e,"setValue",[t])}}}),419,[2,222,267,16,190,219,186,63]); +__d((function(g,_r,_i,_a,m,_e,d){var e,n,t,l,a,r,o=_r(d[0]),i=o(_r(d[1])),u=o(_r(d[2])),c=o(_r(d[3])),s=o(_r(d[4])),f=o(_r(d[5])),p=o(_r(d[6])),y=o(_r(d[7])),b=o(_r(d[8])),v=o(_r(d[9])),h=o(_r(d[10])),C=o(_r(d[11])),x=o(_r(d[12])),S=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=j(n);if(t&&t.has(e))return t.get(e);var l={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(l,r,o):l[r]=e[r]}return l.default=e,t&&t.set(e,l),l})(_r(d[13])),O=S,T=_r(d[14]),w=["aria-busy","aria-checked","aria-disabled","aria-expanded","aria-selected","accessibilityState","id","tabIndex","selection","selectionColor","selectionHandleColor","cursorColor"],I=["onBlur","onFocus"],F=["allowFontScaling","rejectResponderTermination","underlineColorAndroid","autoComplete","textContentType","readOnly","editable","enterKeyHint","returnKeyType","inputMode","showSoftInputOnFocus","keyboardType"];function j(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(j=function(e){return e?t:n})(e)}'android'===b.default.OS?(e=_r(d[15]).default,n=_r(d[15]).Commands):'ios'===b.default.OS&&(t=_r(d[16]).default,l=_r(d[16]).Commands,a=_r(d[17]).default,r=_r(d[17]).Commands);var A=function(){return!0};function k(o){var F,j,k,R=o['aria-busy'],B=o['aria-checked'],P=o['aria-disabled'],E=o['aria-expanded'],N=o['aria-selected'],M=o.accessibilityState,L=o.id,H=o.tabIndex,_=o.selection,z=o.selectionColor,W=o.selectionHandleColor,K=o.cursorColor,V=(0,u.default)(o,w),U=(0,S.useRef)(null),Y=null==_?null:{start:_.start,end:null!=(F=_.end)?F:_.start},G=(0,S.useState)(0),q=(0,i.default)(G,2),J=q[0],Q=q[1],X=(0,S.useState)(o.value),Z=(0,i.default)(X,2),$=Z[0],ee=Z[1],ne=(0,S.useState)({selection:{start:-1,end:-1},mostRecentEventCount:J}),te=(0,i.default)(ne,2),le=te[0],ae=te[1],re=le.selection;k=n||(!0===o.multiline?r:l);var oe='string'==typeof o.value?o.value:'string'==typeof o.defaultValue?o.defaultValue:'';(0,S.useLayoutEffect)((function(){var e,n,t={};($!==o.value&&'string'==typeof o.value&&(t.text=o.value,ee(o.value)),Y&&re&&(re.start!==Y.start||re.end!==Y.end)&&(t.selection=Y,ae({selection:Y,mostRecentEventCount:J})),0!==Object.keys(t).length)&&(null!=U.current&&k.setTextAndSelection(U.current,J,oe,null!=(e=null==Y?void 0:Y.start)?e:-1,null!=(n=null==Y?void 0:Y.end)?n:-1))}),[J,U,o.value,o.defaultValue,$,Y,re,oe,k]),(0,S.useLayoutEffect)((function(){var e=U.current;if(null!=e)return h.default.registerInput(e),function(){h.default.unregisterInput(e),h.default.currentlyFocusedInput()===e&&(0,x.default)(e).blur()}}),[U]);var ie,ue=(0,S.useCallback)((function(e){U.current=e,null!=e&&Object.assign(e,{clear:function(){null!=U.current&&k.setTextAndSelection(U.current,J,'',0,0)},isFocused:function(){return h.default.currentlyFocusedInput()===U.current},getNativeRef:function(){return U.current},setSelection:function(e,n){null!=U.current&&k.setTextAndSelection(U.current,J,null,e,n)}})}),[J,k]),de=(0,v.default)(ue,o.forwardedRef),ce=function(e){var n=e.nativeEvent.text;o.onChange&&o.onChange(e),o.onChangeText&&o.onChangeText(n),null!=U.current&&(ee(n),Q(e.nativeEvent.eventCount))},se=function(e){o.onSelectionChange&&o.onSelectionChange(e),null!=U.current&&ae({selection:e.nativeEvent.selection,mostRecentEventCount:J})},fe=function(e){h.default.focusInput(U.current),o.onFocus&&o.onFocus(e)},pe=function(e){h.default.blurInput(U.current),o.onBlur&&o.onBlur(e)},me=function(e){o.onScroll&&o.onScroll(e)},ye=null,be=null!=(j=o.multiline)&&j;ie=null!=o.submitBehavior?be||'newline'!==o.submitBehavior?o.submitBehavior:'blurAndSubmit':be?!0===o.blurOnSubmit?'blurAndSubmit':'newline':!1!==o.blurOnSubmit?'blurAndSubmit':'submit';var ve=!1!==o.accessible,he=!1!==o.focusable,Ce=o.editable,ge=o.hitSlop,xe=o.onPress,Se=o.onPressIn,Oe=o.onPressOut,Te=o.rejectResponderTermination,we=O.useMemo((function(){return{hitSlop:ge,onPress:function(e){null==xe||xe(e),!1!==Ce&&null!=U.current&&U.current.focus()},onPressIn:Se,onPressOut:Oe,cancelable:'ios'===b.default.OS?!Te:null}}),[Ce,ge,xe,Se,Oe,Te]),Ie=o.caretHidden;b.default.isTesting&&(Ie=!0);var Fe,je=(0,c.default)(we)||{},Ae=(je.onBlur,je.onFocus,(0,u.default)(je,I));null==M&&null==R&&null==B&&null==P&&null==E&&null==N||(Fe={busy:null!=R?R:null==M?void 0:M.busy,checked:null!=B?B:null==M?void 0:M.checked,disabled:null!=P?P:null==M?void 0:M.disabled,expanded:null!=E?E:null==M?void 0:M.expanded,selected:null!=N?N:null==M?void 0:M.selected});var ke=(0,s.default)(o.style);if('number'==typeof(null==ke?void 0:ke.fontWeight)&&(ke.fontWeight=null==ke?void 0:ke.fontWeight.toString()),'ios'===b.default.OS){var Re=!0===o.multiline?a:t,Be=!0===o.multiline&&(null==ke||null==ke.padding&&null==ke.paddingVertical&&null==ke.paddingTop);ye=(0,T.jsx)(Re,Object.assign({ref:de},V,Ae,{accessibilityState:Fe,accessible:ve,submitBehavior:ie,caretHidden:Ie,dataDetectorTypes:o.dataDetectorTypes,focusable:void 0!==H?!H:he,mostRecentEventCount:J,nativeID:null!=L?L:o.nativeID,onBlur:pe,onChange:ce,onContentSizeChange:o.onContentSizeChange,onFocus:fe,onScroll:me,onSelectionChange:se,onSelectionChangeShouldSetResponder:A,selection:Y,selectionColor:z,style:f.default.compose(Be?D.multilineDefault:null,ke),text:oe}))}else if('android'===b.default.OS){var Pe,Ee,Ne,De=o.autoCapitalize||'sentences',Me=null!=(Pe=null==o?void 0:o['aria-labelledby'])?Pe:null==o?void 0:o.accessibilityLabelledBy,Le=null!=(Ee=o.placeholder)?Ee:'',He=o.children,ze=O.Children.count(He);(0,C.default)(!(null!=o.value&&ze),'Cannot specify both value and children.'),ze>1&&(He=(0,T.jsx)(p.default,{children:He}));var We={selectionColor:z,selectionHandleColor:void 0===W?z:W,cursorColor:void 0===K?z:K};ye=(0,T.jsx)(e,Object.assign({ref:de},V,We,Ae,{accessibilityState:Fe,accessibilityLabelledBy:Me,accessible:ve,autoCapitalize:De,submitBehavior:ie,caretHidden:Ie,children:He,disableFullscreenUI:o.disableFullscreenUI,focusable:void 0!==H?!H:he,mostRecentEventCount:J,nativeID:null!=L?L:o.nativeID,numberOfLines:null!=(Ne=o.rows)?Ne:o.numberOfLines,onBlur:pe,onChange:ce,onFocus:fe,onScroll:me,onSelectionChange:se,placeholder:Le,style:ke,text:oe,textBreakStrategy:o.textBreakStrategy}))}return(0,T.jsx)(y.default.Provider,{value:!0,children:ye})}var R={enter:'default',done:'done',go:'go',next:'next',previous:'previous',search:'search',send:'send'},B={none:'default',text:'default',decimal:'decimal-pad',numeric:'number-pad',tel:'phone-pad',search:'ios'===b.default.OS?'web-search':'default',email:'email-address',url:'url'},P={'address-line1':'postal-address-region','address-line2':'postal-address-locality',bday:'birthdate-full','bday-day':'birthdate-day','bday-month':'birthdate-month','bday-year':'birthdate-year','cc-csc':'cc-csc','cc-exp':'cc-exp','cc-exp-month':'cc-exp-month','cc-exp-year':'cc-exp-year','cc-number':'cc-number',country:'postal-address-country','current-password':'password',email:'email','honorific-prefix':'name-prefix','honorific-suffix':'name-suffix',name:'name','additional-name':'name-middle','family-name':'name-family','given-name':'name-given','new-password':'password-new',off:'off','one-time-code':'sms-otp','postal-code':'postal-code',sex:'gender','street-address':'street-address',tel:'tel','tel-country-code':'tel-country-code','tel-national':'tel-national',username:'username'},E={'address-line1':'streetAddressLine1','address-line2':'streetAddressLine2',bday:'birthdate','bday-day':'birthdateDay','bday-month':'birthdateMonth','bday-year':'birthdateYear','cc-csc':'creditCardSecurityCode','cc-exp-month':'creditCardExpirationMonth','cc-exp-year':'creditCardExpirationYear','cc-exp':'creditCardExpiration','cc-given-name':'creditCardGivenName','cc-additional-name':'creditCardMiddleName','cc-family-name':'creditCardFamilyName','cc-name':'creditCardName','cc-number':'creditCardNumber','cc-type':'creditCardType','current-password':'password',country:'countryName',email:'emailAddress',name:'name','additional-name':'middleName','family-name':'familyName','given-name':'givenName',nickname:'nickname','honorific-prefix':'namePrefix','honorific-suffix':'nameSuffix','new-password':'newPassword',off:'none','one-time-code':'oneTimeCode',organization:'organizationName','organization-title':'jobTitle','postal-code':'postalCode','street-address':'fullStreetAddress',tel:'telephoneNumber',url:'URL',username:'username'},N=O.forwardRef((function(e,n){var t,l=e.allowFontScaling,a=void 0===l||l,r=e.rejectResponderTermination,o=void 0===r||r,i=e.underlineColorAndroid,c=void 0===i?'transparent':i,f=e.autoComplete,p=e.textContentType,y=e.readOnly,v=e.editable,h=e.enterKeyHint,C=e.returnKeyType,x=e.inputMode,S=e.showSoftInputOnFocus,O=e.keyboardType,w=(0,u.default)(e,F),I=(0,s.default)(w.style);return null!=(null==I?void 0:I.verticalAlign)&&(I.textAlignVertical=M[I.verticalAlign],delete I.verticalAlign),(0,T.jsx)(k,Object.assign({allowFontScaling:a,rejectResponderTermination:o,underlineColorAndroid:c,editable:void 0!==y?!y:v,returnKeyType:h?R[h]:C,keyboardType:x?B[x]:O,showSoftInputOnFocus:null==x?S:'none'!==x,autoComplete:'android'===b.default.OS?null!=(t=P[f])?t:f:void 0,textContentType:null!=p?p:'ios'===b.default.OS&&f&&f in E?E[f]:p},w,{forwardedRef:n,style:I}))}));N.displayName='TextInput',N.State={currentlyFocusedInput:h.default.currentlyFocusedInput,currentlyFocusedField:h.default.currentlyFocusedField,focusTextInput:h.default.focusTextInput,blurTextInput:h.default.blurTextInput};var D=f.default.create({multilineDefault:{paddingTop:5}}),M={auto:'auto',top:'top',bottom:'bottom',middle:'center'};m.exports=N}),420,[2,44,4,275,227,225,273,184,39,316,236,31,51,16,223,237,421,423]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}_e.Commands=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});var a=_e.__INTERNAL_VIEW_CONFIG=Object.assign({uiViewClassName:'RCTSinglelineTextInputView'},r.default),o=t.get('RCTSinglelineTextInputView',(function(){return a}));_e.default=o}),421,[2,186,222,422]); +__d((function(g,r,i,a,m,e,d){var t={bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}}},directEventTypes:{topScroll:{registrationName:'onScroll'},topSelectionChange:{registrationName:'onSelectionChange'},topContentSizeChange:{registrationName:'onContentSizeChange'}},validAttributes:Object.assign({fontSize:!0,fontWeight:!0,fontVariant:!0,textShadowOffset:{diff:r(d[0])},allowFontScaling:!0,fontStyle:!0,textTransform:!0,textAlign:!0,fontFamily:!0,lineHeight:!0,isHighlighted:!0,writingDirection:!0,textDecorationLine:!0,textShadowRadius:!0,letterSpacing:!0,textDecorationStyle:!0,textDecorationColor:{process:r(d[1]).default},color:{process:r(d[1]).default},maxFontSizeMultiplier:!0,textShadowColor:{process:r(d[1]).default},editable:!0,inputAccessoryViewID:!0,caretHidden:!0,enablesReturnKeyAutomatically:!0,placeholderTextColor:{process:r(d[1]).default},clearButtonMode:!0,keyboardType:!0,selection:!0,returnKeyType:!0,submitBehavior:!0,mostRecentEventCount:!0,scrollEnabled:!0,selectionColor:{process:r(d[1]).default},contextMenuHidden:!0,secureTextEntry:!0,placeholder:!0,autoCorrect:!0,multiline:!0,textContentType:!0,maxLength:!0,autoCapitalize:!0,keyboardAppearance:!0,passwordRules:!0,spellCheck:!0,selectTextOnFocus:!0,text:!0,clearTextOnFocus:!0,showSoftInputOnFocus:!0,autoFocus:!0,lineBreakStrategyIOS:!0,smartInsertDelete:!0},(0,r(d[2]).ConditionallyIgnoredEventHandlers)({onChange:!0,onSelectionChange:!0,onContentSizeChange:!0,onScroll:!0}))};m.exports=t}),422,[199,190,219]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}_e.Commands=(0,r.default)({supportedCommands:['focus','blur','setTextAndSelection']});var a=_e.__INTERNAL_VIEW_CONFIG=Object.assign({uiViewClassName:'RCTMultilineTextInputView'},n.default,{validAttributes:Object.assign({},n.default.validAttributes,{dataDetectorTypes:!0})}),i=t.get('RCTMultilineTextInputView',(function(){return a}));_e.default=i}),423,[2,186,222,422]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),i=t(_r(d[2])),o=t(_r(d[3])),s=t(_r(d[4])),E=t(_r(d[5])),a=t(_r(d[6]));(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=n(e);if(i&&i.has(t))return i.get(t);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in t)if("default"!==E&&{}.hasOwnProperty.call(t,E)){var a=s?Object.getOwnPropertyDescriptor(t,E):null;a&&(a.get||a.set)?Object.defineProperty(o,E,a):o[E]=t[E]}o.default=t,i&&i.set(t,o)})(_r(d[7])),_r(d[8]);function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(n=function(t){return t?i:e})(t)}var l=function(t){var e=t.touches,i=t.changedTouches,o=e&&e.length>0,s=i&&i.length>0;return!o&&s?i[0]:o?e[0]:t},u='NOT_RESPONDER',r='RESPONDER_INACTIVE_PRESS_IN',h='RESPONDER_INACTIVE_PRESS_OUT',R='RESPONDER_ACTIVE_PRESS_IN',_='RESPONDER_ACTIVE_PRESS_OUT',c='RESPONDER_ACTIVE_LONG_PRESS_IN',S='RESPONDER_ACTIVE_LONG_PRESS_OUT',T='ERROR',P={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},D=Object.assign({},P,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),N=Object.assign({},P,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),O=Object.assign({},P,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),p='DELAY',f='RESPONDER_GRANT',b='RESPONDER_RELEASE',A='RESPONDER_TERMINATED',I='ENTER_PRESS_RECT',L='LEAVE_PRESS_RECT',v='LONG_PRESS_DETECTED',y={NOT_RESPONDER:{DELAY:T,RESPONDER_GRANT:r,RESPONDER_RELEASE:T,RESPONDER_TERMINATED:T,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_IN:{DELAY:R,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:r,LEAVE_PRESS_RECT:h,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:_,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:r,LEAVE_PRESS_RECT:h,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:T},error:{DELAY:u,RESPONDER_GRANT:r,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:u,LONG_PRESS_DETECTED:u}},C={componentDidMount:function(){o.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=u,this.state.touchable.responderID=e,this._receiveSignal(f,t);var i=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(i=isNaN(i)?130:i)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),i):this._handleDelay(t);var o=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;o=isNaN(o)?370:o,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),o+i)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(b,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(A,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,i=this.state.touchable.dimensionsOnActivate,o=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=o.left,E=o.top,a=o.right,n=o.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(s+=u.left||0,E+=u.top||0,a+=u.right||0,n+=u.bottom||0);var h=l(t.nativeEvent),R=h&&h.pageX,_=h&&h.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(R,_,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(R>e.left-s&&_>e.top-E&&R>`");o!==s&&(this._performSideEffectsForTransition(o,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===R||t===c},_savePressInLocation:function(t){var e=l(t.nativeEvent),i=e&&e.pageX,o=e&&e.pageY,s=e&&e.locationX,E=e&&e.locationY;this.pressInLocation={pageX:i,pageY:o,locationX:s,locationY:E}},_getDistanceBetweenPoints:function(t,e,i,o){var s=t-i,E=e-o;return Math.sqrt(s*s+E*E)},_performSideEffectsForTransition:function(t,e,i,E){var a=this._isHighlight(t),n=this._isHighlight(e);(i===A||i===b)&&this._cancelLongPressDelayTimeout();var l=t===u&&e===r,h=!D[t]&&D[e];if((l||h)&&this._remeasureMetricsOnActivation(),N[t]&&i===v&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),n&&!a?this._startHighlight(E):!n&&a&&this._endHighlight(E),N[t]&&i===b){var R=!!this.props.onLongPress,_=O[t]&&(!R||!this.touchableLongPressCancelsPress());(!O[t]||_)&&this.touchableHandlePress&&(n||a||(this._startHighlight(E),this._endHighlight(E)),'android'!==o.default.OS||this.props.touchSoundDisabled||s.default.playTouchSound(),this.touchableHandlePress(E))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout((function(){e.touchableHandleActivePressOut(t)}),this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},G=(C.touchableHandleFocus,C.touchableHandleBlur,(0,e.default)(C,["touchableHandleFocus","touchableHandleBlur"]));C.withoutDefaultFocusAndBlur=G;var V={Mixin:C,renderDebugView:function(t){t.color,t.hitSlop;return null}};_e.default=V}),424,[2,4,50,39,277,425,427,16,223]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n}),425,[2,426]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),o=function(n){var o=this;if(o.instancePool.length){var t=o.instancePool.pop();return o.call(t,n),t}return new o(n)},t=function(o){var t=this;(0,n.default)(o instanceof t,'Trying to release an instance into a pool of a different type.'),o.destructor(),t.instancePool.lengthi&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n}),456,[]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]),E=n(r(d[1])),s=n(r(d[2])),o=n(r(d[3])),A=n(r(d[4])),_=n(r(d[5])),S=n(r(d[6])),O=Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'}),C=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',READ_VOICEMAIL:'com.android.voicemail.permission.READ_VOICEMAIL',WRITE_VOICEMAIL:'com.android.voicemail.permission.WRITE_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',BODY_SENSORS_BACKGROUND:'android.permission.BODY_SENSORS_BACKGROUND',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',READ_MEDIA_IMAGES:'android.permission.READ_MEDIA_IMAGES',READ_MEDIA_VIDEO:'android.permission.READ_MEDIA_VIDEO',READ_MEDIA_AUDIO:'android.permission.READ_MEDIA_AUDIO',READ_MEDIA_VISUAL_USER_SELECTED:'android.permission.READ_MEDIA_VISUAL_USER_SELECTED',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE',ACCESS_MEDIA_LOCATION:'android.permission.ACCESS_MEDIA_LOCATION',ACCEPT_HANDOVER:'android.permission.ACCEPT_HANDOVER',ACTIVITY_RECOGNITION:'android.permission.ACTIVITY_RECOGNITION',ANSWER_PHONE_CALLS:'android.permission.ANSWER_PHONE_CALLS',READ_PHONE_NUMBERS:'android.permission.READ_PHONE_NUMBERS',UWB_RANGING:'android.permission.UWB_RANGING',POST_NOTIFICATIONS:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),R=(function(){return(0,o.default)((function n(){(0,s.default)(this,n),this.PERMISSIONS=C,this.RESULTS=O}),[{key:"checkPermission",value:function(n){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),(0,S.default)(_.default,'PermissionsAndroid is not installed correctly.'),_.default.checkPermission(n)}},{key:"check",value:function(n){return(0,S.default)(_.default,'PermissionsAndroid is not installed correctly.'),_.default.checkPermission(n)}},{key:"requestPermission",value:(R=(0,E.default)((function*(n,E){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),(yield this.request(n,E))===this.RESULTS.GRANTED})),function(n,E){return R.apply(this,arguments)})},{key:"request",value:(n=(0,E.default)((function*(n,E){return(0,S.default)(_.default,'PermissionsAndroid is not installed correctly.'),E&&(yield _.default.shouldShowRequestPermissionRationale(n))&&A.default?new Promise((function(s,o){var S=Object.assign({},E);A.default.showAlert(S,(function(){return o(new Error('Error showing rationale'))}),(function(){return s(_.default.requestPermission(n))}))})):_.default.requestPermission(n)})),function(E,s){return n.apply(this,arguments)})},{key:"requestMultiple",value:function(n){return(0,S.default)(_.default,'PermissionsAndroid is not installed correctly.'),_.default.requestMultiplePermissions(n)}}]);var n,R})(),I=new R;m.exports=I}),457,[2,349,6,7,152,458,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),458,[459]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PermissionsAndroid')}),459,[42]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5])),f=t(r(d[6])),s=new l.default('ios'!==u.default.OS?null:c.default),v=new Map,h=(function(){function t(n){var l=this;(0,o.default)(this,t),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=n.remote,this._isRemote&&(this._notificationId=n.notificationId),n.remote?Object.keys(n).forEach((function(t){var o=n[t];'aps'===t?(l._alert=o.alert,l._sound=o.sound,l._badgeCount=o.badge,l._category=o.category,l._contentAvailable=o['content-available'],l._threadID=o['thread-id']):l._data[t]=o})):(this._badgeCount=n.applicationIconBadgeNumber,this._sound=n.soundName,this._alert=n.alertBody,this._data=n.userInfo,this._category=n.category)}return(0,n.default)(t,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,f.default)('notification'===o||'register'===o||'registrationError'===o||'localNotification'===o,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===o?l=s.addListener("remoteNotificationReceived",(function(o){n(new t(o))})):'localNotification'===o?l=s.addListener("localNotificationReceived",(function(o){n(new t(o))})):'register'===o?l=s.addListener("remoteNotificationsRegistered",(function(t){n(t.deviceToken)})):'registrationError'===o&&(l=s.addListener("remoteNotificationRegistrationError",(function(t){n(t)}))),v.set(o,l)}},{key:"removeEventListener",value:function(t){(0,f.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var o=v.get(t);o&&(o.remove(),v.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,f.default)('function'==typeof t,'Must provide a valid callback'),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getInitialNotification().then((function(o){return o&&new t(o)}))}},{key:"getAuthorizationStatus",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getAuthorizationStatus(t)}}])})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=h}),460,[2,6,7,131,39,461,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),461,[462]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('PushNotificationManager')}),462,[42]); +__d((function(g,r,i,a,m,e,d){'use strict';var t={get:function(t){return console.warn('Settings is not yet supported on this platform.'),null},set:function(t){console.warn('Settings is not yet supported on this platform.')},watchKeys:function(t,n){return console.warn('Settings is not yet supported on this platform.'),-1},clearWatch:function(t){console.warn('Settings is not yet supported on this platform.')}};m.exports=t}),463,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),o=(t(r(d[3])),t(r(d[4]))),l=(function(){return(0,n.default)((function t(){(0,s.default)(this,t)}),null,[{key:"share",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[5])('object'==typeof t&&null!==t,'Content to share must be a valid object'),r(d[5])('string'==typeof t.url||'string'==typeof t.message,'At least one of URL or message is required'),r(d[5])('object'==typeof s&&null!==s,'Options must be a valid object'),r(d[5])(o.default,'ShareModule should be registered on Android.'),r(d[5])(null==t.title||'string'==typeof t.title,'Invalid title: title should be a string.');var n={title:t.title,message:'string'==typeof t.message?t.message:void 0};return o.default.share(n,s.dialogTitle).then((function(t){return Object.assign({activityType:null},t)}))}}])})();l.sharedAction='sharedAction',l.dismissedAction='dismissedAction',m.exports=l}),464,[2,6,7,433,465,31]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),465,[466]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.get('ShareModule')}),466,[42]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),f=t.default.getConstants(),n={SHORT:f.SHORT,LONG:f.LONG,TOP:f.TOP,BOTTOM:f.BOTTOM,CENTER:f.CENTER,show:function(f,n){t.default.show(f,n)},showWithGravity:function(f,n,o){t.default.showWithGravity(f,n,o)},showWithGravityAndOffset:function(f,n,o,O,s){t.default.showWithGravityAndOffset(f,n,o,O,s)}};m.exports=n}),467,[2,468]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),468,[469]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('ToastAndroid')}),469,[42]); +__d((function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l){var c=(0,t.useRef)(null);null==c.current&&(c.current=new n.default.Value(u,l));return c.current};var n=u(r(d[1])),t=r(d[2])}),470,[2,287,16]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,u.useSyncExternalStore)(o,n.default.getColorScheme)};var n=t(r(d[1])),u=r(d[2]),o=function(t){var u=n.default.addChangeListener(t);return function(){return u.remove()}}}),471,[2,435,16]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NEWLINE:"\n",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});e.default=A}),472,[239]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));var n={vibrate:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if('number'==typeof n)t.default.vibrate(n);else{if(!Array.isArray(n))throw new Error('Vibration pattern should be a number or array');t.default.vibrateByPattern(n,o?0:-1)}},cancel:function(){t.default.cancel()}};m.exports=n}),473,[2,474]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}));_e.default=t.default}),474,[475]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.getEnforcing('Vibration')}),475,[42]); +__d((function(g,r,i,a,m,_e,d){'use strict';var n,t=r(d[0]),e=r(d[1]),u=r(d[2]),o=r(d[3]),c=r(d[4]);function l(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(l=function(){return!!n})()}n=(function(n){function f(){return t(this,f),n=this,c=arguments,e=o(e=f),u(n,l()?Reflect.construct(e,c||[],o(n).constructor):e.apply(n,c));var n,e,c}return c(f,n),e(f,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(n){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}])})(r(d[5]).Component),m.exports=n}),476,[6,7,11,13,14,16]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(o){throw new Error('DynamicColorIOS is not available on this platform.')}}),477,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var r,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.forwardRef((function(r,t){var i=Object.keys(r).reduce((function(e,n){return o.includes(n)&&(e[n]=r[n]),e}),Object.assign({},u)),l=(0,n.useRef)(),f=(0,n.useRef)();return(0,n.useImperativeHandle)(t,(function(){var e=f.current;return l.current&&e?(l.current.handlerTag=e.handlerTag,l.current):null}),[l,f]),(0,a.jsx)(_r(d[4]).NativeViewGestureHandler,Object.assign({},i,{ref:f,children:(0,a.jsx)(e,Object.assign({},r,{ref:l}))}))}));return i.displayName=(null==e?void 0:e.displayName)||(null==e||null==(r=e.render)?void 0:r.name)||'string'==typeof e&&e||'ComponentWrapper',i};var r=e(_r(d[1])),n=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(r);if(n&&n.has(e))return n.get(e);var t={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(t,o,i):t[o]=e[o]}return t.default=e,n&&n.set(e,t),t})(_r(d[2])),t=n,a=_r(d[3]);function u(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:r})(e)}var o=[].concat((0,r.default)(_r(d[4]).nativeViewProps),['onGestureHandlerEvent','onGestureHandlerStateChange'])}),478,[2,22,16,223,479]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.nativeViewProps=e.nativeViewHandlerName=e.nativeViewGestureHandlerProps=e.NativeViewGestureHandler=void 0;var n=t(r(d[1])),l=t(r(d[2])),o=e.nativeViewGestureHandlerProps=['shouldActivateOnStart','disallowInterruption'],s=e.nativeViewProps=[].concat((0,n.default)(r(d[3]).baseGestureHandlerProps),o),v=e.nativeViewHandlerName='NativeViewGestureHandler';e.NativeViewGestureHandler=(0,l.default)({name:v,allowedProps:s,config:{}})}),479,[2,22,480,492]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var t=e.name,l=e.allowedProps,h=void 0===l?[]:l,E=e.config,H=void 0===E?{}:E,y=e.transformProps,T=e.customNativeProps,G=void 0===T?[]:T,w=(function(e){function l(e){var n,a,s,f;if((0,r.default)(this,l),a=this,s=l,f=[e],s=(0,i.default)(s),(n=(0,o.default)(a,v()?Reflect.construct(s,f||[],(0,i.default)(a).constructor):s.apply(a,f))).onGestureHandlerEvent=function(e){e.nativeEvent.handlerTag===n.handlerTag?'function'==typeof n.props.onGestureEvent&&(null==n.props.onGestureEvent||n.props.onGestureEvent(e)):null==n.props.onGestureHandlerEvent||n.props.onGestureHandlerEvent(e)},n.onGestureHandlerStateChange=function(e){if(e.nativeEvent.handlerTag===n.handlerTag){'function'==typeof n.props.onHandlerStateChange&&(null==n.props.onHandlerStateChange||n.props.onHandlerStateChange(e));var t=e.nativeEvent.state,r=O[t],a=r&&n.props[r];a&&'function'==typeof a&&a(e)}else null==n.props.onGestureHandlerStateChange||n.props.onGestureHandlerStateChange(e)},n.refHandler=function(e){n.viewNode=e;var t=u.Children.only(n.props.children).ref;null!==t&&('function'==typeof t?t(e):t.current=e)},n.createGestureHandler=function(e){n.config=e,c.default.createGestureHandler(t,n.handlerTag,e)},n.attachGestureHandler=function(e){if(n.viewTag=e,'web'===p.Platform.OS)c.default.attachGestureHandler(n.handlerTag,e,_r(d[16]).ActionType.JS_FUNCTION_OLD_API,n.propsRef);else{(0,_r(d[17]).registerOldGestureHandler)(n.handlerTag,{onGestureEvent:n.onGestureHandlerEvent,onGestureStateChange:n.onGestureHandlerStateChange});var t=(o=null==(r=n.props)?void 0:r.onGestureEvent,i=o&&('current'in o||'workletEventHandler'in o),s=null==(a=n.props)?void 0:a.onHandlerStateChange,i||s&&('current'in s||'workletEventHandler'in s)?_r(d[16]).ActionType.REANIMATED_WORKLET:o&&'__isNative'in o?_r(d[16]).ActionType.NATIVE_ANIMATED_EVENT:_r(d[16]).ActionType.JS_FUNCTION_OLD_API);c.default.attachGestureHandler(n.handlerTag,e,t)}var r,a,o,i,s;(0,_r(d[18]).scheduleFlushOperations)()},n.updateGestureHandler=function(e){n.config=e,c.default.updateGestureHandler(n.handlerTag,e),(0,_r(d[18]).scheduleFlushOperations)()},n.handlerTag=(0,_r(d[19]).getNextHandlerTag)(),n.config={},n.propsRef=u.createRef(),n.isMountedRef=u.createRef(),n.state={allowTouches:S},e.id){if(void 0!==_r(d[17]).handlerIDToTag[e.id])throw new Error(`Handler with ID "${e.id}" already registered`);_r(d[17]).handlerIDToTag[e.id]=n.handlerTag}return n}return(0,s.default)(l,e),(0,a.default)(l,[{key:"componentDidMount",value:function(){var e=this,t=this.props;this.isMountedRef.current=!0,N(t)&&(0,_r(d[20]).ghQueueMicrotask)((function(){e.update(D)})),this.createGestureHandler((0,_r(d[18]).filterConfig)(y?y(this.props):this.props,[].concat((0,n.default)(h),(0,n.default)(G)),H)),this.attachGestureHandler((0,_r(d[18]).findNodeHandle)(this.viewNode))}},{key:"componentDidUpdate",value:function(){var e=(0,_r(d[18]).findNodeHandle)(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(D)}},{key:"componentWillUnmount",value:function(){var e;null==(e=this.inspectorToggleListener)||e.remove(),this.isMountedRef.current=!1,c.default.dropGestureHandler(this.handlerTag),(0,_r(d[18]).scheduleFlushOperations)();var t=this.props.id;t&&delete _r(d[17]).handlerIDToTag[t]}},{key:"update",value:function(e){var t=this;if(this.isMountedRef.current)if(N(this.props)&&e>0)(0,_r(d[20]).ghQueueMicrotask)((function(){t.update(e-1)}));else{var r=(0,_r(d[18]).filterConfig)(y?y(this.props):this.props,[].concat((0,n.default)(h),(0,n.default)(G)),H);(0,_r(d[14]).deepEqual)(this.config,r)||this.updateGestureHandler(r)}}},{key:"setNativeProps",value:function(e){var t=Object.assign({},this.props,e),r=(0,_r(d[18]).filterConfig)(y?y(t):t,[].concat((0,n.default)(h),(0,n.default)(G)),H);this.updateGestureHandler(r)}},{key:"render",value:function(){var e,n=this.onGestureHandlerEvent,r=this.props,a=r.onGestureEvent,o=r.onGestureHandlerEvent;if(a&&'function'!=typeof a){if(o)throw new Error('Nesting touch handlers with native animated driver is not supported yet');n=a}else if(o&&'function'!=typeof o)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var i=this.onGestureHandlerStateChange,s=this.props,l=s.onHandlerStateChange,p=s.onGestureHandlerStateChange;if(l&&'function'!=typeof l){if(p)throw new Error('Nesting touch handlers with native animated driver is not supported yet');i=l}else if(p&&'function'!=typeof p)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var c={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?i:void 0};this.propsRef.current=c;var f=null;try{f=u.Children.only(this.props.children)}catch(e){throw new Error((0,_r(d[14]).tagMessage)(`${t} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}var h=f.props.children;return u.cloneElement(f,Object.assign({ref:this.refHandler,collapsable:!1},(0,_r(d[14]).isJestEnv)()?{handlerType:t,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:null!=(e=this.props.testID)?e:f.props.testID},c),h)}}])})(u.Component);return w.displayName=t,w.contextType=f.default,w};var t,n=e(_r(d[1])),r=e(_r(d[2])),a=e(_r(d[3])),o=e(_r(d[4])),i=e(_r(d[5])),s=e(_r(d[6])),l=e(_r(d[7])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[8])),p=_r(d[9]),c=e(_r(d[10])),f=e(_r(d[11]));_r(d[12]);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var E=p.UIManager;_r(d[13]).customDirectEventTypes.topGestureHandlerEvent={registrationName:'onGestureHandlerEvent'};var H=Object.assign({onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}},(0,_r(d[14]).isFabric)()&&'android'===p.Platform.OS&&{topOnGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},topOnGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}});E.genericDirectEventTypes=Object.assign({},E.genericDirectEventTypes,H);var y=null!=(t=null==E.getViewManagerConfig?void 0:E.getViewManagerConfig('getConstants'))?t:null==E.getConstants?void 0:E.getConstants();y&&(y.genericDirectEventTypes=Object.assign({},y.genericDirectEventTypes,H));var T=E.setJSResponder,G=void 0===T?function(){}:T,w=E.clearJSResponder,C=void 0===w?function(){}:w;E.setJSResponder=function(e,t){c.default.handleSetJSResponder(e,t),G(e,t)},E.clearJSResponder=function(){c.default.handleClearJSResponder(),C()};var S=!0;function N(e){var t=function(e){return Array.isArray(e)?e.some((function(e){return e&&null===e.current})):e&&null===e.current};return t(e.simultaneousHandlers)||t(e.waitFor)}var O=(0,l.default)((0,l.default)((0,l.default)((0,l.default)((0,l.default)((0,l.default)({},_r(d[15]).State.UNDETERMINED,void 0),_r(d[15]).State.BEGAN,'onBegan'),_r(d[15]).State.FAILED,'onFailed'),_r(d[15]).State.CANCELLED,'onCancelled'),_r(d[15]).State.ACTIVE,'onActivated'),_r(d[15]).State.END,'onEnded'),D=1}),480,[2,22,6,7,11,13,14,197,16,18,481,483,223,484,485,486,487,488,489,491,490]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=u.default}),481,[2,482]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(d[0]);e.default=u.TurboModuleRegistry.getEnforcing('RNGestureHandlerModule')}),482,[18]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=u.default.createContext(!1)}),483,[2,16]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"customDirectEventTypes",{enumerable:!0,get:function(){return r(d[0]).customDirectEventTypes}})}),484,[215]); +__d((function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.INT32_MAX=void 0,e.deepEqual=function n(t,u){if(t===u)return!0;if('object'!=typeof t||'object'!=typeof u||null===t||null===u)return!1;var i=Object.keys(t),o=Object.keys(u);if(i.length!==o.length)return!1;for(var c of i)if(!o.includes(c)||!n(t[c],u[c]))return!1;return!0},e.hasProperty=u,e.isFabric=function(){var n;return!(null==(n=g)||!n.nativeFabricUIManager)},e.isJestEnv=function(){return u(g,'process')&&!!process.env.JEST_WORKER_ID},e.isRemoteDebuggingEnabled=function(){var n=g;return!(n.nativeCallSyncHook&&!n.__REMOTEDEV__||n.RN$Bridgeless)},e.tagMessage=function(n){return`[react-native-gesture-handler] ${n}`},e.toArray=function(n){if(!Array.isArray(n))return[n];return n},e.withPrevAndCurrent=function(n,u){var i=[null],o=(0,t.default)(n),c=[];return o.forEach((function(n,t){var o=i[t],f=u(o,n);i.push(f),c.push(f)})),c};var t=n(r(d[1]));function u(n,t){return Object.prototype.hasOwnProperty.call(n,t)}e.INT32_MAX=2147483647}),485,[2,22]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;e.State={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}}),486,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionType=void 0;e.ActionType={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4}}),487,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.findHandler=u,e.findHandlerByTestID=function(n){var t,s=l.get(n);return void 0!==s&&null!=(t=u(s))?t:null},e.findOldGestureHandler=function(n){return t.get(n)},e.handlerIDToTag=void 0,e.registerHandler=function(t,u,s){n.set(t,u),(0,r(d[0]).isJestEnv)()&&s&&l.set(s,t)},e.registerOldGestureHandler=function(n,l){t.set(n,l)},e.unregisterHandler=function(t,u){n.delete(t),(0,r(d[0]).isJestEnv)()&&u&&l.delete(u)};e.handlerIDToTag={};var n=new Map,t=new Map,l=new Map;function u(t){return n.get(t)}}),488,[485]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.filterConfig=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=Object.assign({},o);for(var l of t){var c=n[l];v=l,void 0===(s=c)||s===Object(s)&&'__isNative'in s||'onHandlerStateChange'===v||'onGestureEvent'===v||('simultaneousHandlers'===l||'waitFor'===l?c=u(n[l]):'hitSlop'===l&&'object'!=typeof c&&(c={top:c,left:c,bottom:c,right:c}),f[l]=c)}var s,v;return f},e.findNodeHandle=function(n){if('web'===t.Platform.OS)return n;return(0,t.findNodeHandle)(n)},e.scheduleFlushOperations=function(){f||(f=!0,(0,r(d[5]).ghQueueMicrotask)((function(){o.default.flushOperations(),f=!1})))};var t=r(d[1]),o=n(r(d[2]));function u(n){return n=(0,r(d[3]).toArray)(n),'web'===t.Platform.OS?n.map((function(n){return n.current})).filter((function(n){return n})):n.map((function(n){var t;return r(d[4]).handlerIDToTag[n]||(null==(t=n.current)?void 0:t.handlerTag)||-1})).filter((function(n){return n>0}))}var f=!1}),489,[2,18,481,485,488,490]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ghQueueMicrotask=void 0;e.ghQueueMicrotask='function'==typeof setImmediate?setImmediate.bind(null):'function'==typeof requestAnimationFrame?requestAnimationFrame.bind(null):queueMicrotask.bind(null)}),490,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getNextHandlerTag=function(){return n++};var n=1}),491,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.baseGestureHandlerWithDetectorProps=e.baseGestureHandlerProps=e.MouseButton=void 0;var n=['id','enabled','shouldCancelWhenOutside','hitSlop','cancelsTouchesInView','userSelect','activeCursor','mouseButton','enableContextMenu','touchAction'];e.baseGestureHandlerProps=[].concat(n,['waitFor','simultaneousHandlers','blocksHandlers'],['onBegan','onFailed','onCancelled','onActivated','onEnded','onGestureEvent','onHandlerStateChange']),e.baseGestureHandlerWithDetectorProps=[].concat(n,['needsPointerData','manualActivation']),e.MouseButton=(function(n){return n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.MIDDLE=4]="MIDDLE",n[n.BUTTON_4=8]="BUTTON_4",n[n.BUTTON_5=16]="BUTTON_5",n[n.ALL=31]="ALL",n})({})}),492,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=u.default}),493,[2,494]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNGestureHandlerButton',validAttributes:{exclusive:!0,foreground:!0,borderless:!0,enabled:!0,rippleColor:{process:r(d[2]).default},rippleRadius:!0,touchSoundDisabled:!0,borderWidth:!0,borderColor:{process:r(d[2]).default},borderStyle:!0}};e.default=r(d[3]).get('RNGestureHandlerButton',(function(){return o}))}),494,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Directions=e.DiagonalDirections=void 0;e.Directions={RIGHT:1,LEFT:2,UP:4,DOWN:8},e.DiagonalDirections={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10}}),495,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.TextInput=_e.Switch=_e.ScrollView=_e.RefreshControl=_e.FlatList=_e.DrawerLayoutAndroid=void 0;var r=e(_r(d[1])),t=e(_r(d[2])),n=e(_r(d[3])),o=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(n,l,a):n[l]=e[l]}return n.default=e,t&&t.set(e,n),n})(_r(d[4])),l=_r(d[5]),a=e(_r(d[6])),u=_r(d[7]),i=["refreshControl","waitFor"],f=["waitFor","refreshControl"];function s(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(s=function(e){return e?t:r})(e)}_e.RefreshControl=(0,a.default)(l.RefreshControl,{disallowInterruption:!0,shouldCancelWhenOutside:!1});var c=(0,a.default)(l.ScrollView,{disallowInterruption:!0,shouldCancelWhenOutside:!1}),w=_e.ScrollView=o.forwardRef((function(e,r){var l=o.useRef(null),a=e.refreshControl,f=e.waitFor,s=(0,n.default)(e,i);return(0,u.jsx)(c,Object.assign({},s,{ref:r,waitFor:[].concat((0,t.default)((0,_r(d[8]).toArray)(null!=f?f:[])),[l]),refreshControl:a?o.cloneElement(a,{ref:l}):void 0}))}));_e.Switch=(0,a.default)(l.Switch,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),_e.TextInput=(0,a.default)(l.TextInput),_e.DrawerLayoutAndroid=(0,a.default)(l.DrawerLayoutAndroid,{disallowInterruption:!0}),_e.FlatList=o.forwardRef((function(e,a){var i=o.useRef(null),s=e.waitFor,c=e.refreshControl,p=(0,n.default)(e,f),h={},v={};for(var O of Object.entries(p)){var j=(0,r.default)(O,2),y=j[0],C=j[1];_r(d[9]).nativeViewProps.includes(y)?v[y]=C:h[y]=C}return(0,u.jsx)(l.FlatList,Object.assign({ref:a},h,{renderScrollComponent:function(e){return(0,u.jsx)(w,Object.assign({},Object.assign({},e,v,{waitFor:[].concat((0,t.default)((0,_r(d[8]).toArray)(null!=s?s:[])),[i])})))},refreshControl:c?o.cloneElement(c,{ref:i}):void 0}))}))}),496,[2,44,22,4,16,18,478,223,485,479]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.flingHandlerName=e.flingGestureHandlerProps=e.FlingGestureHandler=void 0;var l=n(r(d[1])),t=n(r(d[2])),o=e.flingGestureHandlerProps=['numberOfPointers','direction'],s=e.flingHandlerName='FlingGestureHandler';e.FlingGestureHandler=(0,t.default)({name:s,allowedProps:[].concat((0,l.default)(r(d[3]).baseGestureHandlerProps),o),config:{}})}),497,[2,22,480,492]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.forceTouchHandlerName=_e.forceTouchGestureHandlerProps=_e.ForceTouchGestureHandler=void 0;var o=e(r(d[1])),t=e(r(d[2])),c=e(r(d[3])),u=e(r(d[4])),l=e(r(d[5])),n=e(r(d[6])),f=e(r(d[7])),s=e(r(d[8])),h=e(r(d[9]));function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var p=_e.forceTouchGestureHandlerProps=['minForce','maxForce','feedbackOnActivation'],T=(function(e){function o(){return(0,t.default)(this,o),e=this,c=o,n=arguments,c=(0,l.default)(c),(0,u.default)(e,v()?Reflect.construct(c,n||[],(0,l.default)(e).constructor):c.apply(e,n));var e,c,n}return(0,n.default)(o,e),(0,c.default)(o,[{key:"componentDidMount",value:function(){console.warn((0,r(d[10]).tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'))}},{key:"render",value:function(){return this.props.children}}])})(f.default.Component);T.forceTouchAvailable=!1;var b=_e.forceTouchHandlerName='ForceTouchGestureHandler';(_e.ForceTouchGestureHandler=null!=s.default&&s.default.forceTouchAvailable?(0,h.default)({name:b,allowedProps:[].concat((0,o.default)(r(d[11]).baseGestureHandlerProps),p),config:{}}):T).forceTouchAvailable=(null==s.default?void 0:s.default.forceTouchAvailable)||!1}),498,[2,22,6,7,11,13,14,16,499,480,485,492]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,l=r(d[0]);e.default=null!=(t=null==l.NativeModules?void 0:l.NativeModules.PlatformConstants)?t:l.Platform.constants}),499,[18]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.GestureObjects=void 0;var t=n(r(d[1]));e.GestureObjects={Tap:function(){return new(r(d[2]).TapGesture)},Pan:function(){return new(r(d[3]).PanGesture)},Pinch:function(){return new(r(d[4]).PinchGesture)},Rotation:function(){return new(r(d[5]).RotationGesture)},Fling:function(){return new(r(d[6]).FlingGesture)},LongPress:function(){return new(r(d[7]).LongPressGesture)},ForceTouch:function(){return new(r(d[8]).ForceTouchGesture)},Native:function(){return new(r(d[9]).NativeGesture)},Manual:function(){return new(r(d[10]).ManualGesture)},Hover:function(){return new(r(d[11]).HoverGesture)},Race:function(){for(var n=arguments.length,u=new Array(n),o=0;o0})))?n:[]}}),514,[2,44,22,18,16,492,515,516,517,498,497,511,479,502,485,518,689,692]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.tapHandlerName=e.tapGestureHandlerProps=e.TapGestureHandler=void 0;var n=t(r(d[1])),l=t(r(d[2])),s=e.tapGestureHandlerProps=['maxDurationMs','maxDelayMs','numberOfTaps','maxDeltaX','maxDeltaY','maxDist','minPointers'],u=e.tapHandlerName='TapGestureHandler';e.TapGestureHandler=(0,l.default)({name:u,allowedProps:[].concat((0,n.default)(r(d[3]).baseGestureHandlerProps),s),config:{shouldCancelWhenOutside:!0}})}),515,[2,22,480,492]); +__d((function(g,r,i,a,m,e,d){var f=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PanGestureHandler=void 0,e.managePanProps=v,e.panHandlerName=e.panGestureHandlerProps=e.panGestureHandlerCustomNativeProps=void 0;var t=f(r(d[1])),s=f(r(d[2])),O=e.panGestureHandlerProps=['activeOffsetY','activeOffsetX','failOffsetY','failOffsetX','minDist','minVelocity','minVelocityX','minVelocityY','minPointers','maxPointers','avgTouches','enableTrackpadTwoFingerGesture','activateAfterLongPress'],n=e.panGestureHandlerCustomNativeProps=['activeOffsetYStart','activeOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','failOffsetYStart','failOffsetYEnd','failOffsetXStart','failOffsetXEnd'],l=e.panHandlerName='PanGestureHandler';e.PanGestureHandler=(0,s.default)({name:l,allowedProps:[].concat((0,t.default)(r(d[3]).baseGestureHandlerProps),O),config:{},transformProps:v,customNativeProps:n});function c(f){var t=Object.assign({},f);return void 0!==f.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(f.activeOffsetX)?(t.activeOffsetXStart=f.activeOffsetX[0],t.activeOffsetXEnd=f.activeOffsetX[1]):f.activeOffsetX<0?t.activeOffsetXStart=f.activeOffsetX:t.activeOffsetXEnd=f.activeOffsetX),void 0!==f.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(f.activeOffsetY)?(t.activeOffsetYStart=f.activeOffsetY[0],t.activeOffsetYEnd=f.activeOffsetY[1]):f.activeOffsetY<0?t.activeOffsetYStart=f.activeOffsetY:t.activeOffsetYEnd=f.activeOffsetY),void 0!==f.failOffsetX&&(delete t.failOffsetX,Array.isArray(f.failOffsetX)?(t.failOffsetXStart=f.failOffsetX[0],t.failOffsetXEnd=f.failOffsetX[1]):f.failOffsetX<0?t.failOffsetXStart=f.failOffsetX:t.failOffsetXEnd=f.failOffsetX),void 0!==f.failOffsetY&&(delete t.failOffsetY,Array.isArray(f.failOffsetY)?(t.failOffsetYStart=f.failOffsetY[0],t.failOffsetYEnd=f.failOffsetY[1]):f.failOffsetY<0?t.failOffsetYStart=f.failOffsetY:t.failOffsetYEnd=f.failOffsetY),t}function v(f){return c(f)}}),516,[2,22,480,492]); +__d((function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.longPressHandlerName=e.longPressGestureHandlerProps=e.LongPressGestureHandler=void 0;var n=s(r(d[1])),o=s(r(d[2])),l=e.longPressGestureHandlerProps=['minDurationMs','maxDist','numberOfPointers'],t=e.longPressHandlerName='LongPressGestureHandler';e.LongPressGestureHandler=(0,o.default)({name:t,allowedProps:[].concat((0,n.default)(r(d[3]).baseGestureHandlerProps),l),config:{shouldCancelWhenOutside:!0}})}),517,[2,22,480,492]); +__d((function(g,r,i,a,m,_e,d){var e,t;Object.defineProperty(_e,"__esModule",{value:!0}),_e.Reanimated=void 0;try{_e.Reanimated=t=r(d[0])}catch(e){_e.Reanimated=t=void 0}null!=(e=t)&&e.useSharedValue||(_e.Reanimated=t=void 0);var s,n={code:"function reactNativeGestureHandler_reanimatedWrapperTs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===t||t.setGestureState||(t.setGestureState=((s=function(){console.warn((0,r(d[1]).tagMessage)('Please use newer version of react-native-reanimated in order to control state of the gestures.'))}).__closure={tagMessage:r(d[1]).tagMessage},s.__workletHash=6487932999118,s.__initData=n,s))}),518,[519,485]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"BaseAnimationBuilder",{enumerable:!0,get:function(){return _r(d[0]).BaseAnimationBuilder}}),Object.defineProperty(_e,"BounceIn",{enumerable:!0,get:function(){return _r(d[0]).BounceIn}}),Object.defineProperty(_e,"BounceInDown",{enumerable:!0,get:function(){return _r(d[0]).BounceInDown}}),Object.defineProperty(_e,"BounceInLeft",{enumerable:!0,get:function(){return _r(d[0]).BounceInLeft}}),Object.defineProperty(_e,"BounceInRight",{enumerable:!0,get:function(){return _r(d[0]).BounceInRight}}),Object.defineProperty(_e,"BounceInUp",{enumerable:!0,get:function(){return _r(d[0]).BounceInUp}}),Object.defineProperty(_e,"BounceOut",{enumerable:!0,get:function(){return _r(d[0]).BounceOut}}),Object.defineProperty(_e,"BounceOutDown",{enumerable:!0,get:function(){return _r(d[0]).BounceOutDown}}),Object.defineProperty(_e,"BounceOutLeft",{enumerable:!0,get:function(){return _r(d[0]).BounceOutLeft}}),Object.defineProperty(_e,"BounceOutRight",{enumerable:!0,get:function(){return _r(d[0]).BounceOutRight}}),Object.defineProperty(_e,"BounceOutUp",{enumerable:!0,get:function(){return _r(d[0]).BounceOutUp}}),Object.defineProperty(_e,"ColorSpace",{enumerable:!0,get:function(){return _r(d[1]).ColorSpace}}),Object.defineProperty(_e,"ComplexAnimationBuilder",{enumerable:!0,get:function(){return _r(d[0]).ComplexAnimationBuilder}}),Object.defineProperty(_e,"CurvedTransition",{enumerable:!0,get:function(){return _r(d[0]).CurvedTransition}}),Object.defineProperty(_e,"Easing",{enumerable:!0,get:function(){return _r(d[2]).Easing}}),Object.defineProperty(_e,"EntryExitTransition",{enumerable:!0,get:function(){return _r(d[0]).EntryExitTransition}}),Object.defineProperty(_e,"Extrapolate",{enumerable:!0,get:function(){return _r(d[1]).Extrapolate}}),Object.defineProperty(_e,"Extrapolation",{enumerable:!0,get:function(){return _r(d[3]).Extrapolation}}),Object.defineProperty(_e,"FadeIn",{enumerable:!0,get:function(){return _r(d[0]).FadeIn}}),Object.defineProperty(_e,"FadeInDown",{enumerable:!0,get:function(){return _r(d[0]).FadeInDown}}),Object.defineProperty(_e,"FadeInLeft",{enumerable:!0,get:function(){return _r(d[0]).FadeInLeft}}),Object.defineProperty(_e,"FadeInRight",{enumerable:!0,get:function(){return _r(d[0]).FadeInRight}}),Object.defineProperty(_e,"FadeInUp",{enumerable:!0,get:function(){return _r(d[0]).FadeInUp}}),Object.defineProperty(_e,"FadeOut",{enumerable:!0,get:function(){return _r(d[0]).FadeOut}}),Object.defineProperty(_e,"FadeOutDown",{enumerable:!0,get:function(){return _r(d[0]).FadeOutDown}}),Object.defineProperty(_e,"FadeOutLeft",{enumerable:!0,get:function(){return _r(d[0]).FadeOutLeft}}),Object.defineProperty(_e,"FadeOutRight",{enumerable:!0,get:function(){return _r(d[0]).FadeOutRight}}),Object.defineProperty(_e,"FadeOutUp",{enumerable:!0,get:function(){return _r(d[0]).FadeOutUp}}),Object.defineProperty(_e,"FadingTransition",{enumerable:!0,get:function(){return _r(d[0]).FadingTransition}}),Object.defineProperty(_e,"FlipInEasyX",{enumerable:!0,get:function(){return _r(d[0]).FlipInEasyX}}),Object.defineProperty(_e,"FlipInEasyY",{enumerable:!0,get:function(){return _r(d[0]).FlipInEasyY}}),Object.defineProperty(_e,"FlipInXDown",{enumerable:!0,get:function(){return _r(d[0]).FlipInXDown}}),Object.defineProperty(_e,"FlipInXUp",{enumerable:!0,get:function(){return _r(d[0]).FlipInXUp}}),Object.defineProperty(_e,"FlipInYLeft",{enumerable:!0,get:function(){return _r(d[0]).FlipInYLeft}}),Object.defineProperty(_e,"FlipInYRight",{enumerable:!0,get:function(){return _r(d[0]).FlipInYRight}}),Object.defineProperty(_e,"FlipOutEasyX",{enumerable:!0,get:function(){return _r(d[0]).FlipOutEasyX}}),Object.defineProperty(_e,"FlipOutEasyY",{enumerable:!0,get:function(){return _r(d[0]).FlipOutEasyY}}),Object.defineProperty(_e,"FlipOutXDown",{enumerable:!0,get:function(){return _r(d[0]).FlipOutXDown}}),Object.defineProperty(_e,"FlipOutXUp",{enumerable:!0,get:function(){return _r(d[0]).FlipOutXUp}}),Object.defineProperty(_e,"FlipOutYLeft",{enumerable:!0,get:function(){return _r(d[0]).FlipOutYLeft}}),Object.defineProperty(_e,"FlipOutYRight",{enumerable:!0,get:function(){return _r(d[0]).FlipOutYRight}}),Object.defineProperty(_e,"IOSReferenceFrame",{enumerable:!0,get:function(){return _r(d[4]).IOSReferenceFrame}}),Object.defineProperty(_e,"InterfaceOrientation",{enumerable:!0,get:function(){return _r(d[4]).InterfaceOrientation}}),Object.defineProperty(_e,"JumpingTransition",{enumerable:!0,get:function(){return _r(d[0]).JumpingTransition}}),Object.defineProperty(_e,"KeyboardState",{enumerable:!0,get:function(){return _r(d[4]).KeyboardState}}),Object.defineProperty(_e,"Keyframe",{enumerable:!0,get:function(){return _r(d[0]).Keyframe}}),Object.defineProperty(_e,"Layout",{enumerable:!0,get:function(){return _r(d[0]).Layout}}),Object.defineProperty(_e,"LayoutAnimationConfig",{enumerable:!0,get:function(){return _r(d[5]).LayoutAnimationConfig}}),Object.defineProperty(_e,"LightSpeedInLeft",{enumerable:!0,get:function(){return _r(d[0]).LightSpeedInLeft}}),Object.defineProperty(_e,"LightSpeedInRight",{enumerable:!0,get:function(){return _r(d[0]).LightSpeedInRight}}),Object.defineProperty(_e,"LightSpeedOutLeft",{enumerable:!0,get:function(){return _r(d[0]).LightSpeedOutLeft}}),Object.defineProperty(_e,"LightSpeedOutRight",{enumerable:!0,get:function(){return _r(d[0]).LightSpeedOutRight}}),Object.defineProperty(_e,"LinearTransition",{enumerable:!0,get:function(){return _r(d[0]).LinearTransition}}),Object.defineProperty(_e,"PerformanceMonitor",{enumerable:!0,get:function(){return _r(d[6]).PerformanceMonitor}}),Object.defineProperty(_e,"PinwheelIn",{enumerable:!0,get:function(){return _r(d[0]).PinwheelIn}}),Object.defineProperty(_e,"PinwheelOut",{enumerable:!0,get:function(){return _r(d[0]).PinwheelOut}}),Object.defineProperty(_e,"ReanimatedLogLevel",{enumerable:!0,get:function(){return _r(d[7]).LogLevel}}),Object.defineProperty(_e,"ReduceMotion",{enumerable:!0,get:function(){return _r(d[4]).ReduceMotion}}),Object.defineProperty(_e,"ReducedMotionConfig",{enumerable:!0,get:function(){return _r(d[8]).ReducedMotionConfig}}),Object.defineProperty(_e,"RollInLeft",{enumerable:!0,get:function(){return _r(d[0]).RollInLeft}}),Object.defineProperty(_e,"RollInRight",{enumerable:!0,get:function(){return _r(d[0]).RollInRight}}),Object.defineProperty(_e,"RollOutLeft",{enumerable:!0,get:function(){return _r(d[0]).RollOutLeft}}),Object.defineProperty(_e,"RollOutRight",{enumerable:!0,get:function(){return _r(d[0]).RollOutRight}}),Object.defineProperty(_e,"RotateInDownLeft",{enumerable:!0,get:function(){return _r(d[0]).RotateInDownLeft}}),Object.defineProperty(_e,"RotateInDownRight",{enumerable:!0,get:function(){return _r(d[0]).RotateInDownRight}}),Object.defineProperty(_e,"RotateInUpLeft",{enumerable:!0,get:function(){return _r(d[0]).RotateInUpLeft}}),Object.defineProperty(_e,"RotateInUpRight",{enumerable:!0,get:function(){return _r(d[0]).RotateInUpRight}}),Object.defineProperty(_e,"RotateOutDownLeft",{enumerable:!0,get:function(){return _r(d[0]).RotateOutDownLeft}}),Object.defineProperty(_e,"RotateOutDownRight",{enumerable:!0,get:function(){return _r(d[0]).RotateOutDownRight}}),Object.defineProperty(_e,"RotateOutUpLeft",{enumerable:!0,get:function(){return _r(d[0]).RotateOutUpLeft}}),Object.defineProperty(_e,"RotateOutUpRight",{enumerable:!0,get:function(){return _r(d[0]).RotateOutUpRight}}),Object.defineProperty(_e,"ScreenTransition",{enumerable:!0,get:function(){return _r(d[9]).ScreenTransition}}),Object.defineProperty(_e,"SensorType",{enumerable:!0,get:function(){return _r(d[4]).SensorType}}),Object.defineProperty(_e,"SequencedTransition",{enumerable:!0,get:function(){return _r(d[0]).SequencedTransition}}),Object.defineProperty(_e,"SharedTransition",{enumerable:!0,get:function(){return _r(d[0]).SharedTransition}}),Object.defineProperty(_e,"SharedTransitionType",{enumerable:!0,get:function(){return _r(d[0]).SharedTransitionType}}),Object.defineProperty(_e,"SlideInDown",{enumerable:!0,get:function(){return _r(d[0]).SlideInDown}}),Object.defineProperty(_e,"SlideInLeft",{enumerable:!0,get:function(){return _r(d[0]).SlideInLeft}}),Object.defineProperty(_e,"SlideInRight",{enumerable:!0,get:function(){return _r(d[0]).SlideInRight}}),Object.defineProperty(_e,"SlideInUp",{enumerable:!0,get:function(){return _r(d[0]).SlideInUp}}),Object.defineProperty(_e,"SlideOutDown",{enumerable:!0,get:function(){return _r(d[0]).SlideOutDown}}),Object.defineProperty(_e,"SlideOutLeft",{enumerable:!0,get:function(){return _r(d[0]).SlideOutLeft}}),Object.defineProperty(_e,"SlideOutRight",{enumerable:!0,get:function(){return _r(d[0]).SlideOutRight}}),Object.defineProperty(_e,"SlideOutUp",{enumerable:!0,get:function(){return _r(d[0]).SlideOutUp}}),Object.defineProperty(_e,"StretchInX",{enumerable:!0,get:function(){return _r(d[0]).StretchInX}}),Object.defineProperty(_e,"StretchInY",{enumerable:!0,get:function(){return _r(d[0]).StretchInY}}),Object.defineProperty(_e,"StretchOutX",{enumerable:!0,get:function(){return _r(d[0]).StretchOutX}}),Object.defineProperty(_e,"StretchOutY",{enumerable:!0,get:function(){return _r(d[0]).StretchOutY}}),Object.defineProperty(_e,"ZoomIn",{enumerable:!0,get:function(){return _r(d[0]).ZoomIn}}),Object.defineProperty(_e,"ZoomInDown",{enumerable:!0,get:function(){return _r(d[0]).ZoomInDown}}),Object.defineProperty(_e,"ZoomInEasyDown",{enumerable:!0,get:function(){return _r(d[0]).ZoomInEasyDown}}),Object.defineProperty(_e,"ZoomInEasyUp",{enumerable:!0,get:function(){return _r(d[0]).ZoomInEasyUp}}),Object.defineProperty(_e,"ZoomInLeft",{enumerable:!0,get:function(){return _r(d[0]).ZoomInLeft}}),Object.defineProperty(_e,"ZoomInRight",{enumerable:!0,get:function(){return _r(d[0]).ZoomInRight}}),Object.defineProperty(_e,"ZoomInRotate",{enumerable:!0,get:function(){return _r(d[0]).ZoomInRotate}}),Object.defineProperty(_e,"ZoomInUp",{enumerable:!0,get:function(){return _r(d[0]).ZoomInUp}}),Object.defineProperty(_e,"ZoomOut",{enumerable:!0,get:function(){return _r(d[0]).ZoomOut}}),Object.defineProperty(_e,"ZoomOutDown",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutDown}}),Object.defineProperty(_e,"ZoomOutEasyDown",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutEasyDown}}),Object.defineProperty(_e,"ZoomOutEasyUp",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutEasyUp}}),Object.defineProperty(_e,"ZoomOutLeft",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutLeft}}),Object.defineProperty(_e,"ZoomOutRight",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutRight}}),Object.defineProperty(_e,"ZoomOutRotate",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutRotate}}),Object.defineProperty(_e,"ZoomOutUp",{enumerable:!0,get:function(){return _r(d[0]).ZoomOutUp}}),Object.defineProperty(_e,"advanceAnimationByFrame",{enumerable:!0,get:function(){return _r(d[10]).advanceAnimationByFrame}}),Object.defineProperty(_e,"advanceAnimationByTime",{enumerable:!0,get:function(){return _r(d[10]).advanceAnimationByTime}}),Object.defineProperty(_e,"cancelAnimation",{enumerable:!0,get:function(){return _r(d[11]).cancelAnimation}}),Object.defineProperty(_e,"clamp",{enumerable:!0,get:function(){return _r(d[3]).clamp}}),Object.defineProperty(_e,"combineTransition",{enumerable:!0,get:function(){return _r(d[0]).combineTransition}}),Object.defineProperty(_e,"configureReanimatedLogger",{enumerable:!0,get:function(){return _r(d[12]).configureReanimatedLogger}}),Object.defineProperty(_e,"convertToRGBA",{enumerable:!0,get:function(){return _r(d[13]).convertToRGBA}}),Object.defineProperty(_e,"createAnimatedPropAdapter",{enumerable:!0,get:function(){return _r(d[14]).createAnimatedPropAdapter}}),Object.defineProperty(_e,"createWorkletRuntime",{enumerable:!0,get:function(){return _r(d[15]).createWorkletRuntime}}),_e.default=void 0,Object.defineProperty(_e,"defineAnimation",{enumerable:!0,get:function(){return _r(d[11]).defineAnimation}}),Object.defineProperty(_e,"dispatchCommand",{enumerable:!0,get:function(){return _r(d[16]).dispatchCommand}}),Object.defineProperty(_e,"enableLayoutAnimations",{enumerable:!0,get:function(){return _r(d[15]).enableLayoutAnimations}}),Object.defineProperty(_e,"executeOnUIRuntimeSync",{enumerable:!0,get:function(){return _r(d[15]).executeOnUIRuntimeSync}}),Object.defineProperty(_e,"finishScreenTransition",{enumerable:!0,get:function(){return _r(d[9]).finishScreenTransition}}),Object.defineProperty(_e,"getAnimatedStyle",{enumerable:!0,get:function(){return _r(d[10]).getAnimatedStyle}}),Object.defineProperty(_e,"getRelativeCoords",{enumerable:!0,get:function(){return _r(d[16]).getRelativeCoords}}),Object.defineProperty(_e,"getUseOfValueInStyleWarning",{enumerable:!0,get:function(){return _r(d[17]).getUseOfValueInStyleWarning}}),Object.defineProperty(_e,"getViewProp",{enumerable:!0,get:function(){return _r(d[15]).getViewProp}}),Object.defineProperty(_e,"interpolate",{enumerable:!0,get:function(){return _r(d[3]).interpolate}}),Object.defineProperty(_e,"interpolateColor",{enumerable:!0,get:function(){return _r(d[1]).interpolateColor}}),Object.defineProperty(_e,"isColor",{enumerable:!0,get:function(){return _r(d[13]).isColor}}),Object.defineProperty(_e,"isConfigured",{enumerable:!0,get:function(){return _r(d[15]).isConfigured}}),Object.defineProperty(_e,"isReanimated3",{enumerable:!0,get:function(){return _r(d[15]).isReanimated3}}),Object.defineProperty(_e,"isSharedValue",{enumerable:!0,get:function(){return _r(d[18]).isSharedValue}}),Object.defineProperty(_e,"isWorkletFunction",{enumerable:!0,get:function(){return _r(d[4]).isWorkletFunction}}),Object.defineProperty(_e,"makeMutable",{enumerable:!0,get:function(){return _r(d[15]).makeMutable}}),Object.defineProperty(_e,"makeShareableCloneRecursive",{enumerable:!0,get:function(){return _r(d[15]).makeShareableCloneRecursive}}),Object.defineProperty(_e,"measure",{enumerable:!0,get:function(){return _r(d[16]).measure}}),Object.defineProperty(_e,"processColor",{enumerable:!0,get:function(){return _r(d[13]).processColor}}),Object.defineProperty(_e,"runOnJS",{enumerable:!0,get:function(){return _r(d[15]).runOnJS}}),Object.defineProperty(_e,"runOnRuntime",{enumerable:!0,get:function(){return _r(d[15]).runOnRuntime}}),Object.defineProperty(_e,"runOnUI",{enumerable:!0,get:function(){return _r(d[15]).runOnUI}}),Object.defineProperty(_e,"scrollTo",{enumerable:!0,get:function(){return _r(d[16]).scrollTo}}),Object.defineProperty(_e,"setGestureState",{enumerable:!0,get:function(){return _r(d[16]).setGestureState}}),Object.defineProperty(_e,"setNativeProps",{enumerable:!0,get:function(){return _r(d[16]).setNativeProps}}),Object.defineProperty(_e,"setUpTests",{enumerable:!0,get:function(){return _r(d[10]).setUpTests}}),Object.defineProperty(_e,"startMapper",{enumerable:!0,get:function(){return _r(d[19]).startMapper}}),Object.defineProperty(_e,"startScreenTransition",{enumerable:!0,get:function(){return _r(d[9]).startScreenTransition}}),Object.defineProperty(_e,"stopMapper",{enumerable:!0,get:function(){return _r(d[19]).stopMapper}}),Object.defineProperty(_e,"useAnimatedGestureHandler",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedGestureHandler}}),Object.defineProperty(_e,"useAnimatedKeyboard",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedKeyboard}}),Object.defineProperty(_e,"useAnimatedProps",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedProps}}),Object.defineProperty(_e,"useAnimatedReaction",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedReaction}}),Object.defineProperty(_e,"useAnimatedRef",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedRef}}),Object.defineProperty(_e,"useAnimatedScrollHandler",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedScrollHandler}}),Object.defineProperty(_e,"useAnimatedSensor",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedSensor}}),Object.defineProperty(_e,"useAnimatedStyle",{enumerable:!0,get:function(){return _r(d[20]).useAnimatedStyle}}),Object.defineProperty(_e,"useComposedEventHandler",{enumerable:!0,get:function(){return _r(d[20]).useComposedEventHandler}}),Object.defineProperty(_e,"useDerivedValue",{enumerable:!0,get:function(){return _r(d[20]).useDerivedValue}}),Object.defineProperty(_e,"useEvent",{enumerable:!0,get:function(){return _r(d[20]).useEvent}}),Object.defineProperty(_e,"useFrameCallback",{enumerable:!0,get:function(){return _r(d[20]).useFrameCallback}}),Object.defineProperty(_e,"useHandler",{enumerable:!0,get:function(){return _r(d[20]).useHandler}}),Object.defineProperty(_e,"useInterpolateConfig",{enumerable:!0,get:function(){return _r(d[1]).useInterpolateConfig}}),Object.defineProperty(_e,"useReducedMotion",{enumerable:!0,get:function(){return _r(d[20]).useReducedMotion}}),Object.defineProperty(_e,"useScrollViewOffset",{enumerable:!0,get:function(){return _r(d[20]).useScrollViewOffset}}),Object.defineProperty(_e,"useSharedValue",{enumerable:!0,get:function(){return _r(d[20]).useSharedValue}}),Object.defineProperty(_e,"useWorkletCallback",{enumerable:!0,get:function(){return _r(d[20]).useWorkletCallback}}),Object.defineProperty(_e,"withClamp",{enumerable:!0,get:function(){return _r(d[11]).withClamp}}),Object.defineProperty(_e,"withDecay",{enumerable:!0,get:function(){return _r(d[11]).withDecay}}),Object.defineProperty(_e,"withDelay",{enumerable:!0,get:function(){return _r(d[11]).withDelay}}),Object.defineProperty(_e,"withReanimatedTimer",{enumerable:!0,get:function(){return _r(d[10]).withReanimatedTimer}}),Object.defineProperty(_e,"withRepeat",{enumerable:!0,get:function(){return _r(d[11]).withRepeat}}),Object.defineProperty(_e,"withSequence",{enumerable:!0,get:function(){return _r(d[11]).withSequence}}),Object.defineProperty(_e,"withSpring",{enumerable:!0,get:function(){return _r(d[11]).withSpring}}),Object.defineProperty(_e,"withTiming",{enumerable:!0,get:function(){return _r(d[11]).withTiming}}),_r(d[21]);var e=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(u,i,a):u[i]=e[i]}return u.default=e,r&&r.set(e,u),u})(_r(d[22]));function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(e){return e?r:n})(e)}_e.default=e}),519,[520,598,571,599,524,601,603,531,665,666,672,526,604,550,673,551,674,681,555,554,645,682,683]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]),Object.keys(r(d[1])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[1])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[1])[t]}}))})),Object.keys(r(d[2])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[2])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[2])[t]}}))})),Object.keys(r(d[3])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[3])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[3])[t]}}))})),Object.keys(r(d[4])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[4])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[4])[t]}}))}))}),520,[521,522,576,587,594]); +__d((function(g,r,i,a,m,e,d){'use strict';var t,n=1e9,o={code:"function startObservingProgress_reactNativeReanimated_animationsManagerTs1(tag,sharedValue,animationType){const{LayoutAnimationType,TAG_OFFSET}=this.__closure;const isSharedTransition=animationType===LayoutAnimationType.SHARED_ELEMENT_TRANSITION;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value,isSharedTransition);});}"},s=(function(){var t=function(t,o,s){var u=s===r(d[0]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION;o.addListener(t+n,(function(){g._notifyAboutProgress(t,o.value,u)}))};return t.__closure={LayoutAnimationType:r(d[0]).LayoutAnimationType,TAG_OFFSET:n},t.__workletHash=0xb70db29563f,t.__initData=o,t})(),u={code:"function stopObservingProgress_reactNativeReanimated_animationsManagerTs2(tag,sharedValue,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);}"},l=(function(){var t=function(t,o){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.removeListener(t+n),g._notifyAboutEnd(t,s)};return t.__closure={TAG_OFFSET:n},t.__workletHash=5503355398871,t.__initData=u,t})(),c={code:"function createLayoutAnimationManager_reactNativeReanimated_animationsManagerTs3(){const{LayoutAnimationType,makeMutableUI,stopObservingProgress,withStyleAnimation,startObservingProgress}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();return{start:function(tag,type,yogaValues,config){if(type===LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS){global.ProgressTransitionRegister.onTransitionStart(tag,yogaValues);return;}const style=config(yogaValues);let currentAnimation=style.animations;const previousAnimation=currentAnimationForTag.get(tag);if(previousAnimation){currentAnimation={...previousAnimation,...style.animations};}currentAnimationForTag.set(tag,currentAnimation);let value=mutableValuesForTag.get(tag);if(value===undefined){value=makeMutableUI(style.initialValues);mutableValuesForTag.set(tag,value);}else{stopObservingProgress(tag,value);value._value=style.initialValues;}const animation=withStyleAnimation(currentAnimation);animation.callback=function(finished){if(finished){currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);const shouldRemoveView=type===LayoutAnimationType.EXITING;stopObservingProgress(tag,value,shouldRemoveView);}style.callback&&style.callback(finished===undefined?false:finished);};startObservingProgress(tag,value,type);value.value=animation;},stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}stopObservingProgress(tag,value);}};}"},_=(function(){var t=function(){var t=new Map,n=new Map;return{start:function(o,u,c,_){if(u!==r(d[0]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS){var T=_(c),v=T.animations,y=t.get(o);y&&(v=Object.assign({},y,T.animations)),t.set(o,v);var A=n.get(o);void 0===A?(A=(0,r(d[1]).makeMutableUI)(T.initialValues),n.set(o,A)):(l(o,A),A._value=T.initialValues);var f=(0,r(d[2]).withStyleAnimation)(v);f.callback=function(s){if(s){t.delete(o),n.delete(o);var c=u===r(d[0]).LayoutAnimationType.EXITING;l(o,A,c)}T.callback&&T.callback(void 0!==s&&s)},s(o,A,u),A.value=f}else g.ProgressTransitionRegister.onTransitionStart(o,c)},stop:function(t){var o=n.get(t);o&&l(t,o)}}};return t.__closure={LayoutAnimationType:r(d[0]).LayoutAnimationType,makeMutableUI:r(d[1]).makeMutableUI,stopObservingProgress:l,withStyleAnimation:r(d[2]).withStyleAnimation,startObservingProgress:s},t.__workletHash=9529680266919,t.__initData=c,t})(),T={code:"function reactNativeReanimated_animationsManagerTs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}"};(0,r(d[3]).runOnUIImmediately)(((t=function(){g.LayoutAnimationsManager=_()}).__closure={createLayoutAnimationManager:_},t.__workletHash=8793185565378,t.__initData=T,t))()}),521,[522,530,569,548]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BaseAnimationBuilder",{enumerable:!0,get:function(){return r(d[0]).BaseAnimationBuilder}}),Object.defineProperty(e,"ComplexAnimationBuilder",{enumerable:!0,get:function(){return r(d[1]).ComplexAnimationBuilder}}),Object.defineProperty(e,"Keyframe",{enumerable:!0,get:function(){return r(d[2]).Keyframe}}),Object.defineProperty(e,"LayoutAnimationType",{enumerable:!0,get:function(){return r(d[3]).LayoutAnimationType}}),Object.defineProperty(e,"SharedTransitionType",{enumerable:!0,get:function(){return r(d[3]).SharedTransitionType}})}),522,[523,573,574,575]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.BaseAnimationBuilder=void 0;var n=t(r(d[1])),o=t(r(d[2])),u={code:"function reactNativeReanimated_BaseAnimationBuilderTs1(delay,animation){const{withDelay,reduceMotion}=this.__closure;return withDelay(delay,animation,reduceMotion);}"},c={code:"function reactNativeReanimated_BaseAnimationBuilderTs2(_,animation){const{getReduceMotionFromConfig,reduceMotion}=this.__closure;animation.reduceMotion=getReduceMotionFromConfig(reduceMotion);return animation;}"};e.BaseAnimationBuilder=(function(){return(0,o.default)((function t(){(0,n.default)(this,t),this.reduceMotionV=r(d[3]).ReduceMotion.System,this.randomizeDelay=!1,this.build=function(){throw new(r(d[4]).ReanimatedError)('Unimplemented method in child class.')}}),[{key:"duration",value:function(t){return this.durationV=t,this}},{key:"delay",value:function(t){return this.delayV=t,this}},{key:"withCallback",value:function(t){return this.callbackV=t,this}},{key:"reduceMotion",value:function(t){return this.reduceMotionV=t,this}},{key:"getDuration",value:function(){var t;return null!=(t=this.durationV)?t:300}},{key:"randomDelay",value:function(){return this.randomizeDelay=!0,this}},{key:"getDelay",value:function(){var t,n;return this.randomizeDelay?Math.random()*(null!=(t=this.delayV)?t:1e3):null!=(n=this.delayV)?n:0}},{key:"getReduceMotion",value:function(){return this.reduceMotionV}},{key:"getDelayFunction",value:function(){var t,n,o=this.randomizeDelay||this.delayV,l=this.getReduceMotion();return o?((n=function(t,n){return(0,r(d[5]).withDelay)(t,n,l)}).__closure={withDelay:r(d[5]).withDelay,reduceMotion:l},n.__workletHash=0xa300d5b19cd,n.__initData=u,n):((t=function(t,n){return n.reduceMotion=(0,r(d[6]).getReduceMotionFromConfig)(l),n}).__closure={getReduceMotionFromConfig:r(d[6]).getReduceMotionFromConfig,reduceMotion:l},t.__workletHash=0xd0a623df051,t.__initData=c,t)}}],[{key:"duration",value:function(t){return this.createInstance().duration(t)}},{key:"delay",value:function(t){return this.createInstance().delay(t)}},{key:"withCallback",value:function(t){return this.createInstance().withCallback(t)}},{key:"reduceMotion",value:function(t){return this.createInstance().reduceMotion(t)}},{key:"getDuration",value:function(){return 300}},{key:"randomDelay",value:function(){return this.createInstance().randomDelay()}},{key:"build",value:function(){return this.createInstance().build()}}])})()}),523,[2,6,7,524,525,526,527]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.isWorkletFunction=e.SensorType=e.ReduceMotion=e.KeyboardState=e.InterfaceOrientation=e.IOSReferenceFrame=void 0;var t={code:"function isWorkletFunction_reactNativeReanimated_commonTypesTs1(value){return typeof value==='function'&&!!value.__workletHash;}"};e.isWorkletFunction=(function(){var n=function(t){return'function'==typeof t&&!!t.__workletHash};return n.__closure={},n.__workletHash=0xf6ceb1ef34a,n.__initData=t,n})(),e.SensorType=(function(t){return t[t.ACCELEROMETER=1]="ACCELEROMETER",t[t.GYROSCOPE=2]="GYROSCOPE",t[t.GRAVITY=3]="GRAVITY",t[t.MAGNETIC_FIELD=4]="MAGNETIC_FIELD",t[t.ROTATION=5]="ROTATION",t})({}),e.IOSReferenceFrame=(function(t){return t[t.XArbitraryZVertical=0]="XArbitraryZVertical",t[t.XArbitraryCorrectedZVertical=1]="XArbitraryCorrectedZVertical",t[t.XMagneticNorthZVertical=2]="XMagneticNorthZVertical",t[t.XTrueNorthZVertical=3]="XTrueNorthZVertical",t[t.Auto=4]="Auto",t})({}),e.InterfaceOrientation=(function(t){return t[t.ROTATION_0=0]="ROTATION_0",t[t.ROTATION_90=90]="ROTATION_90",t[t.ROTATION_180=180]="ROTATION_180",t[t.ROTATION_270=270]="ROTATION_270",t})({}),e.KeyboardState=(function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.OPENING=1]="OPENING",t[t.OPEN=2]="OPEN",t[t.CLOSING=3]="CLOSING",t[t.CLOSED=4]="CLOSED",t})({}),e.ReduceMotion=(function(t){return t.System="system",t.Always="always",t.Never="never",t})({})}),524,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerReanimatedError=e.ReanimatedError=void 0,e.registerWorkletStackDetails=function(t,n){l.set(t,n)},e.reportFatalErrorOnJS=function(t){var n=t.message,o=t.stack,s=new Error;s.message=n,s.stack=o?f(o):void 0,s.name='ReanimatedError',s.jsEngine='reanimated',g.ErrorUtils.reportFatalError(s)};var n,o=t(r(d[1])),s={code:"function ReanimatedError_reactNativeReanimated_errorsTs1(message){const prefix='[Reanimated]';const errorInstance=new Error(message?prefix+\" \"+message:prefix);errorInstance.name='ReanimatedError';return errorInstance;}"},u=e.ReanimatedError=((n=function(t){var n='[Reanimated]',o=new Error(t?`${n} ${t}`:n);return o.name='ReanimatedError',o}).__closure={},n.__workletHash=9724124290349,n.__initData=s,n),c={code:"function registerReanimatedError_reactNativeReanimated_errorsTs2(){const{ReanimatedErrorConstructor}=this.__closure;if(!_WORKLET){throw new Error('[Reanimated] registerReanimatedError() must be called on Worklet runtime');}global.ReanimatedError=ReanimatedErrorConstructor;}"},l=(e.registerReanimatedError=(function(){var t=function(){if(!_WORKLET)throw new Error('[Reanimated] registerReanimatedError() must be called on Worklet runtime');g.ReanimatedError=u};return t.__closure={ReanimatedErrorConstructor:u},t.__workletHash=0x9e1aaaff08c,t.__initData=c,t})(),new Map);function E(t){var n,s=null==(n=t.stack)||null==(n=n.split('\n'))?void 0:n[0];if(s){var u=/@([^@]+):(\d+):(\d+)/.exec(s);if(u){var c=(0,o.default)(u,4),l=c[1],E=c[2],f=c[3];return[l,Number(E),Number(f)]}}return['unknown',0,0]}function f(t){var n=t.match(/worklet_(\d+):(\d+):(\d+)/g),s=t;return null==n||n.forEach((function(t){var n=t.split(/:|_/).map(Number),u=(0,o.default)(n,4),c=u[1],f=u[2],_=u[3],R=l.get(c);if(R){var v=(0,o.default)(R,3),w=v[0],k=v[1],p=v[2],b=E(w),h=(0,o.default)(b,3),x=h[0],N=f+h[1]+k,W=_+h[2]+p;s=s.replace(t,`${x}:${N}:${W}`)}})),s}}),525,[2,44]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cancelAnimation",{enumerable:!0,get:function(){return r(d[0]).cancelAnimation}}),Object.defineProperty(e,"defineAnimation",{enumerable:!0,get:function(){return r(d[0]).defineAnimation}}),Object.defineProperty(e,"initialUpdaterRun",{enumerable:!0,get:function(){return r(d[0]).initialUpdaterRun}}),Object.defineProperty(e,"withClamp",{enumerable:!0,get:function(){return r(d[1]).withClamp}}),Object.defineProperty(e,"withDecay",{enumerable:!0,get:function(){return r(d[2]).withDecay}}),Object.defineProperty(e,"withDelay",{enumerable:!0,get:function(){return r(d[3]).withDelay}}),Object.defineProperty(e,"withRepeat",{enumerable:!0,get:function(){return r(d[4]).withRepeat}}),Object.defineProperty(e,"withSequence",{enumerable:!0,get:function(){return r(d[5]).withSequence}}),Object.defineProperty(e,"withSpring",{enumerable:!0,get:function(){return r(d[6]).withSpring}}),Object.defineProperty(e,"withStyleAnimation",{enumerable:!0,get:function(){return r(d[7]).withStyleAnimation}}),Object.defineProperty(e,"withTiming",{enumerable:!0,get:function(){return r(d[8]).withTiming}})}),526,[527,558,559,564,565,566,567,569,570]); +__d((function(g,r,_i,_a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getReduceMotionFromConfig=e.getReduceMotionForAnimation=e.defineAnimation=e.cancelAnimation=e.assertEasingIsWorklet=void 0,e.initialUpdaterRun=function(i){t=!0;var n=i();return t=!1,n},e.recognizePrefixSuffix=void 0;var t=!1,i=(0,r(d[0]).shouldBeUseWeb)(),n={code:"function assertEasingIsWorklet_reactNativeReanimated_utilTs1(easing){const{SHOULD_BE_USE_WEB,isWorkletFunction}=this.__closure;if(_WORKLET){return;}if(SHOULD_BE_USE_WEB){return;}if(easing!==null&&easing!==void 0&&easing.factory){return;}if(!isWorkletFunction(easing)){throw new ReanimatedError('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.');}}"};e.assertEasingIsWorklet=(function(){var t=function(t){if(!_WORKLET&&!i&&!(null!=t&&t.factory||(0,r(d[1]).isWorkletFunction)(t)))throw new(r(d[2]).ReanimatedError)('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.')};return t.__closure={SHOULD_BE_USE_WEB:i,isWorkletFunction:r(d[1]).isWorkletFunction},t.__workletHash=0xe54c8fe5dcf,t.__initData=n,t})();var a={code:"function recognizePrefixSuffix_reactNativeReanimated_utilTs2(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw new ReanimatedError(\"Couldn't parse animation value.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}"},o=e.recognizePrefixSuffix=(function(){var t=function(t){if('string'==typeof t){var i,n=t.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!n)throw new(r(d[2]).ReanimatedError)("Couldn't parse animation value.");var a=n[1],o=n[4],u=n[2]+(null!=(i=n[3])?i:'');return{prefix:a,suffix:o,strippedValue:parseFloat(u)}}return{strippedValue:t}};return t.__closure={},t.__workletHash=1208729621231,t.__initData=a,t})(),u=r(d[3]).ReducedMotionManager.uiValue,s={code:"function getReduceMotionFromConfig_reactNativeReanimated_utilTs3(config){const{ReduceMotion,isReduceMotionOnUI}=this.__closure;return!config||config===ReduceMotion.System?isReduceMotionOnUI.value:config===ReduceMotion.Always;}"},c=e.getReduceMotionFromConfig=(function(){var t=function(t){return t&&t!==r(d[1]).ReduceMotion.System?t===r(d[1]).ReduceMotion.Always:u.value};return t.__closure={ReduceMotion:r(d[1]).ReduceMotion,isReduceMotionOnUI:u},t.__workletHash=3797668572484,t.__initData=s,t})(),f={code:"function getReduceMotionForAnimation_reactNativeReanimated_utilTs4(config){const{getReduceMotionFromConfig}=this.__closure;if(!config){return undefined;}return getReduceMotionFromConfig(config);}"},l=(e.getReduceMotionForAnimation=(function(){var t=function(t){if(t)return c(t)};return t.__closure={getReduceMotionFromConfig:c},t.__workletHash=2595374554460,t.__initData=f,t})(),{code:"function applyProgressToMatrix_reactNativeReanimated_utilTs5(progress,a,b){const{addMatrices,scaleMatrix,subtractMatrices}=this.__closure;return addMatrices(a,scaleMatrix(subtractMatrices(b,a),progress));}"}),p=(function(){var t=function(t,i,n){return(0,r(d[4]).addMatrices)(i,(0,r(d[4]).scaleMatrix)((0,r(d[4]).subtractMatrices)(n,i),t))};return t.__closure={addMatrices:r(d[4]).addMatrices,scaleMatrix:r(d[4]).scaleMatrix,subtractMatrices:r(d[4]).subtractMatrices},t.__workletHash=1751441362612,t.__initData=l,t})(),_={code:"function applyProgressToNumber_reactNativeReanimated_utilTs6(progress,a,b){return a+progress*(b-a);}"},v=(function(){var t=function(t,i,n){return i+t*(n-i)};return t.__closure={},t.__workletHash=0xeae6cbe433,t.__initData=_,t})(),x={code:"function decorateAnimation_reactNativeReanimated_utilTs7(animation){const{getReduceMotionFromConfig,recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,rgbaArrayToRGBAColor,toGammaSpace,decomposeMatrixIntoMatricesAndAngles,applyProgressToMatrix,applyProgressToNumber,getRotationMatrix,multiplyMatrices,flatten,isAffineMatrixFlat}=this.__closure;const baseOnStart=animation.onStart;const baseOnFrame=animation.onFrame;if(animation.isHigherOrder){animation.onStart=function(animation,value,timestamp,previousAnimation){if(animation.reduceMotion===undefined){animation.reduceMotion=getReduceMotionFromConfig();}return baseOnStart(animation,value,timestamp,previousAnimation);};return;}const animationCopy=Object.assign({},animation);delete animationCopy.callback;const prefNumberSuffOnStart=function(animation,value,timestamp,previousAnimation){var _animation$__prefix,_animation$__suffix;const{prefix:prefix,suffix:suffix,strippedValue:strippedValue}=recognizePrefixSuffix(value);animation.__prefix=prefix;animation.__suffix=suffix;animation.strippedCurrent=strippedValue;const{strippedValue:strippedToValue}=recognizePrefixSuffix(animation.toValue);animation.current=strippedValue;animation.startValue=strippedValue;animation.toValue=strippedToValue;if(previousAnimation&&previousAnimation!==animation){const{prefix:paPrefix,suffix:paSuffix,strippedValue:paStrippedValue}=recognizePrefixSuffix(previousAnimation.current);previousAnimation.current=paStrippedValue;previousAnimation.__prefix=paPrefix;previousAnimation.__suffix=paSuffix;}baseOnStart(animation,strippedValue,timestamp,previousAnimation);animation.current=((_animation$__prefix=animation.__prefix)!==null&&_animation$__prefix!==void 0?_animation$__prefix:'')+animation.current+((_animation$__suffix=animation.__suffix)!==null&&_animation$__suffix!==void 0?_animation$__suffix:'');if(previousAnimation&&previousAnimation!==animation){var _previousAnimation$__,_previousAnimation$__2;previousAnimation.current=((_previousAnimation$__=previousAnimation.__prefix)!==null&&_previousAnimation$__!==void 0?_previousAnimation$__:'')+previousAnimation.current+((_previousAnimation$__2=previousAnimation.__suffix)!==null&&_previousAnimation$__2!==void 0?_previousAnimation$__2:'');}};const prefNumberSuffOnFrame=function(animation,timestamp){var _animation$__prefix2,_animation$__suffix2;animation.current=animation.strippedCurrent;const res=baseOnFrame(animation,timestamp);animation.strippedCurrent=animation.current;animation.current=((_animation$__prefix2=animation.__prefix)!==null&&_animation$__prefix2!==void 0?_animation$__prefix2:'')+animation.current+((_animation$__suffix2=animation.__suffix)!==null&&_animation$__suffix2!==void 0?_animation$__suffix2:'');return res;};const tab=['R','G','B','A'];const colorOnStart=function(animation,value,timestamp,previousAnimation){let RGBAValue;let RGBACurrent;let RGBAToValue;const res=[];if(isColor(value)){RGBACurrent=toLinearSpace(convertToRGBA(animation.current));RGBAValue=toLinearSpace(convertToRGBA(value));if(animation.toValue){RGBAToValue=toLinearSpace(convertToRGBA(animation.toValue));}}tab.forEach(function(i,index){animation[i]=Object.assign({},animationCopy);animation[i].current=RGBACurrent[index];animation[i].toValue=RGBAToValue?RGBAToValue[index]:undefined;animation[i].onStart(animation[i],RGBAValue[index],timestamp,previousAnimation?previousAnimation[i]:undefined);res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const RGBACurrent=toLinearSpace(convertToRGBA(animation.current));const res=[];let finished=true;tab.forEach(function(i,index){animation[i].current=RGBACurrent[index];const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;res.push(animation[i].current);});animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));return finished;};const transformationMatrixOnStart=function(animation,value,timestamp,previousAnimation){const toValue=animation.toValue;animation.startMatrices=decomposeMatrixIntoMatricesAndAngles(value);animation.stopMatrices=decomposeMatrixIntoMatricesAndAngles(toValue);animation[0]=Object.assign({},animationCopy);animation[0].current=0;animation[0].toValue=100;animation[0].onStart(animation[0],0,timestamp,previousAnimation?previousAnimation[0]:undefined);animation.current=value;};const transformationMatrixOnFrame=function(animation,timestamp){let finished=true;const result=animation[0].onFrame(animation[0],timestamp);finished=finished&&result;const progress=animation[0].current/100;const transforms=['translationMatrix','scaleMatrix','skewMatrix'];const mappedTransforms=[];transforms.forEach(function(key,_){return mappedTransforms.push(applyProgressToMatrix(progress,animation.startMatrices[key],animation.stopMatrices[key]));});const[currentTranslation,currentScale,skewMatrix]=mappedTransforms;const rotations=['x','y','z'];const mappedRotations=[];rotations.forEach(function(key,_){const angle=applyProgressToNumber(progress,animation.startMatrices['r'+key],animation.stopMatrices['r'+key]);mappedRotations.push(getRotationMatrix(angle,key));});const[rotationMatrixX,rotationMatrixY,rotationMatrixZ]=mappedRotations;const rotationMatrix=multiplyMatrices(rotationMatrixX,multiplyMatrices(rotationMatrixY,rotationMatrixZ));const updated=flatten(multiplyMatrices(multiplyMatrices(currentScale,multiplyMatrices(skewMatrix,rotationMatrix)),currentTranslation));animation.current=updated;return finished;};const arrayOnStart=function(animation,value,timestamp,previousAnimation){value.forEach(function(v,i){animation[i]=Object.assign({},animationCopy);animation[i].current=v;animation[i].toValue=animation.toValue[i];animation[i].onStart(animation[i],v,timestamp,previousAnimation?previousAnimation[i]:undefined);});animation.current=value;};const arrayOnFrame=function(animation,timestamp){let finished=true;animation.current.forEach(function(_,i){const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;animation.current[i]=animation[i].current;});return finished;};const objectOnStart=function(animation,value,timestamp,previousAnimation){for(const key in value){animation[key]=Object.assign({},animationCopy);animation[key].onStart=animation.onStart;animation[key].current=value[key];animation[key].toValue=animation.toValue[key];animation[key].onStart(animation[key],value[key],timestamp,previousAnimation?previousAnimation[key]:undefined);}animation.current=value;};const objectOnFrame=function(animation,timestamp){let finished=true;const newObject={};for(const key in animation.current){const result=animation[key].onFrame(animation[key],timestamp);finished=finished&&result;newObject[key]=animation[key].current;}animation.current=newObject;return finished;};animation.onStart=function(animation,value,timestamp,previousAnimation){if(animation.reduceMotion===undefined){animation.reduceMotion=getReduceMotionFromConfig();}if(animation.reduceMotion){if(animation.toValue!==undefined){animation.current=animation.toValue;}else{baseOnStart(animation,value,timestamp,previousAnimation);}animation.startTime=0;animation.onFrame=function(){return true;};return;}if(isColor(value)){colorOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=colorOnFrame;return;}else if(isAffineMatrixFlat(value)){transformationMatrixOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=transformationMatrixOnFrame;return;}else if(Array.isArray(value)){arrayOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=arrayOnFrame;return;}else if(typeof value==='string'){prefNumberSuffOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=prefNumberSuffOnFrame;return;}else if(typeof value==='object'&&value!==null){objectOnStart(animation,value,timestamp,previousAnimation);animation.onFrame=objectOnFrame;return;}baseOnStart(animation,value,timestamp,previousAnimation);};}"},A=(function(){var t=function(t){var i=t.onStart,n=t.onFrame;if(t.isHigherOrder)t.onStart=function(t,n,a,o){return void 0===t.reduceMotion&&(t.reduceMotion=c()),i(t,n,a,o)};else{var a=Object.assign({},t);delete a.callback;var u=function(t,n,a,u){var s,c,f=o(n),l=f.prefix,p=f.suffix,_=f.strippedValue;t.__prefix=l,t.__suffix=p,t.strippedCurrent=_;var v,x,A=o(t.toValue).strippedValue;if(t.current=_,t.startValue=_,t.toValue=A,u&&u!==t){var M=o(u.current),y=M.prefix,R=M.suffix,S=M.strippedValue;u.current=S,u.__prefix=y,u.__suffix=R}(i(t,_,a,u),t.current=(null!=(s=t.__prefix)?s:'')+t.current+(null!=(c=t.__suffix)?c:''),u&&u!==t)&&(u.current=(null!=(v=u.__prefix)?v:'')+u.current+(null!=(x=u.__suffix)?x:''))},s=function(t,i){var a,o;t.current=t.strippedCurrent;var u=n(t,i);return t.strippedCurrent=t.current,t.current=(null!=(a=t.__prefix)?a:'')+t.current+(null!=(o=t.__suffix)?o:''),u},f=['R','G','B','A'],l=function(t,i,n,o){var u,s,c,l=[];(0,r(d[5]).isColor)(i)&&(s=(0,r(d[5]).toLinearSpace)((0,r(d[5]).convertToRGBA)(t.current)),u=(0,r(d[5]).toLinearSpace)((0,r(d[5]).convertToRGBA)(i)),t.toValue&&(c=(0,r(d[5]).toLinearSpace)((0,r(d[5]).convertToRGBA)(t.toValue)))),f.forEach((function(i,f){t[i]=Object.assign({},a),t[i].current=s[f],t[i].toValue=c?c[f]:void 0,t[i].onStart(t[i],u[f],n,o?o[i]:void 0),l.push(t[i].current)})),t.current=(0,r(d[5]).rgbaArrayToRGBAColor)((0,r(d[5]).toGammaSpace)(l))},_=function(t,i){var n=(0,r(d[5]).toLinearSpace)((0,r(d[5]).convertToRGBA)(t.current)),a=[],o=!0;return f.forEach((function(u,s){t[u].current=n[s];var c=t[u].onFrame(t[u],i);o=o&&c,a.push(t[u].current)})),t.current=(0,r(d[5]).rgbaArrayToRGBAColor)((0,r(d[5]).toGammaSpace)(a)),o},x=function(t,i,n,o){var u=t.toValue;t.startMatrices=(0,r(d[4]).decomposeMatrixIntoMatricesAndAngles)(i),t.stopMatrices=(0,r(d[4]).decomposeMatrixIntoMatricesAndAngles)(u),t[0]=Object.assign({},a),t[0].current=0,t[0].toValue=100,t[0].onStart(t[0],0,n,o?o[0]:void 0),t.current=i},A=function(t,i){var n=!0,a=t[0].onFrame(t[0],i);n=n&&a;var o=t[0].current/100,u=[];['translationMatrix','scaleMatrix','skewMatrix'].forEach((function(i,n){return u.push(p(o,t.startMatrices[i],t.stopMatrices[i]))}));var s=u[0],c=u[1],f=u[2],l=[];['x','y','z'].forEach((function(i,n){var a=v(o,t.startMatrices['r'+i],t.stopMatrices['r'+i]);l.push((0,r(d[4]).getRotationMatrix)(a,i))}));var _=l[0],x=l[1],A=l[2],M=(0,r(d[4]).multiplyMatrices)(_,(0,r(d[4]).multiplyMatrices)(x,A)),y=(0,r(d[4]).flatten)((0,r(d[4]).multiplyMatrices)((0,r(d[4]).multiplyMatrices)(c,(0,r(d[4]).multiplyMatrices)(f,M)),s));return t.current=y,n},M=function(t,i,n,o){i.forEach((function(i,u){t[u]=Object.assign({},a),t[u].current=i,t[u].toValue=t.toValue[u],t[u].onStart(t[u],i,n,o?o[u]:void 0)})),t.current=i},y=function(t,i){var n=!0;return t.current.forEach((function(a,o){var u=t[o].onFrame(t[o],i);n=n&&u,t.current[o]=t[o].current})),n},R=function(t,i,n,o){for(var u in i)t[u]=Object.assign({},a),t[u].onStart=t.onStart,t[u].current=i[u],t[u].toValue=t.toValue[u],t[u].onStart(t[u],i[u],n,o?o[u]:void 0);t.current=i},S=function(t,i){var n=!0,a={};for(var o in t.current){var u=t[o].onFrame(t[o],i);n=n&&u,a[o]=t[o].current}return t.current=a,n};t.onStart=function(t,n,a,o){return void 0===t.reduceMotion&&(t.reduceMotion=c()),t.reduceMotion?(void 0!==t.toValue?t.current=t.toValue:i(t,n,a,o),t.startTime=0,void(t.onFrame=function(){return!0})):(0,r(d[5]).isColor)(n)?(l(t,n,a,o),void(t.onFrame=_)):(0,r(d[4]).isAffineMatrixFlat)(n)?(x(t,n,a,o),void(t.onFrame=A)):Array.isArray(n)?(M(t,n,a,o),void(t.onFrame=y)):'string'==typeof n?(u(t,n,a,o),void(t.onFrame=s)):'object'==typeof n&&null!==n?(R(t,n,a,o),void(t.onFrame=S)):void i(t,n,a,o)}}};return t.__closure={getReduceMotionFromConfig:c,recognizePrefixSuffix:o,isColor:r(d[5]).isColor,toLinearSpace:r(d[5]).toLinearSpace,convertToRGBA:r(d[5]).convertToRGBA,rgbaArrayToRGBAColor:r(d[5]).rgbaArrayToRGBAColor,toGammaSpace:r(d[5]).toGammaSpace,decomposeMatrixIntoMatricesAndAngles:r(d[4]).decomposeMatrixIntoMatricesAndAngles,applyProgressToMatrix:p,applyProgressToNumber:v,getRotationMatrix:r(d[4]).getRotationMatrix,multiplyMatrices:r(d[4]).multiplyMatrices,flatten:r(d[4]).flatten,isAffineMatrixFlat:r(d[4]).isAffineMatrixFlat},t.__workletHash=3256102323517,t.__initData=x,t})(),M={code:"function defineAnimation_reactNativeReanimated_utilTs8(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,SHOULD_BE_USE_WEB}=this.__closure;if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||SHOULD_BE_USE_WEB){return create();}return create;}"},y={code:"function reactNativeReanimated_utilTs9(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}"},R=(e.defineAnimation=(function(){var n=function(n,a){if(t)return n;var o,u=((o=function(){var t=a();return A(t),t}).__closure={factory:a,decorateAnimation:A},o.__workletHash=0xddd00a87700,o.__initData=y,o);return _WORKLET||i?u():u};return n.__closure={IN_STYLE_UPDATER:t,decorateAnimation:A,SHOULD_BE_USE_WEB:i},n.__workletHash=2261886751995,n.__initData=M,n})(),{code:"function cancelAnimation_reactNativeReanimated_utilTs10(sharedValue){sharedValue.value=sharedValue.value;}"});e.cancelAnimation=(function(){var t=function(t){t.value=t.value};return t.__closure={},t.__workletHash=0xfbd8a255ddc,t.__initData=R,t})()}),527,[528,524,525,529,549,550]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=function(){return'android'===n.Platform.OS},e.isChromeDebugger=o,e.isFabric=function(){return!!g._IS_FABRIC},e.isJest=t,e.isWeb=u,e.isWindowAvailable=function(){return'undefined'!=typeof window},e.shouldBeUseWeb=function(){return t()||o()||u()||'windows'===n.Platform.OS};var n=r(d[0]);function t(){return!!process.env.JEST_WORKER_ID}function o(){return!(g.nativeCallSyncHook&&!g.__REMOTEDEV__||g.RN$Bridgeless)}function u(){return'web'===n.Platform.OS}}),528,[18]); +__d((function(g,r,i,a,m,e,d){'use strict';function u(){return(0,r(d[0]).isWeb)()?!!(0,r(d[0]).isWindowAvailable)()&&window.matchMedia('(prefers-reduced-motion: reduce)').matches:!!g._REANIMATED_IS_REDUCED_MOTION}Object.defineProperty(e,"__esModule",{value:!0}),e.ReducedMotionManager=void 0,e.isReducedMotionEnabledInSystem=u;var n=u(),t=e.ReducedMotionManager={jsValue:n,uiValue:(0,r(d[1]).makeMutable)(n),setEnabled:function(u){t.jsValue=u,t.uiValue.value=u}}}),529,[528,530]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.makeMutableUI=e.makeMutable=void 0;var t=(0,r(d[0]).shouldBeUseWeb)();function n(){0}function u(){0}var l={code:"function addCompilerSafeGetAndSet_reactNativeReanimated_mutablesTs1(mutable){Object.defineProperties(mutable,{get:{value:function(){return mutable.value;},configurable:false,enumerable:false},set:{value:function(newValue){if(typeof newValue==='function'){mutable.value=newValue(mutable.value);}else{mutable.value=newValue;}},configurable:false,enumerable:false}});}"},o=(function(){var t=function(t){Object.defineProperties(t,{get:{value:function(){return t.value},configurable:!1,enumerable:!1},set:{value:(function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})((function(n){t.value='function'==typeof n?n(t.value):n})),configurable:!1,enumerable:!1}})};return t.__closure={},t.__workletHash=4794260884125,t.__initData=l,t})(),s={code:"function hideInternalValueProp_reactNativeReanimated_mutablesTs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}"},c=(function(){var t=function(t){Object.defineProperty(t,'_value',{configurable:!1,enumerable:!1})};return t.__closure={},t.__workletHash=6485490150831,t.__initData=s,t})(),f={code:"function makeMutableUI_reactNativeReanimated_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;}"},v=e.makeMutableUI=(function(){var t=function(t){var n=new Map,u=t,l={get value(){return u},set value(t){(0,r(d[2]).valueSetter)(l,t)},get _value(){return u},set _value(t){u=t,n.forEach((function(n){n(t)}))},modify:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,r(d[2]).valueSetter)(l,void 0!==t?t(u):u,n)},addListener:function(t,u){n.set(t,u)},removeListener:function(t){n.delete(t)},_animation:null,_isReanimatedSharedValue:!0};return c(l),o(l),l};return t.__closure={valueSetter:r(d[2]).valueSetter,hideInternalValueProp:c,addCompilerSafeGetAndSet:o},t.__workletHash=707446125789,t.__initData=f,t})(),_={code:"function reactNativeReanimated_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}"},b={code:"function reactNativeReanimated_mutablesTs5(sv){return sv.value;}"},h={code:"function reactNativeReanimated_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}"},p={code:"function reactNativeReanimated_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}"};e.makeMutable=t?function(t){var l=t,s=new Map,f={get value(){return n(),l},set value(t){u(),(0,r(d[2]).valueSetter)(f,t)},get _value(){return l},set _value(t){l=t,s.forEach((function(n){n(t)}))},modify:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,r(d[2]).valueSetter)(f,void 0!==t?t(f.value):f.value,n)},addListener:function(t,n){s.set(t,n)},removeListener:function(t){s.delete(t)},_isReanimatedSharedValue:!0};return c(f),o(f),f}:function(t){var l,s=(0,r(d[3]).makeShareableCloneRecursive)({__init:(l=function(){return v(t)},l.__closure={makeMutableUI:v,initial:t},l.__workletHash=3966278464115,l.__initData=_,l)}),f={get value(){var t;return n(),(0,r(d[4]).executeOnUIRuntimeSync)(((t=function(t){return t.value}).__closure={},t.__workletHash=9106207498854,t.__initData=b,t))(f)},set value(t){var n;u(),(0,r(d[4]).runOnUI)(((n=function(){f.value=t}).__closure={mutable:f,newValue:t},n.__workletHash=0xe5827801102,n.__initData=h,n))()},get _value(){throw new(r(d[5]).ReanimatedError)('Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?')},set _value(t){throw new(r(d[5]).ReanimatedError)('Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?')},modify:function(t){var n,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,r(d[4]).runOnUI)(((n=function(){f.modify(t,u)}).__closure={mutable:f,modifier:t,forceUpdate:u},n.__workletHash=0xf0d1f206964,n.__initData=p,n))()},addListener:function(){throw new(r(d[5]).ReanimatedError)('Adding listeners is only possible on the UI runtime.')},removeListener:function(){throw new(r(d[5]).ReanimatedError)('Removing listeners is only possible on the UI runtime.')},_isReanimatedSharedValue:!0};return c(f),o(f),r(d[6]).shareableMappingCache.set(f,s),f}}),530,[528,531,534,535,548,525,547]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[0])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[0])[t]}}))})),Object.keys(r(d[1])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[1])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[1])[t]}}))}))}),531,[532,533]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=e.DEFAULT_LOGGER_CONFIG=void 0,e.logToLogBoxAndConsole=function(o){(0,r(d[0]).addLogBoxLog)(o),s(o)},e.updateLoggerConfig=e.replaceLoggerImplementation=e.registerLoggerConfig=e.logger=void 0;var o="If you don't want to see this message, you can disable the `strict` mode. Refer to:\nhttps://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration for more details.",t=e.LogLevel=(function(o){return o[o.warn=1]="warn",o[o.error=2]="error",o})({}),n={code:"function logToConsole_reactNativeReanimated_loggerTs1(data){switch(data.level){case'warn':console.warn(data.message.content);break;case'error':case'fatal':case'syntax':console.error(data.message.content);break;}}"},s=(function(){var o=function(o){switch(o.level){case'warn':console.warn(o.message.content);break;case'error':case'fatal':case'syntax':console.error(o.message.content)}};return o.__closure={},o.__workletHash=8210553843770,o.__initData=n,o})(),c=(e.DEFAULT_LOGGER_CONFIG={logFunction:s,level:t.warn,strict:!0},{code:"function formatMessage_reactNativeReanimated_loggerTs2(message){return\"[Reanimated] \"+message;}"}),l=(function(){var o=function(o){return`[Reanimated] ${o}`};return o.__closure={},o.__workletHash=0xd659afaceb7,o.__initData=c,o})(),_={code:"function createLog_reactNativeReanimated_loggerTs3(level,message){const{formatMessage}=this.__closure;const formattedMessage=formatMessage(message);return{level:level,message:{content:formattedMessage,substitutions:[]},category:formattedMessage,componentStack:[],componentStackType:null,stack:new Error().stack};}"},u=(function(){var o=function(o,t){var n=l(t);return{level:o,message:{content:n,substitutions:[]},category:n,componentStack:[],componentStackType:null,stack:(new Error).stack}};return o.__closure={formatMessage:l},o.__workletHash=0xe4987d379bc,o.__initData=_,o})();var f,v,L={code:"function registerLoggerConfig_reactNativeReanimated_loggerTs4(config){global.__reanimatedLoggerConfig=config;}"},p=e.registerLoggerConfig=(function(){var o=function(o){g.__reanimatedLoggerConfig=o};return o.__closure={},o.__workletHash=0xd06c250252f,o.__initData=L,o})(),C={code:"function replaceLoggerImplementation_reactNativeReanimated_loggerTs5(logFunction){const{registerLoggerConfig}=this.__closure;registerLoggerConfig({...__reanimatedLoggerConfig,logFunction:logFunction});}"},h=(e.replaceLoggerImplementation=(function(){var o=function(o){p(Object.assign({},__reanimatedLoggerConfig,{logFunction:o}))};return o.__closure={registerLoggerConfig:p},o.__workletHash=0xcb68ed8678e,o.__initData=C,o})(),{code:"function updateLoggerConfig_reactNativeReanimated_loggerTs6(options){const{registerLoggerConfig,LogLevel}=this.__closure;var _options$level,_options$strict;registerLoggerConfig({...__reanimatedLoggerConfig,level:(_options$level=options===null||options===void 0?void 0:options.level)!==null&&_options$level!==void 0?_options$level:LogLevel.warn,strict:(_options$strict=options===null||options===void 0?void 0:options.strict)!==null&&_options$strict!==void 0?_options$strict:false});}"}),w=(e.updateLoggerConfig=(function(){var o=function(o){var n,s;p(Object.assign({},__reanimatedLoggerConfig,{level:null!=(n=null==o?void 0:o.level)?n:t.warn,strict:null!=(s=null==o?void 0:o.strict)&&s}))};return o.__closure={registerLoggerConfig:p,LogLevel:t},o.__workletHash=4831066358095,o.__initData=h,o})(),{code:"function handleLog_reactNativeReanimated_loggerTs7(level,message,options){const{LogLevel,DOCS_REFERENCE,createLog}=this.__closure;const config=__reanimatedLoggerConfig;if(options.strict&&!config.strict||LogLevel[level]1&&void 0!==arguments[1]?arguments[1]:{})},v.__closure={handleLog:k},v.__workletHash=5002261531216,v.__initData=R,v),error:(f=function(o){k('error',o,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})},f.__closure={handleLog:k},f.__workletHash=0xbcb3b16a971,f.__initData=b,f)}}),532,[533]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.addLogBoxLog=void 0;var o,n,l=r(d[0]).LogBox;e.addLogBoxLog=null!=(o=null==l||null==(n=l.addLog)?void 0:n.bind(l))?o:function(){}}),533,[18]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.valueSetter=void 0;var t={code:"function valueSetter_reactNativeReanimated_valueSetterTs1(mutable,value,forceUpdate=false){const previousAnimation=mutable._animation;if(previousAnimation){previousAnimation.cancelled=true;mutable._animation=null;}if(typeof value==='function'||value!==null&&typeof value==='object'&&value.onFrame!==undefined){const animation=typeof value==='function'?value():value;if(mutable._value===animation.current&&!animation.isHigherOrder&&!forceUpdate){animation.callback&&animation.callback(true);return;}const initializeAnimation=function(timestamp){animation.onStart(animation,mutable.value,timestamp,previousAnimation);};const currentTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();initializeAnimation(currentTimestamp);const step=function(newTimestamp){const timestamp=newTimestamp<(animation.timestamp||0)?animation.timestamp:newTimestamp;if(animation.cancelled){animation.callback&&animation.callback(false);return;}const finished=animation.onFrame(animation,timestamp);animation.finished=true;animation.timestamp=timestamp;mutable._value=animation.current;if(finished){animation.callback&&animation.callback(true);}else{requestAnimationFrame(step);}};mutable._animation=animation;step(currentTimestamp);}else{if(mutable._value===value&&!forceUpdate){return;}mutable._value=value;}}"};e.valueSetter=(function(){var n=function(t,n){var l,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=t._animation;if(u&&(u.cancelled=!0,t._animation=null),'function'==typeof n||null!==n&&'object'==typeof n&&void 0!==n.onFrame){var c='function'==typeof n?n():n;if(t._value===c.current&&!c.isHigherOrder&&!o)return void(c.callback&&c.callback(!0));var s=g.__frameTimestamp||g._getAnimationTimestamp();l=s,c.onStart(c,t.value,l,u);var v=function(n){var l=n<(c.timestamp||0)?c.timestamp:n;if(c.cancelled)c.callback&&c.callback(!1);else{var o=c.onFrame(c,l);c.finished=!0,c.timestamp=l,t._value=c.current,o?c.callback&&c.callback(!0):requestAnimationFrame(v)}};t._animation=c,v(s)}else{if(t._value===n&&!o)return;t._value=n}};return n.__closure={},n.__workletHash=0x93b869c9528,n.__initData=t,n})()}),534,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.makeShareableCloneOnUIRecursive=e.makeShareable=void 0,e.makeShareableCloneRecursive=C;var n=t(r(d[1])),o=t(r(d[2])),c=(0,r(d[3]).shouldBeUseWeb)(),u='REANIMATED_MAGIC_KEY',s={code:"function isHostObject_reactNativeReanimated_shareablesTs1(value){const{MAGIC_KEY}=this.__closure;return MAGIC_KEY in value;}"},l=(function(){var t=function(t){return u in t};return t.__closure={MAGIC_KEY:u},t.__workletHash=0x9e5276d7e8d,t.__initData=s,t})();function _(t){return Object.getPrototypeOf(t)===Object.prototype}var f,h,v={code:"function reactNativeReanimated_shareablesTs2(){return new Proxy({},{get:function(_,prop){if(prop==='_isReanimatedSharedValue'||prop==='__remoteFunction'){return false;}throw new ReanimatedError(\"Trying to access property `\"+String(prop)+\"` of an object which cannot be sent to the UI runtime.\");},set:function(){throw new ReanimatedError('Trying to write to an object which cannot be sent to the UI runtime.');}});}"},b={__init:(f=function(){return new Proxy({},{get:function(t,n){if('_isReanimatedSharedValue'===n||'__remoteFunction'===n)return!1;throw new(r(d[4]).ReanimatedError)(`Trying to access property \`${String(n)}\` of an object which cannot be sent to the UI runtime.`)},set:function(){throw new(r(d[4]).ReanimatedError)('Trying to write to an object which cannot be sent to the UI runtime.')}})},f.__closure={},f.__workletHash=662766982118,f.__initData=v,f)},p=['Int8Array','Uint8Array','Uint8ClampedArray','Int16Array','Uint16Array','Int32Array','Uint32Array','Float32Array','Float64Array','BigInt64Array','BigUint64Array','DataView'],y=30,w={code:"function reactNativeReanimated_shareablesTs3(){const{workletContextObjectFactory}=this.__closure;return workletContextObjectFactory();}"},k={code:"function reactNativeReanimated_shareablesTs4(){const{pattern,flags}=this.__closure;return new RegExp(pattern,flags);}"},R={code:"function reactNativeReanimated_shareablesTs5(){const{name,message,stack}=this.__closure;const error=new Error();error.name=name;error.message=message;error.stack=stack;return error;}"},A={code:"function reactNativeReanimated_shareablesTs6(){const{VALID_ARRAY_VIEWS_NAMES,typeName,buffer}=this.__closure;if(!VALID_ARRAY_VIEWS_NAMES.includes(typeName)){throw new ReanimatedError(\"Invalid array view name `\"+typeName+\"`.\");}const constructor=global[typeName];if(constructor===undefined){throw new ReanimatedError(\"Constructor for `\"+typeName+\"` not found.\");}return new constructor(buffer);}"};function C(t){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(c)return t;if(s>=y){if(s===y)h=t;else if(t===h)throw new(r(d[4]).ReanimatedError)('Trying to convert a cyclic object to a shareable. This is not supported.')}else h=void 0;var f,v,E,S,j=typeof t,D='function'===j;if(('object'===j||D)&&null!==t){var O,F=r(d[5]).shareableMappingCache.get(t);if(F===r(d[5]).shareableMappingFlag)return t;if(void 0!==F)return F;if(Array.isArray(t))O=t.map((function(t){return C(t,u,s+1)})),I(t);else if(D&&!(0,r(d[6]).isWorkletFunction)(t))O=t,I(t);else if(l(t))O=t;else{if(_(t)&&t.__workletContextObjectFactory){var M=t.__workletContextObjectFactory,N=C({__init:(S=function(){return M()},S.__closure={workletContextObjectFactory:M},S.__workletHash=741691373305,S.__initData=w,S)});return r(d[5]).shareableMappingCache.set(t,N),N}if(_(t)||D){for(var U of(O={},(0,r(d[6]).isWorkletFunction)(t)&&(t.__stackDetails&&delete t.__stackDetails,O.__initData=C(t.__initData,!0,s+1)),Object.entries(t))){var x=(0,n.default)(U,2),H=x[0],T=x[1];'__initData'===H&&void 0!==O.__initData||(O[H]=C(T,u,s+1))}I(t)}else{if(t instanceof RegExp){var B=t.source,V=t.flags,W=C({__init:(E=function(){return new RegExp(B,V)},E.__closure={pattern:B,flags:V},E.__workletHash=0xcdeecb2d2bf,E.__initData=k,E)});return r(d[5]).shareableMappingCache.set(t,W),W}if(t instanceof Error){var Y=t.name,L=t.message,G=t.stack,K=C({__init:(v=function(){var t=new Error;return t.name=Y,t.message=L,t.stack=G,t},v.__closure={name:Y,message:L,stack:G},v.__workletHash=0xe7d49d3b20a,v.__initData=R,v)});return r(d[5]).shareableMappingCache.set(t,K),K}if(!(t instanceof ArrayBuffer)){if(ArrayBuffer.isView(t)){var P=t.buffer,$=t.constructor.name,q=C({__init:(f=function(){if(!p.includes($))throw new(r(d[4]).ReanimatedError)(`Invalid array view name \`${$}\`.`);var t=g[$];if(void 0===t)throw new(r(d[4]).ReanimatedError)(`Constructor for \`${$}\` not found.`);return new t(P)},f.__closure={VALID_ARRAY_VIEWS_NAMES:p,typeName:$,buffer:P},f.__workletHash=1125605674029,f.__initData=A,f)});return r(d[5]).shareableMappingCache.set(t,q),q}var z=C(b);return r(d[5]).shareableMappingCache.set(t,z),z}O=t}}var J=o.default.makeShareableClone(O,u,t);return r(d[5]).shareableMappingCache.set(t,J),r(d[5]).shareableMappingCache.set(J),J}return o.default.makeShareableClone(t,u,void 0)}var E={code:"function isRemoteFunction_reactNativeReanimated_shareablesTs7(value){return!!value.__remoteFunction;}"},S=(function(){var t=function(t){return!!t.__remoteFunction};return t.__closure={},t.__workletHash=0xe7e5387862b,t.__initData=E,t})();function I(t){}var j={code:"function makeShareableCloneOnUIRecursive_reactNativeReanimated_shareablesTs8(value){const{SHOULD_BE_USE_WEB,isHostObject,isRemoteFunction}=this.__closure;if(SHOULD_BE_USE_WEB){return value;}function cloneRecursive(value){if(typeof value==='object'&&value!==null||typeof value==='function'){if(isHostObject(value)){return global._makeShareableClone(value,undefined);}if(isRemoteFunction(value)){return value.__remoteFunction;}if(Array.isArray(value)){return global._makeShareableClone(value.map(cloneRecursive),undefined);}const toAdapt={};for(const[key,element]of Object.entries(value)){toAdapt[key]=cloneRecursive(element);}return global._makeShareableClone(toAdapt,value);}return global._makeShareableClone(value,undefined);}return cloneRecursive(value);}"};e.makeShareableCloneOnUIRecursive=(function(){var t=function(t){if(c)return t;return(function t(o){if('object'==typeof o&&null!==o||'function'==typeof o){if(l(o))return g._makeShareableClone(o,void 0);if(S(o))return o.__remoteFunction;if(Array.isArray(o))return g._makeShareableClone(o.map(t),void 0);var c={};for(var u of Object.entries(o)){var s=(0,n.default)(u,2),_=s[0],f=s[1];c[_]=t(f)}return g._makeShareableClone(c,o)}return g._makeShareableClone(o,void 0)})(t)};return t.__closure={SHOULD_BE_USE_WEB:c,isHostObject:l,isRemoteFunction:S},t.__workletHash=0xba0b6a4663d,t.__initData=j,t})();var D={code:"function reactNativeReanimated_shareablesTs9(){const{value}=this.__closure;return value;}"};e.makeShareable=c?function(t){return t}:function(t){if(r(d[5]).shareableMappingCache.get(t))return t;var n,o=C({__init:(n=function(){return t},n.__closure={value:t},n.__workletHash=0xe97af18bdd2,n.__initData=D,n)});return r(d[5]).shareableMappingCache.set(t,o),t}}),535,[2,44,536,528,525,547,524,531]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=(0,r(d[2]).shouldBeUseWeb)()?u.default:new(r(d[3]).NativeReanimated)}),536,[2,537,528,542]); +__d((function(g,r,i,a,_m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e._updatePropsJS=void 0;var o=t(r(d[1])),n=new(t(r(d[2])).default);g._makeShareableClone=function(){throw new(r(d[3]).ReanimatedError)('_makeShareableClone should never be called in JSReanimated.')},g._scheduleHostFunctionOnJS=function(){throw new(r(d[3]).ReanimatedError)('_scheduleHostFunctionOnJS should never be called in JSReanimated.')},g._scheduleRemoteFunctionOnJS=function(){throw new(r(d[3]).ReanimatedError)('_scheduleHostFunctionOnJS should never be called in JSReanimated.')},g._scheduleOnRuntime=function(){throw new(r(d[3]).ReanimatedError)('_scheduleOnRuntime should never be called in JSReanimated.')};e._updatePropsJS=function(t,n,u){if(n){var c=n.getAnimatableRef?n.getAnimatableRef():n,f=Object.keys(t).reduce((function(o,n){var s=t[n];return o['function'==typeof s?1:0][n]=s,o}),[{},{}]),v=(0,o.default)(f,1)[0];if('function'==typeof c.setNativeProps)s(c,v,u);else if(void 0!==r(d[4]).createReactDOMStyle&&void 0!==c.style)l(c,v,u);else if(Object.keys(c.props).length>0)Object.keys(c.props).forEach((function(t){if(v[t]){var o=t.replace(/[A-Z]/g,(function(t){return'-'+t.toLowerCase()}));c._touchableNode.setAttribute(o,v[t])}}));else{var S='className'in c?null==c?void 0:c.className:'';r(d[5]).logger.warn(`It's not possible to manipulate the component ${S}`)}}};var s=function(t,o,n){if(n){var s={};for(var l in o)u=l,r(d[6]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST[u]&&(s[l]=o[l]);null==t.setNativeProps||t.setNativeProps(s)}var u,c=t.previousStyle?t.previousStyle:{},f=Object.assign({},c,o);t.previousStyle=f,null==t.setNativeProps||t.setNativeProps({style:f})},l=function(t,o,n){var s=t.previousStyle?t.previousStyle:{},l=Object.assign({},s,o);t.previousStyle=l;var u=(0,r(d[4]).createReactDOMStyle)(l);for(var c in Array.isArray(u.transform)&&void 0!==r(d[4]).createTransformValue&&(u.transform=(0,r(d[4]).createTransformValue)(u.transform)),void 0!==r(d[4]).createTextShadowValue&&(u.textShadowColor||u.textShadowRadius||u.textShadowOffset)&&(u.textShadow=(0,r(d[4]).createTextShadowValue)({textShadowColor:u.textShadowColor,textShadowOffset:u.textShadowOffset,textShadowRadius:u.textShadowRadius})),u)n?t.setAttribute(c,u[c]):t.style[c]=u[c]};e.default=n}),537,[2,44,538,525,540,531,541]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=n(r(d[2])),s=n(r(d[3])),u=(0,r(d[4]).isJest)()||!globalThis.requestAnimationFrame?r(d[5]).mockedRequestAnimationFrame:globalThis.requestAnimationFrame,l=(e.default=(function(){return(0,s.default)((function n(){var s=this;(0,o.default)(this,n),this.nextSensorId=0,this.sensors=new Map,this.platform=void 0,this.getSensorCallback=function(n,o,u){switch(o){case r(d[6]).SensorType.ACCELEROMETER:case r(d[6]).SensorType.GRAVITY:return function(){var t=n.x,o=n.y,c=n.z;if(s.platform===l.WEB_ANDROID){var v=[-t,-o,-c];t=v[0],o=v[1],c=v[2]}u({x:t,y:o,z:c,interfaceOrientation:0})};case r(d[6]).SensorType.GYROSCOPE:case r(d[6]).SensorType.MAGNETIC_FIELD:return function(){var t=n.x,o=n.y,s=n.z;u({x:t,y:o,z:s,interfaceOrientation:0})};case r(d[6]).SensorType.ROTATION:return function(){var o=(0,t.default)(n.quaternion,4),c=o[0],v=o[1],w=o[2],h=o[3];if(s.platform===l.WEB_ANDROID){var y=[h,-w];w=y[0],h=y[1]}var f=-Math.atan2(2*(w*h+c*v),c*c-v*v-w*w+h*h),S=Math.sin(-2*(v*h-c*w)),p=-Math.atan2(2*(v*w+c*h),c*c+v*v-w*w-h*h);u({qw:c,qx:v,qy:w,qz:h,yaw:f,pitch:S,roll:p,interfaceOrientation:0})}}}}),[{key:"makeShareableClone",value:function(){throw new(r(d[7]).ReanimatedError)('makeShareableClone should never be called in JSReanimated.')}},{key:"scheduleOnUI",value:function(n){u(n)}},{key:"createWorkletRuntime",value:function(n,t){throw new(r(d[7]).ReanimatedError)('createWorkletRuntime is not available in JSReanimated.')}},{key:"scheduleOnRuntime",value:function(){throw new(r(d[7]).ReanimatedError)('scheduleOnRuntime is not available in JSReanimated.')}},{key:"registerEventHandler",value:function(n,t,o){throw new(r(d[7]).ReanimatedError)('registerEventHandler is not available in JSReanimated.')}},{key:"unregisterEventHandler",value:function(n){throw new(r(d[7]).ReanimatedError)('unregisterEventHandler is not available in JSReanimated.')}},{key:"enableLayoutAnimations",value:function(){(0,r(d[4]).isWeb)()?r(d[8]).logger.warn('Layout Animations are not supported on web yet.'):(0,r(d[4]).isJest)()?r(d[8]).logger.warn('Layout Animations are no-ops when using Jest.'):(0,r(d[4]).isChromeDebugger)()?r(d[8]).logger.warn('Layout Animations are no-ops when using Chrome Debugger.'):r(d[8]).logger.warn('Layout Animations are not supported on this configuration.')}},{key:"configureLayoutAnimationBatch",value:function(){}},{key:"setShouldAnimateExitingForTag",value:function(){}},{key:"registerSensor",value:function(n,t,o,s){if(!(0,r(d[4]).isWindowAvailable)())return-1;if(void 0===this.platform&&this.detectPlatform(),!(this.getSensorName(n)in window))return r(d[8]).logger.warn('Sensor is not available.'+((0,r(d[4]).isWeb)()&&'https:'!==location.protocol?' Make sure you use secure origin with `npx expo start --web --https`.':'')+(this.platform===l.WEB_IOS?' For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.':'')),-1;void 0===this.platform&&this.detectPlatform();var u=this.initializeSensor(n,t);return u.addEventListener('reading',this.getSensorCallback(u,n,s)),u.start(),this.sensors.set(this.nextSensorId,u),this.nextSensorId++}},{key:"unregisterSensor",value:function(n){var t=this.sensors.get(n);void 0!==t&&(t.stop(),this.sensors.delete(n))}},{key:"subscribeForKeyboardEvents",value:function(n){return(0,r(d[4]).isWeb)()?r(d[8]).logger.warn('useAnimatedKeyboard is not available on web yet.'):(0,r(d[4]).isJest)()?r(d[8]).logger.warn('useAnimatedKeyboard is not available when using Jest.'):(0,r(d[4]).isChromeDebugger)()?r(d[8]).logger.warn('useAnimatedKeyboard is not available when using Chrome Debugger.'):r(d[8]).logger.warn('useAnimatedKeyboard is not available on this configuration.'),-1}},{key:"unsubscribeFromKeyboardEvents",value:function(n){}},{key:"initializeSensor",value:function(n,t){var o=t<=0?{referenceFrame:'device'}:{frequency:1e3/t};switch(n){case r(d[6]).SensorType.ACCELEROMETER:return new window.Accelerometer(o);case r(d[6]).SensorType.GYROSCOPE:return new window.Gyroscope(o);case r(d[6]).SensorType.GRAVITY:return new window.GravitySensor(o);case r(d[6]).SensorType.MAGNETIC_FIELD:return new window.Magnetometer(o);case r(d[6]).SensorType.ROTATION:return new window.AbsoluteOrientationSensor(o)}}},{key:"getSensorName",value:function(n){switch(n){case r(d[6]).SensorType.ACCELEROMETER:return'Accelerometer';case r(d[6]).SensorType.GRAVITY:return'GravitySensor';case r(d[6]).SensorType.GYROSCOPE:return'Gyroscope';case r(d[6]).SensorType.MAGNETIC_FIELD:return'Magnetometer';case r(d[6]).SensorType.ROTATION:return'AbsoluteOrientationSensor'}}},{key:"detectPlatform",value:function(){var n=navigator.userAgent||navigator.vendor||window.opera;void 0===n?this.platform=l.UNKNOWN:/iPad|iPhone|iPod/.test(n)?this.platform=l.WEB_IOS:/android/i.test(n)?this.platform=l.WEB_ANDROID:this.platform=l.WEB}},{key:"getViewProp",value:function(n,t,o,s){throw new(r(d[7]).ReanimatedError)('getViewProp is not available in JSReanimated.')}},{key:"configureProps",value:function(){throw new(r(d[7]).ReanimatedError)('configureProps is not available in JSReanimated.')}},{key:"executeOnUIRuntimeSync",value:function(n){throw new(r(d[7]).ReanimatedError)('`executeOnUIRuntimeSync` is not available in JSReanimated.')}}])})(),(function(n){return n.WEB_IOS="web iOS",n.WEB_ANDROID="web Android",n.WEB="web",n.UNKNOWN="unknown",n})(l||{}))}),538,[2,44,6,7,528,539,524,525,531]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.mockedRequestAnimationFrame=function(n){return setTimeout((function(){return n(performance.now())}),0)}}),539,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.createTransformValue=e.createTextShadowValue=e.createReactDOMStyle=void 0}),540,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.PropsAllowlists=void 0;e.PropsAllowlists={UI_THREAD_PROPS_WHITELIST:{opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},NATIVE_THREAD_PROPS_WHITELIST:{borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,textShadowOffset:!0,letterSpacing:!0,aspectRatio:!0,columnGap:!0,end:!0,flexBasis:!0,gap:!0,rowGap:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,alignContent:!0,alignItems:!0,alignSelf:!0,direction:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,position:!0,color:!0,tintColor:!0,shadowColor:!0,placeholderTextColor:!0}}}),541,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeReanimated=void 0;var t=n(r(d[1])),u=n(r(d[2])),o=n(r(d[3]));e.NativeReanimated=(function(){return(0,u.default)((function n(){if((0,t.default)(this,n),g._REANIMATED_VERSION_JS=r(d[4]).jsVersion,void 0===g.__reanimatedModuleProxy){var u=(0,r(d[5]).getValueUnpackerCode)();null==o.default||o.default.installTurboModule(u)}if(void 0===g.__reanimatedModuleProxy)throw new(r(d[6]).ReanimatedError)("Native part of Reanimated doesn't seem to be initialized.\nSee https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#native-part-of-reanimated-doesnt-seem-to-be-initialized for more details.");this.InnerNativeModule=g.__reanimatedModuleProxy}),[{key:"makeShareableClone",value:function(n,t,u){return this.InnerNativeModule.makeShareableClone(n,t,u)}},{key:"scheduleOnUI",value:function(n){return this.InnerNativeModule.scheduleOnUI(n)}},{key:"executeOnUIRuntimeSync",value:function(n){return this.InnerNativeModule.executeOnUIRuntimeSync(n)}},{key:"createWorkletRuntime",value:function(n,t){return this.InnerNativeModule.createWorkletRuntime(n,t)}},{key:"scheduleOnRuntime",value:function(n,t){return this.InnerNativeModule.scheduleOnRuntime(n,t)}},{key:"registerSensor",value:function(n,t,u,o){return this.InnerNativeModule.registerSensor(n,t,u,o)}},{key:"unregisterSensor",value:function(n){return this.InnerNativeModule.unregisterSensor(n)}},{key:"registerEventHandler",value:function(n,t,u){return this.InnerNativeModule.registerEventHandler(n,t,u)}},{key:"unregisterEventHandler",value:function(n){return this.InnerNativeModule.unregisterEventHandler(n)}},{key:"getViewProp",value:function(n,t,u,o){var s;return(0,r(d[7]).isFabric)()?(s=(0,r(d[8]).getShadowNodeWrapperFromRef)(u),this.InnerNativeModule.getViewProp(s,t,o)):this.InnerNativeModule.getViewProp(n,t,o)}},{key:"configureLayoutAnimationBatch",value:function(n){this.InnerNativeModule.configureLayoutAnimationBatch(n)}},{key:"setShouldAnimateExitingForTag",value:function(n,t){this.InnerNativeModule.setShouldAnimateExitingForTag(n,t)}},{key:"enableLayoutAnimations",value:function(n){this.InnerNativeModule.enableLayoutAnimations(n)}},{key:"configureProps",value:function(n,t){this.InnerNativeModule.configureProps(n,t)}},{key:"subscribeForKeyboardEvents",value:function(n,t,u){return this.InnerNativeModule.subscribeForKeyboardEvents(n,t,u)}},{key:"unsubscribeFromKeyboardEvents",value:function(n){this.InnerNativeModule.unsubscribeFromKeyboardEvents(n)}}])})()}),542,[2,6,7,543,544,545,525,528,546]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);e.default=t.TurboModuleRegistry.get('ReanimatedModule')}),543,[18]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.jsVersion=void 0;e.jsVersion='3.16.1'}),544,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getValueUnpackerCode=getValueUnpackerCode;var _worklet_303159334415_init_data={code:"function valueUnpacker_reactNativeReanimated_valueUnpackerTs1(objectToUnpack,category,remoteFunctionName){let workletsCache=global.__workletsCache;let handleCache=global.__handleCache;if(workletsCache===undefined){workletsCache=global.__workletsCache=new Map();handleCache=global.__handleCache=new WeakMap();}const workletHash=objectToUnpack.__workletHash;if(workletHash!==undefined){let workletFun=workletsCache.get(workletHash);if(workletFun===undefined){const initData=objectToUnpack.__initData;if(global.evalWithSourceMap){workletFun=global.evalWithSourceMap('('+initData.code+'\\n)',initData.location,initData.sourceMap);}else if(global.evalWithSourceUrl){workletFun=global.evalWithSourceUrl('('+initData.code+'\\n)',\"worklet_\"+workletHash);}else{workletFun=eval('('+initData.code+'\\n)');}workletsCache.set(workletHash,workletFun);}const functionInstance=workletFun.bind(objectToUnpack);objectToUnpack._recur=functionInstance;return functionInstance;}else if(objectToUnpack.__init!==undefined){let value=handleCache.get(objectToUnpack);if(value===undefined){value=objectToUnpack.__init();handleCache.set(objectToUnpack,value);}return value;}else if(category==='RemoteFunction'){const fun=function(){const label=remoteFunctionName?\"function `\"+remoteFunctionName+\"`\":'anonymous function';throw new Error(\"[Reanimated] Tried to synchronously call a non-worklet \"+label+\" on the UI thread.\\nSee https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#tried-to-synchronously-call-a-non-worklet-function-on-the-ui-thread for more details.\");};fun.__remoteFunction=objectToUnpack;return fun;}else{throw new Error(\"[Reanimated] Data type in category \\\"\"+category+\"\\\" not recognized by value unpacker: \\\"\"+_toString(objectToUnpack)+\"\\\".\");}}"},valueUnpacker=(function(){var valueUnpacker=function valueUnpacker(objectToUnpack,category,remoteFunctionName){var workletsCache=g.__workletsCache,handleCache=g.__handleCache;void 0===workletsCache&&(workletsCache=g.__workletsCache=new Map,handleCache=g.__handleCache=new WeakMap);var workletHash=objectToUnpack.__workletHash;if(void 0!==workletHash){var workletFun=workletsCache.get(workletHash);if(void 0===workletFun){var initData=objectToUnpack.__initData;workletFun=g.evalWithSourceMap?g.evalWithSourceMap('('+initData.code+'\n)',initData.location,initData.sourceMap):g.evalWithSourceUrl?g.evalWithSourceUrl('('+initData.code+'\n)',`worklet_${workletHash}`):eval('('+initData.code+'\n)'),workletsCache.set(workletHash,workletFun)}var functionInstance=workletFun.bind(objectToUnpack);return objectToUnpack._recur=functionInstance,functionInstance}if(void 0!==objectToUnpack.__init){var value=handleCache.get(objectToUnpack);return void 0===value&&(value=objectToUnpack.__init(),handleCache.set(objectToUnpack,value)),value}if('RemoteFunction'===category){var fun=function(){throw new Error(`[Reanimated] Tried to synchronously call a non-worklet ${remoteFunctionName?`function \`${remoteFunctionName}\``:'anonymous function'} on the UI thread.\nSee https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#tried-to-synchronously-call-a-non-worklet-function-on-the-ui-thread for more details.`)};return fun.__remoteFunction=objectToUnpack,fun}throw new Error(`[Reanimated] Data type in category "${category}" not recognized by value unpacker: "${_toString(objectToUnpack)}".`)};return valueUnpacker.__closure={},valueUnpacker.__workletHash=303159334415,valueUnpacker.__initData=_worklet_303159334415_init_data,valueUnpacker})(),_worklet_4407688582110_init_data={code:"function reactNativeReanimated_valueUnpackerTs2(){}"};function getValueUnpackerCode(){return valueUnpacker.__initData.code}}),545,[]); +__d((function(g,r,i,a,m,_e,d){'use strict';var e,n;Object.defineProperty(_e,"__esModule",{value:!0}),_e.getShadowNodeWrapperFromRef=function(t){var l,o;if(void 0===e)try{e=r(d[0]).findHostInstance_DEPRECATED}catch(n){e=function(e){return null}}if(void 0===n)try{var c;n=null!=(c=r(d[1]).getInternalInstanceHandleFromPublicInstance)?c:function(e){return e._internalInstanceHandle}}catch(e){n=function(e){return e._internalInstanceHandle}}var u,s=null==t||null==t.getScrollResponder||null==(l=t.getScrollResponder())||null==l.getNativeScrollRef?void 0:l.getNativeScrollRef(),f=null==t||null==t.getNativeScrollRef?void 0:t.getNativeScrollRef(),v=null==t||null==(o=t.__internalInstanceHandle)||null==(o=o.stateNode)?void 0:o.node;u=s?s.__internalInstanceHandle.stateNode.node:f?f.__internalInstanceHandle.stateNode.node:v||n(e(t)).stateNode.node;return u}}),546,[65,245]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.shareableMappingFlag=e.shareableMappingCache=void 0;var n=(0,r(d[0]).shouldBeUseWeb)(),l=e.shareableMappingFlag=Symbol('shareable flag'),t=n?null:new WeakMap;e.shareableMappingCache=n?{set:function(){},get:function(){return null}}:{set:function(n,s){t.set(n,s||l)},get:t.get.bind(t)}}),547,[528]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.callMicrotasks=void 0,e.executeOnUIRuntimeSync=function(n){return function(){for(var t=arguments.length,o=new Array(t),s=0;s1?t-1:0),u=1;u0?makeShareableCloneOnUIRecursive(args):undefined);};}"};e.runOnJS=(b=function(n){if(c||!_WORKLET)return function(){for(var t=arguments.length,o=new Array(t),u=0;u0?(0,r(d[5]).makeShareableCloneOnUIRecursive)(u):void 0)}},b.__closure={SHOULD_BE_USE_WEB:c,isWorkletFunction:r(d[6]).isWorkletFunction,runWorkletOnJS:w,makeShareableCloneOnUIRecursive:r(d[5]).makeShareableCloneOnUIRecursive},b.__workletHash=7462027857001,b.__initData=I,b)}),548,[2,22,44,536,528,535,524]); +__d((function(g,r,_i,_a,_m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.unflatten=_e.subtractMatrices=_e.scaleMatrix=_e.multiplyMatrices=_e.isAffineMatrixFlat=_e.isAffineMatrix=_e.getRotationMatrix=_e.flatten=_e.decomposeMatrixIntoMatricesAndAngles=_e.decomposeMatrix=_e.addMatrices=void 0;var a=t(r(d[1])),e={code:"function isAffineMatrixFlat_reactNativeReanimated_matrixUtilsTsx1(x){return Array.isArray(x)&&x.length===16&&x.every(function(element){return typeof element==='number'&&!isNaN(element);});}"},n=_e.isAffineMatrixFlat=(function(){var t=function(t){return Array.isArray(t)&&16===t.length&&t.every((function(t){return'number'==typeof t&&!isNaN(t)}))};return t.__closure={},t.__workletHash=0xe25956e1f35,t.__initData=e,t})(),i={code:"function isAffineMatrix_reactNativeReanimated_matrixUtilsTsx2(x){return Array.isArray(x)&&x.length===4&&x.every(function(row){return Array.isArray(row)&&row.length===4&&row.every(function(element){return typeof element==='number'&&!isNaN(element);});});}"},o=_e.isAffineMatrix=(function(){var t=function(t){return Array.isArray(t)&&4===t.length&&t.every((function(t){return Array.isArray(t)&&4===t.length&&t.every((function(t){return'number'==typeof t&&!isNaN(t)}))}))};return t.__closure={},t.__workletHash=3255481902002,t.__initData=i,t})(),s={code:"function flatten_reactNativeReanimated_matrixUtilsTsx3(matrix){return matrix.flat();}"},c=_e.flatten=(function(){var t=function(t){return t.flat()};return t.__closure={},t.__workletHash=9419609223755,t.__initData=s,t})(),u={code:"function unflatten_reactNativeReanimated_matrixUtilsTsx4(m){return[[m[0],m[1],m[2],m[3]],[m[4],m[5],m[6],m[7]],[m[8],m[9],m[10],m[11]],[m[12],m[13],m[14],m[15]]];}"},x=_e.unflatten=(function(){var t=function(t){return[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]};return t.__closure={},t.__workletHash=0xce0044de8c0,t.__initData=u,t})(),l={code:"function maybeFlattenMatrix_reactNativeReanimated_matrixUtilsTsx5(matrix){const{isAffineMatrix,flatten}=this.__closure;return isAffineMatrix(matrix)?flatten(matrix):matrix;}"},_=(function(){var t=function(t){return o(t)?c(t):t};return t.__closure={isAffineMatrix:o,flatten:c},t.__workletHash=31377339073,t.__initData=l,t})(),m={code:"function multiplyMatrices_reactNativeReanimated_matrixUtilsTsx6(a,b){return[[a[0][0]*b[0][0]+a[0][1]*b[1][0]+a[0][2]*b[2][0]+a[0][3]*b[3][0],a[0][0]*b[0][1]+a[0][1]*b[1][1]+a[0][2]*b[2][1]+a[0][3]*b[3][1],a[0][0]*b[0][2]+a[0][1]*b[1][2]+a[0][2]*b[2][2]+a[0][3]*b[3][2],a[0][0]*b[0][3]+a[0][1]*b[1][3]+a[0][2]*b[2][3]+a[0][3]*b[3][3]],[a[1][0]*b[0][0]+a[1][1]*b[1][0]+a[1][2]*b[2][0]+a[1][3]*b[3][0],a[1][0]*b[0][1]+a[1][1]*b[1][1]+a[1][2]*b[2][1]+a[1][3]*b[3][1],a[1][0]*b[0][2]+a[1][1]*b[1][2]+a[1][2]*b[2][2]+a[1][3]*b[3][2],a[1][0]*b[0][3]+a[1][1]*b[1][3]+a[1][2]*b[2][3]+a[1][3]*b[3][3]],[a[2][0]*b[0][0]+a[2][1]*b[1][0]+a[2][2]*b[2][0]+a[2][3]*b[3][0],a[2][0]*b[0][1]+a[2][1]*b[1][1]+a[2][2]*b[2][1]+a[2][3]*b[3][1],a[2][0]*b[0][2]+a[2][1]*b[1][2]+a[2][2]*b[2][2]+a[2][3]*b[3][2],a[2][0]*b[0][3]+a[2][1]*b[1][3]+a[2][2]*b[2][3]+a[2][3]*b[3][3]],[a[3][0]*b[0][0]+a[3][1]*b[1][0]+a[3][2]*b[2][0]+a[3][3]*b[3][0],a[3][0]*b[0][1]+a[3][1]*b[1][1]+a[3][2]*b[2][1]+a[3][3]*b[3][1],a[3][0]*b[0][2]+a[3][1]*b[1][2]+a[3][2]*b[2][2]+a[3][3]*b[3][2],a[3][0]*b[0][3]+a[3][1]*b[1][3]+a[3][2]*b[2][3]+a[3][3]*b[3][3]]];}"},f=(_e.multiplyMatrices=(function(){var t=function(t,a){return[[t[0][0]*a[0][0]+t[0][1]*a[1][0]+t[0][2]*a[2][0]+t[0][3]*a[3][0],t[0][0]*a[0][1]+t[0][1]*a[1][1]+t[0][2]*a[2][1]+t[0][3]*a[3][1],t[0][0]*a[0][2]+t[0][1]*a[1][2]+t[0][2]*a[2][2]+t[0][3]*a[3][2],t[0][0]*a[0][3]+t[0][1]*a[1][3]+t[0][2]*a[2][3]+t[0][3]*a[3][3]],[t[1][0]*a[0][0]+t[1][1]*a[1][0]+t[1][2]*a[2][0]+t[1][3]*a[3][0],t[1][0]*a[0][1]+t[1][1]*a[1][1]+t[1][2]*a[2][1]+t[1][3]*a[3][1],t[1][0]*a[0][2]+t[1][1]*a[1][2]+t[1][2]*a[2][2]+t[1][3]*a[3][2],t[1][0]*a[0][3]+t[1][1]*a[1][3]+t[1][2]*a[2][3]+t[1][3]*a[3][3]],[t[2][0]*a[0][0]+t[2][1]*a[1][0]+t[2][2]*a[2][0]+t[2][3]*a[3][0],t[2][0]*a[0][1]+t[2][1]*a[1][1]+t[2][2]*a[2][1]+t[2][3]*a[3][1],t[2][0]*a[0][2]+t[2][1]*a[1][2]+t[2][2]*a[2][2]+t[2][3]*a[3][2],t[2][0]*a[0][3]+t[2][1]*a[1][3]+t[2][2]*a[2][3]+t[2][3]*a[3][3]],[t[3][0]*a[0][0]+t[3][1]*a[1][0]+t[3][2]*a[2][0]+t[3][3]*a[3][0],t[3][0]*a[0][1]+t[3][1]*a[1][1]+t[3][2]*a[2][1]+t[3][3]*a[3][1],t[3][0]*a[0][2]+t[3][1]*a[1][2]+t[3][2]*a[2][2]+t[3][3]*a[3][2],t[3][0]*a[0][3]+t[3][1]*a[1][3]+t[3][2]*a[2][3]+t[3][3]*a[3][3]]]};return t.__closure={},t.__workletHash=0xe8b7f2c9461,t.__initData=m,t})(),{code:"function subtractMatrices_reactNativeReanimated_matrixUtilsTsx7(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]-b[i];});return isFlatOnStart?c:unflatten(c);}"}),M=(_e.subtractMatrices=(function(){var t=function(t,a){var e=n(t),i=_(t),o=_(a),s=i.map((function(t,a){return i[a]-o[a]}));return e?s:x(s)};return t.__closure={isAffineMatrixFlat:n,maybeFlattenMatrix:_,unflatten:x},t.__workletHash=6627182100671,t.__initData=f,t})(),{code:"function addMatrices_reactNativeReanimated_matrixUtilsTsx8(maybeFlatA,maybeFlatB){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=maybeFlattenMatrix(maybeFlatB);const c=a.map(function(_,i){return a[i]+b[i];});return isFlatOnStart?c:unflatten(c);}"}),b=(_e.addMatrices=(function(){var t=function(t,a){var e=n(t),i=_(t),o=_(a),s=i.map((function(t,a){return i[a]+o[a]}));return e?s:x(s)};return t.__closure={isAffineMatrixFlat:n,maybeFlattenMatrix:_,unflatten:x},t.__workletHash=0xcdfe055f723,t.__initData=M,t})(),{code:"function scaleMatrix_reactNativeReanimated_matrixUtilsTsx9(maybeFlatA,scalar){const{isAffineMatrixFlat,maybeFlattenMatrix,unflatten}=this.__closure;const isFlatOnStart=isAffineMatrixFlat(maybeFlatA);const a=maybeFlattenMatrix(maybeFlatA);const b=a.map(function(x){return x*scalar;});return isFlatOnStart?b:unflatten(b);}"}),h=(_e.scaleMatrix=(function(){var t=function(t,a){var e=n(t),i=_(t).map((function(t){return t*a}));return e?i:x(i)};return t.__closure={isAffineMatrixFlat:n,maybeFlattenMatrix:_,unflatten:x},t.__workletHash=2686901073094,t.__initData=b,t})(),{code:"function getRotationMatrix_reactNativeReanimated_matrixUtilsTsx10(angle,axis='z'){const cos=Math.cos(angle);const sin=Math.sin(angle);switch(axis){case'z':return[[cos,sin,0,0],[-sin,cos,0,0],[0,0,1,0],[0,0,0,1]];case'y':return[[cos,0,-sin,0],[0,1,0,0],[sin,0,cos,0],[0,0,0,1]];case'x':return[[1,0,0,0],[0,cos,sin,0],[0,-sin,cos,0],[0,0,0,1]];}}"}),y=(_e.getRotationMatrix=(function(){var t=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'z',e=Math.cos(t),n=Math.sin(t);switch(a){case'z':return[[e,n,0,0],[-n,e,0,0],[0,0,1,0],[0,0,0,1]];case'y':return[[e,0,-n,0],[0,1,0,0],[n,0,e,0],[0,0,0,1]];case'x':return[[1,0,0,0],[0,e,n,0],[0,-n,e,0],[0,0,0,1]]}};return t.__closure={},t.__workletHash=5407153467837,t.__initData=h,t})(),{code:"function norm3d_reactNativeReanimated_matrixUtilsTsx11(x,y,z){return Math.sqrt(x*x+y*y+z*z);}"}),v=(function(){var t=function(t,a,e){return Math.sqrt(t*t+a*a+e*e)};return t.__closure={},t.__workletHash=0xefdf5b296b,t.__initData=y,t})(),w={code:"function transposeMatrix_reactNativeReanimated_matrixUtilsTsx12(matrix){const{flatten}=this.__closure;const m=flatten(matrix);return[[m[0],m[4],m[8],m[12]],[m[1],m[5],m[9],m[13]],[m[2],m[6],m[10],m[14]],[m[3],m[7],m[11],m[15]]];}"},A=(function(){var t=function(t){var a=c(t);return[[a[0],a[4],a[8],a[12]],[a[1],a[5],a[9],a[13]],[a[2],a[6],a[10],a[14]],[a[3],a[7],a[11],a[15]]]};return t.__closure={flatten:c},t.__workletHash=7878923469978,t.__initData=w,t})(),p={code:"function assertVectorsHaveEqualLengths_reactNativeReanimated_matrixUtilsTsx13(a,b){const{__DEV__}=this.__closure;if(__DEV__&&a.length!==b.length){throw new ReanimatedError(\"Cannot calculate inner product of two vectors of different lengths. Length of \"+a.toString()+\" is \"+a.length+\" and length of \"+b.toString()+\" is \"+b.length+\".\");}}"},F=(function(){var t=function(t,a){};return t.__closure={__DEV__:!1},t.__workletHash=3891131781244,t.__initData=p,t})(),k={code:"function innerProduct_reactNativeReanimated_matrixUtilsTsx14(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.reduce(function(acc,_,i){return acc+a[i]*b[i];},0);}"},R=(function(){var t=function(t,a){return F(t,a),t.reduce((function(e,n,i){return e+t[i]*a[i]}),0)};return t.__closure={assertVectorsHaveEqualLengths:F},t.__workletHash=2500695369804,t.__initData=k,t})(),H={code:"function projection_reactNativeReanimated_matrixUtilsTsx15(u,a){const{assertVectorsHaveEqualLengths,innerProduct}=this.__closure;assertVectorsHaveEqualLengths(u,a);const s=innerProduct(u,a)/innerProduct(u,u);return u.map(function(e){return e*s;});}"},N=(function(){var t=function(t,a){F(t,a);var e=R(t,a)/R(t,t);return t.map((function(t){return t*e}))};return t.__closure={assertVectorsHaveEqualLengths:F,innerProduct:R},t.__workletHash=0xe8dc63f940e,t.__initData=H,t})(),V={code:"function subtractVectors_reactNativeReanimated_matrixUtilsTsx16(a,b){const{assertVectorsHaveEqualLengths}=this.__closure;assertVectorsHaveEqualLengths(a,b);return a.map(function(_,i){return a[i]-b[i];});}"},D=(function(){var t=function(t,a){return F(t,a),t.map((function(e,n){return t[n]-a[n]}))};return t.__closure={assertVectorsHaveEqualLengths:F},t.__workletHash=5264626187493,t.__initData=V,t})(),T={code:"function scaleVector_reactNativeReanimated_matrixUtilsTsx17(u,a){return u.map(function(e){return e*a;});}"},U=(function(){var t=function(t,a){return t.map((function(t){return t*a}))};return t.__closure={},t.__workletHash=2059959224558,t.__initData=T,t})(),P={code:"function gramSchmidtAlgorithm_reactNativeReanimated_matrixUtilsTsx18(matrix){const{subtractVectors,projection,scaleVector,innerProduct,transposeMatrix}=this.__closure;const[a0,a1,a2,a3]=matrix;const u0=a0;const u1=subtractVectors(a1,projection(u0,a1));const u2=subtractVectors(subtractVectors(a2,projection(u0,a2)),projection(u1,a2));const u3=subtractVectors(subtractVectors(subtractVectors(a3,projection(u0,a3)),projection(u1,a3)),projection(u2,a3));const[e0,e1,e2,e3]=[u0,u1,u2,u3].map(function(u){return scaleVector(u,1/Math.sqrt(innerProduct(u,u)));});const rotationMatrix=[[e0[0],e1[0],e2[0],e3[0]],[e0[1],e1[1],e2[1],e3[1]],[e0[2],e1[2],e2[2],e3[2]],[e0[3],e1[3],e2[3],e3[3]]];const skewMatrix=[[innerProduct(e0,a0),innerProduct(e0,a1),innerProduct(e0,a2),innerProduct(e0,a3)],[0,innerProduct(e1,a1),innerProduct(e1,a2),innerProduct(e1,a3)],[0,0,innerProduct(e2,a2),innerProduct(e2,a3)],[0,0,0,innerProduct(e3,a3)]];return{rotationMatrix:transposeMatrix(rotationMatrix),skewMatrix:transposeMatrix(skewMatrix)};}"},z=(function(){var t=function(t){var e=(0,a.default)(t,4),n=e[0],i=e[1],o=e[2],s=e[3],c=n,u=D(i,N(c,i)),x=D(D(o,N(c,o)),N(u,o)),l=[c,u,x,D(D(D(s,N(c,s)),N(u,s)),N(x,s))].map((function(t){return U(t,1/Math.sqrt(R(t,t)))})),_=(0,a.default)(l,4),m=_[0],f=_[1],M=_[2],b=_[3],h=[[m[0],f[0],M[0],b[0]],[m[1],f[1],M[1],b[1]],[m[2],f[2],M[2],b[2]],[m[3],f[3],M[3],b[3]]],y=[[R(m,n),R(m,i),R(m,o),R(m,s)],[0,R(f,i),R(f,o),R(f,s)],[0,0,R(M,o),R(M,s)],[0,0,0,R(b,s)]];return{rotationMatrix:A(h),skewMatrix:A(y)}};return t.__closure={subtractVectors:D,projection:N,scaleVector:U,innerProduct:R,transposeMatrix:A},t.__workletHash=827372645680,t.__initData=P,t})(),E={code:"function decomposeMatrix_reactNativeReanimated_matrixUtilsTsx19(unknownTypeMatrix){const{maybeFlattenMatrix,norm3d,gramSchmidtAlgorithm}=this.__closure;const matrix=maybeFlattenMatrix(unknownTypeMatrix);if(matrix[15]===0){throw new ReanimatedError('Invalid transform matrix.');}matrix.forEach(function(_,i){return matrix[i]/=matrix[15];});const translationMatrix=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[matrix[12],matrix[13],matrix[14],1]];const sx=matrix[15]*norm3d(matrix[0],matrix[4],matrix[8]);const sy=matrix[15]*norm3d(matrix[1],matrix[5],matrix[9]);const sz=matrix[15]*norm3d(matrix[2],matrix[6],matrix[10]);const scaleMatrix=[[sx,0,0,0],[0,sy,0,0],[0,0,sz,0],[0,0,0,1]];const rotationAndSkewMatrix=[[matrix[0]/sx,matrix[1]/sx,matrix[2]/sx,0],[matrix[4]/sy,matrix[5]/sy,matrix[6]/sy,0],[matrix[8]/sz,matrix[9]/sz,matrix[10]/sz,0],[0,0,0,1]];const{rotationMatrix:rotationMatrix,skewMatrix:skewMatrix}=gramSchmidtAlgorithm(rotationAndSkewMatrix);return{translationMatrix:translationMatrix,scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,skewMatrix:skewMatrix};}"},q=_e.decomposeMatrix=(function(){var t=function(t){var a=_(t);if(0===a[15])throw new(r(d[2]).ReanimatedError)('Invalid transform matrix.');a.forEach((function(t,e){return a[e]/=a[15]}));var e=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[a[12],a[13],a[14],1]],n=a[15]*v(a[0],a[4],a[8]),i=a[15]*v(a[1],a[5],a[9]),o=a[15]*v(a[2],a[6],a[10]),s=[[n,0,0,0],[0,i,0,0],[0,0,o,0],[0,0,0,1]],c=[[a[0]/n,a[1]/n,a[2]/n,0],[a[4]/i,a[5]/i,a[6]/i,0],[a[8]/o,a[9]/o,a[10]/o,0],[0,0,0,1]],u=z(c);return{translationMatrix:e,scaleMatrix:s,rotationMatrix:u.rotationMatrix,skewMatrix:u.skewMatrix}};return t.__closure={maybeFlattenMatrix:_,norm3d:v,gramSchmidtAlgorithm:z},t.__workletHash=2076609522926,t.__initData=E,t})(),S={code:"function decomposeMatrixIntoMatricesAndAngles_reactNativeReanimated_matrixUtilsTsx20(matrix){const{decomposeMatrix}=this.__closure;const{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix}=decomposeMatrix(matrix);const sinRy=-rotationMatrix[0][2];const ry=Math.asin(sinRy);let rx;let rz;if(sinRy===1||sinRy===-1){rz=0;rx=Math.atan2(sinRy*rotationMatrix[0][1],sinRy*rotationMatrix[0][2]);}else{rz=Math.atan2(rotationMatrix[0][1],rotationMatrix[0][0]);rx=Math.atan2(rotationMatrix[1][2],rotationMatrix[2][2]);}return{scaleMatrix:scaleMatrix,rotationMatrix:rotationMatrix,translationMatrix:translationMatrix,skewMatrix:skewMatrix,rx:rx||0,ry:ry||0,rz:rz||0};}"};_e.decomposeMatrixIntoMatricesAndAngles=(function(){var t=function(t){var a,e,n=q(t),i=n.scaleMatrix,o=n.rotationMatrix,s=n.translationMatrix,c=n.skewMatrix,u=-o[0][2],x=Math.asin(u);return 1===u||-1===u?(e=0,a=Math.atan2(u*o[0][1],u*o[0][2])):(e=Math.atan2(o[0][1],o[0][0]),a=Math.atan2(o[1][2],o[2][2])),{scaleMatrix:i,rotationMatrix:o,translationMatrix:s,skewMatrix:c,rx:a||0,ry:x||0,rz:e||0}};return t.__closure={decomposeMatrix:q},t.__workletHash=0xd5401186c06,t.__initData=S,t})()}),549,[2,44,525]); +__d((function(_g,_r,_i,_a,m,e,_d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.toLinearSpace=e.toGammaSpace=e.rgbaColor=e.rgbaArrayToRGBAColor=e.red=e.processColorsInProps=e.processColor=e.opacity=e.normalizeColor=e.isColor=e.hsvToColor=e.green=e.convertToRGBA=e.blue=e.RGBtoHSV=e.ColorProperties=void 0;var r='[-+]?\\d*\\.?\\d+',o="[-+]?\\d*\\.?\\d+%";function t(){for(var r=arguments.length,o=new Array(r),t=0;t1){t-=1;}if(t<1/6){return p+(q-p)*6*t;}if(t<1/2){return q;}if(t<2/3){return p+(q-p)*(2/3-t)*6;}return p;}"},f=(function(){var r=function(r,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(o-r)*t:t<.5?o:t<.6666666666666666?r+(o-r)*(.6666666666666666-t)*6:r};return r.__closure={},r.__workletHash=7159052357590,r.__initData=_,r})(),p={code:"function hslToRgb_reactNativeReanimated_ColorsTs2(h,s,l){const{hue2rgb}=this.__closure;const q=l<0.5?l*(1+s):l+s-l*s;const p=2*l-q;const r=hue2rgb(p,q,h+1/3);const g=hue2rgb(p,q,h);const b=hue2rgb(p,q,h-1/3);return Math.round(r*255)<<24|Math.round(g*255)<<16|Math.round(b*255)<<8;}"},b=(function(){var r=function(r,o,t){var a=t<.5?t*(1+o):t+o-t*o,n=2*t-a,l=f(n,a,r+.3333333333333333),s=f(n,a,r),i=f(n,a,r-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*s)<<16|Math.round(255*i)<<8};return r.__closure={hue2rgb:f},r.__workletHash=8187234922164,r.__initData=p,r})(),g={code:"function hwbToRgb_reactNativeReanimated_ColorsTs3(h,w,b){const{hue2rgb}=this.__closure;if(w+b>=1){const gray=Math.round(w*255/(w+b));return gray<<24|gray<<16|gray<<8;}const red=hue2rgb(0,1,h+1/3)*(1-w-b)+w;const green=hue2rgb(0,1,h)*(1-w-b)+w;const blue=hue2rgb(0,1,h-1/3)*(1-w-b)+w;return Math.round(red*255)<<24|Math.round(green*255)<<16|Math.round(blue*255)<<8;}"},C=(function(){var r=function(r,o,t){if(o+t>=1){var a=Math.round(255*o/(o+t));return a<<24|a<<16|a<<8}var n=f(0,1,r+.3333333333333333)*(1-o-t)+o,l=f(0,1,r)*(1-o-t)+o,s=f(0,1,r-.3333333333333333)*(1-o-t)+o;return Math.round(255*n)<<24|Math.round(255*l)<<16|Math.round(255*s)<<8};return r.__closure={hue2rgb:f},r.__workletHash=9535259482974,r.__initData=g,r})(),v={code:"function parse255_reactNativeReanimated_ColorsTs4(str){const int=Number.parseInt(str,10);if(int<0){return 0;}if(int>255){return 255;}return int;}"},k=(function(){var r=function(r){var o=Number.parseInt(r,10);return o<0?0:o>255?255:o};return r.__closure={},r.__workletHash=8095544411271,r.__initData=v,r})(),w={code:"function parse360_reactNativeReanimated_ColorsTs5(str){const int=Number.parseFloat(str);return(int%360+360)%360/360;}"},R=(function(){var r=function(r){return(Number.parseFloat(r)%360+360)%360/360};return r.__closure={},r.__workletHash=5461866352744,r.__initData=w,r})(),y={code:"function parse1_reactNativeReanimated_ColorsTs6(str){const num=Number.parseFloat(str);if(num<0){return 0;}if(num>1){return 255;}return Math.round(num*255);}"},x=(function(){var r=function(r){var o=Number.parseFloat(r);return o<0?0:o>1?255:Math.round(255*o)};return r.__closure={},r.__workletHash=4796460910094,r.__initData=y,r})(),T={code:"function parsePercentage_reactNativeReanimated_ColorsTs7(str){const int=Number.parseFloat(str);if(int<0){return 0;}if(int>100){return 1;}return int/100;}"},A=(function(){var r=function(r){var o=Number.parseFloat(r);return o<0?0:o>100?1:o/100};return r.__closure={},r.__workletHash=2774481844158,r.__initData=T,r})(),M=(0,_r(_d[0]).makeShareable)({transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}),N=e.ColorProperties=(0,_r(_d[0]).makeShareable)(['backgroundColor','borderBottomColor','borderColor','borderLeftColor','borderRightColor','borderTopColor','borderStartColor','borderEndColor','borderBlockColor','borderBlockEndColor','borderBlockStartColor','color','outlineColor','shadowColor','textDecorationColor','tintColor','textShadowColor','overlayColor','fill','floodColor','lightingColor','stopColor','stroke']),H={code:"function normalizeColor_reactNativeReanimated_ColorsTs8(color){const{MATCHERS,names,parse255,parse1,hslToRgb,parse360,parsePercentage,hwbToRgb}=this.__closure;if(typeof color==='number'){if(color>>>0===color&&color>=0&&color<=0xffffffff){return color;}return null;}if(typeof color!=='string'){return null;}let match;if(match=MATCHERS.hex6.exec(color)){return Number.parseInt(match[1]+'ff',16)>>>0;}if(names[color]!==undefined){return names[color];}if(match=MATCHERS.rgb.exec(color)){return((parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|0x000000ff)>>>0);}if(match=MATCHERS.rgba.exec(color)){if(match[6]!==undefined){return(parse255(match[6])<<24|parse255(match[7])<<16|parse255(match[8])<<8|parse1(match[9]))>>>0;}return(parse255(match[2])<<24|parse255(match[3])<<16|parse255(match[4])<<8|parse1(match[5]))>>>0;}if(match=MATCHERS.hex3.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+'ff',16)>>>0;}if(match=MATCHERS.hex8.exec(color)){return Number.parseInt(match[1],16)>>>0;}if(match=MATCHERS.hex4.exec(color)){return Number.parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0;}if(match=MATCHERS.hsl.exec(color)){return(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}if(match=MATCHERS.hsla.exec(color)){if(match[6]!==undefined){return(hslToRgb(parse360(match[6]),parsePercentage(match[7]),parsePercentage(match[8]))|parse1(match[9]))>>>0;}return(hslToRgb(parse360(match[2]),parsePercentage(match[3]),parsePercentage(match[4]))|parse1(match[5]))>>>0;}if(match=MATCHERS.hwb.exec(color)){return(hwbToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|0x000000ff)>>>0;}return null;}"},S=e.normalizeColor=(function(){var r=function(r){return'number'==typeof r?r>>>0===r&&r>=0&&r<=4294967295?r:null:'string'!=typeof r?null:(o=d.hex6.exec(r))?Number.parseInt(o[1]+'ff',16)>>>0:void 0!==M[r]?M[r]:(o=d.rgb.exec(r))?(k(o[1])<<24|k(o[2])<<16|k(o[3])<<8|255)>>>0:(o=d.rgba.exec(r))?void 0!==o[6]?(k(o[6])<<24|k(o[7])<<16|k(o[8])<<8|x(o[9]))>>>0:(k(o[2])<<24|k(o[3])<<16|k(o[4])<<8|x(o[5]))>>>0:(o=d.hex3.exec(r))?Number.parseInt(o[1]+o[1]+o[2]+o[2]+o[3]+o[3]+'ff',16)>>>0:(o=d.hex8.exec(r))?Number.parseInt(o[1],16)>>>0:(o=d.hex4.exec(r))?Number.parseInt(o[1]+o[1]+o[2]+o[2]+o[3]+o[3]+o[4]+o[4],16)>>>0:(o=d.hsl.exec(r))?(255|b(R(o[1]),A(o[2]),A(o[3])))>>>0:(o=d.hsla.exec(r))?void 0!==o[6]?(b(R(o[6]),A(o[7]),A(o[8]))|x(o[9]))>>>0:(b(R(o[2]),A(o[3]),A(o[4]))|x(o[5]))>>>0:(o=d.hwb.exec(r))?(255|C(R(o[1]),A(o[2]),A(o[3])))>>>0:null;var o};return r.__closure={MATCHERS:d,names:M,parse255:k,parse1:x,hslToRgb:b,parse360:R,parsePercentage:A,hwbToRgb:C},r.__workletHash=7315814004362,r.__initData=H,r})(),D={code:"function reactNativeReanimated_ColorsTs9(c){return(c>>24&255)/255;}"},B=(e.opacity=((l=function(r){return(r>>24&255)/255}).__closure={},l.__workletHash=7904065277018,l.__initData=D,l),{code:"function reactNativeReanimated_ColorsTs10(c){return c>>16&255;}"}),I=(e.red=((s=function(r){return r>>16&255}).__closure={},s.__workletHash=2806986950015,s.__initData=B,s),{code:"function reactNativeReanimated_ColorsTs11(c){return c>>8&255;}"}),G=(e.green=((i=function(r){return r>>8&255}).__closure={},i.__workletHash=0x980e03bfc01,i.__initData=I,i),{code:"function reactNativeReanimated_ColorsTs12(c){return c&255;}"}),q=(e.blue=((c=function(r){return 255&r}).__closure={},c.__workletHash=9236290129370,c.__initData=G,c),{code:"function reactNativeReanimated_ColorsTs13(r,g,b,alpha=1){const safeAlpha=alpha<0.001?0:alpha;return\"rgba(\"+r+\", \"+g+\", \"+b+\", \"+safeAlpha+\")\";}"}),z=e.rgbaColor=(u=function(r,o,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return`rgba(${r}, ${o}, ${t}, ${a<.001?0:a})`},u.__closure={},u.__workletHash=0xc6227340185,u.__initData=q,u),P={code:"function RGBtoHSV_reactNativeReanimated_ColorsTs14(r,g,b){const max=Math.max(r,g,b);const min=Math.min(r,g,b);const d=max-min;const s=max===0?0:d/max;const v=max/255;let h=0;switch(max){case min:break;case r:h=g-b+d*(g>>8)>>>0;return normalizedColor;}"}),j=(function(){var r=function(r){if(null==r||'number'==typeof r)return r;var o=S(r);return null!=o?'number'!=typeof o?null:o=(o<<24|o>>>8)>>>0:void 0};return r.__closure={normalizeColor:S},r.__workletHash=3504836866846,r.__initData=V,r})(),L={code:"function isColor_reactNativeReanimated_ColorsTs18(value){const{processColorInitially}=this.__closure;if(typeof value!=='string'){return false;}return processColorInitially(value)!=null;}"},O=(e.isColor=(function(){var r=function(r){return'string'==typeof r&&null!=j(r)};return r.__closure={processColorInitially:j},r.__workletHash=7288890161004,r.__initData=L,r})(),(0,_r(_d[1]).isAndroid)()),J={code:"function processColor_reactNativeReanimated_ColorsTs19(color){const{processColorInitially,IS_ANDROID}=this.__closure;let normalizedColor=processColorInitially(color);if(normalizedColor===null||normalizedColor===undefined){return undefined;}if(typeof normalizedColor!=='number'){return null;}if(IS_ANDROID){normalizedColor=normalizedColor|0x0;}return normalizedColor;}"},K=e.processColor=(function(){var r=function(r){var o=j(r);if(null!=o)return'number'!=typeof o?null:(O&&(o|=0),o)};return r.__closure={processColorInitially:j,IS_ANDROID:O},r.__workletHash=0x936bae79603,r.__initData=J,r})(),Q={code:"function processColorsInProps_reactNativeReanimated_ColorsTs20(props){const{ColorProperties,processColor}=this.__closure;for(const key in props){if(ColorProperties.includes(key)){props[key]=processColor(props[key]);}}}"},U=(e.processColorsInProps=(function(){var r=function(r){for(var o in r)N.includes(o)&&(r[o]=K(r[o]))};return r.__closure={ColorProperties:N,processColor:K},r.__workletHash=8224033791884,r.__initData=Q,r})(),{code:"function convertToRGBA_reactNativeReanimated_ColorsTs21(color){const{processColorInitially}=this.__closure;const processedColor=processColorInitially(color);const a=(processedColor>>>24)/255;const r=(processedColor<<8>>>24)/255;const g=(processedColor<<16>>>24)/255;const b=(processedColor<<24>>>24)/255;return[r,g,b,a];}"}),W=(e.convertToRGBA=(function(){var r=function(r){var o=j(r);return[(o<<8>>>24)/255,(o<<16>>>24)/255,(o<<24>>>24)/255,(o>>>24)/255]};return r.__closure={processColorInitially:j},r.__workletHash=2751375257105,r.__initData=U,r})(),{code:"function rgbaArrayToRGBAColor_reactNativeReanimated_ColorsTs22(RGBA){const alpha=RGBA[3]<0.001?0:RGBA[3];return\"rgba(\"+Math.round(RGBA[0]*255)+\", \"+Math.round(RGBA[1]*255)+\", \"+Math.round(RGBA[2]*255)+\", \"+alpha+\")\";}"}),X=(e.rgbaArrayToRGBAColor=(function(){var r=function(r){var o=r[3]<.001?0:r[3];return`rgba(${Math.round(255*r[0])}, ${Math.round(255*r[1])}, ${Math.round(255*r[2])}, ${o})`};return r.__closure={},r.__workletHash=0xec405638023,r.__initData=W,r})(),{code:"function toLinearSpace_reactNativeReanimated_ColorsTs23(RGBA,gamma=2.2){const res=[];for(let i=0;i<3;++i){res.push(Math.pow(RGBA[i],gamma));}res.push(RGBA[3]);return res;}"}),Y=(e.toLinearSpace=(function(){var r=function(r){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2.2,t=[],a=0;a<3;++a)t.push(Math.pow(r[a],o));return t.push(r[3]),t};return r.__closure={},r.__workletHash=2544264545110,r.__initData=X,r})(),{code:"function toGammaSpace_reactNativeReanimated_ColorsTs24(RGBA,gamma=2.2){const res=[];for(let i=0;i<3;++i){res.push(Math.pow(RGBA[i],1/gamma));}res.push(RGBA[3]);return res;}"});e.toGammaSpace=(function(){var r=function(r){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2.2,t=[],a=0;a<3;++a)t.push(Math.pow(r[a],1/o));return t.push(r[3]),t};return r.__closure={},r.__workletHash=0x9b03b3af135,r.__initData=Y,r})()}),550,[551,528]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.configureLayoutAnimationBatch=function(n){t.default.configureLayoutAnimationBatch(n)},Object.defineProperty(e,"createWorkletRuntime",{enumerable:!0,get:function(){return r(d[1]).createWorkletRuntime}}),e.enableLayoutAnimations=function(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o?(f={enableLayoutAnimations:n,setByUser:!0},t.default.enableLayoutAnimations(n)):f.setByUser||f.enableLayoutAnimations===n||(f.enableLayoutAnimations=n,t.default.enableLayoutAnimations(n))},Object.defineProperty(e,"executeOnUIRuntimeSync",{enumerable:!0,get:function(){return r(d[2]).executeOnUIRuntimeSync}}),e.getViewProp=function(n,o,u){if((0,r(d[7]).isFabric)()&&!u)throw new(r(d[8]).ReanimatedError)('Function `getViewProp` requires a component to be passed as an argument on Fabric.');return new Promise((function(s,l){return t.default.getViewProp(n,o,u,(function(n){'string'==typeof n&&'error:'===n.substr(0,6)?l(n):s(n)}))}))},e.initializeSensor=function(n,t){return s().initializeSensor(n,t)},e.isReanimated3=e.isConfigured=void 0,e.jsiConfigureProps=function(n,u){o||t.default.configureProps(n,u)},Object.defineProperty(e,"makeMutable",{enumerable:!0,get:function(){return r(d[3]).makeMutable}}),Object.defineProperty(e,"makeShareable",{enumerable:!0,get:function(){return r(d[4]).makeShareable}}),Object.defineProperty(e,"makeShareableCloneRecursive",{enumerable:!0,get:function(){return r(d[4]).makeShareableCloneRecursive}}),e.registerEventHandler=function(n,o){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=(function(){var t=function(t,o){g.__frameTimestamp=t,n(o),g.__flushAnimationFrame(t),g.__frameTimestamp=void 0};return t.__closure={eventHandler:n},t.__workletHash=3306720828011,t.__initData=l,t})();return t.default.registerEventHandler((0,r(d[4]).makeShareableCloneRecursive)(s),o,u)},e.registerSensor=function(n,t,o){return s().registerSensor(n,t,(0,r(d[4]).makeShareableCloneRecursive)(o))},Object.defineProperty(e,"runOnJS",{enumerable:!0,get:function(){return r(d[2]).runOnJS}}),Object.defineProperty(e,"runOnRuntime",{enumerable:!0,get:function(){return r(d[1]).runOnRuntime}}),Object.defineProperty(e,"runOnUI",{enumerable:!0,get:function(){return r(d[2]).runOnUI}}),e.setShouldAnimateExitingForTag=function(n,o){t.default.setShouldAnimateExitingForTag(n,o)},Object.defineProperty(e,"startMapper",{enumerable:!0,get:function(){return r(d[5]).startMapper}}),Object.defineProperty(e,"stopMapper",{enumerable:!0,get:function(){return r(d[5]).stopMapper}}),e.subscribeForKeyboardEvents=function(n,o){var u,s,l=(function(){var t=function(t,o){var u=g._getAnimationTimestamp();g.__frameTimestamp=u,n(t,o),g.__flushAnimationFrame(u),g.__frameTimestamp=void 0};return t.__closure={eventHandler:n},t.__workletHash=0xa8b8c1f12c6,t.__initData=c,t})();return t.default.subscribeForKeyboardEvents((0,r(d[4]).makeShareableCloneRecursive)(l),null!=(u=o.isStatusBarTranslucentAndroid)&&u,null!=(s=o.isNavigationBarTranslucentAndroid)&&s)},e.unregisterEventHandler=function(n){return t.default.unregisterEventHandler(n)},e.unregisterSensor=function(n){return s().unregisterSensor(n)},e.unsubscribeFromKeyboardEvents=function(n){return t.default.unsubscribeFromKeyboardEvents(n)};var t=n(r(d[6])),o=(0,r(d[7]).shouldBeUseWeb)(),u=e.isReanimated3=function(){return!0};e.isConfigured=u;function s(){return g.__sensorContainer||(g.__sensorContainer=new(r(d[9]).SensorContainer)),g.__sensorContainer}var l={code:"function handleAndFlushAnimationFrame_reactNativeReanimated_coreTs1(eventTimestamp,event){const{eventHandler}=this.__closure;global.__frameTimestamp=eventTimestamp;eventHandler(event);global.__flushAnimationFrame(eventTimestamp);global.__frameTimestamp=undefined;}"};var c={code:"function handleAndFlushAnimationFrame_reactNativeReanimated_coreTs2(state,height){const{eventHandler}=this.__closure;const now=global._getAnimationTimestamp();global.__frameTimestamp=now;eventHandler(state,height);global.__flushAnimationFrame(now);global.__frameTimestamp=undefined;}"};(0,r(d[7]).isWeb)()||(0,r(d[10]).initializeUIRuntime)();var f={enableLayoutAnimations:!1,setByUser:!1}}),551,[2,552,548,530,535,554,536,528,525,556,553]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createWorkletRuntime=function(t,o){var u=__reanimatedLoggerConfig;return n.default.createWorkletRuntime(t,(0,r(d[3]).makeShareableCloneRecursive)((s=function(){(0,r(d[4]).registerReanimatedError)(),(0,r(d[5]).registerLoggerConfig)(u),(0,r(d[6]).setupCallGuard)(),(0,r(d[6]).setupConsole)(),null==o||o()},s.__closure={registerReanimatedError:r(d[4]).registerReanimatedError,registerLoggerConfig:r(d[5]).registerLoggerConfig,config:u,setupCallGuard:r(d[6]).setupCallGuard,setupConsole:r(d[6]).setupConsole,initializer:o},s.__workletHash=4731807293563,s.__initData=l,s)));var s},e.runOnRuntime=void 0;var n=t(r(d[1])),o=(0,r(d[2]).shouldBeUseWeb)(),l={code:"function reactNativeReanimated_runtimesTs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}"};var u={code:"function runOnRuntime_reactNativeReanimated_runtimesTs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,NativeReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return NativeReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}"},s={code:"function reactNativeReanimated_runtimesTs3(){const{worklet,args}=this.__closure;worklet(...args);}"},_={code:"function reactNativeReanimated_runtimesTs4(){const{worklet,args}=this.__closure;worklet(...args);}"};e.runOnRuntime=(function(){var t=function(t,o){return _WORKLET?function(){for(var n=arguments.length,l=new Array(n),u=0;u1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=n+=1;return(0,r(d[2]).runOnUI)((function(){var n=function(){var n=g.__mapperRegistry;void 0===n&&(n=g.__mapperRegistry=s()),n.start(f,t,p,u)};return n.__closure={createMapperRegistry:s,mapperID:f,worklet:t,inputs:p,outputs:u},n.__workletHash=9660765174658,n.__initData=o,n})())(),f},e.stopMapper=function(t){(0,r(d[2]).runOnUI)((p=function(){var p=g.__mapperRegistry;null==p||p.stop(t)},p.__closure={mapperID:t},p.__workletHash=7172044021294,p.__initData=u,p))();var p};var t=(0,r(d[0]).isJest)(),p={code:"function createMapperRegistry_reactNativeReanimated_mappersTs1(){const{IS_JEST,isSharedValue}=this.__closure;const mappers=new Map();let sortedMappers=[];let runRequested=false;let processingMappers=false;function updateMappersOrder(){const pre=new Map();mappers.forEach(function(mapper){if(mapper.outputs){for(const output of mapper.outputs){const preMappers=pre.get(output);if(preMappers===undefined){pre.set(output,[mapper]);}else{preMappers.push(mapper);}}}});const visited=new Set();const newOrder=[];function dfs(mapper){visited.add(mapper);for(const input of mapper.inputs){const preMappers=pre.get(input);if(preMappers){for(const preMapper of preMappers){if(!visited.has(preMapper)){dfs(preMapper);}}}}newOrder.push(mapper);}mappers.forEach(function(mapper){if(!visited.has(mapper)){dfs(mapper);}});sortedMappers=newOrder;}function mapperRun(){runRequested=false;if(processingMappers){return;}try{processingMappers=true;if(mappers.size!==sortedMappers.length){updateMappersOrder();}for(const mapper of sortedMappers){if(mapper.dirty){mapper.dirty=false;mapper.worklet();}}}finally{processingMappers=false;}}function maybeRequestUpdates(){if(IS_JEST){mapperRun();}else if(!runRequested){if(processingMappers){requestAnimationFrame(mapperRun);}else{queueMicrotask(mapperRun);}runRequested=true;}}function extractInputs(inputs,resultArray){if(Array.isArray(inputs)){for(const input of inputs){input&&extractInputs(input,resultArray);}}else if(isSharedValue(inputs)){resultArray.push(inputs);}else if(Object.getPrototypeOf(inputs)===Object.prototype){for(const element of Object.values(inputs)){element&&extractInputs(element,resultArray);}}return resultArray;}return{start:function(mapperID,worklet,inputs,outputs){const mapper={id:mapperID,dirty:true,worklet:worklet,inputs:extractInputs(inputs,[]),outputs:outputs};mappers.set(mapper.id,mapper);sortedMappers=[];for(const sv of mapper.inputs){sv.addListener(mapper.id,function(){mapper.dirty=true;maybeRequestUpdates();});}maybeRequestUpdates();},stop:function(mapperID){const mapper=mappers.get(mapperID);if(mapper){mappers.delete(mapper.id);sortedMappers=[];for(const sv of mapper.inputs){sv.removeListener(mapper.id);}}}};}"},s=(function(){var s=function(){var p=new Map,s=[],n=!1,o=!1;function u(){var t=new Map;p.forEach((function(p){if(p.outputs)for(var s of p.outputs){var n=t.get(s);void 0===n?t.set(s,[p]):n.push(p)}}));var n=new Set,o=[];function u(p){for(var s of(n.add(p),p.inputs)){var f=t.get(s);if(f)for(var c of f)n.has(c)||u(c)}o.push(p)}p.forEach((function(t){n.has(t)||u(t)})),s=o}function f(){if(n=!1,!o)try{for(var t of(o=!0,p.size!==s.length&&u(),s))t.dirty&&(t.dirty=!1,t.worklet())}finally{o=!1}}function c(){t?f():n||(o?requestAnimationFrame(f):queueMicrotask(f),n=!0)}function l(t,p){if(Array.isArray(t))for(var s of t)s&&l(s,p);else if((0,r(d[1]).isSharedValue)(t))p.push(t);else if(Object.getPrototypeOf(t)===Object.prototype)for(var n of Object.values(t))n&&l(n,p);return p}return{start:function(t,n,o,u){var f={id:t,dirty:!0,worklet:n,inputs:l(o,[]),outputs:u};for(var y of(p.set(f.id,f),s=[],f.inputs))y.addListener(f.id,(function(){f.dirty=!0,c()}));c()},stop:function(t){var n=p.get(t);if(n)for(var o of(p.delete(n.id),s=[],n.inputs))o.removeListener(n.id)}}};return s.__closure={IS_JEST:t,isSharedValue:r(d[1]).isSharedValue},s.__workletHash=6094846488348,s.__initData=p,s})(),n=9999,o={code:"function reactNativeReanimated_mappersTs2(){const{createMapperRegistry,mapperID,worklet,inputs,outputs}=this.__closure;let mapperRegistry=global.__mapperRegistry;if(mapperRegistry===undefined){mapperRegistry=global.__mapperRegistry=createMapperRegistry();}mapperRegistry.start(mapperID,worklet,inputs,outputs);}"};var u={code:"function reactNativeReanimated_mappersTs3(){const{mapperID}=this.__closure;const mapperRegistry=global.__mapperRegistry;mapperRegistry===null||mapperRegistry===void 0||mapperRegistry.stop(mapperID);}"}}),554,[528,555,548]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.isSharedValue=void 0;var u={code:"function isSharedValue_reactNativeReanimated_isSharedValueTs1(value){return(value===null||value===void 0?void 0:value._isReanimatedSharedValue)===true;}"};e.isSharedValue=(function(){var t=function(u){return!0===(null==u?void 0:u._isReanimatedSharedValue)};return t.__closure={},t.__workletHash=8647565488568,t.__initData=u,t})()}),555,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.SensorContainer=void 0;var t=n(r(d[1])),s=n(r(d[2])),u=n(r(d[3]));e.SensorContainer=(function(){return(0,s.default)((function n(){(0,t.default)(this,n),this.nativeSensors=new Map}),[{key:"getSensorId",value:function(n,t){return 100*n+10*t.iosReferenceFrame+Number(t.adjustToInterfaceOrientation)}},{key:"initializeSensor",value:function(n,t){var s=this.getSensorId(n,t);if(!this.nativeSensors.has(s)){var o=new u.default(n,t);this.nativeSensors.set(s,o)}return this.nativeSensors.get(s).getSharedValue()}},{key:"registerSensor",value:function(n,t,s){var u=this.getSensorId(n,t);if(!this.nativeSensors.has(u))return-1;var o=this.nativeSensors.get(u);return o&&o.isAvailable()&&(o.isRunning()||o.register(s))?(o.listenersNumber++,u):-1}},{key:"unregisterSensor",value:function(n){if(this.nativeSensors.has(n)){var t=this.nativeSensors.get(n);t&&t.isRunning()&&(t.listenersNumber--,0===t.listenersNumber&&t.unregister())}}}])})()}),556,[2,6,7,557]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3]));function o(t){return t===r(d[4]).SensorType.ROTATION?(0,r(d[5]).makeMutable)({qw:0,qx:0,qy:0,qz:0,yaw:0,pitch:0,roll:0,interfaceOrientation:0}):(0,r(d[5]).makeMutable)({x:0,y:0,z:0,interfaceOrientation:0})}e.default=(function(){return(0,s.default)((function t(s,u){(0,n.default)(this,t),this.listenersNumber=0,this.sensorId=null,this.sensorType=s,this.config=u,this.data=o(s)}),[{key:"register",value:function(t){var n=this.config,s=this.sensorType;return this.sensorId=u.default.registerSensor(s,'auto'===n.interval?-1:n.interval,n.iosReferenceFrame,t),-1!==this.sensorId}},{key:"isRunning",value:function(){return-1!==this.sensorId&&null!==this.sensorId}},{key:"isAvailable",value:function(){return-1!==this.sensorId}},{key:"getSharedValue",value:function(){return this.data}},{key:"unregister",value:function(){null!==this.sensorId&&-1!==this.sensorId&&u.default.unregisterSensor(this.sensorId),this.sensorId=null}}])})()}),557,[2,6,7,536,524,530]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.withClamp=void 0;var n,o={code:"function reactNativeReanimated_clampTs1(config,_animationToClamp){const{defineAnimation,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_animationToClamp,function(){'worklet';const animationToClamp=typeof _animationToClamp==='function'?_animationToClamp():_animationToClamp;const strippedMin=config.min===undefined?undefined:recognizePrefixSuffix(config.min).strippedValue;const strippedMax=config.max===undefined?undefined:recognizePrefixSuffix(config.max).strippedValue;function clampOnFrame(animation,now){const finished=animationToClamp.onFrame(animationToClamp,now);if(animationToClamp.current===undefined){logger.warn(\"Error inside 'withClamp' animation, the inner animation has invalid current value\");return true;}else{const{prefix:prefix,strippedValue:strippedValue,suffix:suffix}=recognizePrefixSuffix(animationToClamp.current);let newValue;if(strippedMax!==undefined&&strippedMaxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current==='number'?newValue:\"\"+(prefix===undefined?'':prefix)+newValue+(suffix===undefined?'':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.maxstrippedValue){newValue=strippedMin;}else{newValue=strippedValue;}animation.current=typeof animationToClamp.current==='number'?newValue:\"\"+(prefix===undefined?'':prefix)+newValue+(suffix===undefined?'':suffix);}return finished;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.previousAnimation=animationToClamp;const animationBeforeClamped=previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.previousAnimation;if(config.max!==undefined&&config.min!==undefined&&config.maxx?u:x,n.current='number'==typeof t.current?p:`${void 0===s?'':s}${p}${void 0===v?'':v}`,l},onStart:function(o,u,f,l){o.current=u,o.previousAnimation=t;var p=null==l?void 0:l.previousAnimation;void 0!==n.max&&void 0!==n.min&&n.maxconfig.clamp[1]){animation.current=config.clamp[1];}}}return{onFrame:decay,onStart:onStart,callback:callback,velocity:(_config$velocity=config.velocity)!==null&&_config$velocity!==void 0?_config$velocity:0,initialVelocity:0,current:0,lastTimestamp:0,startTimestamp:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};});}"},l={code:"function reactNativeReanimated_decayTs3(){const{userConfig,isValidRubberBandConfig,rubberBandDecay,rigidDecay,validateConfig,callback,getReduceMotionForAnimation}=this.__closure;var _config$velocity;const config={deceleration:0.998,velocityFactor:1,velocity:0,rubberBandFactor:0.6};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}const decay=isValidRubberBandConfig(config)?function(animation,now){return rubberBandDecay(animation,now,config);}:function(animation,now){return rigidDecay(animation,now,config);};function onStart(animation,value,now){animation.current=value;animation.lastTimestamp=now;animation.startTimestamp=now;animation.initialVelocity=config.velocity;validateConfig(config);if(animation.reduceMotion&&config.clamp){if(valueconfig.clamp[1]){animation.current=config.clamp[1];}}}return{onFrame:decay,onStart:onStart,callback:callback,velocity:(_config$velocity=config.velocity)!==null&&_config$velocity!==void 0?_config$velocity:0,initialVelocity:0,current:0,lastTimestamp:0,startTimestamp:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"};e.withDecay=((n=function(n,t){return(0,r(d[1]).defineAnimation)(0,((c=function(){var c,l={deceleration:.998,velocityFactor:1,velocity:0,rubberBandFactor:.6};return n&&Object.keys(n).forEach((function(t){return l[t]=n[t]})),{onFrame:(0,r(d[2]).isValidRubberBandConfig)(l)?function(n,t){return(0,r(d[3]).rubberBandDecay)(n,t,l)}:function(n,t){return(0,r(d[4]).rigidDecay)(n,t,l)},onStart:function(n,t,c){n.current=t,n.lastTimestamp=c,n.startTimestamp=c,n.initialVelocity=l.velocity,o(l),n.reduceMotion&&l.clamp&&(tl.clamp[1]&&(n.current=l.clamp[1]))},callback:t,velocity:null!=(c=l.velocity)?c:0,initialVelocity:0,current:0,lastTimestamp:0,startTimestamp:0,reduceMotion:(0,r(d[1]).getReduceMotionForAnimation)(l.reduceMotion)}}).__closure={userConfig:n,isValidRubberBandConfig:r(d[2]).isValidRubberBandConfig,rubberBandDecay:r(d[3]).rubberBandDecay,rigidDecay:r(d[4]).rigidDecay,validateConfig:o,callback:t,getReduceMotionForAnimation:r(d[1]).getReduceMotionForAnimation},c.__workletHash=0xb117eeaa62e,c.__initData=l,c));var c}).__closure={defineAnimation:r(d[1]).defineAnimation,isValidRubberBandConfig:r(d[2]).isValidRubberBandConfig,rubberBandDecay:r(d[3]).rubberBandDecay,rigidDecay:r(d[4]).rigidDecay,validateConfig:o,getReduceMotionForAnimation:r(d[1]).getReduceMotionForAnimation},n.__workletHash=0xb51021f0fc1,n.__initData=c,n)}),560,[525,527,561,562,563]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.isValidRubberBandConfig=e.VELOCITY_EPS=e.SLOPE_FACTOR=void 0;var n=(0,r(d[0]).isWeb)(),t=(e.VELOCITY_EPS=n?.05:1,e.SLOPE_FACTOR=.1,{code:"function isValidRubberBandConfig_reactNativeReanimated_utilsTs1(config){return!!config.rubberBandEffect&&Array.isArray(config.clamp)&&config.clamp.length===2;}"});e.isValidRubberBandConfig=(function(){var n=function(n){return!!n.rubberBandEffect&&Array.isArray(n.clamp)&&2===n.clamp.length};return n.__closure={},n.__workletHash=2431003556525,n.__initData=t,n})()}),561,[528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.rubberBandDecay=void 0;var t={code:"function rubberBandDecay_reactNativeReanimated_rubberBandDecayTs1(animation,now,config){const{SLOPE_FACTOR,DERIVATIVE_EPS,VELOCITY_EPS}=this.__closure;const{lastTimestamp:lastTimestamp,startTimestamp:startTimestamp,current:current,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);const clampIndex=Math.abs(current-config.clamp[0])config.clamp[1]){derivative=current-config.clamp[clampIndex];}const v=velocity*Math.exp(-(1-config.deceleration)*(now-startTimestamp)*SLOPE_FACTOR)-derivative*config.rubberBandFactor;if(Math.abs(derivative)>DERIVATIVE_EPS){animation.springActive=true;}else if(animation.springActive){animation.current=config.clamp[clampIndex];return true;}else if(Math.abs(v)c.clamp[1])&&(_=l-c.clamp[v]);var T=u*Math.exp(-(1-c.deceleration)*(n-s)*r(d[0]).SLOPE_FACTOR)-_*c.rubberBandFactor;if(Math.abs(_)>.1)t.springActive=!0;else{if(t.springActive)return t.current=c.clamp[v],!0;if(Math.abs(T)0&&animation.current>=config.clamp[1]){animation.current=config.clamp[1];return true;}}return Math.abs(v)0&&t.current>=c.clamp[1])return t.current=c.clamp[1],!0}return Math.abs(T)=delayMs||animation.reduceMotion){if(!started){nextAnimation.onStart(nextAnimation,current,now,previousAnimation);animation.previousAnimation=null;animation.started=true;}const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;return finished;}else if(previousAnimation){const finished=previousAnimation.finished||previousAnimation.onFrame(previousAnimation,now);animation.current=previousAnimation.current;if(finished){animation.previousAnimation=null;}}return false;}function onStart(animation,value,now,previousAnimation){animation.startTime=now;animation.started=false;animation.current=value;if(previousAnimation===animation){animation.previousAnimation=previousAnimation.previousAnimation;}else{animation.previousAnimation=previousAnimation;}if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}}const callback=function(finished){if(nextAnimation.callback){nextAnimation.callback(finished);}};return{isHigherOrder:true,onFrame:delay,onStart:onStart,current:nextAnimation.current,callback:callback,previousAnimation:null,startTime:0,started:false,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}"},o={code:"function reactNativeReanimated_delayTs2(){const{_nextAnimation,delayMs,getReduceMotionForAnimation,reduceMotion}=this.__closure;const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function delay(animation,now){const{startTime:startTime,started:started,previousAnimation:previousAnimation}=animation;const current=animation.current;if(now-startTime>=delayMs||animation.reduceMotion){if(!started){nextAnimation.onStart(nextAnimation,current,now,previousAnimation);animation.previousAnimation=null;animation.started=true;}const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;return finished;}else if(previousAnimation){const finished=previousAnimation.finished||previousAnimation.onFrame(previousAnimation,now);animation.current=previousAnimation.current;if(finished){animation.previousAnimation=null;}}return false;}function onStart(animation,value,now,previousAnimation){animation.startTime=now;animation.started=false;animation.current=value;if(previousAnimation===animation){animation.previousAnimation=previousAnimation.previousAnimation;}else{animation.previousAnimation=previousAnimation;}if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}}const callback=function(finished){if(nextAnimation.callback){nextAnimation.callback(finished);}};return{isHigherOrder:true,onFrame:delay,onStart:onStart,current:nextAnimation.current,callback:callback,previousAnimation:null,startTime:0,started:false,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}"};e.withDelay=((n=function(n,t,u){return(0,r(d[0]).defineAnimation)(t,((s=function(){var o='function'==typeof t?t():t;return{isHigherOrder:!0,onFrame:function(t,u){var s=t.startTime,c=t.started,A=t.previousAnimation,l=t.current;if(u-s>=n||t.reduceMotion){c||(o.onStart(o,l,u,A),t.previousAnimation=null,t.started=!0);var f=o.onFrame(o,u);return t.current=o.current,f}if(A){var v=A.finished||A.onFrame(A,u);t.current=A.current,v&&(t.previousAnimation=null)}return!1},onStart:function(n,t,u,s){n.startTime=u,n.started=!1,n.current=t,n.previousAnimation=s===n?s.previousAnimation:s,void 0===o.reduceMotion&&(o.reduceMotion=n.reduceMotion)},current:o.current,callback:function(n){o.callback&&o.callback(n)},previousAnimation:null,startTime:0,started:!1,reduceMotion:(0,r(d[0]).getReduceMotionForAnimation)(u)}}).__closure={_nextAnimation:t,delayMs:n,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation,reduceMotion:u},s.__workletHash=7709183711075,s.__initData=o,s));var s}).__closure={defineAnimation:r(d[0]).defineAnimation,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},n.__workletHash=0xe87e9e7f5b0,n.__initData=t,n)}),564,[527]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.withRepeat=void 0;var n,t={code:"function reactNativeReanimated_repeatTs1(_nextAnimation,numberOfReps=2,reverse=false,callback,reduceMotion){const{defineAnimation,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_nextAnimation,function(){'worklet';const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function repeat(animation,now){const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;if(finished){animation.reps+=1;if(nextAnimation.callback){nextAnimation.callback(true,animation.current);}if(animation.reduceMotion||numberOfReps>0&&animation.reps>=numberOfReps){return true;}const startValue=reverse?nextAnimation.current:animation.startValue;if(reverse){nextAnimation.toValue=animation.startValue;animation.startValue=startValue;}nextAnimation.onStart(nextAnimation,startValue,now,nextAnimation.previousAnimation);return false;}return false;}const repCallback=function(finished){if(callback){callback(finished);}if(!finished&&nextAnimation.callback){nextAnimation.callback(false);}};function onStart(animation,value,now,previousAnimation){animation.startValue=value;animation.reps=0;if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}if(animation.reduceMotion&&reverse&&(numberOfReps<=0||numberOfReps%2===0)){animation.current=animation.startValue;animation.onFrame=function(){return true;};}else{nextAnimation.onStart(nextAnimation,value,now,previousAnimation);}}return{isHigherOrder:true,onFrame:repeat,onStart:onStart,reps:0,current:nextAnimation.current,callback:repCallback,startValue:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}"},o={code:"function reactNativeReanimated_repeatTs2(){const{_nextAnimation,numberOfReps,reverse,callback,getReduceMotionForAnimation,reduceMotion}=this.__closure;const nextAnimation=typeof _nextAnimation==='function'?_nextAnimation():_nextAnimation;function repeat(animation,now){const finished=nextAnimation.onFrame(nextAnimation,now);animation.current=nextAnimation.current;if(finished){animation.reps+=1;if(nextAnimation.callback){nextAnimation.callback(true,animation.current);}if(animation.reduceMotion||numberOfReps>0&&animation.reps>=numberOfReps){return true;}const startValue=reverse?nextAnimation.current:animation.startValue;if(reverse){nextAnimation.toValue=animation.startValue;animation.startValue=startValue;}nextAnimation.onStart(nextAnimation,startValue,now,nextAnimation.previousAnimation);return false;}return false;}const repCallback=function(finished){if(callback){callback(finished);}if(!finished&&nextAnimation.callback){nextAnimation.callback(false);}};function onStart(animation,value,now,previousAnimation){animation.startValue=value;animation.reps=0;if(nextAnimation.reduceMotion===undefined){nextAnimation.reduceMotion=animation.reduceMotion;}if(animation.reduceMotion&&reverse&&(numberOfReps<=0||numberOfReps%2===0)){animation.current=animation.startValue;animation.onFrame=function(){return true;};}else{nextAnimation.onStart(nextAnimation,value,now,previousAnimation);}}return{isHigherOrder:true,onFrame:repeat,onStart:onStart,reps:0,current:nextAnimation.current,callback:repCallback,startValue:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}"};e.withRepeat=(n=function(n){var t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;return(0,r(d[0]).defineAnimation)(n,((t=function(){var t='function'==typeof n?n():n;return{isHigherOrder:!0,onFrame:function(n,o){var s=t.onFrame(t,o);if(n.current=t.current,s){if(n.reps+=1,t.callback&&t.callback(!0,n.current),n.reduceMotion||u>0&&n.reps>=u)return!0;var l=c?t.current:n.startValue;return c&&(t.toValue=n.startValue,n.startValue=l),t.onStart(t,l,o,t.previousAnimation),!1}return!1},onStart:function(n,o,s,l){n.startValue=o,n.reps=0,void 0===t.reduceMotion&&(t.reduceMotion=n.reduceMotion),n.reduceMotion&&c&&(u<=0||u%2==0)?(n.current=n.startValue,n.onFrame=function(){return!0}):t.onStart(t,o,s,l)},reps:0,current:t.current,callback:function(n){s&&s(n),!n&&t.callback&&t.callback(!1)},startValue:0,reduceMotion:(0,r(d[0]).getReduceMotionForAnimation)(l)}}).__closure={_nextAnimation:n,numberOfReps:u,reverse:c,callback:s,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation,reduceMotion:l},t.__workletHash=0xbbb1884f42c,t.__initData=o,t))},n.__closure={defineAnimation:r(d[0]).defineAnimation,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},n.__workletHash=225063988400,n.__initData=t,n)}),565,[527]); +__d((function(g,r,i,_a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.withSequence=void 0;var n={code:"function withSequence_reactNativeReanimated_sequenceTs1(_reduceMotionOrFirstAnimation,..._animations){const{logger,defineAnimation,getReduceMotionForAnimation}=this.__closure;let reduceMotion;if(_reduceMotionOrFirstAnimation){if(typeof _reduceMotionOrFirstAnimation==='string'){reduceMotion=_reduceMotionOrFirstAnimation;}else{_animations.unshift(_reduceMotionOrFirstAnimation);}}if(_animations.length===0){logger.warn('No animation was provided for the sequence');return defineAnimation(0,function(){'worklet';return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}return defineAnimation(_animations[0],function(){'worklet';const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(index1?a-1:0),c=1;c=config.duration){animation.current=toValue;animation.lastTimestamp=0;return true;}if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=-velocity;const x0=toValue-current;const{zeta:zeta,omega0:omega0,omega1:omega1}=animation;const{position:newPosition,velocity:newVelocity}=zeta<1?underDampedSpringCalculations(animation,{zeta:zeta,v0:v0,x0:x0,omega0:omega0,omega1:omega1,t:t}):criticallyDampedSpringCalculations(animation,{v0:v0,x0:x0,omega0:omega0,t:t});animation.current=newPosition;animation.velocity=newVelocity;const{isOvershooting:isOvershooting,isVelocity:isVelocity,isDisplacement:isDisplacement}=isAnimationTerminatingCalculation(animation,config);const springIsNotInMove=isOvershooting||isVelocity&&isDisplacement;if(!config.useDuration&&springIsNotInMove){animation.velocity=0;animation.current=toValue;animation.lastTimestamp=0;return true;}return false;}function isTriggeredTwice(previousAnimation,animation){return(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.toValue)===animation.toValue&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.duration)===animation.duration&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.dampingRatio)===animation.dampingRatio;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.startValue=value;let mass=config.mass;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:Number(animation.toValue)-value;if(previousAnimation){animation.velocity=(triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity:(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity)+config.velocity)||0;}else{animation.velocity=config.velocity||0;}if(triggeredTwice){animation.zeta=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.zeta)||0;animation.omega0=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega0)||0;animation.omega1=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega1)||0;}else{if(config.useDuration){const actualDuration=triggeredTwice?duration-(((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||0)-((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||0)):duration;config.duration=actualDuration;mass=calculateNewMassToMatchDuration(x0,config,animation.velocity);}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(mass,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}animation.lastTimestamp=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||now;animation.startTimestamp=triggeredTwice?(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||now:now;}return{onFrame:springOnFrame,onStart:onStart,toValue:toValue,velocity:config.velocity||0,current:toValue,startValue:0,callback:callback,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};});}"},t={code:"function reactNativeReanimated_springTs2(){const{userConfig,checkIfConfigIsValid,underDampedSpringCalculations,criticallyDampedSpringCalculations,isAnimationTerminatingCalculation,calculateNewMassToMatchDuration,initialCalculations,scaleZetaToMatchClamps,toValue,callback,getReduceMotionForAnimation}=this.__closure;var _userConfig,_userConfig2;const defaultConfig={damping:10,mass:1,stiffness:100,overshootClamping:false,restDisplacementThreshold:0.01,restSpeedThreshold:2,velocity:0,duration:2000,dampingRatio:0.5,reduceMotion:undefined,clamp:undefined};const config={...defaultConfig,...userConfig,useDuration:!!((_userConfig=userConfig)!==null&&_userConfig!==void 0&&_userConfig.duration||(_userConfig2=userConfig)!==null&&_userConfig2!==void 0&&_userConfig2.dampingRatio),skipAnimation:false};config.skipAnimation=!checkIfConfigIsValid(config);if(config.duration===0){config.skipAnimation=true;}function springOnFrame(animation,now){const{toValue:toValue,startTimestamp:startTimestamp,current:current}=animation;const timeFromStart=now-startTimestamp;if(config.useDuration&&timeFromStart>=config.duration){animation.current=toValue;animation.lastTimestamp=0;return true;}if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(now-lastTimestamp,64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=-velocity;const x0=toValue-current;const{zeta:zeta,omega0:omega0,omega1:omega1}=animation;const{position:newPosition,velocity:newVelocity}=zeta<1?underDampedSpringCalculations(animation,{zeta:zeta,v0:v0,x0:x0,omega0:omega0,omega1:omega1,t:t}):criticallyDampedSpringCalculations(animation,{v0:v0,x0:x0,omega0:omega0,t:t});animation.current=newPosition;animation.velocity=newVelocity;const{isOvershooting:isOvershooting,isVelocity:isVelocity,isDisplacement:isDisplacement}=isAnimationTerminatingCalculation(animation,config);const springIsNotInMove=isOvershooting||isVelocity&&isDisplacement;if(!config.useDuration&&springIsNotInMove){animation.velocity=0;animation.current=toValue;animation.lastTimestamp=0;return true;}return false;}function isTriggeredTwice(previousAnimation,animation){return(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.toValue)===animation.toValue&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.duration)===animation.duration&&(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.dampingRatio)===animation.dampingRatio;}function onStart(animation,value,now,previousAnimation){animation.current=value;animation.startValue=value;let mass=config.mass;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:Number(animation.toValue)-value;if(previousAnimation){animation.velocity=(triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity:(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.velocity)+config.velocity)||0;}else{animation.velocity=config.velocity||0;}if(triggeredTwice){animation.zeta=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.zeta)||0;animation.omega0=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega0)||0;animation.omega1=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.omega1)||0;}else{if(config.useDuration){const actualDuration=triggeredTwice?duration-(((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||0)-((previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||0)):duration;config.duration=actualDuration;mass=calculateNewMassToMatchDuration(x0,config,animation.velocity);}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(mass,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}animation.lastTimestamp=(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.lastTimestamp)||now;animation.startTimestamp=triggeredTwice?(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startTimestamp)||now:now;}return{onFrame:springOnFrame,onStart:onStart,toValue:toValue,velocity:config.velocity||0,current:toValue,startValue:0,callback:callback,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"};e.withSpring=((n=function(n,o,s){return(0,r(d[0]).defineAnimation)(n,((l=function(){var t={damping:10,mass:1,stiffness:100,overshootClamping:!1,restDisplacementThreshold:.01,restSpeedThreshold:2,velocity:0,duration:2e3,dampingRatio:.5,reduceMotion:void 0,clamp:void 0},l=Object.assign({},t,o,{useDuration:!!(null!=o&&o.duration||null!=o&&o.dampingRatio),skipAnimation:!1});function u(n,o){return(null==n?void 0:n.lastTimestamp)&&(null==n?void 0:n.startTimestamp)&&(null==n?void 0:n.toValue)===o.toValue&&(null==n?void 0:n.duration)===o.duration&&(null==n?void 0:n.dampingRatio)===o.dampingRatio}return l.skipAnimation=!(0,r(d[1]).checkIfConfigIsValid)(l),0===l.duration&&(l.skipAnimation=!0),{onFrame:function(n,o){var t=n.toValue,s=n.startTimestamp,u=n.current,c=o-s;if(l.useDuration&&c>=l.duration)return n.current=t,n.lastTimestamp=0,!0;if(l.skipAnimation)return n.current=t,n.lastTimestamp=0,!0;var v=n.lastTimestamp,p=n.velocity,f=Math.min(o-v,64);n.lastTimestamp=o;var A=f/1e3,T=-p,C=t-u,y=n.zeta,V=n.omega0,h=n.omega1,D=y<1?(0,r(d[1]).underDampedSpringCalculations)(n,{zeta:y,v0:T,x0:C,omega0:V,omega1:h,t:A}):(0,r(d[1]).criticallyDampedSpringCalculations)(n,{v0:T,x0:C,omega0:V,t:A}),w=D.position,M=D.velocity;n.current=w,n.velocity=M;var z=(0,r(d[1]).isAnimationTerminatingCalculation)(n,l),S=z.isOvershooting,k=z.isVelocity,_=z.isDisplacement,I=S||k&&_;return!(l.useDuration||!I||(n.velocity=0,n.current=t,n.lastTimestamp=0,0))},onStart:function(n,o,t,s){n.current=o,n.startValue=o;var c=l.mass,v=u(s,n),p=l.duration,f=v?null==s?void 0:s.startValue:Number(n.toValue)-o;if(n.velocity=s?(v?null==s?void 0:s.velocity:(null==s?void 0:s.velocity)+l.velocity)||0:l.velocity||0,v)n.zeta=(null==s?void 0:s.zeta)||0,n.omega0=(null==s?void 0:s.omega0)||0,n.omega1=(null==s?void 0:s.omega1)||0;else{if(l.useDuration){var A=v?p-(((null==s?void 0:s.lastTimestamp)||0)-((null==s?void 0:s.startTimestamp)||0)):p;l.duration=A,c=(0,r(d[1]).calculateNewMassToMatchDuration)(f,l,n.velocity)}var T=(0,r(d[1]).initialCalculations)(c,l),C=T.zeta,y=T.omega0,V=T.omega1;n.zeta=C,n.omega0=y,n.omega1=V,void 0!==l.clamp&&(n.zeta=(0,r(d[1]).scaleZetaToMatchClamps)(n,l.clamp))}n.lastTimestamp=(null==s?void 0:s.lastTimestamp)||t,n.startTimestamp=v&&(null==s?void 0:s.startTimestamp)||t},toValue:n,velocity:l.velocity||0,current:n,startValue:0,callback:s,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,reduceMotion:(0,r(d[0]).getReduceMotionForAnimation)(l.reduceMotion)}}).__closure={userConfig:o,checkIfConfigIsValid:r(d[1]).checkIfConfigIsValid,underDampedSpringCalculations:r(d[1]).underDampedSpringCalculations,criticallyDampedSpringCalculations:r(d[1]).criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:r(d[1]).isAnimationTerminatingCalculation,calculateNewMassToMatchDuration:r(d[1]).calculateNewMassToMatchDuration,initialCalculations:r(d[1]).initialCalculations,scaleZetaToMatchClamps:r(d[1]).scaleZetaToMatchClamps,toValue:n,callback:s,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},l.__workletHash=0xd05eca94f23,l.__initData=t,l));var l}).__closure={defineAnimation:r(d[0]).defineAnimation,checkIfConfigIsValid:r(d[1]).checkIfConfigIsValid,underDampedSpringCalculations:r(d[1]).underDampedSpringCalculations,criticallyDampedSpringCalculations:r(d[1]).criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:r(d[1]).isAnimationTerminatingCalculation,calculateNewMassToMatchDuration:r(d[1]).calculateNewMassToMatchDuration,initialCalculations:r(d[1]).initialCalculations,scaleZetaToMatchClamps:r(d[1]).scaleZetaToMatchClamps,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},n.__workletHash=4113653166044,n.__initData=o,n)}),567,[527,568]); +__d((function(g,r,i,a,_m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.underDampedSpringCalculations=e.scaleZetaToMatchClamps=e.isAnimationTerminatingCalculation=e.initialCalculations=e.criticallyDampedSpringCalculations=e.checkIfConfigIsValid=e.calculateNewMassToMatchDuration=e.bisectRoot=void 0;var n=t(r(d[1])),o=t(r(d[2])),s={code:"function checkIfConfigIsValid_reactNativeReanimated_springUtilsTs1(config){const{logger}=this.__closure;var _config$clamp,_config$clamp2;let errorMessage='';['stiffness','damping','dampingRatio','restDisplacementThreshold','restSpeedThreshold','mass'].forEach(function(prop){const value=config[prop];if(value<=0){errorMessage+=\", \"+prop+\" must be grater than zero but got \"+value;}});if(config.duration<0){errorMessage+=\", duration can't be negative, got \"+config.duration;}if((_config$clamp=config.clamp)!==null&&_config$clamp!==void 0&&_config$clamp.min&&(_config$clamp2=config.clamp)!==null&&_config$clamp2!==void 0&&_config$clamp2.max&&config.clamp.min>config.clamp.max){errorMessage+=\", clamp.min should be lower than clamp.max, got clamp: {min: \"+config.clamp.min+\", max: \"+config.clamp.max+\"} \";}if(errorMessage!==''){logger.warn('Invalid spring config'+errorMessage);}return errorMessage==='';}"},c=(e.checkIfConfigIsValid=(function(){var t=function(t){var n,o,s='';return['stiffness','damping','dampingRatio','restDisplacementThreshold','restSpeedThreshold','mass'].forEach((function(n){var o=t[n];o<=0&&(s+=`, ${n} must be grater than zero but got ${o}`)})),t.duration<0&&(s+=`, duration can't be negative, got ${t.duration}`),null!=(n=t.clamp)&&n.min&&null!=(o=t.clamp)&&o.max&&t.clamp.min>t.clamp.max&&(s+=`, clamp.min should be lower than clamp.max, got clamp: {min: ${t.clamp.min}, max: ${t.clamp.max}} `),''!==s&&r(d[3]).logger.warn('Invalid spring config'+s),''===s};return t.__closure={logger:r(d[3]).logger},t.__workletHash=0x939f8ae60e0,t.__initData=s,t})(),{code:"function bisectRoot_reactNativeReanimated_springUtilsTs2({min:min,max:max,func:func,maxIterations=20}){const ACCURACY=0.00005;let idx=maxIterations;let current=(max+min)/2;while(Math.abs(func(current))>ACCURACY&&idx>0){idx-=1;if(func(current)<0){min=current;}else{max=current;}current=(min+max)/2;}return current;}"}),l=e.bisectRoot=(function(){var t=function(t){for(var n=t.min,o=t.max,s=t.func,c=t.maxIterations,l=void 0===c?20:c,u=(o+n)/2;Math.abs(s(u))>5e-5&&l>0;)l-=1,s(u)<0?n=u:o=u,u=(n+o)/2;return u};return t.__closure={},t.__workletHash=5648054256871,t.__initData=c,t})(),u={code:"function initialCalculations_reactNativeReanimated_springUtilsTs3(mass=0,config){if(config.skipAnimation){return{zeta:0,omega0:0,omega1:0};}if(config.useDuration){const{stiffness:k,dampingRatio:zeta}=config;const omega0=Math.sqrt(k/mass);const omega1=omega0*Math.sqrt(1-zeta**2);return{zeta:zeta,omega0:omega0,omega1:omega1};}else{const{damping:c,mass:m,stiffness:k}=config;const zeta=c/(2*Math.sqrt(k*m));const omega0=Math.sqrt(k/m);const omega1=omega0*Math.sqrt(1-zeta**2);return{zeta:zeta,omega0:omega0,omega1:omega1};}}"},m=(e.initialCalculations=(function(){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;if(n.skipAnimation)return{zeta:0,omega0:0,omega1:0};if(n.useDuration){var o=n.stiffness,s=n.dampingRatio,c=Math.sqrt(o/t);return{zeta:s,omega0:c,omega1:c*Math.sqrt(1-s**2)}}var l=n.damping,u=n.mass,m=n.stiffness,p=l/(2*Math.sqrt(m*u)),f=Math.sqrt(m/u);return{zeta:p,omega0:f,omega1:f*Math.sqrt(1-p**2)}};return t.__closure={},t.__workletHash=4157634151051,t.__initData=u,t})(),{code:"function scaleZetaToMatchClamps_reactNativeReanimated_springUtilsTs4(animation,clamp){const{zeta:zeta,toValue:toValue,startValue:startValue}=animation;const toValueNum=Number(toValue);if(toValueNum===startValue){return zeta;}const[firstBound,secondBound]=toValueNum-startValue>0?[clamp.min,clamp.max]:[clamp.max,clamp.min];const relativeExtremum1=secondBound!==undefined?Math.abs((secondBound-toValueNum)/(toValueNum-startValue)):undefined;const relativeExtremum2=firstBound!==undefined?Math.abs((firstBound-toValueNum)/(toValueNum-startValue)):undefined;const newZeta1=relativeExtremum1!==undefined?Math.abs(Math.log(relativeExtremum1)/Math.PI):undefined;const newZeta2=relativeExtremum2!==undefined?Math.abs(Math.log(relativeExtremum2)/(2*Math.PI)):undefined;const zetaSatisfyingClamp=[newZeta1,newZeta2].filter(function(x){return x!==undefined;});return Math.max(...zetaSatisfyingClamp,zeta);}"}),p=(e.scaleZetaToMatchClamps=(function(){var t=function(t,s){var c=t.zeta,l=t.toValue,u=t.startValue,m=Number(l);if(m===u)return c;var p=m-u>0?[s.min,s.max]:[s.max,s.min],f=(0,o.default)(p,2),h=f[0],v=f[1],_=void 0!==v?Math.abs((v-m)/(m-u)):void 0,M=void 0!==h?Math.abs((h-m)/(m-u)):void 0,x=[void 0!==_?Math.abs(Math.log(_)/Math.PI):void 0,void 0!==M?Math.abs(Math.log(M)/(2*Math.PI)):void 0].filter((function(t){return void 0!==t}));return Math.max.apply(Math,(0,n.default)(x).concat([c]))};return t.__closure={},t.__workletHash=0xc0b41b76f18,t.__initData=m,t})(),{code:"function calculateNewMassToMatchDuration_reactNativeReanimated_springUtilsTs5(x0,config,v0){const{bisectRoot}=this.__closure;if(config.skipAnimation){return 0;}const{stiffness:k,dampingRatio:zeta,restSpeedThreshold:threshold,duration:duration}=config;const durationForMass=function(mass){'worklet';const amplitude=(mass*v0*v0+k*x0*x0)/(Math.exp(1-0.5*zeta)*k);const c=zeta*2*Math.sqrt(k*mass);return 1000*(-2*mass/c)*Math.log(threshold*0.01/amplitude)-duration;};return bisectRoot({min:0,max:100,func:durationForMass});}"}),f={code:"function reactNativeReanimated_springUtilsTs6(mass){const{v0,k,x0,zeta,threshold,duration}=this.__closure;const amplitude=(mass*v0*v0+k*x0*x0)/(Math.exp(1-0.5*zeta)*k);const c=zeta*2*Math.sqrt(k*mass);return 1000*(-2*mass/c)*Math.log(threshold*0.01/amplitude)-duration;}"},h=(e.calculateNewMassToMatchDuration=(function(){var t=function(t,n,o){if(n.skipAnimation)return 0;var s,c=n.stiffness,u=n.dampingRatio,m=n.restSpeedThreshold,p=n.duration,h=((s=function(n){var s=(n*o*o+c*t*t)/(Math.exp(1-.5*u)*c);return-2*n/(2*u*Math.sqrt(c*n))*1e3*Math.log(.01*m/s)-p}).__closure={v0:o,k:c,x0:t,zeta:u,threshold:m,duration:p},s.__workletHash=2588271284915,s.__initData=f,s);return l({min:0,max:100,func:h})};return t.__closure={bisectRoot:l},t.__workletHash=6359222544220,t.__initData=p,t})(),{code:"function criticallyDampedSpringCalculations_reactNativeReanimated_springUtilsTs7(animation,precalculatedValues){const{toValue:toValue}=animation;const{v0:v0,x0:x0,omega0:omega0,t:t}=precalculatedValues;const criticallyDampedEnvelope=Math.exp(-omega0*t);const criticallyDampedPosition=toValue-criticallyDampedEnvelope*(x0+(v0+omega0*x0)*t);const criticallyDampedVelocity=criticallyDampedEnvelope*(v0*(t*omega0-1)+t*x0*omega0*omega0);return{position:criticallyDampedPosition,velocity:criticallyDampedVelocity};}"}),v=(e.criticallyDampedSpringCalculations=(function(){var t=function(t,n){var o=t.toValue,s=n.v0,c=n.x0,l=n.omega0,u=n.t,m=Math.exp(-l*u);return{position:o-m*(c+(s+l*c)*u),velocity:m*(s*(u*l-1)+u*c*l*l)}};return t.__closure={},t.__workletHash=3106110703769,t.__initData=h,t})(),{code:"function underDampedSpringCalculations_reactNativeReanimated_springUtilsTs8(animation,precalculatedValues){const{toValue:toValue,current:current,velocity:velocity}=animation;const{zeta:zeta,t:t,omega0:omega0,omega1:omega1}=precalculatedValues;const v0=-velocity;const x0=toValue-current;const sin1=Math.sin(omega1*t);const cos1=Math.cos(omega1*t);const underDampedEnvelope=Math.exp(-zeta*omega0*t);const underDampedFrag1=underDampedEnvelope*(sin1*((v0+zeta*omega0*x0)/omega1)+x0*cos1);const underDampedPosition=toValue-underDampedFrag1;const underDampedVelocity=zeta*omega0*underDampedFrag1-underDampedEnvelope*(cos1*(v0+zeta*omega0*x0)-omega1*x0*sin1);return{position:underDampedPosition,velocity:underDampedVelocity};}"}),_=(e.underDampedSpringCalculations=(function(){var t=function(t,n){var o=t.toValue,s=t.current,c=t.velocity,l=n.zeta,u=n.t,m=n.omega0,p=n.omega1,f=-c,h=o-s,v=Math.sin(p*u),_=Math.cos(p*u),M=Math.exp(-l*m*u),x=M*(v*((f+l*m*h)/p)+h*_);return{position:o-x,velocity:l*m*x-M*(_*(f+l*m*h)-p*h*v)}};return t.__closure={},t.__workletHash=9270865231826,t.__initData=v,t})(),{code:"function isAnimationTerminatingCalculation_reactNativeReanimated_springUtilsTs9(animation,config){const{toValue:toValue,velocity:velocity,startValue:startValue,current:current}=animation;const isOvershooting=config.overshootClamping?current>toValue&&startValuetoValue:false;const isVelocity=Math.abs(velocity)o&&co),isVelocity:Math.abs(s)0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};});}"},u={code:"function reactNativeReanimated_styleAnimationTs4(){const{ColorProperties,setPath,processColor,styleAnimations,resolvePath,logger,withTiming}=this.__closure;const onFrame=function(animation,now){let stillGoing=false;const entriesToCheck=[{value:animation.styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}"};e.withStyleAnimation=(function(){var n=function(n){return(0,r(d[0]).defineAnimation)({},((i=function(){return{isHigherOrder:!0,onFrame:function(n,t){for(var i=!1,c=[{value:n.styleAnimations,path:[]}];c.length>0;){var u=c.pop();if(Array.isArray(u.value))for(var l=0;l0;){var y=s.pop();if(Array.isArray(y.value))for(var h=0;h0;){var o=i.pop();if(Array.isArray(o))for(var c of o)i.push(c);else if('object'==typeof o&&void 0===o.onStart)for(var u of Object.values(o))i.push(u);else{var l=o;!l.finished&&l.callback&&l.callback(!1)}}}}}).__closure={ColorProperties:r(d[1]).ColorProperties,setPath:o,processColor:r(d[1]).processColor,styleAnimations:n,resolvePath:t,logger:r(d[2]).logger,withTiming:r(d[3]).withTiming},i.__workletHash=1282323705012,i.__initData=u,i));var i};return n.__closure={defineAnimation:r(d[0]).defineAnimation,ColorProperties:r(d[1]).ColorProperties,setPath:o,processColor:r(d[1]).processColor,resolvePath:t,logger:r(d[2]).logger,withTiming:r(d[3]).withTiming},n.__workletHash=6798537671767,n.__initData=c,n})()}),569,[527,550,531,570]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.withTiming=void 0;var t,n={code:"function reactNativeReanimated_timingTs1(toValue,userConfig,callback){const{__DEV__,assertEasingIsWorklet,defineAnimation,Easing,getReduceMotionForAnimation}=this.__closure;if(__DEV__&&userConfig!==null&&userConfig!==void 0&&userConfig.easing){assertEasingIsWorklet(userConfig.easing);}return defineAnimation(toValue,function(){'worklet';const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback,reduceMotion:getReduceMotionForAnimation(userConfig===null||userConfig===void 0?void 0:userConfig.reduceMotion)};});}"},o={code:"function reactNativeReanimated_timingTs2(){const{Easing,userConfig,toValue,callback,getReduceMotionForAnimation}=this.__closure;var _userConfig;const config={duration:300,easing:Easing.inOut(Easing.quad)};if(userConfig){Object.keys(userConfig).forEach(function(key){return config[key]=userConfig[key];});}function timing(animation,now){const{toValue:toValue,startTime:startTime,startValue:startValue}=animation;const runtime=now-startTime;if(runtime>=config.duration){animation.startTime=0;animation.current=toValue;return true;}const progress=animation.easing(runtime/config.duration);animation.current=startValue+(toValue-startValue)*progress;return false;}function onStart(animation,value,now,previousAnimation){if(previousAnimation&&previousAnimation.type==='timing'&&previousAnimation.toValue===toValue&&previousAnimation.startTime){animation.startTime=previousAnimation.startTime;animation.startValue=previousAnimation.startValue;}else{animation.startTime=now;animation.startValue=value;}animation.current=value;if(typeof config.easing==='object'){animation.easing=config.easing.factory();}else{animation.easing=config.easing;}}return{type:'timing',onFrame:timing,onStart:onStart,progress:0,toValue:toValue,startValue:0,startTime:0,easing:function(){return 0;},current:toValue,callback:callback,reduceMotion:getReduceMotionForAnimation((_userConfig=userConfig)===null||_userConfig===void 0?void 0:_userConfig.reduceMotion)};}"};e.withTiming=((t=function(t,n,u){return(0,r(d[0]).defineAnimation)(t,((s=function(){var o={duration:300,easing:r(d[1]).Easing.inOut(r(d[1]).Easing.quad)};return n&&Object.keys(n).forEach((function(t){return o[t]=n[t]})),{type:'timing',onFrame:function(t,n){var u=t.toValue,s=t.startTime,c=t.startValue,l=n-s;if(l>=o.duration)return t.startTime=0,t.current=u,!0;var f=t.easing(l/o.duration);return t.current=c+(u-c)*f,!1},onStart:function(n,u,s,c){c&&'timing'===c.type&&c.toValue===t&&c.startTime?(n.startTime=c.startTime,n.startValue=c.startValue):(n.startTime=s,n.startValue=u),n.current=u,'object'==typeof o.easing?n.easing=o.easing.factory():n.easing=o.easing},progress:0,toValue:t,startValue:0,startTime:0,easing:function(){return 0},current:t,callback:u,reduceMotion:(0,r(d[0]).getReduceMotionForAnimation)(null==n?void 0:n.reduceMotion)}}).__closure={Easing:r(d[1]).Easing,userConfig:n,toValue:t,callback:u,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},s.__workletHash=0x9fcab350344,s.__initData=o,s));var s}).__closure={__DEV__:!1,assertEasingIsWorklet:r(d[0]).assertEasingIsWorklet,defineAnimation:r(d[0]).defineAnimation,Easing:r(d[1]).Easing,getReduceMotionForAnimation:r(d[0]).getReduceMotionForAnimation},t.__workletHash=0xf71051207e6,t.__initData=n,t)}),570,[527,571]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.EasingNameSymbol=e.Easing=void 0;var n=t(r(d[1])),o={code:"function linear_reactNativeReanimated_EasingTs1(t){return t;}"},u=(function(){var t=function(t){return t};return t.__closure={},t.__workletHash=0xc7cf9108727,t.__initData=o,t})(),c={code:"function ease_reactNativeReanimated_EasingTs2(t){const{Bezier}=this.__closure;return Bezier(0.42,0,1,1)(t);}"},_=(function(){var t=function(t){return(0,r(d[2]).Bezier)(.42,0,1,1)(t)};return t.__closure={Bezier:r(d[2]).Bezier},t.__workletHash=397453832499,t.__initData=c,t})(),s={code:"function quad_reactNativeReanimated_EasingTs3(t){return t*t;}"},f=(function(){var t=function(t){return t*t};return t.__closure={},t.__workletHash=2328552319815,t.__initData=s,t})(),l={code:"function cubic_reactNativeReanimated_EasingTs4(t){return t*t*t;}"},h=(function(){var t=function(t){return t*t*t};return t.__closure={},t.__workletHash=0xd1dd1c96241,t.__initData=l,t})(),v={code:"function poly_reactNativeReanimated_EasingTs5(n){return function(t){'worklet';return Math.pow(t,n);};}"},w={code:"function reactNativeReanimated_EasingTs6(t){const{n}=this.__closure;return Math.pow(t,n);}"},M=(function(){var t=function(t){return(n=function(n){return Math.pow(n,t)}).__closure={n:t},n.__workletHash=9479398951205,n.__initData=w,n;var n};return t.__closure={},t.__workletHash=1647103012412,t.__initData=v,t})(),x={code:"function sin_reactNativeReanimated_EasingTs7(t){return 1-Math.cos(t*Math.PI/2);}"},k=(function(){var t=function(t){return 1-Math.cos(t*Math.PI/2)};return t.__closure={},t.__workletHash=3652802661892,t.__initData=x,t})(),N={code:"function circle_reactNativeReanimated_EasingTs8(t){return 1-Math.sqrt(1-t*t);}"},b=(function(){var t=function(t){return 1-Math.sqrt(1-t*t)};return t.__closure={},t.__workletHash=0xc2006cc7724,t.__initData=N,t})(),T={code:"function exp_reactNativeReanimated_EasingTs9(t){return Math.pow(2,10*(t-1));}"},E=(function(){var t=function(t){return Math.pow(2,10*(t-1))};return t.__closure={},t.__workletHash=8053592854880,t.__initData=T,t})(),p={code:"function elastic_reactNativeReanimated_EasingTs10(bounciness=1){const p=bounciness*Math.PI;return function(t){'worklet';return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);};}"},D={code:"function reactNativeReanimated_EasingTs11(t){const{p}=this.__closure;return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);}"},H=(function(){var t=function(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return(t=function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*n)}).__closure={p:n},t.__workletHash=0xa5440a8d598,t.__initData=D,t};return t.__closure={},t.__workletHash=0xfcf72c7f44e,t.__initData=p,t})(),R={code:"function back_reactNativeReanimated_EasingTs12(s=1.70158){return function(t){'worklet';return t*t*((s+1)*t-s);};}"},y={code:"function reactNativeReanimated_EasingTs13(t){const{s}=this.__closure;return t*t*((s+1)*t-s);}"},z=(function(){var t=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return(t=function(t){return t*t*((n+1)*t-n)}).__closure={s:n},t.__workletHash=0x99fbe510384,t.__initData=y,t};return t.__closure={},t.__workletHash=9287428249671,t.__initData=R,t})(),B={code:"function bounce_reactNativeReanimated_EasingTs14(t){if(t<1/2.75){return 7.5625*t*t;}if(t<2/2.75){const t2=t-1.5/2.75;return 7.5625*t2*t2+0.75;}if(t<2.5/2.75){const t2=t-2.25/2.75;return 7.5625*t2*t2+0.9375;}const t2=t-2.625/2.75;return 7.5625*t2*t2+0.984375;}"},P=(function(){var t=function(t){if(t<.36363636363636365)return 7.5625*t*t;if(t<.7272727272727273){var n=t-.5454545454545454;return 7.5625*n*n+.75}if(t<.9090909090909091){var o=t-.8181818181818182;return 7.5625*o*o+.9375}var u=t-.9545454545454546;return 7.5625*u*u+.984375};return t.__closure={},t.__workletHash=0xa51e5cb2c6a,t.__initData=B,t})(),S={code:"function bezier_reactNativeReanimated_EasingTs15(x1,y1,x2,y2){const{Bezier}=this.__closure;return{factory:function(){'worklet';return Bezier(x1,y1,x2,y2);}};}"},I={code:"function reactNativeReanimated_EasingTs16(){const{Bezier,x1,y1,x2,y2}=this.__closure;return Bezier(x1,y1,x2,y2);}"},O=(function(){var t=function(t,n,o,u){return{factory:(c=function(){return(0,r(d[2]).Bezier)(t,n,o,u)},c.__closure={Bezier:r(d[2]).Bezier,x1:t,y1:n,x2:o,y2:u},c.__workletHash=4742622225666,c.__initData=I,c)};var c};return t.__closure={Bezier:r(d[2]).Bezier},t.__workletHash=0xfd700dbdbaa,t.__initData=S,t})(),q={code:"function bezierFn_reactNativeReanimated_EasingTs17(x1,y1,x2,y2){const{Bezier}=this.__closure;return Bezier(x1,y1,x2,y2);}"},j=(function(){var t=function(t,n,o,u){return(0,r(d[2]).Bezier)(t,n,o,u)};return t.__closure={Bezier:r(d[2]).Bezier},t.__workletHash=8230945052923,t.__initData=q,t})(),F={code:"function in__reactNativeReanimated_EasingTs18(easing){return easing;}"},A=(function(){var t=function(t){return t};return t.__closure={},t.__workletHash=9473900712954,t.__initData=F,t})(),C={code:"function out_reactNativeReanimated_EasingTs19(easing){return function(t){'worklet';return 1-easing(1-t);};}"},G={code:"function reactNativeReanimated_EasingTs20(t){const{easing}=this.__closure;return 1-easing(1-t);}"},J=(function(){var t=function(t){return(n=function(n){return 1-t(1-n)}).__closure={easing:t},n.__workletHash=0xd805f8ee5cb,n.__initData=G,n;var n};return t.__closure={},t.__workletHash=2681164668447,t.__initData=C,t})(),K={code:"function inOut_reactNativeReanimated_EasingTs21(easing){return function(t){'worklet';if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;};}"},L={code:"function reactNativeReanimated_EasingTs22(t){const{easing}=this.__closure;if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;}"},Q=(function(){var t=function(t){return(n=function(n){return n<.5?t(2*n)/2:1-t(2*(1-n))/2}).__closure={easing:t},n.__workletHash=0xd753f8d6b50,n.__initData=L,n;var n};return t.__closure={},t.__workletHash=1416640793482,t.__initData=K,t})(),U={code:"function steps_reactNativeReanimated_EasingTs23(n=10,roundToNextStep=true){return function(t){'worklet';const value=Math.min(Math.max(t,0),1)*n;if(roundToNextStep){return Math.ceil(value)/n;}return Math.floor(value)/n;};}"},V={code:"function reactNativeReanimated_EasingTs24(t){const{n,roundToNextStep}=this.__closure;const value=Math.min(Math.max(t,0),1)*n;if(roundToNextStep){return Math.ceil(value)/n;}return Math.floor(value)/n;}"},W=(function(){var t=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(t=function(t){var u=Math.min(Math.max(t,0),1)*n;return o?Math.ceil(u)/n:Math.floor(u)/n}).__closure={n:n,roundToNextStep:o},t.__workletHash=0xb8bfe39e75d,t.__initData=V,t};return t.__closure={},t.__workletHash=88097827036,t.__initData=U,t})(),X={linear:u,ease:_,quad:f,cubic:h,poly:M,sin:k,circle:b,exp:E,elastic:H,back:z,bounce:P,bezier:O,bezierFn:j,steps:W,in:A,out:J,inOut:Q},Y=e.EasingNameSymbol=Symbol('easingName');for(var Z of Object.entries(X)){var $=(0,n.default)(Z,2),tt=$[0],et=$[1];Object.defineProperty(et,Y,{value:tt,configurable:!1,enumerable:!1,writable:!1})}e.Easing=X}),571,[2,44,572]); +__d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.Bezier=void 0;var t=.001,n=.1,i={code:"function A_reactNativeReanimated_BezierTs1(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1;}"},l=(function(){var t=function(t,n){return 1-3*n+3*t};return t.__closure={},t.__workletHash=4367271601962,t.__initData=i,t})(),u={code:"function B_reactNativeReanimated_BezierTs2(aA1,aA2){return 3.0*aA2-6.0*aA1;}"},o=(function(){var t=function(t,n){return 3*n-6*t};return t.__closure={},t.__workletHash=9454990785451,t.__initData=u,t})(),c={code:"function C_reactNativeReanimated_BezierTs3(aA1){return 3.0*aA1;}"},s=(function(){var t=function(t){return 3*t};return t.__closure={},t.__workletHash=0xf4368479e28,t.__initData=c,t})(),S={code:"function calcBezier_reactNativeReanimated_BezierTs4(aT,aA1,aA2){const{A,B,C}=this.__closure;return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT;}"},_=(function(){var t=function(t,n,i){return((l(n,i)*t+o(n,i))*t+s(n))*t};return t.__closure={A:l,B:o,C:s},t.__workletHash=0x9e431c0a320,t.__initData=S,t})(),p={code:"function getSlope_reactNativeReanimated_BezierTs5(aT,aA1,aA2){const{A,B,C}=this.__closure;return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1);}"},T=(function(){var t=function(t,n,i){return 3*l(n,i)*t*t+2*o(n,i)*t+s(n)};return t.__closure={A:l,B:o,C:s},t.__workletHash=268514889981,t.__initData=p,t})(),X={code:"function binarySubdivide_reactNativeReanimated_BezierTs6(aX,aA,aB,mX1,mX2){const{calcBezier,SUBDIVISION_PRECISION,SUBDIVISION_MAX_ITERATIONS}=this.__closure;let currentX;let currentT;let i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT;}else{aA=currentT;}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i0?i=c:n=c}while(Math.abs(o)>1e-7&&++s<10);return c};return t.__closure={calcBezier:_,SUBDIVISION_PRECISION:1e-7,SUBDIVISION_MAX_ITERATIONS:10},t.__workletHash=521490805193,t.__initData=X,t})(),v={code:"function newtonRaphsonIterate_reactNativeReanimated_BezierTs7(aX,aGuessT,mX1,mX2){const{NEWTON_ITERATIONS,getSlope,calcBezier}=this.__closure;for(let i=0;i=0&&mX1<=1&&mX2>=0&&mX2<=1)){throw new ReanimatedError('Bezier x values must be in [0, 1] range.');}if(mX1===mY1&&mX2===mY2){return LinearEasing;}const sampleValues=new Array(kSplineTableSize);for(let i=0;i=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}return function Bezier_reactNativeReanimated_BezierTs8(x){'worklet';if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);};}"},B={code:"function LinearEasing_reactNativeReanimated_BezierTs9(x){return x;}"},I={code:"function getTForX_reactNativeReanimated_BezierTs10(aX){const{kSplineTableSize,sampleValues,kSampleStepSize,getSlope,mX1,mX2,NEWTON_MIN_SLOPE,newtonRaphsonIterate,binarySubdivide}=this.__closure;let intervalStart=0.0;let currentSample=1;const lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&sampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize;}--currentSample;const dist=(aX-sampleValues[currentSample])/(sampleValues[currentSample+1]-sampleValues[currentSample]);const guessForT=intervalStart+dist*kSampleStepSize;const initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}"},A={code:"function BezierEasing_reactNativeReanimated_BezierTs11(x){const{mX1,mY1,mX2,mY2,calcBezier,getTForX}=this.__closure;if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);}"};e.Bezier=(function(){var i=function(i,l,u,o){var c=(function(){var t=function(t){return t};return t.__closure={},t.__workletHash=9002002139084,t.__initData=B,t})();if(!(i>=0&&i<=1&&u>=0&&u<=1))throw new(r(d[0]).ReanimatedError)('Bezier x values must be in [0, 1] range.');if(i===l&&u===o)return c;for(var s=new Array(11),S=0;S<11;++S)s[S]=_(S*n,i,u);var p,X=(function(){var l=function(l){for(var o=0,c=1;10!==c&&s[c]<=l;++c)o+=n;--c;var S=o+(l-s[c])/(s[c+1]-s[c])*n,_=T(S,i,u);return _>=t?z(l,S,i,u):0===_?S:f(l,o,o+n,i,u)};return l.__closure={kSplineTableSize:11,sampleValues:s,kSampleStepSize:n,getSlope:T,mX1:i,mX2:u,NEWTON_MIN_SLOPE:t,newtonRaphsonIterate:z,binarySubdivide:f},l.__workletHash=582111972461,l.__initData=I,l})();return(p=function(t){return i===l&&u===o?t:0===t?0:1===t?1:_(X(t),l,o)}).__closure={mX1:i,mY1:l,mX2:u,mY2:o,calcBezier:_,getTForX:X},p.__workletHash=5253683607097,p.__initData=A,p};return i.__closure={kSplineTableSize:11,calcBezier:_,kSampleStepSize:n,getSlope:T,NEWTON_MIN_SLOPE:t,newtonRaphsonIterate:z,binarySubdivide:f},i.__workletHash=4651979895956,i.__initData=N,i})()}),572,[525]); +__d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.ComplexAnimationBuilder=void 0;var t=e(r(d[1])),n=e(r(d[2])),s=e(r(d[3])),u=e(r(d[4])),o=e(r(d[5]));function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}_e.ComplexAnimationBuilder=(function(e){function h(){return(0,t.default)(this,h),e=this,n=h,o=arguments,n=(0,u.default)(n),(0,s.default)(e,l()?Reflect.construct(n,o||[],(0,u.default)(e).constructor):n.apply(e,o));var e,n,o}return(0,o.default)(h,e),(0,n.default)(h,[{key:"easing",value:function(e){return this.easingV=e,this}},{key:"rotate",value:function(e){return this.rotateV=e,this}},{key:"springify",value:function(e){return this.durationV=e,this.type=r(d[6]).withSpring,this}},{key:"dampingRatio",value:function(e){return this.dampingRatioV=e,this}},{key:"damping",value:function(e){return this.dampingV=e,this}},{key:"mass",value:function(e){return this.massV=e,this}},{key:"stiffness",value:function(e){return this.stiffnessV=e,this}},{key:"overshootClamping",value:function(e){return this.overshootClampingV=e,this}},{key:"restDisplacementThreshold",value:function(e){return this.restDisplacementThresholdV=e,this}},{key:"restSpeedThreshold",value:function(e){return this.restSpeedThresholdV=e,this}},{key:"withInitialValues",value:function(e){return this.initialValues=e,this}},{key:"getAnimationAndConfig",value:function(){var e=this.durationV,t=this.easingV,n=this.rotateV,s=this.type?this.type:r(d[6]).withTiming,u=this.dampingV,o=this.dampingRatioV,l=this.massV,h=this.stiffnessV,c=this.overshootClampingV,f=this.restDisplacementThresholdV,v=this.restSpeedThresholdV,p=s,y={};function V(e,t){e&&(y[t]=e)}return s===r(d[6]).withTiming&&V(t,'easing'),[{variableName:'damping',value:u},{variableName:'dampingRatio',value:o},{variableName:'mass',value:l},{variableName:'stiffness',value:h},{variableName:'overshootClamping',value:c},{variableName:'restDisplacementThreshold',value:f},{variableName:'restSpeedThreshold',value:v},{variableName:'duration',value:e},{variableName:'rotate',value:n}].forEach((function(e){return V(e.value,e.variableName)})),[p,y]}}],[{key:"easing",value:function(e){return this.createInstance().easing(e)}},{key:"rotate",value:function(e){return this.createInstance().rotate(e)}},{key:"springify",value:function(e){return this.createInstance().springify(e)}},{key:"dampingRatio",value:function(e){return this.createInstance().dampingRatio(e)}},{key:"damping",value:function(e){return this.createInstance().damping(e)}},{key:"mass",value:function(e){return this.createInstance().mass(e)}},{key:"stiffness",value:function(e){return this.createInstance().stiffness(e)}},{key:"overshootClamping",value:function(e){return this.createInstance().overshootClamping(e)}},{key:"restDisplacementThreshold",value:function(e){return this.createInstance().restDisplacementThreshold(e)}},{key:"restSpeedThreshold",value:function(e){return this.createInstance().restSpeedThreshold(e)}},{key:"withInitialValues",value:function(e){return this.createInstance().withInitialValues(e)}}])})(r(d[7]).BaseAnimationBuilder)}),573,[2,6,7,11,13,14,526,523]); +__d((function(g,r,i,_a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Keyframe=void 0;var t=n(r(d[1])),a=n(r(d[2])),o=n(r(d[3])),s=n(r(d[4])),f={code:"function reactNativeReanimated_KeyframeTs1(){const{keyframes,delayFunction,delay,withTiming,Easing,withSequence,initialValues,makeKeyframeKey,callback}=this.__closure;const animations={};const addAnimation=function(key){const keyframePoints=keyframes[key];if(keyframePoints.length===0){return;}const animation=delayFunction(delay,keyframePoints.length===1?withTiming(keyframePoints[0].value,{duration:keyframePoints[0].duration,easing:keyframePoints[0].easing?keyframePoints[0].easing:Easing.linear}):withSequence(...keyframePoints.map(function(keyframePoint){return withTiming(keyframePoint.value,{duration:keyframePoint.duration,easing:keyframePoint.easing?keyframePoint.easing:Easing.linear});})));if(key.includes('transform')){if(!('transform'in animations)){animations.transform=[];}animations.transform.push({[key.split(':')[1]]:animation});}else{animations[key]=animation;}};Object.keys(initialValues).forEach(function(key){if(key.includes('transform')){initialValues[key].forEach(function(transformProp,index){Object.keys(transformProp).forEach(function(transformPropKey){addAnimation(makeKeyframeKey(index,transformPropKey));});});}else{addAnimation(key);}});return{animations:animations,initialValues:initialValues,callback:callback};}"},u={code:"function reactNativeReanimated_KeyframeTs2(delay,animation){const{withDelay,reduceMotion}=this.__closure;return withDelay(delay,animation,reduceMotion);}"},c={code:"function reactNativeReanimated_KeyframeTs3(_,animation){const{getReduceMotionFromConfig,reduceMotion}=this.__closure;animation.reduceMotion=getReduceMotionFromConfig(reduceMotion);return animation;}"},l=(function(){return(0,s.default)((function n(s){var u=this;(0,o.default)(this,n),this.reduceMotionV=r(d[5]).ReduceMotion.System,this.build=function(){var n,o=u.delayV,s=u.getDelayFunction(),c=u.parseDefinitions(),l=c.keyframes,y=c.initialValues,k=u.callbackV;return(n=function(){var n={},f=function(f){var u=l[f];if(0!==u.length){var c=s(o,1===u.length?(0,r(d[6]).withTiming)(u[0].value,{duration:u[0].duration,easing:u[0].easing?u[0].easing:r(d[7]).Easing.linear}):r(d[6]).withSequence.apply(void 0,(0,a.default)(u.map((function(n){return(0,r(d[6]).withTiming)(n.value,{duration:n.duration,easing:n.easing?n.easing:r(d[7]).Easing.linear})})))));f.includes('transform')?('transform'in n||(n.transform=[]),n.transform.push((0,t.default)({},f.split(':')[1],c))):n[f]=c}};return Object.keys(y).forEach((function(n){n.includes('transform')?y[n].forEach((function(n,t){Object.keys(n).forEach((function(n){f(h(t,n))}))})):f(n)})),{animations:n,initialValues:y,callback:k}}).__closure={keyframes:l,delayFunction:s,delay:o,withTiming:r(d[6]).withTiming,Easing:r(d[7]).Easing,withSequence:r(d[6]).withSequence,initialValues:y,makeKeyframeKey:h,callback:k},n.__workletHash=0xd12f4b823db,n.__initData=f,n},this.definitions=s}),[{key:"parseDefinitions",value:function(){var n=this,t={};if(this.definitions.from){if(this.definitions[0])throw new(r(d[8]).ReanimatedError)("You cannot provide both keyframe 0 and 'from' as they both specified initial values.");this.definitions[0]=this.definitions.from,delete this.definitions.from}if(this.definitions.to){if(this.definitions[100])throw new(r(d[8]).ReanimatedError)("You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation.");this.definitions[100]=this.definitions.to,delete this.definitions.to}if(!this.definitions[0])throw new(r(d[8]).ReanimatedError)("Please provide 0 or 'from' keyframe with initial state of your object.");var a=this.definitions[0];Object.keys(a).forEach((function(n){if('transform'===n){if(!Array.isArray(a.transform))return;a.transform.forEach((function(n,a){Object.keys(n).forEach((function(n){t[h(a,n)]=[]}))}))}else t[n]=[]}));var o=this.durationV?this.durationV:500,s=Array.from(Object.keys(this.definitions)).map(Number),f=function(n,a){return a/100*o-t[n].reduce((function(n,t){return n+t.duration}),0)},u=function(n){var a=n.key,o=n.value,s=n.currentKeyPoint,u=n.easing;if(!(a in t))throw new(r(d[8]).ReanimatedError)("Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')");t[a].push({duration:f(a,s),value:o,easing:u})};return s.filter((function(n){return 0!==n})).sort((function(n,t){return n-t})).forEach((function(t){if(t<0||t>100)throw new(r(d[8]).ReanimatedError)('Keyframe should be in between range 0 - 100.');var a=n.definitions[t],o=a.easing;delete a.easing;var s=function(n,a){return u({key:n,value:a,currentKeyPoint:t,easing:o})};Object.keys(a).forEach((function(n){if('transform'===n){if(!Array.isArray(a.transform))return;a.transform.forEach((function(n,t){Object.keys(n).forEach((function(a){s(h(t,a),n[a])}))}))}else s(n,a[n])}))})),{initialValues:a,keyframes:t}}},{key:"duration",value:function(n){return this.durationV=n,this}},{key:"delay",value:function(n){return this.delayV=n,this}},{key:"withCallback",value:function(n){return this.callbackV=n,this}},{key:"reduceMotion",value:function(n){return this.reduceMotionV=n,this}},{key:"getDelayFunction",value:function(){var n,t,a=this.delayV,o=this.reduceMotionV;return a?(t=function(n,t){return(0,r(d[6]).withDelay)(n,t,o)},t.__closure={withDelay:r(d[6]).withDelay,reduceMotion:o},t.__workletHash=5892710172582,t.__initData=u,t):((n=function(n,t){return t.reduceMotion=(0,r(d[9]).getReduceMotionFromConfig)(o),t}).__closure={getReduceMotionFromConfig:r(d[9]).getReduceMotionFromConfig,reduceMotion:o},n.__workletHash=5109046473464,n.__initData=c,n)}}])})(),y={code:"function makeKeyframeKey_reactNativeReanimated_KeyframeTs4(index,transformProp){return index+\"_transform:\"+transformProp;}"},h=(function(){var n=function(n,t){return`${n}_transform:${t}`};return n.__closure={},n.__workletHash=0xfce38b046f8,n.__initData=y,n})();e.Keyframe=l}),574,[2,197,22,6,7,524,526,571,525,527]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.SharedTransitionType=e.LayoutAnimationType=void 0;e.LayoutAnimationType=(function(T){return T[T.ENTERING=1]="ENTERING",T[T.EXITING=2]="EXITING",T[T.LAYOUT=3]="LAYOUT",T[T.SHARED_ELEMENT_TRANSITION=4]="SHARED_ELEMENT_TRANSITION",T[T.SHARED_ELEMENT_TRANSITION_PROGRESS=5]="SHARED_ELEMENT_TRANSITION_PROGRESS",T})({}),e.SharedTransitionType=(function(T){return T.ANIMATION="animation",T.PROGRESS_ANIMATION="progressAnimation",T})({})}),575,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[0])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[0])[t]}}))})),Object.keys(r(d[1])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[1])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[1])[t]}}))})),Object.keys(r(d[2])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[2])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[2])[t]}}))})),Object.keys(r(d[3])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[3])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[3])[t]}}))})),Object.keys(r(d[4])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[4])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[4])[t]}}))})),Object.keys(r(d[5])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[5])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[5])[t]}}))})),Object.keys(r(d[6])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[6])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[6])[t]}}))})),Object.keys(r(d[7])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[7])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[7])[t]}}))})),Object.keys(r(d[8])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[8])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[8])[t]}}))})),Object.keys(r(d[9])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r(d[9])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[9])[t]}}))}))}),576,[577,578,579,580,581,582,583,584,585,586]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.FlipOutYRight=_e.FlipOutYLeft=_e.FlipOutXUp=_e.FlipOutXDown=_e.FlipOutEasyY=_e.FlipOutEasyX=_e.FlipInYRight=_e.FlipInYLeft=_e.FlipInXUp=_e.FlipInXDown=_e.FlipInEasyY=_e.FlipInEasyX=void 0;var e=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),o=t(r(d[5])),u=t(r(d[6]));function s(t,e,n){return e=(0,o.default)(e),(0,c.default)(t,f()?Reflect.construct(e,n||[],(0,o.default)(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}var p={code:"function reactNativeReanimated_FlipTs1(targetValues){const{initialValues,delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{transform:[{perspective:500},{rotateX:'90deg'},{translateY:-targetValues.targetHeight}],...initialValues},animations:{transform:[{perspective:500},{rotateX:delayFunction(delay,animation('0deg',config))},{translateY:delayFunction(delay,animation(0,config))}]},callback:callback};}"},y=_e.FlipInXUp=(function(t){function c(){var t;(0,n.default)(this,c);for(var l=arguments.length,o=new Array(l),u=0;u2&&void 0!==arguments[2]&&arguments[2];if(!(0,r(d[4]).getReduceMotionFromConfig)(this.getReduceMotion())){var s=this.getTransitionAnimation(),u=this.getProgressAnimation();this._defaultTransitionType||(this._customAnimationFactory&&!this._customProgressAnimation?this._defaultTransitionType=r(d[5]).SharedTransitionType.ANIMATION:this._defaultTransitionType=r(d[5]).SharedTransitionType.PROGRESS_ANIMATION);var c=this._defaultTransitionType===r(d[5]).SharedTransitionType.ANIMATION?r(d[5]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION:r(d[5]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS;(0,r(d[6]).updateLayoutAnimations)(i,c,s,n,o),t._progressTransitionManager.addProgressAnimation(i,u)}}},{key:"unregisterTransition",value:function(i){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this._defaultTransitionType===r(d[5]).SharedTransitionType.ANIMATION?r(d[5]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION:r(d[5]).LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS;(0,r(d[6]).updateLayoutAnimations)(i,o,void 0,void 0,n),t._progressTransitionManager.removeProgressAnimation(i,n)}},{key:"getReduceMotion",value:function(){return this._reduceMotion}},{key:"getTransitionAnimation",value:function(){return this._animation||this.buildAnimation(),this._animation}},{key:"getProgressAnimation",value:function(){return this._progressAnimation||this.buildProgressAnimation(),this._progressAnimation}},{key:"buildAnimation",value:function(){var t,i=this._customAnimationFactory,n=this._transitionDuration,s=this._reduceMotion;this._animation=((t=function(t){var u={},c={};if(i){for(var l in u=i(t))if(!o.includes(l))throw new(r(d[7]).ReanimatedError)(`The prop '${l}' is not supported yet.`)}else for(var p of o)if('transform'===p){var T=t.targetTransformMatrix;u.transformMatrix=(0,r(d[8]).withTiming)(T,{reduceMotion:s,duration:n})}else{var f=`target${p.charAt(0).toUpperCase()}${p.slice(1)}`;u[p]=(0,r(d[8]).withTiming)(t[f],{reduceMotion:s,duration:n})}for(var _ in u)if('transform'===_)c.transformMatrix=t.currentTransformMatrix;else{var y=`current${_.charAt(0).toUpperCase()+_.slice(1)}`;c[_]=t[y]}return{initialValues:c,animations:u}}).__closure={animationFactory:i,SUPPORTED_PROPS:o,withTiming:r(d[8]).withTiming,reduceMotion:s,transitionDuration:n},t.__workletHash=0xb16a7c135ec,t.__initData=u,t)}},{key:"buildProgressAnimation",value:function(){var t;this._customProgressAnimation?this._progressAnimation=this._customProgressAnimation:this._progressAnimation=((t=function(t,i,n){var s={};for(var u of o)if('transform'===u){for(var c=i.currentTransformMatrix,l=i.targetTransformMatrix,p=new Array(9),T=0;T<9;T++)p[T]=n*(l[T]-c[T])+c[T];s.transformMatrix=p}else{var f=u.charAt(0).toUpperCase()+u.slice(1),_=`target${f}`,y=i[`current${f}`],h=i[_];s[u]=n*(h-y)+y}g._notifyAboutProgress(t,s,!0)}).__closure={SUPPORTED_PROPS:o},t.__workletHash=0xc9932b31128,t.__initData=c,t)}}],[{key:"custom",value:function(i){return(new t).custom(i)}},{key:"duration",value:function(i){return(new t).duration(i)}},{key:"progressAnimation",value:function(i){return(new t).progressAnimation(i)}},{key:"defaultTransitionType",value:function(i){return(new t).defaultTransitionType(i)}},{key:"reduceMotion",value:function(i){return(new t).reduceMotion(i)}}])})();l._progressTransitionManager=new(r(d[9]).ProgressTransitionManager)}),595,[2,6,7,524,527,575,596,525,526,597]); +__d((function(g,r,i,a,m,e,d){'use strict';var t,n;if(Object.defineProperty(e,"__esModule",{value:!0}),e.updateLayoutAnimations=void 0,(0,r(d[0]).shouldBeUseWeb)())e.updateLayoutAnimations=function(){};else{var u=(t=[],n=[],{update:function(u,o){o?n.push(u):t.push(u),t.length+n.length===1&&((0,r(d[0]).isFabric)()?this.flush():setImmediate(this.flush))},flush:function(){(0,r(d[1]).configureLayoutAnimationBatch)(t.concat(n)),t.length=0,n.length=0}});e.updateLayoutAnimations=function(t,n,o,s,h){return u.update({viewTag:t,type:n,config:o?(0,r(d[1]).makeShareableCloneRecursive)(o):void 0,sharedTransitionTag:s},h)}}}),596,[528,551]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressTransitionManager=void 0;var s,t=n(r(d[1])),o=n(r(d[2])),c=r(d[3]),l='android'===c.Platform.OS,u={code:"function reactNativeReanimated_ProgressTransitionManagerTs1(){const{viewTag,progressAnimation}=this.__closure;global.ProgressTransitionRegister.addProgressAnimation(viewTag,progressAnimation);}"},T={code:"function reactNativeReanimated_ProgressTransitionManagerTs2(){const{viewTag,isUnmounting}=this.__closure;global.ProgressTransitionRegister.removeProgressAnimation(viewTag,isUnmounting);}"},f={code:"function reactNativeReanimated_ProgressTransitionManagerTs3(event){const{lastProgressValue}=this.__closure;const progress=event.progress;if(progress===lastProgressValue){return;}lastProgressValue=progress;global.ProgressTransitionRegister.frame(progress);}"},v={code:"function reactNativeReanimated_ProgressTransitionManagerTs4(){global.ProgressTransitionRegister.onTransitionEnd();}"},_={code:"function reactNativeReanimated_ProgressTransitionManagerTs5(){global.ProgressTransitionRegister.onAndroidFinishTransitioning();}"},p={code:"function reactNativeReanimated_ProgressTransitionManagerTs6(){global.ProgressTransitionRegister.onTransitionEnd(true);}"},P={code:"function reactNativeReanimated_ProgressTransitionManagerTs7(){global.ProgressTransitionRegister.onTransitionEnd();}"},R=(e.ProgressTransitionManager=(function(){return(0,o.default)((function n(){(0,t.default)(this,n),this._sharedElementCount=0,this._eventHandler={isRegistered:!1,onTransitionProgress:-1,onAppear:-1,onDisappear:-1,onSwipeDismiss:-1}}),[{key:"addProgressAnimation",value:function(n,s){var t;(0,r(d[4]).runOnUIImmediately)(((t=function(){g.ProgressTransitionRegister.addProgressAnimation(n,s)}).__closure={viewTag:n,progressAnimation:s},t.__workletHash=0xe35c09fb0de,t.__initData=u,t))(),this.registerEventHandlers()}},{key:"removeProgressAnimation",value:function(n){var s,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.unregisterEventHandlers(),(0,r(d[4]).runOnUIImmediately)(((s=function(){g.ProgressTransitionRegister.removeProgressAnimation(n,t)}).__closure={viewTag:n,isUnmounting:t},s.__workletHash=2517882764538,s.__initData=T,s))()}},{key:"registerEventHandlers",value:function(){this._sharedElementCount++;var n,s,t,o,u,T=this._eventHandler;if(!T.isRegistered){T.isRegistered=!0;var R=l?'on':'top',w=-1;T.onTransitionProgress=(0,r(d[5]).registerEventHandler)(((u=function(n){var s=n.progress;s!==w&&(w=s,g.ProgressTransitionRegister.frame(s))}).__closure={lastProgressValue:w},u.__workletHash=8786389637541,u.__initData=f,u),R+'TransitionProgress'),T.onAppear=(0,r(d[5]).registerEventHandler)(((o=function(){g.ProgressTransitionRegister.onTransitionEnd()}).__closure={},o.__workletHash=0xd488cab63cc,o.__initData=v,o),R+'Appear'),l?T.onDisappear=(0,r(d[5]).registerEventHandler)(((t=function(){g.ProgressTransitionRegister.onAndroidFinishTransitioning()}).__closure={},t.__workletHash=1996066144170,t.__initData=_,t),'onFinishTransitioning'):'ios'===c.Platform.OS&&(T.onDisappear=(0,r(d[5]).registerEventHandler)(((s=function(){g.ProgressTransitionRegister.onTransitionEnd(!0)}).__closure={},s.__workletHash=2175464135288,s.__initData=p,s),'topDisappear'),T.onSwipeDismiss=(0,r(d[5]).registerEventHandler)(((n=function(){g.ProgressTransitionRegister.onTransitionEnd()}).__closure={},n.__workletHash=0xeb62469234f,n.__initData=P,n),'topGestureCancel'))}}},{key:"unregisterEventHandlers",value:function(){if(this._sharedElementCount--,0===this._sharedElementCount){var n=this._eventHandler;n.isRegistered=!1,-1!==n.onTransitionProgress&&((0,r(d[5]).unregisterEventHandler)(n.onTransitionProgress),n.onTransitionProgress=-1),-1!==n.onAppear&&((0,r(d[5]).unregisterEventHandler)(n.onAppear),n.onAppear=-1),-1!==n.onDisappear&&((0,r(d[5]).unregisterEventHandler)(n.onDisappear),n.onDisappear=-1),-1!==n.onSwipeDismiss&&((0,r(d[5]).unregisterEventHandler)(n.onSwipeDismiss),n.onSwipeDismiss=-1)}}}])})(),{code:"function createProgressTransitionRegister_reactNativeReanimated_ProgressTransitionManagerTs8(){const{IS_ANDROID}=this.__closure;const progressAnimations=new Map();const snapshots=new Map();const currentTransitions=new Set();const toRemove=new Set();let skipCleaning=false;let isTransitionRestart=false;const progressTransitionManager={addProgressAnimation:function(viewTag,progressAnimation){if(currentTransitions.size>0&&!progressAnimations.has(viewTag)){isTransitionRestart=!IS_ANDROID;}progressAnimations.set(viewTag,progressAnimation);},removeProgressAnimation:function(viewTag,isUnmounting){if(currentTransitions.size>0){isTransitionRestart=!IS_ANDROID;}if(isUnmounting){toRemove.add(viewTag);}else{progressAnimations.delete(viewTag);}},onTransitionStart:function(viewTag,snapshot){skipCleaning=isTransitionRestart;snapshots.set(viewTag,snapshot);currentTransitions.add(viewTag);progressTransitionManager.frame(0);},frame:function(progress){for(const viewTag of currentTransitions){const progressAnimation=progressAnimations.get(viewTag);if(!progressAnimation){continue;}const snapshot=snapshots.get(viewTag);progressAnimation(viewTag,snapshot,progress);}},onAndroidFinishTransitioning:function(){if(toRemove.size>0){progressTransitionManager.onTransitionEnd();}},onTransitionEnd:function(removeViews=false){if(currentTransitions.size===0){toRemove.clear();return;}if(skipCleaning){skipCleaning=false;isTransitionRestart=false;return;}for(const viewTag of currentTransitions){global._notifyAboutEnd(viewTag,removeViews);}currentTransitions.clear();if(isTransitionRestart){return;}snapshots.clear();if(toRemove.size>0){for(const viewTag of toRemove){progressAnimations.delete(viewTag);global._notifyAboutEnd(viewTag,removeViews);}toRemove.clear();}}};return progressTransitionManager;}"}),w=(function(){var n=function(){var n=new Map,s=new Map,t=new Set,o=new Set,c=!1,u=!1,T={addProgressAnimation:function(s,o){t.size>0&&!n.has(s)&&(u=!l),n.set(s,o)},removeProgressAnimation:function(s,c){t.size>0&&(u=!l),c?o.add(s):n.delete(s)},onTransitionStart:function(n,o){c=u,s.set(n,o),t.add(n),T.frame(0)},frame:function(o){for(var c of t){var l=n.get(c);if(l)l(c,s.get(c),o)}},onAndroidFinishTransitioning:function(){o.size>0&&T.onTransitionEnd()},onTransitionEnd:function(){var l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!==t.size){if(c)return c=!1,void(u=!1);for(var T of t)g._notifyAboutEnd(T,l);if(t.clear(),!u&&(s.clear(),o.size>0)){for(var f of o)n.delete(f),g._notifyAboutEnd(f,l);o.clear()}}else o.clear()}};return T};return n.__closure={IS_ANDROID:l},n.__workletHash=5092284602633,n.__initData=R,n})(),h={code:"function reactNativeReanimated_ProgressTransitionManagerTs9(){const{createProgressTransitionRegister}=this.__closure;global.ProgressTransitionRegister=createProgressTransitionRegister();}"};if((0,r(d[6]).shouldBeUseWeb)()){var A=function(){if(!(0,r(d[6]).isJest)())throw new(r(d[7]).ReanimatedError)('`ProgressTransitionRegister` is not available on non-native platform.')};g.ProgressTransitionRegister=new Proxy({},{get:A,set:function(){return A(),!1}})}else(0,r(d[4]).runOnUIImmediately)(((s=function(){g.ProgressTransitionRegister=w()}).__closure={createProgressTransitionRegister:w},s.__workletHash=0xc251488872f,s.__initData=h,s))()}),597,[2,6,7,18,548,551,528,525]); +__d((function(_g,_r,_i,_a,m,e,_d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateColor=e.Extrapolate=e.ColorSpace=void 0,e.useInterpolateConfig=function(o,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.RGB,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,_r(_d[3]).useSharedValue)({inputRange:o,outputRange:t,colorSpace:r,cache:(0,_r(_d[4]).makeMutable)(null),options:a})};e.Extrapolate=_r(_d[0]).Extrapolation;var o,t,r,a,n,l,i={code:"function reactNativeReanimated_interpolateColorTs1(value,inputRange,colors,options){const{interpolate,Extrapolation,hsvToColor}=this.__closure;let h=0;const{useCorrectedHSVInterpolation=true}=options;if(useCorrectedHSVInterpolation){const correctedInputRange=[inputRange[0]];const originalH=colors.h;const correctedH=[originalH[0]];for(let i=1;ioriginalH[i-1]&&d>0.5){correctedInputRange.push(inputRange[i]);correctedInputRange.push(inputRange[i]+0.00001);correctedH.push(originalH[i]-1);correctedH.push(originalH[i]);}else if(originalH[i]p[u-1]&&c>.5?(i.push(t[u]),i.push(t[u]+1e-5),s.push(p[u]-1),s.push(p[u])):p[u]3&&void 0!==arguments[3]?arguments[3]:'RGB',n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if('HSV'===a)return p(o,t,_(r),n);if('RGB'===a)return d(o,t,v(r),n);throw new(_r(_d[2]).ReanimatedError)(`Invalid color space provided: ${a}. Supported values are: ['RGB', 'HSV'].`)};return o.__closure={interpolateColorsHSV:p,getInterpolateHSV:_,interpolateColorsRGB:d,getInterpolateRGB:v},o.__workletHash=0xeb3025e1aa3,o.__initData=H,o})(),e.ColorSpace=(function(o){return o[o.RGB=0]="RGB",o[o.HSV=1]="HSV",o})({}))}),598,[599,550,525,600,551]); +__d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.interpolate=e.clamp=e.Extrapolation=void 0;var t=e.Extrapolation=(function(t){return t.IDENTITY="identity",t.CLAMP="clamp",t.EXTEND="extend",t})({}),n={code:"function getVal_reactNativeReanimated_interpolationTs1(type,coef,val,leftEdgeOutput,rightEdgeOutput,x){const{Extrapolation}=this.__closure;switch(type){case Extrapolation.IDENTITY:return x;case Extrapolation.CLAMP:if(coef*val=leftEdgeOutput?1:-1;if(coef*valcoef*rightEdgeOutput){return getVal(extrapolationConfig.extrapolateRight,coef,val,leftEdgeOutput,rightEdgeOutput,x);}return val;}"},f=(function(){var t=function(t,n,i){var p=n.leftEdgeInput,u=n.rightEdgeInput,l=n.leftEdgeOutput,E=n.rightEdgeOutput;if(u-p==0)return l;var f=l+(t-p)/(u-p)*(E-l),x=E>=l?1:-1;return x*fx*E?o(i.extrapolateRight,x,f,l,E,t):f};return t.__closure={getVal:o},t.__workletHash=7727686385963,t.__initData=E,t})(),x={code:"function interpolate_reactNativeReanimated_interpolationTs5(x,inputRange,outputRange,type){const{validateType,internalInterpolate}=this.__closure;if(inputRange.length<2||outputRange.length<2){throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.');}const extrapolationConfig=validateType(type);const length=inputRange.length;const narrowedInput={leftEdgeInput:inputRange[0],rightEdgeInput:inputRange[1],leftEdgeOutput:outputRange[0],rightEdgeOutput:outputRange[1]};if(length>2){if(x>inputRange[length-1]){narrowedInput.leftEdgeInput=inputRange[length-2];narrowedInput.rightEdgeInput=inputRange[length-1];narrowedInput.leftEdgeOutput=outputRange[length-2];narrowedInput.rightEdgeOutput=outputRange[length-1];}else{for(let i=1;i2)if(t>n[u-1])E.leftEdgeInput=n[u-2],E.rightEdgeInput=n[u-1],E.leftEdgeOutput=o[u-2],E.rightEdgeOutput=o[u-1];else for(var x=1;x1&&this.props.skipExiting?u.Children.map(this.props.children,(function(t){return(0,a.jsx)(l,{skipExiting:!0,children:t})})):this.props.children}},{key:"setShouldAnimateExiting",value:function(){if(1===u.Children.count(this.props.children)){var t=(0,_r(d[8]).findNodeHandle)(this);t&&(0,_r(d[9]).setShouldAnimateExitingForTag)(t,!this.props.skipExiting)}}},{key:"componentWillUnmount",value:function(){void 0!==this.props.skipExiting&&this.setShouldAnimateExiting()}},{key:"render",value:function(){var t=this.getMaybeWrappedChildren();return void 0===this.props.skipEntering?t:(0,a.jsx)(s,{shouldSkip:this.props.skipEntering,children:t})}}])})(u.Component)}),601,[2,6,7,11,13,14,16,223,602,551]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"findNodeHandle",{enumerable:!0,get:function(){return n.findNodeHandle}});var n=r(d[0])}),602,[18]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceMonitor=function(e){var n=e.smoothingFrames,u=void 0===n?a:n;return(0,r.jsxs)(t.View,{style:F.monitor,children:[(0,r.jsx)(h,{smoothingFrames:u}),(0,r.jsx)(x,{smoothingFrames:u})]})};var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(u,a,o):u[a]=e[a]}return u.default=e,r&&r.set(e,u),u})(_r(d[0])),t=_r(d[1]),r=_r(d[2]);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var u={code:"function createCircularDoublesBuffer_reactNativeReanimated_PerformanceMonitorTsx1(size){return{next:0,buffer:new Float32Array(size),size:size,count:0,push:function(value){const oldValue=this.buffer[this.next];const oldCount=this.count;this.buffer[this.next]=value;this.next=(this.next+1)%this.size;this.count=Math.min(this.size,this.count+1);return oldCount===this.size?oldValue:null;},front:function(){const notEmpty=this.count>0;if(notEmpty){const current=this.next-1;const index=current<0?this.size-1:current;return this.buffer[index];}return null;},back:function(){const notEmpty=this.count>0;return notEmpty?this.buffer[this.next]:null;}};}"},i=(function(){var e=function(e){return{next:0,buffer:new Float32Array(e),size:e,count:0,push:function(e){var t=this.buffer[this.next],r=this.count;return this.buffer[this.next]=e,this.next=(this.next+1)%this.size,this.count=Math.min(this.size,this.count+1),r===this.size?t:null},front:function(){if(this.count>0){var e=this.next-1,t=e<0?this.size-1:e;return this.buffer[t]}return null},back:function(){return this.count>0?this.buffer[this.next]:null}}};return e.__closure={},e.__workletHash=208807807952,e.__initData=u,e})(),a=20;(0,_r(d[3]).addWhitelistedNativeProps)({text:!0});var o=(0,_r(d[4]).createAnimatedComponent)(t.TextInput);var s={code:"function getFps_reactNativeReanimated_PerformanceMonitorTsx2(renderTimeInMs){return 1000/renderTimeInMs;}"},c=(function(){var e=function(e){return 1e3/e};return e.__closure={},e.__workletHash=0xa2522db031f,e.__initData=s,e})(),l={code:"function completeBufferRoutine_reactNativeReanimated_PerformanceMonitorTsx3(buffer,timestamp){const{getFps}=this.__closure;var _buffer$push;timestamp=Math.round(timestamp);const droppedTimestamp=(_buffer$push=buffer.push(timestamp))!==null&&_buffer$push!==void 0?_buffer$push:timestamp;const measuredRangeDuration=timestamp-droppedTimestamp;return getFps(measuredRangeDuration/buffer.count);}"},f=(function(){var e=function(e,t){var r;t=Math.round(t);var n=null!=(r=e.push(t))?r:t;return c((t-n)/e.count)};return e.__closure={getFps:c},e.__workletHash=9222589345784,e.__initData=l,e})(),p={code:"function reactNativeReanimated_PerformanceMonitorTsx4(){const{jsFps}=this.__closure;var _jsFps$value;const text='JS: '+((_jsFps$value=jsFps.value)!==null&&_jsFps$value!==void 0?_jsFps$value:'N/A')+' ';return{text:text,defaultValue:text};}"};function h(n){var u=n.smoothingFrames,a=(0,_r(d[5]).useSharedValue)(null),s=(0,_r(d[5]).useSharedValue)(0),c=(0,e.useRef)(i(u));(0,e.useEffect)((function(){var e,t;e=function(e,t){t=Math.round(t);var r=f(c.current,t);a.value=(2*r).toFixed(0)},t=0,(function r(){requestAnimationFrame((function(n){t>0&&e(t,n),t=n,requestAnimationFrame(r)}))})()}),[a,s]);var l,h=(0,_r(d[5]).useAnimatedProps)(((l=function(){var e,t='JS: '+(null!=(e=a.value)?e:'N/A')+' ';return{text:t,defaultValue:t}}).__closure={jsFps:a},l.__workletHash=518205953393,l.__initData=p,l));return(0,r.jsx)(t.View,{style:F.container,children:(0,r.jsx)(o,{style:F.text,animatedProps:h,editable:!1})})}var _={code:"function reactNativeReanimated_PerformanceMonitorTsx5({timestamp:timestamp}){const{circularBuffer,createCircularDoublesBuffer,smoothingFrames,completeBufferRoutine,uiFps}=this.__closure;if(circularBuffer.value===null){circularBuffer.value=createCircularDoublesBuffer(smoothingFrames);}timestamp=Math.round(timestamp);const currentFps=completeBufferRoutine(circularBuffer.value,timestamp);uiFps.value=currentFps.toFixed(0);}"},v={code:"function reactNativeReanimated_PerformanceMonitorTsx6(){const{uiFps}=this.__closure;var _uiFps$value;const text='UI: '+((_uiFps$value=uiFps.value)!==null&&_uiFps$value!==void 0?_uiFps$value:'N/A')+' ';return{text:text,defaultValue:text};}"};function x(e){var n,u=e.smoothingFrames,a=(0,_r(d[5]).useSharedValue)(null),s=(0,_r(d[5]).useSharedValue)(null);(0,_r(d[5]).useFrameCallback)(((n=function(e){var t=e.timestamp;null===s.value&&(s.value=i(u)),t=Math.round(t);var r=f(s.value,t);a.value=r.toFixed(0)}).__closure={circularBuffer:s,createCircularDoublesBuffer:i,smoothingFrames:u,completeBufferRoutine:f,uiFps:a},n.__workletHash=0xf05e0b1cc8d,n.__initData=_,n));var c,l=(0,_r(d[5]).useAnimatedProps)(((c=function(){var e,t='UI: '+(null!=(e=a.value)?e:'N/A')+' ';return{text:t,defaultValue:t}}).__closure={uiFps:a},c.__workletHash=4313838824310,c.__initData=v,c));return(0,r.jsx)(t.View,{style:F.container,children:(0,r.jsx)(o,{style:F.text,animatedProps:l,editable:!1})})}var F=t.StyleSheet.create({monitor:{flexDirection:'row',position:'absolute',backgroundColor:'#0006',zIndex:1e3},header:{fontSize:14,color:'#ffff',paddingHorizontal:5},text:{fontSize:13,color:'#ffff',fontFamily:'monospace',paddingHorizontal:3},container:{alignItems:'center',justifyContent:'center',flexDirection:'row',flexWrap:'wrap'}})}),603,[16,18,223,604,605,645]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.adaptViewConfig=function(s){var t=s.uiViewClassName,o=s.validAttributes;if(!P.has(t)){var T={};Object.keys(o).forEach((function(s){s in r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST||s in r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST||(T[s]=!0)})),l(T),P.add(t)}},e.addWhitelistedNativeProps=function(s){var t=Object.keys(r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST).length;r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST=Object.assign({},r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST,s),t!==Object.keys(r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST).length&&o()},e.addWhitelistedUIProps=l,e.configureProps=o,e.configureReanimatedLogger=function(t){(0,r(d[4]).updateLoggerConfig)(t),s||(0,r(d[3]).executeOnUIRuntimeSync)(r(d[4]).updateLoggerConfig)(t)};var s=(0,r(d[0]).shouldBeUseWeb)();function t(){for(var s in r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST)if(s in r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST)throw new(r(d[2]).ReanimatedError)(`Property \`${s}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`)}function o(){t(),(0,r(d[3]).jsiConfigureProps)(Object.keys(r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST),Object.keys(r(d[1]).PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST))}function l(s){var t=Object.keys(r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length;r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST=Object.assign({},r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST,s),t!==Object.keys(r(d[1]).PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length&&o()}var P=new Set;o()}),604,[528,541,525,551,531]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createAnimatedComponent",{enumerable:!0,get:function(){return r(d[0]).createAnimatedComponent}})}),605,[606]); +__d((function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedComponent=function(e,N){(0,h.default)('function'!=typeof e||e.prototype&&e.prototype.isReactComponent,`Looks like you're passing a function component \`${e.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`);var P=(function(p){function h(e){var n,l,p,u;(0,t.default)(this,h),l=this,p=h,u=[e],p=(0,s.default)(p),(n=(0,o.default)(l,y()?Reflect.construct(p,u||[],(0,s.default)(l).constructor):p.apply(l,u)))._styles=null,n._componentViewTag=-1,n._isFirstRender=!0,n.jestAnimatedStyle={value:{}},n._component=null,n._sharedElementTransition=null,n._jsPropsUpdater=new c.default,n._InlinePropManager=new(r(d[15]).InlinePropManager),n._PropsFilter=new(r(d[16]).PropsFilter),n.reanimatedID=A++,n._setComponentRef=(0,v.default)({getForwardedRef:function(){return n.props.forwardedRef},setLocalRef:function(e){var t=(0,r(d[17]).findNodeHandle)(e);null!==t&&(n._componentViewTag=t);var o=n.props,s=o.layout,l=o.entering,p=o.exiting,u=o.sharedTransitionTag;if((s||l||p||u)&&null!=t){var c,v;if(T||(0,r(d[18]).enableLayoutAnimations)(!0,!1),u&&n._configureSharedTransition(),p&&(0,r(d[13]).isFabric)())if(!('getReduceMotion'in p&&'function'==typeof p.getReduceMotion?(0,r(d[19]).getReduceMotionFromConfig)(p.getReduceMotion()):(0,r(d[19]).getReduceMotionFromConfig)()))(0,r(d[20]).updateLayoutAnimations)(t,r(d[21]).LayoutAnimationType.EXITING,(0,r(d[22]).maybeBuild)(p,null==(v=n.props)?void 0:v.style,h.displayName));var f,y=null==(c=n.context)?void 0:c.current;if(l&&!y&&!_)(0,r(d[20]).updateLayoutAnimations)(t,r(d[21]).LayoutAnimationType.ENTERING,(0,r(d[22]).maybeBuild)(l,null==(f=n.props)?void 0:f.style,h.displayName))}e!==n._component&&(n._component=e)}}),w&&(n.jestAnimatedStyle={value:{}});var f,R=n.props.entering;R&&(0,r(d[13]).isFabric)()&&(0,r(d[20]).updateLayoutAnimations)(n.reanimatedID,r(d[21]).LayoutAnimationType.ENTERING,(0,r(d[22]).maybeBuild)(R,null==(f=n.props)?void 0:f.style,h.displayName));return n}return(0,l.default)(h,p),(0,n.default)(h,[{key:"componentDidMount",value:function(){var e;if(this._componentViewTag=this._getComponentViewTag(),_||(this._NativeEventsManager=new(r(d[23]).NativeEventsManager)(this,N)),null==(e=this._NativeEventsManager)||e.attachEvents(),this._jsPropsUpdater.addOnJSPropsChangeListener(this),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),this.props.layout&&this._configureLayoutTransition(),_){var t;if(this.props.exiting&&(0,r(d[14]).saveSnapshot)(this._component),!this.props.entering||(0,r(d[14]).getReducedMotionFromConfig)(this.props.entering))return void(this._isFirstRender=!1);(null==(t=this.context)?void 0:t.current)?this._component.style.visibility='initial':(0,r(d[14]).startWebLayoutAnimation)(this.props,this._component,r(d[21]).LayoutAnimationType.ENTERING)}this._isFirstRender=!1}},{key:"componentWillUnmount",value:function(){var e,t;null==(e=this._NativeEventsManager)||e.detachEvents(),this._jsPropsUpdater.removeOnJSPropsChangeListener(this),this._detachStyles(),this._InlinePropManager.detachInlineProps(),this.props.sharedTransitionTag&&this._configureSharedTransition(!0),null==(t=this._sharedElementTransition)||t.unregisterTransition(this._componentViewTag,!0);var n=this.props.exiting;if(_&&this._component&&n&&!(0,r(d[14]).getReducedMotionFromConfig)(n))(0,r(d[24]).addHTMLMutationObserver)(),(0,r(d[14]).startWebLayoutAnimation)(this.props,this._component,r(d[21]).LayoutAnimationType.EXITING);else if(n&&!_&&!(0,r(d[13]).isFabric)()){var o;if(!('getReduceMotion'in n&&'function'==typeof n.getReduceMotion?(0,r(d[19]).getReduceMotionFromConfig)(n.getReduceMotion()):(0,r(d[19]).getReduceMotionFromConfig)()))(0,r(d[20]).updateLayoutAnimations)(this._componentViewTag,r(d[21]).LayoutAnimationType.EXITING,(0,r(d[22]).maybeBuild)(n,null==(o=this.props)?void 0:o.style,h.displayName))}}},{key:"_getComponentViewTag",value:function(){return this._getViewInfo().viewTag}},{key:"_detachStyles",value:function(){if(-1!==this._componentViewTag&&null!==this._styles){var e;for(var t of this._styles)t.viewDescriptors.remove(this._componentViewTag);null!=(e=this.props.animatedProps)&&e.viewDescriptors&&this.props.animatedProps.viewDescriptors.remove(this._componentViewTag),(0,r(d[13]).isFabric)()&&(0,r(d[25]).removeFromPropsRegistry)(this._componentViewTag)}}},{key:"_updateFromNative",value:function(e){var t;null!=N&&N.setNativeProps?N.setNativeProps(this._component,e):null==(t=this._component)||null==t.setNativeProps||t.setNativeProps(e)}},{key:"_getViewInfo",value:function(){var e,t,n,o,s;if(void 0!==this._viewInfo)return this._viewInfo;var l,p=null,u=null!=(e=this._component)&&e.getAnimatableRef?null==(t=(n=this._component).getAnimatableRef)?void 0:t.call(n):this;if(T)o=this._component,s=null,p=null,l=null;else{var h=r(d[26]).RNRenderer.findHostInstance_DEPRECATED(u);if(!h)throw new(r(d[27]).ReanimatedError)('Cannot find host instance for this component. Maybe it renders nothing?');var c=(0,r(d[28]).getViewInfo)(h);o=c.viewTag,s=c.viewName,l=c.viewConfig,p=(0,r(d[13]).isFabric)()?(0,r(d[29]).getShadowNodeWrapperFromRef)(this):null}return this._viewInfo={viewTag:o,viewName:s,shadowNodeWrapper:p,viewConfig:l},this._viewInfo}},{key:"_attachAnimatedStyles",value:function(){var e,t,n=this,o=this.props.style?R((0,r(d[30]).flattenArray)(this.props.style)):[],s=this._styles;this._styles=o;var l=this._animatedProps;this._animatedProps=this.props.animatedProps;var p=this._getViewInfo(),u=p.viewTag,h=p.viewName,c=p.shadowNodeWrapper,v=p.viewConfig;if((((null==(e=this.props.animatedProps)?void 0:e.viewDescriptors)||o.length)&&v&&(0,r(d[31]).adaptViewConfig)(v),this._componentViewTag=u,s)&&!(1===o.length&&1===s.length&&o[0]===s[0])){var f=function(e){o.some((function(t){return t===e}))||e.viewDescriptors.remove(u)};for(var y of s)f(y)}o.forEach((function(e){e.viewDescriptors.add({tag:u,name:h,shadowNodeWrapper:c}),w&&(n.jestAnimatedStyle.value=Object.assign({},n.jestAnimatedStyle.value,e.initial.value),e.jestAnimatedStyle.current=n.jestAnimatedStyle)})),l&&l!==this.props.animatedProps&&l.viewDescriptors.remove(u),null!=(t=this.props.animatedProps)&&t.viewDescriptors&&this.props.animatedProps.viewDescriptors.add({tag:u,name:h,shadowNodeWrapper:c})}},{key:"componentDidUpdate",value:function(e,t,n){var o;this.props.layout!==e.layout&&this._configureLayoutTransition(),void 0===this.props.sharedTransitionTag&&void 0===e.sharedTransitionTag||this._configureSharedTransition(),null==(o=this._NativeEventsManager)||o.updateEvents(e),this._attachAnimatedStyles(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),_&&this.props.exiting&&(0,r(d[14]).saveSnapshot)(this._component),_&&null!==n&&this.props.layout&&!(0,r(d[14]).getReducedMotionFromConfig)(this.props.layout)&&(0,r(d[14]).tryActivateLayoutTransition)(this.props,this._component,n)}},{key:"_configureLayoutTransition",value:function(){if(!_){var e=this.props.layout?(0,r(d[22]).maybeBuild)(this.props.layout,void 0,h.displayName):void 0;(0,r(d[20]).updateLayoutAnimations)(this._componentViewTag,r(d[21]).LayoutAnimationType.LAYOUT,e)}}},{key:"_configureSharedTransition",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!_){var o,s=this.props.sharedTransitionTag;if(!s)return null==(o=this._sharedElementTransition)||o.unregisterTransition(this._componentViewTag,n),void(this._sharedElementTransition=null);var l=null!=(e=null!=(t=this.props.sharedTransitionStyle)?t:this._sharedElementTransition)?e:new(r(d[21]).SharedTransition);l.registerTransition(this._componentViewTag,s,n),this._sharedElementTransition=l}}},{key:"getSnapshotBeforeUpdate",value:function(){var e;return _&&void 0!==(null==(e=this._component)?void 0:e.getBoundingClientRect)?this._component.getBoundingClientRect():null}},{key:"render",value:function(){var t,n,o=this._PropsFilter.filterNonAnimatedProps(this);(w&&(o.jestAnimatedStyle=this.jestAnimatedStyle),this._isFirstRender&&_&&o.entering&&!(0,r(d[14]).getReducedMotionFromConfig)(o.entering))&&(o.style=Object.assign({},null!=(n=o.style)?n:{},{visibility:'hidden'}));var s=u.Platform.select({web:{},default:{collapsable:!1}}),l=(null==(t=this.context)?void 0:t.current)||!(0,r(d[13]).isFabric)()?void 0:`${this.reanimatedID}`,p=w?{jestInlineStyle:this.props.style,jestAnimatedStyle:this.jestAnimatedStyle}:{};return(0,f.jsx)(e,Object.assign({nativeID:l},o,p,{ref:this._setComponentRef},s))}}])})(p.default.Component);return P.contextType=r(d[32]).SkipEnteringContext,P.displayName=`AnimatedComponent(${e.displayName||e.name||'Component'})`,p.default.forwardRef((function(e,t){return(0,f.jsx)(P,Object.assign({},e,null===t?null:{forwardedRef:t}))}))};var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),l=e(r(d[5])),p=e(r(d[6])),u=r(d[7]);r(d[8]);var h=e(r(d[9])),c=e(r(d[10])),v=e(r(d[11])),f=r(d[12]);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var _=(0,r(d[13]).isWeb)(),w=(0,r(d[13]).isJest)(),T=(0,r(d[13]).shouldBeUseWeb)();function R(e){return e.filter((function(e){return null==e?void 0:e.viewDescriptors}))}_&&(0,r(d[14]).configureWebLayoutAnimations)();var A=0}),606,[2,6,7,11,13,14,16,18,521,31,607,608,223,528,609,634,638,602,551,527,596,520,640,641,610,642,643,525,644,546,636,604,601]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=n(r(d[2])),p=r(d[3]),u=n(r(d[4])),s=(0,r(d[5]).shouldBeUseWeb)(),l=(function(){function n(){(0,t.default)(this,n),this._reanimatedEventEmitter=new p.NativeEventEmitter('ios'===p.Platform.OS||'macos'===p.Platform.OS?u.default:void 0)}return(0,o.default)(n,[{key:"addOnJSPropsChangeListener",value:function(t){var o=(0,r(d[6]).findNodeHandle)(t);if(n._tagToComponentMapping.set(o,t),1===n._tagToComponentMapping.size){this._reanimatedEventEmitter.addListener('onReanimatedPropsChange',(function(t){var o=n._tagToComponentMapping.get(t.viewTag);null==o||o._updateFromNative(t.props)}))}}},{key:"removeOnJSPropsChangeListener",value:function(t){var o=(0,r(d[6]).findNodeHandle)(t);n._tagToComponentMapping.delete(o),0===n._tagToComponentMapping.size&&this._reanimatedEventEmitter.removeAllListeners('onReanimatedPropsChange')}}])})();l._tagToComponentMapping=new Map;var f,v={code:"function reactNativeReanimated_JSPropsUpdaterTs1(){const{runOnJS,updater}=this.__closure;global.updateJSProps=function(viewTag,props){runOnJS(updater)(viewTag,props);};}"},_=(function(){function n(){if((0,t.default)(this,n),!n.isInitialized){var o=function(t,o){var p=n._tagToComponentMapping.get(t);null==p||p._updateFromNative(o)};(0,r(d[7]).runOnUIImmediately)(((p=function(){g.updateJSProps=function(n,t){(0,r(d[7]).runOnJS)(o)(n,t)}}).__closure={runOnJS:r(d[7]).runOnJS,updater:o},p.__workletHash=45534967868,p.__initData=v,p))(),n.isInitialized=!0}var p}return(0,o.default)(n,[{key:"addOnJSPropsChangeListener",value:function(t){if(n.isInitialized){var o=(0,r(d[6]).findNodeHandle)(t);n._tagToComponentMapping.set(o,t)}}},{key:"removeOnJSPropsChangeListener",value:function(t){if(n.isInitialized){var o=(0,r(d[6]).findNodeHandle)(t);n._tagToComponentMapping.delete(o)}}}])})();_._tagToComponentMapping=new Map,_.isInitialized=!1,f=s?(function(){return(0,o.default)((function n(){(0,t.default)(this,n)}),[{key:"addOnJSPropsChangeListener",value:function(n){}},{key:"removeOnJSPropsChangeListener",value:function(n){}}])})():g._IS_FABRIC?_:l;e.default=f}),607,[2,6,7,18,543,528,602,548]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){var n=t.getForwardedRef,o=t.setLocalRef;return function(t){var u=n();o(t),'function'==typeof u?u(t):'object'==typeof u&&null!=u&&(u.current=t)}}}),608,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"configureWebLayoutAnimations",{enumerable:!0,get:function(){return r(d[0]).configureWebLayoutAnimations}}),Object.defineProperty(e,"getReducedMotionFromConfig",{enumerable:!0,get:function(){return r(d[1]).getReducedMotionFromConfig}}),Object.defineProperty(e,"saveSnapshot",{enumerable:!0,get:function(){return r(d[1]).saveSnapshot}}),Object.defineProperty(e,"startWebLayoutAnimation",{enumerable:!0,get:function(){return r(d[2]).startWebLayoutAnimation}}),Object.defineProperty(e,"tryActivateLayoutTransition",{enumerable:!0,get:function(){return r(d[2]).tryActivateLayoutTransition}})}),609,[610,625,633]); +__d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.addHTMLMutationObserver=function(){if(l||!(0,r(d[0]).isWindowAvailable)())return;l=!0,new MutationObserver((function(t){var n=t[t.length-1];if(!c(n.target))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:1e3;return Math.floor(Math.random()*(n+1))/1e3}function o(n){var o=n.randomizeDelay,s=o?t():0;return n.delayV?o?t(n.delayV):n.delayV/1e3:s}function s(n,t){var o=t in r(d[5]).Animations?r(d[5]).Animations[t].duration:.3;return void 0!==n.durationV?n.durationV/1e3:o}function l(n){return void 0!==n.callbackV?n.callbackV:null}function c(n){return!!n.reversed}function f(n){var t=n.getBoundingClientRect(),o={top:t.top,left:t.left,width:t.width,height:t.height,scrollOffsets:y(n)};r(d[7]).snapshots.set(n,o)}function u(n,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=t.animationName,c=t.duration,u=t.delay,y=t.easing,p=function(){n.style.animationName=l,n.style.animationDuration=`${c}s`,n.style.animationDelay=`${u}s`,n.style.animationTimingFunction=y};t.animationType===r(d[8]).LayoutAnimationType.ENTERING?requestAnimationFrame(p):p(),n.onanimationend=function(){o&&f(n),null!=s&&s.contains(n)&&(n.removedAfterAnimation=!0,s.removeChild(n)),null==t.callback||t.callback(!0),n.removeEventListener('animationcancel',T)};var T=function(){null==t.callback||t.callback(!1),null!=s&&s.contains(n)&&(n.removedAfterAnimation=!0,s.removeChild(n)),n.removeEventListener('animationcancel',T)};n.onanimationstart=function(){t.animationType===r(d[8]).LayoutAnimationType.ENTERING&&(0,r(d[9])._updatePropsJS)({visibility:'initial'},n),n.addEventListener('animationcancel',T)},l in r(d[5]).Animations||(0,r(d[10]).scheduleAnimationCleanup)(l,c+u,(function(){o&&(0,r(d[7]).setElementPosition)(n,r(d[7]).snapshots.get(n))}))}function y(n){for(var t=n,o={scrollTopOffset:0,scrollLeftOffset:0};t;)0!==t.scrollTop&&0===o.scrollTopOffset&&(o.scrollTopOffset=t.scrollTop),0!==t.scrollLeft&&0===o.scrollLeftOffset&&(o.scrollLeftOffset=t.scrollLeft),t=t.parentElement;return o}Object.defineProperty(e,"__esModule",{value:!0}),e.getProcessedConfig=function(t,f,u){return{animationName:t,animationType:f,duration:s(u,t),delay:o(u),easing:n(u),callback:l(u),reversed:c(u)}},e.getReducedMotionFromConfig=function(n){if(!n.reduceMotionV)return r(d[3]).ReducedMotionManager.jsValue;switch(n.reduceMotionV){case r(d[4]).ReduceMotion.Never:return!1;case r(d[4]).ReduceMotion.Always:return!0;default:return r(d[3]).ReducedMotionManager.jsValue}},e.handleExitingAnimation=function(n,t){var o=n.offsetParent,s=n.cloneNode();s.reanimatedDummy=!0,n.style.animationName='',s.style.animationName='';for(;n.firstChild;)s.appendChild(n.firstChild);null==o||o.appendChild(s);var l=r(d[7]).snapshots.get(n),c=y(n),f=c.scrollTopOffset,p=l.scrollOffsets.scrollTopOffset;f!==p&&(l.top+=p-f);var T=c.scrollLeftOffset,v=l.scrollOffsets.scrollLeftOffset;T!==v&&(l.left+=v-T);r(d[7]).snapshots.set(s,l),(0,r(d[7]).setElementPosition)(s,l),u(s,t,!1,o)},e.handleLayoutTransition=function(n,t,o){var s;switch(t.animationName){case'LinearTransition':default:s=r(d[5]).TransitionType.LINEAR;break;case'SequencedTransition':s=r(d[5]).TransitionType.SEQUENCED;break;case'FadingTransition':s=r(d[5]).TransitionType.FADING;break;case'JumpingTransition':s=r(d[5]).TransitionType.JUMPING;break;case'CurvedTransition':s=r(d[5]).TransitionType.CURVED;break;case'EntryExitTransition':s=r(d[5]).TransitionType.ENTRY_EXIT}var l=(0,r(d[11]).TransitionGenerator)(s,o),c=l.transitionKeyframeName,f=l.dummyTransitionKeyframeName;if(t.animationName=c,s===r(d[5]).TransitionType.CURVED){var y=(0,r(d[12]).prepareCurvedTransition)(n,t,o,f);u(y.dummy,y.dummyAnimationConfig)}u(n,t)},e.maybeModifyStyleForKeyframe=function(n,t){if(!(t instanceof r(d[6]).Keyframe))return;for(var o of(n.style.animationFillMode='forwards',Object.values(t.definitions)))if('originX'in o||'originY'in o)return void(n.style.position='absolute')},e.saveSnapshot=f,e.setElementAnimation=u}),625,[614,571,531,529,524,611,522,624,575,537,610,626,631]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.TransitionGenerator=function(n,t){var o,s,f=v();switch(n){case r(d[6]).TransitionType.LINEAR:s=(0,r(d[7]).LinearTransition)(f,t);break;case r(d[6]).TransitionType.SEQUENCED:s=(0,r(d[8]).SequencedTransition)(f,t);break;case r(d[6]).TransitionType.FADING:s=(0,r(d[9]).FadingTransition)(f,t);break;case r(d[6]).TransitionType.JUMPING:s=(0,r(d[10]).JumpingTransition)(f,t);break;case r(d[6]).TransitionType.CURVED:o=v();var u=(0,r(d[11]).CurvedTransition)(f,o,t),c=u.firstKeyframeObj,T=u.secondKeyframeObj;s=c;var y=(0,r(d[4]).convertAnimationObjectToKeyframes)(T);(0,r(d[5]).insertWebAnimation)(o,y);break;case r(d[6]).TransitionType.ENTRY_EXIT:s=(0,r(d[12]).EntryExitTransition)(f,t)}var b=(0,r(d[4]).convertAnimationObjectToKeyframes)(s);return(0,r(d[5]).insertWebAnimation)(f,b),{transitionKeyframeName:f,dummyTransitionKeyframeName:o}},e.createAnimationWithInitialValues=function(n,c){var T=structuredClone(r(d[6]).AnimationsData[n].style),y=T[0],b=c.transform,l=(0,o.default)(c,f),A=u(b);if(b)if(y.transform){var p=new Map;for(var j of y.transform)for(var O of Object.entries(j)){var E=(0,s.default)(O,2),K=E[0],N=E[1];p.set(K,N)}for(var k of A)for(var C of Object.entries(k)){var D=(0,s.default)(C,2),I=D[0],W=D[1];p.set(I,W)}y.transform=Array.from(p,(function(n){var o=(0,s.default)(n,2),f=o[0],u=o[1];return(0,t.default)({},f,u)}))}else y.transform=A;T[0]=Object.assign({},T[0],l);var _=v(),R={name:_,style:T,duration:r(d[6]).AnimationsData[n].duration},F=(0,r(d[4]).convertAnimationObjectToKeyframes)(R);return(0,r(d[5]).insertWebAnimation)(_,F),_},e.createCustomKeyFrameAnimation=function(n){for(var t of Object.values(n))t.transform&&(t.transform=u(t.transform));var o={name:'',style:n,duration:-1};o.name=v();var s=(0,r(d[4]).convertAnimationObjectToKeyframes)(o);return(0,r(d[5]).insertWebAnimation)(o.name,s),o.name};var t=n(r(d[1])),o=n(r(d[2])),s=n(r(d[3])),f=["transform"];function u(n){return n.map((function(n){var t={};for(var o of Object.entries(n)){var f=(0,s.default)(o,2),u=f[0],c=f[1];(u.includes('translate')||u.includes('perspective'))&&'number'==typeof c?t[u]=`${c}px`:t[u]=c}return t}))}var c=0;function v(){return"REA"+c++}}),626,[2,197,4,44,613,610,611,627,628,629,630,631,632]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.LinearTransition=function(t,n){var s=n.translateX,l=n.translateY,c=n.scaleX,o=n.scaleY;return{name:t,style:{0:{transform:[{translateX:`${s}px`,translateY:`${l}px`,scale:`${c},${o}`}]}},duration:300}}}),627,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.SequencedTransition=function(t,n){var s=n.translateX,l=n.translateY,c=n.scaleX,o=n.scaleY,p=n.reversed;return{name:t,style:{0:{transform:[{translateX:`${s}px`,translateY:`${l}px`,scale:`${c},${o}`}]},50:{transform:[{translateX:p?`${s}px`:'0px',translateY:p?'0px':`${l}px`,scale:p?`1,${c}`:`${o},1`}]},100:{transform:[{translateX:'0px',translateY:'0px',scale:'1,1'}]}},duration:300}}}),628,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.FadingTransition=function(t,n){var s=n.translateX,l=n.translateY,c=n.scaleX,o=n.scaleY;return{name:t,style:{0:{opacity:1,transform:[{translateX:`${s}px`,translateY:`${l}px`,scale:`${c},${o}`}]},20:{opacity:0,transform:[{translateX:`${s}px`,translateY:`${l}px`,scale:`${c},${o}`}]},60:{opacity:0,transform:[{translateX:'0px',translateY:'0px',scale:"1,1"}]},100:{opacity:1,transform:[{translateX:'0px',translateY:'0px',scale:"1,1"}]}},duration:300}}}),629,[]); +__d((function(g,r,i,a,m,e,_d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.JumpingTransition=function(t,s){var n=s.translateX,l=s.translateY,c=s.scaleX,o=s.scaleY,p=Math.max(Math.abs(n),Math.abs(l))/2,u=l<=0?l-p:-l+p;return{name:t,style:{0:{transform:[{translateX:`${n}px`,translateY:`${l}px`,scale:`${c},${o}`}],easing:r(_d[0]).Easing.exp},50:{transform:[{translateX:n/2+"px",translateY:`${u}px`,scale:`${c},${o}`}]},100:{transform:[{translateX:'0px',translateY:'0px',scale:'1,1'}]}},duration:300}}}),630,[571]); +__d((function(g,r,_i,a,m,e,d){'use strict';function n(n,t,i){for(var o=0;o0?v.workletEventHandler.eventNames.forEach((function(t){u[t]=(0,r(d[4]).has)('listeners',v.workletEventHandler)?v.workletEventHandler.listeners[t]:o})):u[f]=o:(0,r(d[8]).isSharedValue)(v)?t._isFirstRender&&(u[f]=v.value):'onGestureHandlerStateChange'===f&&(0,r(d[9]).isChromeDebugger)()||(u[f]=v)};for(var f in l)v();return u}}])})()}),638,[2,6,7,18,636,526,634,639,555,528]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.WorkletEventHandler=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=t(r(d[3])),l=t(r(d[4])),o=(0,r(d[5]).shouldBeUseWeb)();function v(t,n){return function(s){n(Object.assign({},s.nativeEvent,{eventName:t}))}}var f=(0,l.default)("viewTags"),h=(0,l.default)("registrations"),c=(function(){return(0,s.default)((function t(s,l){(0,n.default)(this,t),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),this.worklet=s,this.eventNames=l,(0,u.default)(this,f)[f]=new Set,(0,u.default)(this,h)[h]=new Map}),[{key:"updateEventHandler",value:function(t,n){var s=this;this.worklet=t,this.eventNames=n,(0,u.default)(this,h)[h].forEach((function(t){t.forEach((function(t){return(0,r(d[6]).unregisterEventHandler)(t)}))})),Array.from((0,u.default)(this,f)[f]).forEach((function(t){var n=s.eventNames.map((function(n){return(0,r(d[6]).registerEventHandler)(s.worklet,n,t)}));(0,u.default)(s,h)[h].set(t,n)}))}},{key:"registerForEvents",value:function(t,n){var s=this;(0,u.default)(this,f)[f].add(t);var l=this.eventNames.map((function(n){return(0,r(d[6]).registerEventHandler)(s.worklet,n,t)}));if((0,u.default)(this,h)[h].set(t,l),0===this.eventNames.length&&n){var o=(0,r(d[6]).registerEventHandler)(this.worklet,n,t);(0,u.default)(this,h)[h].set(t,[o])}}},{key:"unregisterFromEvents",value:function(t){var n;(0,u.default)(this,f)[f].delete(t),null==(n=(0,u.default)(this,h)[h].get(t))||n.forEach((function(t){(0,r(d[6]).unregisterEventHandler)(t)})),(0,u.default)(this,h)[h].delete(t)}}])})(),E=(function(){return(0,s.default)((function t(s){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,n.default)(this,t),this.worklet=s,this.eventNames=u,this.listeners={},this.setupWebListeners()}),[{key:"setupWebListeners",value:function(){var t=this;this.listeners={},this.eventNames.forEach((function(n){t.listeners[n]=v(n,t.worklet)}))}},{key:"updateEventHandler",value:function(t,n){this.worklet=t,this.eventNames=n,this.setupWebListeners()}},{key:"registerForEvents",value:function(t,n){}},{key:"unregisterFromEvents",value:function(t){}}])})();e.WorkletEventHandler=o?E:c}),639,[2,6,7,37,38,528,551]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.maybeBuild=function(u,n,t){return'build'in u&&'function'==typeof u.build?u.build():u}}),640,[]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeEventsManager=void 0;var n=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=(0,o.default)("managedComponent"),v=(0,o.default)("componentOptions"),f=(0,o.default)("eventViewTag");e.NativeEventsManager=(function(){return(0,l.default)((function t(l,o){(0,n.default)(this,t),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:-1}),(0,u.default)(this,s)[s]=l,(0,u.default)(this,v)[v]=o,(0,u.default)(this,f)[f]=this.getEventViewTag()}),[{key:"attachEvents",value:function(){var t=this;h((0,u.default)(this,s)[s].props,(function(n,l){l.registerForEvents((0,u.default)(t,f)[f],n)}))}},{key:"detachEvents",value:function(){var t=this;h((0,u.default)(this,s)[s].props,(function(n,l){l.unregisterFromEvents((0,u.default)(t,f)[f])}))}},{key:"updateEvents",value:function(t){var n=this,l=this.getEventViewTag();if((0,u.default)(this,f)[f]!==l)return h(t,(function(t,l){l.unregisterFromEvents((0,u.default)(n,f)[f])})),(0,u.default)(this,f)[f]=l,void this.attachEvents();h(t,(function(t,l){var o=(0,u.default)(n,s)[s].props[t];o?c(o)&&o.workletEventHandler!==l&&(l.unregisterFromEvents((0,u.default)(n,f)[f]),o.workletEventHandler.registerForEvents((0,u.default)(n,f)[f])):l.unregisterFromEvents((0,u.default)(n,f)[f])})),h((0,u.default)(this,s)[s].props,(function(l,o){t[l]||o.registerForEvents((0,u.default)(n,f)[f])}))}},{key:"getEventViewTag",value:function(){var t,n=(0,u.default)(this,s)[s]._component;if(n.getScrollableNode){var l,o=n.getScrollableNode();t=null!=(l=(0,r(d[5]).findNodeHandle)(o))?l:-1}else{var f,c;t=null!=(f=(0,r(d[5]).findNodeHandle)(null!=(c=(0,u.default)(this,v)[v])&&c.setNativeProps?(0,u.default)(this,s)[s]:n))?f:-1}return t}}])})();function c(t){return(0,r(d[6]).has)('workletEventHandler',t)&&t.workletEventHandler instanceof r(d[7]).WorkletEventHandler}function h(t,n){for(var l in t){var u=t[l];c(u)&&n(l,u.workletEventHandler)}}}),641,[2,6,7,37,38,602,636,639]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromPropsRegistry=function(n){o.push(n),1===o.length&&queueMicrotask(t)};var o=[];function t(){(0,r(d[0]).runOnUI)(s)(o),o=[]}var n={code:"function removeFromPropsRegistryOnUI_reactNativeReanimated_PropsRegistryTs1(viewTags){global._removeFromPropsRegistry(viewTags);}"},s=(function(){var o=function(o){g._removeFromPropsRegistry(o)};return o.__closure={},o.__workletHash=3302653984858,o.__initData=n,o})()}),642,[548]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RNRenderer",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))}),643,[2,261]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getViewInfo=void 0;e.getViewInfo=function(o){return void 0!==o._nativeTag&&null!==o.__nativeTag?(e.getViewInfo=n,n(o)):void 0!==o.__nativeTag&&null!==o.__nativeTag?(e.getViewInfo=v,v(o)):n(o)};function n(n){var v;return{viewName:null==n||null==(v=n.viewConfig)?void 0:v.uiViewClassName,viewTag:null==n?void 0:n._nativeTag,viewConfig:null==n?void 0:n.viewConfig}}function v(n){var v;return{viewName:null==n||null==(v=n._viewConfig)?void 0:v.uiViewClassName,viewTag:null==n?void 0:n.__nativeTag,viewConfig:null==n?void 0:n._viewConfig}}}),644,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useAnimatedGestureHandler",{enumerable:!0,get:function(){return r(d[0]).useAnimatedGestureHandler}}),Object.defineProperty(e,"useAnimatedKeyboard",{enumerable:!0,get:function(){return r(d[1]).useAnimatedKeyboard}}),Object.defineProperty(e,"useAnimatedProps",{enumerable:!0,get:function(){return r(d[2]).useAnimatedProps}}),Object.defineProperty(e,"useAnimatedReaction",{enumerable:!0,get:function(){return r(d[3]).useAnimatedReaction}}),Object.defineProperty(e,"useAnimatedRef",{enumerable:!0,get:function(){return r(d[4]).useAnimatedRef}}),Object.defineProperty(e,"useAnimatedScrollHandler",{enumerable:!0,get:function(){return r(d[5]).useAnimatedScrollHandler}}),Object.defineProperty(e,"useAnimatedSensor",{enumerable:!0,get:function(){return r(d[6]).useAnimatedSensor}}),Object.defineProperty(e,"useAnimatedStyle",{enumerable:!0,get:function(){return r(d[7]).useAnimatedStyle}}),Object.defineProperty(e,"useComposedEventHandler",{enumerable:!0,get:function(){return r(d[8]).useComposedEventHandler}}),Object.defineProperty(e,"useDerivedValue",{enumerable:!0,get:function(){return r(d[9]).useDerivedValue}}),Object.defineProperty(e,"useEvent",{enumerable:!0,get:function(){return r(d[10]).useEvent}}),Object.defineProperty(e,"useFrameCallback",{enumerable:!0,get:function(){return r(d[11]).useFrameCallback}}),Object.defineProperty(e,"useHandler",{enumerable:!0,get:function(){return r(d[12]).useHandler}}),Object.defineProperty(e,"useReducedMotion",{enumerable:!0,get:function(){return r(d[13]).useReducedMotion}}),Object.defineProperty(e,"useScrollViewOffset",{enumerable:!0,get:function(){return r(d[14]).useScrollViewOffset}}),Object.defineProperty(e,"useSharedValue",{enumerable:!0,get:function(){return r(d[15]).useSharedValue}}),Object.defineProperty(e,"useWorkletCallback",{enumerable:!0,get:function(){return r(d[16]).useWorkletCallback}})}),645,[646,650,651,653,654,655,656,652,657,658,649,659,647,662,663,600,664]); +__d((function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.useAnimatedGestureHandler=function(n,E){var s=(0,r(d[0]).useHandler)(n,E),o=s.context,T=s.doDependenciesDiffer,l=s.useWeb,v=(A=function(t){var E=l?t.nativeEvent:t;E.state===e.BEGAN&&n.onStart&&n.onStart(E,o),E.state===e.ACTIVE&&n.onActive&&n.onActive(E,o),E.oldState===e.ACTIVE&&E.state===e.END&&n.onEnd&&n.onEnd(E,o),E.oldState===e.BEGAN&&E.state===e.FAILED&&n.onFail&&n.onFail(E,o),E.oldState===e.ACTIVE&&E.state===e.CANCELLED&&n.onCancel&&n.onCancel(E,o),E.oldState!==e.BEGAN&&E.oldState!==e.ACTIVE||E.state===e.BEGAN||E.state===e.ACTIVE||!n.onFinish||n.onFinish(E,o,E.state===e.CANCELLED||E.state===e.FAILED)},A.__closure={useWeb:l,EVENT_TYPE:e,handlers:n,context:o},A.__workletHash=5391498155146,A.__initData=t,A);var A;if(l)return v;return(0,r(d[1]).useEvent)(v,['onGestureHandlerStateChange','onGestureHandlerEvent'],T)};var e={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5},t={code:"function reactNativeReanimated_useAnimatedGestureHandlerTs1(e){const{useWeb,EVENT_TYPE,handlers,context}=this.__closure;const event=useWeb?e.nativeEvent:e;if(event.state===EVENT_TYPE.BEGAN&&handlers.onStart){handlers.onStart(event,context);}if(event.state===EVENT_TYPE.ACTIVE&&handlers.onActive){handlers.onActive(event,context);}if(event.oldState===EVENT_TYPE.ACTIVE&&event.state===EVENT_TYPE.END&&handlers.onEnd){handlers.onEnd(event,context);}if(event.oldState===EVENT_TYPE.BEGAN&&event.state===EVENT_TYPE.FAILED&&handlers.onFail){handlers.onFail(event,context);}if(event.oldState===EVENT_TYPE.ACTIVE&&event.state===EVENT_TYPE.CANCELLED&&handlers.onCancel){handlers.onCancel(event,context);}if((event.oldState===EVENT_TYPE.BEGAN||event.oldState===EVENT_TYPE.ACTIVE)&&event.state!==EVENT_TYPE.BEGAN&&event.state!==EVENT_TYPE.ACTIVE&&handlers.onFinish){handlers.onFinish(event,context,event.state===EVENT_TYPE.CANCELLED||event.state===EVENT_TYPE.FAILED);}}"}}),646,[647,649]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useHandler=function(t,u){var c=(0,n.useRef)(null);if(null===c.current){var s=(0,r(d[1]).makeShareable)({});c.current={context:s,savedDependencies:[]}}(0,n.useEffect)((function(){return function(){c.current=null}}),[]);var l=c.current,f=l.context,o=l.savedDependencies;u=(0,r(d[2]).buildDependencies)(u,t);var v=!(0,r(d[2]).areDependenciesEqual)(u,o);c.current.savedDependencies=u;var p=(0,r(d[3]).isWeb)()||(0,r(d[3]).isJest)();return{context:f,doDependenciesDiffer:v,useWeb:p}};var n=r(d[0])}),647,[16,535,648,528]); +__d((function(g,r,_i,_a,m,e,d){'use strict';function t(t){return Object.values(t).reduce((function(t,n){return t+n.__workletHash.toString()}),'')}Object.defineProperty(e,"__esModule",{value:!0}),e.areDependenciesEqual=function(t,n){var a='function'==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||Number.isNaN(t)&&Number.isNaN(n)};return(function(t,n){if(!t||!n||n.length!==t.length)return!1;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=(0,n.useRef)(null);if(null===v.current){var o=new(r(d[1]).WorkletEventHandler)(t,l);v.current={workletEventHandler:o}}else if(u){var c=v.current.workletEventHandler;c.updateEventHandler(t,l),v.current={workletEventHandler:c}}return v.current};var n=r(d[0])}),649,[16,639]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedKeyboard=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isStatusBarTranslucentAndroid:!1,isNavigationBarTranslucentAndroid:!1},o=(0,t.useRef)(null),c=(0,t.useRef)(-1),v=(0,t.useRef)(!1);if(null===o.current){var l={state:(0,r(d[1]).makeMutable)(r(d[2]).KeyboardState.UNKNOWN),height:(0,r(d[1]).makeMutable)(0)};c.current=(0,r(d[1]).subscribeForKeyboardEvents)(((_=function(t,n){l.state.value=t,l.height.value=n}).__closure={keyboardEventData:l},_.__workletHash=815568593051,_.__initData=n,_),s),o.current=l,v.current=!0}var _;return(0,t.useEffect)((function(){if(!1===v.current&&null!==o.current){var t=o.current;c.current=(0,r(d[1]).subscribeForKeyboardEvents)(((n=function(n,u){t.state.value=n,t.height.value=u}).__closure={_keyboardEventData:t},n.__workletHash=0xb4853678e07,n.__initData=u,n),s),v.current=!0}var n;return function(){(0,r(d[1]).unsubscribeFromKeyboardEvents)(c.current),v.current=!1}}),[]),o.current};var t=r(d[0]),n={code:"function reactNativeReanimated_useAnimatedKeyboardTs1(state,height){const{keyboardEventData}=this.__closure;keyboardEventData.state.value=state;keyboardEventData.height.value=height;}"},u={code:"function reactNativeReanimated_useAnimatedKeyboardTs2(state,height){const{_keyboardEventData}=this.__closure;_keyboardEventData.state.value=state;_keyboardEventData.height.value=height;}"}}),650,[16,551,524]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedProps=void 0;e.useAnimatedProps=(0,r(d[1]).shouldBeUseWeb)()?function(t,s,u){return(0,r(d[0]).useAnimatedStyle)(t,s,u,!0)}:r(d[0]).useAnimatedStyle}),651,[652,528]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.useAnimatedStyle=function(e,i,n){var s,r,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=(0,t.useRef)(),c=Object.values(null!=(s=e.__closure)?s:{});o&&!c.length&&null!=(r=i)&&r.length&&(c=i);var p=n?Array.isArray(n)?n:[n]:[],f=n?(0,_r(d[5]).buildWorkletsHash)(p):null,v=(0,_r(d[7]).useSharedValue)(!0),V=(0,t.useRef)({});i?i.push(e.__workletHash):i=[].concat((0,a.default)(c),[e.__workletHash]);if(f&&i.push(f),!u.current){var b=(0,_r(d[8]).initialUpdaterRun)(e);u.current={initial:{value:b,updater:e},remoteState:(0,_r(d[9]).makeShareable)({last:b,animations:{},isAnimationCancelled:!1,isAnimationRunning:!1}),viewDescriptors:(0,_r(d[10]).makeViewDescriptorsSet)()}}var S=u.current,j=S.initial,R=S.remoteState,T=S.viewDescriptors,P=T.shareableViewDescriptors;i.push(P),(0,t.useEffect)((function(){var a,t,i,s,r=e;n&&((t=function(){var a=e();return p.forEach((function(e){e(a)})),a}).__closure={updater:e,adaptersArray:p},t.__workletHash=9173457873940,t.__initData=h,r=t),(0,_r(d[4]).isJest)()?((s=function(){_(P,e,R,v,V,p)}).__closure={jestStyleUpdater:_,shareableViewDescriptors:P,updater:e,remoteState:R,areAnimationsActive:v,jestAnimatedStyle:V,adaptersArray:p},s.__workletHash=0x9cf5d388125,s.__initData=w,a=s):((i=function(){A(P,r,R,v,l)}).__closure={styleUpdater:A,shareableViewDescriptors:P,updaterFn:r,remoteState:R,areAnimationsActive:v,isAnimatedProps:l},i.__workletHash=245709520516,i.__initData=k,a=i);var o=(0,_r(d[9]).startMapper)(a,c);return function(){(0,_r(d[9]).stopMapper)(o)}}),i),(0,t.useEffect)((function(){return v.value=!0,function(){v.value=!1}}),[v]),y(j.value);var N=(0,t.useRef)(null);N.current||(N.current=(0,_r(d[4]).isJest)()?{viewDescriptors:T,initial:j,jestAnimatedStyle:V}:{viewDescriptors:T,initial:j});return N.current};var a=e(_r(d[1])),t=_r(d[2]),i=(function(e,a){if(!a&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(a);if(t&&t.has(e))return t.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var o=s?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(i,r,o):i[r]=e[r]}return i.default=e,t&&t.set(e,i),i})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var a=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:a})(e)}var s,r,o=(0,_r(d[4]).shouldBeUseWeb)(),l={code:"function prepareAnimation_reactNativeReanimated_useAnimatedStyleTs1(frameTimestamp,animatedProp,lastAnimation,lastValue){const prepareAnimation_reactNativeReanimated_useAnimatedStyleTs1=this._recur;if(Array.isArray(animatedProp)){animatedProp.forEach(function(prop,index){prepareAnimation_reactNativeReanimated_useAnimatedStyleTs1(frameTimestamp,prop,lastAnimation&&lastAnimation[index],lastValue&&lastValue[index]);});}if(typeof animatedProp==='object'&&animatedProp.onFrame){const animation=animatedProp;let value=animation.current;if(lastValue!==undefined&&lastValue!==null){if(typeof lastValue==='object'){if(lastValue.value!==undefined){value=lastValue.value;}else if(lastValue.onFrame!==undefined){if((lastAnimation===null||lastAnimation===void 0?void 0:lastAnimation.current)!==undefined){value=lastAnimation.current;}else if((lastValue===null||lastValue===void 0?void 0:lastValue.current)!==undefined){value=lastValue.current;}}}else{value=lastValue;}}animation.callStart=function(timestamp){animation.onStart(animation,value,timestamp,lastAnimation);};animation.callStart(frameTimestamp);animation.callStart=null;}else if(typeof animatedProp==='object'){Object.keys(animatedProp).forEach(function(key){return prepareAnimation_reactNativeReanimated_useAnimatedStyleTs1(frameTimestamp,animatedProp[key],lastAnimation&&lastAnimation[key],lastValue&&lastValue[key]);});}}"},u=((s=function(e,a,t,i){if(Array.isArray(a)&&a.forEach((function(a,n){s(e,a,t&&t[n],i&&i[n])})),'object'==typeof a&&a.onFrame){var n=a,r=n.current;null!=i&&('object'==typeof i?void 0!==i.value?r=i.value:void 0!==i.onFrame&&(void 0!==(null==t?void 0:t.current)?r=t.current:void 0!==(null==i?void 0:i.current)&&(r=i.current)):r=i),n.callStart=function(e){n.onStart(n,r,e,t)},n.callStart(e),n.callStart=null}else'object'==typeof a&&Object.keys(a).forEach((function(n){return s(e,a[n],t&&t[n],i&&i[n])}))}).__closure={},s.__workletHash=6358524786384,s.__initData=l,s),c={code:"function runAnimations_reactNativeReanimated_useAnimatedStyleTs2(animation,timestamp,key,result,animationsActive){const runAnimations_reactNativeReanimated_useAnimatedStyleTs2=this._recur;if(!animationsActive.value){return true;}if(Array.isArray(animation)){result[key]=[];let allFinished=true;animation.forEach(function(entry,index){if(!runAnimations_reactNativeReanimated_useAnimatedStyleTs2(entry,timestamp,index,result[key],animationsActive)){allFinished=false;}});return allFinished;}else if(typeof animation==='object'&&animation.onFrame){let finished=true;if(!animation.finished){if(animation.callStart){animation.callStart(timestamp);animation.callStart=null;}finished=animation.onFrame(animation,timestamp);animation.timestamp=timestamp;if(finished){animation.finished=true;animation.callback&&animation.callback(true);}}result[key]=animation.current;return finished;}else if(typeof animation==='object'){result[key]={};let allFinished=true;Object.keys(animation).forEach(function(k){if(!runAnimations_reactNativeReanimated_useAnimatedStyleTs2(animation[k],timestamp,k,result[key],animationsActive)){allFinished=false;}});return allFinished;}else{result[key]=animation;return true;}}"},p=((r=function(e,a,t,i,n){if(!n.value)return!0;if(Array.isArray(e)){i[t]=[];var s=!0;return e.forEach((function(e,o){r(e,a,o,i[t],n)||(s=!1)})),s}if('object'==typeof e&&e.onFrame){var o=!0;return e.finished||(e.callStart&&(e.callStart(a),e.callStart=null),o=e.onFrame(e,a),e.timestamp=a,o&&(e.finished=!0,e.callback&&e.callback(!0))),i[t]=e.current,o}if('object'==typeof e){i[t]={};var l=!0;return Object.keys(e).forEach((function(s){r(e[s],a,s,i[t],n)||(l=!1)})),l}return i[t]=e,!0}).__closure={},r.__workletHash=0xd19d25eec44,r.__initData=c,r),f={code:"function styleUpdater_reactNativeReanimated_useAnimatedStyleTs3(viewDescriptors,updater,state,animationsActive,isAnimatedProps=false){const{isAnimated,prepareAnimation,runAnimations,updateProps,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;const nonAnimatedNewValues={};let hasAnimations=false;let frameTimestamp;let hasNonAnimatedValues=false;for(const key in newValues){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}else{hasNonAnimatedValues=true;nonAnimatedNewValues[key]=value;delete animations[key];}}if(hasAnimations){const frame=function(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;for(const propName in animations){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){last[propName]=updates[propName];delete animations[propName];}else{allFinished=false;}}if(updates){updateProps(viewDescriptors,updates);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}};state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}if(hasNonAnimatedValues){updateProps(viewDescriptors,nonAnimatedNewValues);}}else{state.isAnimationCancelled=true;state.animations=[];if(!shallowEqual(oldValues,newValues)){updateProps(viewDescriptors,newValues,isAnimatedProps);}}state.last=newValues;}"},A=(function(){var e=function(e,a,t,n){var s,r,o,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=null!=(s=t.animations)?s:{},f=null!=(r=a())?r:{},A=t.last,v={},_=!1,y=!1;for(var h in f){var w=f[h];(0,_r(d[5]).isAnimated)(w)?(o=g.__frameTimestamp||g._getAnimationTimestamp(),u(o,w,c[h],A[h]),c[h]=w,_=!0):(y=!0,v[h]=w,delete c[h])}if(_){var k=function(a){var s=t.animations,r=t.last;if(t.isAnimationCancelled)t.isAnimationRunning=!1;else{var o={},l=!0;for(var u in s){p(s[u],a,u,o,n)?(r[u]=o[u],delete s[u]):l=!1}(0,i.default)(e,o),l?t.isAnimationRunning=!1:requestAnimationFrame(k)}};t.animations=c,t.isAnimationRunning||(t.isAnimationCancelled=!1,t.isAnimationRunning=!0,k(o)),y&&(0,i.default)(e,v)}else t.isAnimationCancelled=!0,t.animations=[],(0,_r(d[5]).shallowEqual)(A,f)||(0,i.default)(e,f,l);t.last=f};return e.__closure={isAnimated:_r(d[5]).isAnimated,prepareAnimation:u,runAnimations:p,updateProps:i.default,shallowEqual:_r(d[5]).shallowEqual},e.__workletHash=6386132162744,e.__initData=f,e})(),v={code:"function jestStyleUpdater_reactNativeReanimated_useAnimatedStyleTs4(viewDescriptors,updater,state,animationsActive,animatedStyle,adapters){const{isAnimated,prepareAnimation,runAnimations,updatePropsJestWrapper,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;let hasAnimations=false;let frameTimestamp;Object.keys(animations).forEach(function(key){const value=newValues[key];if(!isAnimated(value)){delete animations[key];}});Object.keys(newValues).forEach(function(key){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}});function frame(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;Object.keys(animations).forEach(function(propName){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){last[propName]=updates[propName];delete animations[propName];}else{allFinished=false;}});if(Object.keys(updates).length){updatePropsJestWrapper(viewDescriptors,updates,animatedStyle,adapters);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}}if(hasAnimations){state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}}else{state.isAnimationCancelled=true;state.animations=[];}state.last=newValues;if(!shallowEqual(oldValues,newValues)){updatePropsJestWrapper(viewDescriptors,newValues,animatedStyle,adapters);}}"},_=(function(){var e=function(e,a,t,n,s,r){var o,l,c,f=null!=(o=t.animations)?o:{},A=null!=(l=a())?l:{},v=t.last,_=!1;Object.keys(f).forEach((function(e){var a=A[e];(0,_r(d[5]).isAnimated)(a)||delete f[e]})),Object.keys(A).forEach((function(e){var a=A[e];(0,_r(d[5]).isAnimated)(a)&&(c=g.__frameTimestamp||g._getAnimationTimestamp(),u(c,a,f[e],v[e]),f[e]=a,_=!0)})),_?(t.animations=f,t.isAnimationRunning||(t.isAnimationCancelled=!1,t.isAnimationRunning=!0,(function a(o){var l=t.animations,u=t.last;if(t.isAnimationCancelled)t.isAnimationRunning=!1;else{var c={},f=!0;Object.keys(l).forEach((function(e){p(l[e],o,e,c,n)?(u[e]=c[e],delete l[e]):f=!1})),Object.keys(c).length&&(0,i.updatePropsJestWrapper)(e,c,s,r),f?t.isAnimationRunning=!1:requestAnimationFrame(a)}})(c))):(t.isAnimationCancelled=!0,t.animations=[]),t.last=A,(0,_r(d[5]).shallowEqual)(v,A)||(0,i.updatePropsJestWrapper)(e,A,s,r)};return e.__closure={isAnimated:_r(d[5]).isAnimated,prepareAnimation:u,runAnimations:p,updatePropsJestWrapper:i.updatePropsJestWrapper,shallowEqual:_r(d[5]).shallowEqual},e.__workletHash=0xafc7f913941,e.__initData=v,e})();function y(e,a){if(Array.isArray(e))for(var t of e)y(t,a);else if('object'==typeof e&&null!==e&&void 0===e.value)for(var i of Object.keys(e))y(e[i],i);else if(void 0!==a&&'object'==typeof e&&null!==e&&void 0!==e.value)throw new(_r(d[6]).ReanimatedError)(`Invalid value passed to \`${a}\`, maybe you forgot to use \`.value\`?`)}var h={code:"function reactNativeReanimated_useAnimatedStyleTs5(){const{updater,adaptersArray}=this.__closure;const newValues=updater();adaptersArray.forEach(function(adapter){adapter(newValues);});return newValues;}"},w={code:"function reactNativeReanimated_useAnimatedStyleTs6(){const{jestStyleUpdater,shareableViewDescriptors,updater,remoteState,areAnimationsActive,jestAnimatedStyle,adaptersArray}=this.__closure;jestStyleUpdater(shareableViewDescriptors,updater,remoteState,areAnimationsActive,jestAnimatedStyle,adaptersArray);}"},k={code:"function reactNativeReanimated_useAnimatedStyleTs7(){const{styleUpdater,shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps}=this.__closure;styleUpdater(shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps);}"}}),652,[2,22,16,635,528,648,525,600,526,551,637]); +__d((function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedReaction=function(t,s,o){var c,_,p,v,f=(0,r(d[3]).useSharedValue)(null),h=Object.values(null!=(c=t.__closure)?c:{});(0,r(d[4]).shouldBeUseWeb)()&&!h.length&&null!=(_=o)&&_.length&&(h=o);void 0===o?o=[].concat((0,u.default)(Object.values(null!=(p=t.__closure)?p:{})),(0,u.default)(Object.values(null!=(v=s.__closure)?v:{})),[t.__workletHash,s.__workletHash]):o.push(t.__workletHash,s.__workletHash);(0,l.useEffect)((function(){var u,l=((u=function(){var u=t();s(u,f.value),f.value=u}).__closure={prepare:t,react:s,previous:f},u.__workletHash=0xc8b55d7269f,u.__initData=n,u),o=(0,r(d[5]).startMapper)(l,h);return function(){(0,r(d[5]).stopMapper)(o)}}),o)};var u=t(r(d[1])),l=r(d[2]),n={code:"function reactNativeReanimated_useAnimatedReactionTs1(){const{prepare,react,previous}=this.__closure;const input=prepare();react(input,previous.value);previous.value=input;}"}}),653,[2,22,16,600,528,551]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedRef=function(){var o=(0,r(d[3]).useSharedValue)(-1),f=(0,r(d[3]).useSharedValue)(null),s=(0,n.useRef)();if(!s.current){var v=function(n){if(n){var c,s=(0,r(d[2]).isFabric)()?r(d[4]).getShadowNodeWrapperFromRef:r(d[5]).findNodeHandle,_=function(){return u?l(n):s(l(n))};if(o.value=_(),v.getTag=(0,r(d[2]).isFabric)()?function(){return(0,r(d[5]).findNodeHandle)(l(n))}:_,v.current=n,'ios'===t.Platform.OS&&!(0,r(d[2]).isFabric)())f.value=(null==n||null==(c=n.viewConfig)?void 0:c.uiViewClassName)||'RCTView'}return o.value};v.current=null;var _=(0,r(d[6]).makeShareableCloneRecursive)({__init:(N=function(){var n=function(){return o.value};return n.viewName=f,n},N.__closure={tag:o,viewName:f},N.__workletHash=6700931435929,N.__initData=c,N)});r(d[7]).shareableMappingCache.set(v,_),s.current=v}var N;return s.current};var n=r(d[0]),t=r(d[1]),u=(0,r(d[2]).isWeb)();function l(n){return(0,r(d[2]).isFabric)()&&n.getNativeScrollRef?n.getNativeScrollRef():!(0,r(d[2]).isFabric)()&&n.getScrollableNode?n.getScrollableNode():n}var c={code:"function reactNativeReanimated_useAnimatedRefTs1(){const{tag,viewName}=this.__closure;const f=function(){return tag.value;};f.viewName=viewName;return f;}"}}),654,[16,18,528,600,546,602,535,547]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedScrollHandler=function(o,t){var l='function'==typeof o?{onScroll:o}:o,c=(0,r(d[0]).useHandler)(l,t),s=c.context,u=c.doDependenciesDiffer,v=['onScroll'];void 0!==l.onBeginDrag&&v.push('onScrollBeginDrag');void 0!==l.onEndDrag&&v.push('onScrollEndDrag');void 0!==l.onMomentumBegin&&v.push('onMomentumScrollBegin');void 0!==l.onMomentumEnd&&v.push('onMomentumScrollEnd');return(0,r(d[1]).useEvent)((S=function(n){var o=l.onScroll,t=l.onBeginDrag,c=l.onEndDrag,u=l.onMomentumBegin,v=l.onMomentumEnd;o&&n.eventName.endsWith('onScroll')?o(n,s):t&&n.eventName.endsWith('onScrollBeginDrag')?t(n,s):c&&n.eventName.endsWith('onScrollEndDrag')?c(n,s):u&&n.eventName.endsWith('onMomentumScrollBegin')?u(n,s):v&&n.eventName.endsWith('onMomentumScrollEnd')&&v(n,s)},S.__closure={scrollHandlers:l,context:s},S.__workletHash=8578554612815,S.__initData=n,S),v,u);var S};var n={code:"function reactNativeReanimated_useAnimatedScrollHandlerTs1(event){const{scrollHandlers,context}=this.__closure;const{onScroll:onScroll,onBeginDrag:onBeginDrag,onEndDrag:onEndDrag,onMomentumBegin:onMomentumBegin,onMomentumEnd:onMomentumEnd}=scrollHandlers;if(onScroll&&event.eventName.endsWith('onScroll')){onScroll(event,context);}else if(onBeginDrag&&event.eventName.endsWith('onScrollBeginDrag')){onBeginDrag(event,context);}else if(onEndDrag&&event.eventName.endsWith('onScrollEndDrag')){onEndDrag(event,context);}else if(onMomentumBegin&&event.eventName.endsWith('onMomentumScrollBegin')){onMomentumBegin(event,context);}else if(onMomentumEnd&&event.eventName.endsWith('onMomentumScrollEnd')){onMomentumEnd(event,context);}}"}}),655,[647,649]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedSensor=function(n,o){var c,u,O,T=(0,t.useRef)(o);(null==(c=T.current)?void 0:c.adjustToInterfaceOrientation)===(null==o?void 0:o.adjustToInterfaceOrientation)&&(null==(u=T.current)?void 0:u.interval)===(null==o?void 0:o.interval)&&(null==(O=T.current)?void 0:O.iosReferenceFrame)===(null==o?void 0:o.iosReferenceFrame)||(T.current=Object.assign({},o));var _=(0,t.useMemo)((function(){return Object.assign({interval:'auto',adjustToInterfaceOrientation:!0,iosReferenceFrame:r(d[1]).IOSReferenceFrame.Auto},T.current)}),[T.current]),I=(0,t.useRef)({sensor:(0,r(d[2]).initializeSensor)(n,_),unregister:function(){},isAvailable:!1,config:_});return(0,t.useEffect)((function(){I.current={sensor:(0,r(d[2]).initializeSensor)(n,_),unregister:function(){},isAvailable:!1,config:_};var t,o=I.current.sensor,c=I.current.config.adjustToInterfaceOrientation,u=(0,r(d[2]).registerSensor)(n,_,((t=function(t){c&&(t=n===r(d[1]).SensorType.ROTATION?s(t):l(t)),o.value=t,(0,r(d[3]).callMicrotasks)()}).__closure={adjustToInterfaceOrientation:c,sensorType:n,SensorType:r(d[1]).SensorType,adjustRotationToInterfaceOrientation:s,adjustVectorToInterfaceOrientation:l,sensorData:o,callMicrotasks:r(d[3]).callMicrotasks},t.__workletHash=2154297770743,t.__initData=f,t));return-1!==u?(I.current.unregister=function(){return(0,r(d[2]).unregisterSensor)(u)},I.current.isAvailable=!0):(I.current.unregister=function(){},I.current.isAvailable=!1),function(){I.current.unregister()}}),[n,_]),I.current};var t=r(d[0]),n={code:"function eulerToQuaternion_reactNativeReanimated_useAnimatedSensorTs1(pitch,roll,yaw){const c1=Math.cos(pitch/2);const s1=Math.sin(pitch/2);const c2=Math.cos(roll/2);const s2=Math.sin(roll/2);const c3=Math.cos(yaw/2);const s3=Math.sin(yaw/2);return[s1*c2*c3-c1*s2*s3,c1*s2*c3+s1*c2*s3,c1*c2*s3+s1*s2*c3,c1*c2*c3-s1*s2*s3];}"},o=(function(){var t=function(t,n,o){var c=Math.cos(t/2),s=Math.sin(t/2),u=Math.cos(n/2),l=Math.sin(n/2),f=Math.cos(o/2),O=Math.sin(o/2);return[s*u*f-c*l*O,c*l*f+s*u*O,c*u*O+s*l*f,c*u*f-s*l*O]};return t.__closure={},t.__workletHash=763515177202,t.__initData=n,t})(),c={code:"function adjustRotationToInterfaceOrientation_reactNativeReanimated_useAnimatedSensorTs2(data){const{InterfaceOrientation,eulerToQuaternion}=this.__closure;const{interfaceOrientation:interfaceOrientation,pitch:pitch,roll:roll,yaw:yaw}=data;if(interfaceOrientation===InterfaceOrientation.ROTATION_90){data.pitch=roll;data.roll=-pitch;data.yaw=yaw-Math.PI/2;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_270){data.pitch=-roll;data.roll=pitch;data.yaw=yaw+Math.PI/2;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_180){data.pitch*=-1;data.roll*=-1;data.yaw*=-1;}const q=eulerToQuaternion(data.pitch,data.roll,data.yaw);data.qx=q[0];data.qy=q[1];data.qz=q[2];data.qw=q[3];return data;}"},s=(function(){var t=function(t){var n=t.interfaceOrientation,c=t.pitch,s=t.roll,u=t.yaw;n===r(d[1]).InterfaceOrientation.ROTATION_90?(t.pitch=s,t.roll=-c,t.yaw=u-Math.PI/2):n===r(d[1]).InterfaceOrientation.ROTATION_270?(t.pitch=-s,t.roll=c,t.yaw=u+Math.PI/2):n===r(d[1]).InterfaceOrientation.ROTATION_180&&(t.pitch*=-1,t.roll*=-1,t.yaw*=-1);var l=o(t.pitch,t.roll,t.yaw);return t.qx=l[0],t.qy=l[1],t.qz=l[2],t.qw=l[3],t};return t.__closure={InterfaceOrientation:r(d[1]).InterfaceOrientation,eulerToQuaternion:o},t.__workletHash=0xfad4cb96b23,t.__initData=c,t})(),u={code:"function adjustVectorToInterfaceOrientation_reactNativeReanimated_useAnimatedSensorTs3(data){const{InterfaceOrientation}=this.__closure;const{interfaceOrientation:interfaceOrientation,x:x,y:y}=data;if(interfaceOrientation===InterfaceOrientation.ROTATION_90){data.x=-y;data.y=x;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_270){data.x=y;data.y=-x;}else if(interfaceOrientation===InterfaceOrientation.ROTATION_180){data.x*=-1;data.y*=-1;}return data;}"},l=(function(){var t=function(t){var n=t.interfaceOrientation,o=t.x,c=t.y;return n===r(d[1]).InterfaceOrientation.ROTATION_90?(t.x=-c,t.y=o):n===r(d[1]).InterfaceOrientation.ROTATION_270?(t.x=c,t.y=-o):n===r(d[1]).InterfaceOrientation.ROTATION_180&&(t.x*=-1,t.y*=-1),t};return t.__closure={InterfaceOrientation:r(d[1]).InterfaceOrientation},t.__workletHash=0xf16d1362f3d,t.__initData=u,t})(),f={code:"function reactNativeReanimated_useAnimatedSensorTs4(data){const{adjustToInterfaceOrientation,sensorType,SensorType,adjustRotationToInterfaceOrientation,adjustVectorToInterfaceOrientation,sensorData,callMicrotasks}=this.__closure;if(adjustToInterfaceOrientation){if(sensorType===SensorType.ROTATION){data=adjustRotationToInterfaceOrientation(data);}else{data=adjustVectorToInterfaceOrientation(data);}}sensorData.value=data;callMicrotasks();}"}}),656,[16,524,551,548]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useComposedEventHandler=function(n){var o={},l=new Set,u={};n.filter((function(t){return null!==t})).forEach((function(t){var n=t.workletEventHandler;n instanceof r(d[0]).WorkletEventHandler&&n.eventNames.forEach((function(t){l.add(t),u[t]?u[t].push(n.worklet):u[t]=[n.worklet];var s=t+`${u[t].length}`;o[s]=n.worklet}))}));var s=(0,r(d[1]).useHandler)(o).doDependenciesDiffer;return(0,r(d[2]).useEvent)((c=function(t){u[t.eventName]&&u[t.eventName].forEach((function(n){return n(t)}))},c.__closure={workletsMap:u},c.__workletHash=5537037102218,c.__initData=t,c),Array.from(l),s);var c};var t={code:"function reactNativeReanimated_useComposedEventHandlerTs1(event){const{workletsMap}=this.__closure;if(workletsMap[event.eventName]){workletsMap[event.eventName].forEach(function(worklet){return worklet(event);});}}"}}),657,[639,647,649]); +__d((function(g,r,i,a,m,e,d){'use strict';var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useDerivedValue=function(u,s){var c,o,_=(0,n.useRef)(null),f=Object.values(null!=(c=u.__closure)?c:{});(0,r(d[3]).shouldBeUseWeb)()&&!f.length&&null!=(o=s)&&o.length&&(f=s);void 0===s?s=[].concat((0,t.default)(f),[u.__workletHash]):s.push(u.__workletHash);null===_.current&&(_.current=(0,r(d[4]).makeMutable)((0,r(d[5]).initialUpdaterRun)(u)));var v=_.current;return(0,n.useEffect)((function(){var t,n=((t=function(){v.value=u()}).__closure={sharedValue:v,updater:u},t.__workletHash=5180707846420,t.__initData=l,t),s=(0,r(d[4]).startMapper)(n,f,[v]);return function(){(0,r(d[4]).stopMapper)(s)}}),s),(0,n.useEffect)((function(){return function(){_.current=null}}),[]),v};var t=u(r(d[1])),n=r(d[2]),l={code:"function reactNativeReanimated_useDerivedValueTs1(){const{sharedValue,updater}=this.__closure;sharedValue.value=updater();}"}}),658,[2,22,16,528,551,526]); +__d((function(g,r,i,a,m,e,d){'use strict';var c=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useFrameCallback=function(c){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],u=(0,t.useRef)({setActive:function(c){n.manageStateFrameCallback(u.current.callbackId,c),u.current.isActive=c},isActive:l,callbackId:-1});return(0,t.useEffect)((function(){u.current.callbackId=n.registerFrameCallback(c);var t=u.current;return u.current.setActive(u.current.isActive),function(){n.unregisterFrameCallback(t.callbackId),t.callbackId=-1}}),[c,l]),u.current};var t=r(d[1]),n=new(c(r(d[2])).default)}),659,[2,16,660]); +__d((function(g,r,i,a,m,e,d){'use strict';var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(r(d[1])),c=l(r(d[2])),n={code:"function reactNativeReanimated_FrameCallbackRegistryJSTs1(){const{callback,callbackId}=this.__closure;global._frameCallbackRegistry.registerFrameCallback(callback,callbackId);}"},s={code:"function reactNativeReanimated_FrameCallbackRegistryJSTs2(){const{callbackId}=this.__closure;global._frameCallbackRegistry.unregisterFrameCallback(callbackId);}"},k={code:"function reactNativeReanimated_FrameCallbackRegistryJSTs3(){const{callbackId,state}=this.__closure;global._frameCallbackRegistry.manageStateFrameCallback(callbackId,state);}"};e.default=(function(){return(0,c.default)((function l(){(0,t.default)(this,l),this.nextCallbackId=0,(0,r(d[3]).prepareUIRegistry)()}),[{key:"registerFrameCallback",value:function(l){if(!l)return-1;var t,c=this.nextCallbackId;return this.nextCallbackId++,(0,r(d[4]).runOnUI)(((t=function(){g._frameCallbackRegistry.registerFrameCallback(l,c)}).__closure={callback:l,callbackId:c},t.__workletHash=3270450948245,t.__initData=n,t))(),c}},{key:"unregisterFrameCallback",value:function(l){var t;(0,r(d[4]).runOnUI)(((t=function(){g._frameCallbackRegistry.unregisterFrameCallback(l)}).__closure={callbackId:l},t.__workletHash=6883833323181,t.__initData=s,t))()}},{key:"manageStateFrameCallback",value:function(l,t){var c;(0,r(d[4]).runOnUI)(((c=function(){g._frameCallbackRegistry.manageStateFrameCallback(l,t)}).__closure={callbackId:l,state:t},c.__workletHash=2952660689672,c.__initData=k,c))()}}])})()}),660,[2,6,7,661,551]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.prepareUIRegistry=void 0;var t,l={code:"function reactNativeReanimated_FrameCallbackRegistryUITs1(){const frameCallbackRegistry={frameCallbackRegistry:new Map(),activeFrameCallbacks:new Set(),previousFrameTimestamp:null,nextCallId:0,runCallbacks:function(callId){var _this=this;const loop=function(timestamp){if(callId!==_this.nextCallId){return;}if(_this.previousFrameTimestamp===null){_this.previousFrameTimestamp=timestamp;}const delta=timestamp-_this.previousFrameTimestamp;_this.activeFrameCallbacks.forEach(function(callbackId){const callbackDetails=_this.frameCallbackRegistry.get(callbackId);const{startTime:startTime}=callbackDetails;if(startTime===null){callbackDetails.startTime=timestamp;callbackDetails.callback({timestamp:timestamp,timeSincePreviousFrame:null,timeSinceFirstFrame:0});}else{callbackDetails.callback({timestamp:timestamp,timeSincePreviousFrame:delta,timeSinceFirstFrame:timestamp-startTime});}});if(_this.activeFrameCallbacks.size>0){_this.previousFrameTimestamp=timestamp;requestAnimationFrame(loop);}else{_this.previousFrameTimestamp=null;}};if(this.activeFrameCallbacks.size===1&&callId===this.nextCallId){requestAnimationFrame(loop);}},registerFrameCallback:function(callback,callbackId){this.frameCallbackRegistry.set(callbackId,{callback:callback,startTime:null});},unregisterFrameCallback:function(callbackId){this.manageStateFrameCallback(callbackId,false);this.frameCallbackRegistry.delete(callbackId);},manageStateFrameCallback:function(callbackId,state){if(callbackId===-1){return;}if(state){this.activeFrameCallbacks.add(callbackId);this.runCallbacks(this.nextCallId);}else{const callback=this.frameCallbackRegistry.get(callbackId);callback.startTime=null;this.activeFrameCallbacks.delete(callbackId);if(this.activeFrameCallbacks.size===0){this.nextCallId+=1;}}}};global._frameCallbackRegistry=frameCallbackRegistry;}"};e.prepareUIRegistry=(0,r(d[0]).runOnUIImmediately)(((t=function(){var t={frameCallbackRegistry:new Map,activeFrameCallbacks:new Set,previousFrameTimestamp:null,nextCallId:0,runCallbacks:function(t){var l=this,s=function(c){if(t===l.nextCallId){null===l.previousFrameTimestamp&&(l.previousFrameTimestamp=c);var n=c-l.previousFrameTimestamp;l.activeFrameCallbacks.forEach((function(t){var s=l.frameCallbackRegistry.get(t),b=s.startTime;null===b?(s.startTime=c,s.callback({timestamp:c,timeSincePreviousFrame:null,timeSinceFirstFrame:0})):s.callback({timestamp:c,timeSincePreviousFrame:n,timeSinceFirstFrame:c-b})})),l.activeFrameCallbacks.size>0?(l.previousFrameTimestamp=c,requestAnimationFrame(s)):l.previousFrameTimestamp=null}};1===this.activeFrameCallbacks.size&&t===this.nextCallId&&requestAnimationFrame(s)},registerFrameCallback:function(t,l){this.frameCallbackRegistry.set(l,{callback:t,startTime:null})},unregisterFrameCallback:function(t){this.manageStateFrameCallback(t,!1),this.frameCallbackRegistry.delete(t)},manageStateFrameCallback:function(t,l){-1!==t&&(l?(this.activeFrameCallbacks.add(t),this.runCallbacks(this.nextCallId)):(this.frameCallbackRegistry.get(t).startTime=null,this.activeFrameCallbacks.delete(t),0===this.activeFrameCallbacks.size&&(this.nextCallId+=1)))}};g._frameCallbackRegistry=t}).__closure={},t.__workletHash=5591855314696,t.__initData=l,t))}),661,[548]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useReducedMotion=function(){return n};var n=(0,r(d[0]).isReducedMotionEnabledInSystem)()}),662,[529]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useScrollViewOffset=void 0;var t=r(d[0]),n=(0,r(d[1]).isWeb)(),l=(e.useScrollViewOffset=n?function(n,o){var c=(0,r(d[2]).useSharedValue)(0),f=(0,t.useRef)(null!=o?o:c).current,s=(0,t.useCallback)((v=function(){if(n){var t=u(n.current);f.value=0===t.scrollLeft?t.scrollTop:t.scrollLeft}},v.__closure={animatedRef:n,getWebScrollableElement:u,offset:f},v.__workletHash=0xda66aa8b8b1,v.__initData=l,v),[n,null==n?void 0:n.current]);var v;return(0,t.useEffect)((function(){var t=null!=n&&n.current?u(n.current):null;return t&&t.addEventListener('scroll',s),function(){t&&t.removeEventListener('scroll',s)}}),[n,null==n?void 0:n.current,s]),f}:function(n,l){var u=(0,r(d[2]).useSharedValue)(0),f=(0,t.useRef)(null!=l?l:u).current,s=(0,r(d[3]).useEvent)((v=function(t){f.value=0===t.contentOffset.x?t.contentOffset.y:t.contentOffset.x},v.__closure={offset:f},v.__workletHash=0xadeaa517964,v.__initData=o,v),c);var v;return(0,t.useEffect)((function(){var t,l=null!=(t=null==n?void 0:n.getTag())?t:null;return l&&s.workletEventHandler.registerForEvents(l),function(){l&&s.workletEventHandler.unregisterFromEvents(l)}}),[n,null==n?void 0:n.current,s]),f},{code:"function reactNativeReanimated_useScrollViewOffsetTs1(){const{animatedRef,getWebScrollableElement,offset}=this.__closure;if(animatedRef){const element=getWebScrollableElement(animatedRef.current);offset.value=element.scrollLeft===0?element.scrollTop:element.scrollLeft;}}"});var o={code:"function reactNativeReanimated_useScrollViewOffsetTs2(event){const{offset}=this.__closure;offset.value=event.contentOffset.x===0?event.contentOffset.y:event.contentOffset.x;}"};function u(t){var n;return null!=(n=null==t?void 0:t.getScrollableNode())?n:t}var c=['onScroll','onScrollBeginDrag','onScrollEndDrag','onMomentumScrollBegin','onMomentumScrollEnd']}),663,[16,528,600,649]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.useWorkletCallback=function(u,t){return(0,l.useCallback)(u,null!=t?t:[])};var l=r(d[0])}),664,[16]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.ReducedMotionConfig=function(t){var o=t.mode;return(0,n.useEffect)((function(){}),[]),(0,n.useEffect)((function(){var n=r(d[2]).ReducedMotionManager.jsValue;switch(o){case r(d[3]).ReduceMotion.System:r(d[2]).ReducedMotionManager.setEnabled((0,r(d[2]).isReducedMotionEnabledInSystem)());break;case r(d[3]).ReduceMotion.Always:r(d[2]).ReducedMotionManager.setEnabled(!0);break;case r(d[3]).ReduceMotion.Never:r(d[2]).ReducedMotionManager.setEnabled(!1)}return function(){r(d[2]).ReducedMotionManager.setEnabled(n)}}),[o]),null};var n=r(d[0])}),665,[16,531,529,524]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ScreenTransition",{enumerable:!0,get:function(){return r(d[0]).ScreenTransition}}),Object.defineProperty(e,"finishScreenTransition",{enumerable:!0,get:function(){return r(d[1]).finishScreenTransition}}),Object.defineProperty(e,"startScreenTransition",{enumerable:!0,get:function(){return r(d[1]).startScreenTransition}})}),666,[667,668]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.ScreenTransition=void 0;var t,n,s,o,c,_,l,u,f,S,v,p,w,h,T,X,Y={code:"function reactNativeReanimated_presetsTs1(event){return{transform:[{translateX:event.translationX}]};}"},b={code:"function reactNativeReanimated_presetsTs2(event,screenSize){return{transform:[{translateX:(event.translationX-screenSize.width)*0.3}]};}"},y={topScreenStyle:(n=function(t){return{transform:[{translateX:t.translationX}]}},n.__closure={},n.__workletHash=1930116639629,n.__initData=Y,n),belowTopScreenStyle:(t=function(t,n){return{transform:[{translateX:.3*(t.translationX-n.width)}]}},t.__closure={},t.__workletHash=6871625506273,t.__initData=b,t)},z={code:"function reactNativeReanimated_presetsTs3(event){return{transform:[{translateX:event.translationX}]};}"},D={code:"function reactNativeReanimated_presetsTs4(event,screenSize){return{transform:[{translateX:(event.translationX+screenSize.width)*0.3}]};}"},R={topScreenStyle:(o=function(t){return{transform:[{translateX:t.translationX}]}},o.__closure={},o.__workletHash=0xecce621898f,o.__initData=z,o),belowTopScreenStyle:(s=function(t,n){return{transform:[{translateX:.3*(t.translationX+n.width)}]}},s.__closure={},s.__workletHash=3752201607201,s.__initData=D,s)},H={code:"function reactNativeReanimated_presetsTs5(event){return{transform:[{translateY:event.translationY}]};}"},k={code:"function reactNativeReanimated_presetsTs6(event,screenSize){return{transform:[{translateY:(event.translationY-screenSize.height)*0.3}]};}"},N={topScreenStyle:(_=function(t){return{transform:[{translateY:t.translationY}]}},_.__closure={},_.__workletHash=2215358627561,_.__initData=H,_),belowTopScreenStyle:(c=function(t,n){return{transform:[{translateY:.3*(t.translationY-n.height)}]}},c.__closure={},c.__workletHash=7507926341916,c.__initData=k,c)},x={code:"function reactNativeReanimated_presetsTs7(event){return{transform:[{translateY:event.translationY}]};}"},M={code:"function reactNativeReanimated_presetsTs8(event,screenSize){return{transform:[{translateY:(event.translationY+screenSize.height)*0.3}]};}"},j={topScreenStyle:(u=function(t){return{transform:[{translateY:t.translationY}]}},u.__closure={},u.__workletHash=0xbe061211ceb,u.__initData=x,u),belowTopScreenStyle:(l=function(t,n){return{transform:[{translateY:.3*(t.translationY+n.height)}]}},l.__closure={},l.__workletHash=0xfa23245a854,l.__initData=M,l)},F={code:"function reactNativeReanimated_presetsTs9(event,_screenSize){return{transform:[{translateX:event.translationX},{translateY:event.translationY}]};}"},L={code:"function reactNativeReanimated_presetsTs10(_event,_screenSize){return{};}"},O={topScreenStyle:(S=function(t,n){return{transform:[{translateX:t.translationX},{translateY:t.translationY}]}},S.__closure={},S.__workletHash=0xdc91c22cbc0,S.__initData=F,S),belowTopScreenStyle:(f=function(t,n){return{}},f.__closure={},f.__workletHash=0xf02637b7f9b,f.__initData=L,f)},P={code:"function reactNativeReanimated_presetsTs11(event,_screenSize){return{transform:[{translateX:event.translationX}]};}"},U={code:"function reactNativeReanimated_presetsTs12(_event,_screenSize){return{};}"},V={topScreenStyle:(p=function(t,n){return{transform:[{translateX:t.translationX}]}},p.__closure={},p.__workletHash=0xf650e9689e6,p.__initData=P,p),belowTopScreenStyle:(v=function(t,n){return{}},v.__closure={},v.__workletHash=0xaeada67c1d9,v.__initData=U,v)},q={code:"function reactNativeReanimated_presetsTs13(event,_screenSize){return{transform:[{translateY:event.translationY}]};}"},A={code:"function reactNativeReanimated_presetsTs14(_event,_screenSize){return{};}"},B={topScreenStyle:(h=function(t,n){return{transform:[{translateY:t.translationY}]}},h.__closure={},h.__workletHash=0xebc6ecb7ec4,h.__initData=q,h),belowTopScreenStyle:(w=function(t,n){return{}},w.__closure={},w.__workletHash=0xcf22261be1f,w.__initData=A,w)},C={code:"function reactNativeReanimated_presetsTs15(event,screenSize){return{opacity:1-Math.abs(event.translationX/screenSize.width)};}"},E={code:"function reactNativeReanimated_presetsTs16(_event,_screenSize){return{};}"},G={topScreenStyle:(X=function(t,n){return{opacity:1-Math.abs(t.translationX/n.width)}},X.__closure={},X.__workletHash=0xf7d6a19fd71,X.__initData=C,X),belowTopScreenStyle:(T=function(t,n){return{}},T.__closure={},T.__workletHash=9739262885981,T.__initData=E,T)};e.ScreenTransition={SwipeRight:y,SwipeLeft:R,SwipeDown:N,SwipeUp:j,Horizontal:V,Vertical:B,TwoDimensional:O,SwipeRightFade:G}}),667,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.startScreenTransition=e.finishScreenTransition=void 0,(0,r(d[0]).configureProps)();var t={code:"function startScreenTransition_reactNativeReanimated_animationManagerTs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}"},n=(e.startScreenTransition=(function(){var n=function(t){var n=t.stackTag,s=t.sharedEvent;s.addListener(n,(function(){(0,r(d[1]).applyStyle)(t,s.value)}))};return n.__closure={applyStyle:r(d[1]).applyStyle},n.__workletHash=6496409432139,n.__initData=t,n})(),{code:"function getLockAxis_reactNativeReanimated_animationManagerTs2(goBackGesture){if(['swipeRight','swipeLeft','horizontalSwipe'].includes(goBackGesture)){return'x';}else if(['swipeUp','swipeDown','verticalSwipe'].includes(goBackGesture)){return'y';}return undefined;}"}),s=(function(){var t=function(t){return['swipeRight','swipeLeft','horizontalSwipe'].includes(t)?'x':['swipeUp','swipeDown','verticalSwipe'].includes(t)?'y':void 0};return t.__closure={},t.__workletHash=0xbca7ca69f95,t.__initData=n,t})(),o={code:"function finishScreenTransition_reactNativeReanimated_animationManagerTs3(screenTransitionConfig){const{getLockAxis,getSwipeSimulator}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent,goBackGesture:goBackGesture}=screenTransitionConfig;sharedEvent.removeListener(stackTag);const lockAxis=getLockAxis(goBackGesture);const step=getSwipeSimulator(sharedEvent.value,screenTransitionConfig,lockAxis);step();}"};e.finishScreenTransition=(function(){var t=function(t){var n=t.stackTag,o=t.sharedEvent,c=t.goBackGesture;o.removeListener(n);var u=s(c);(0,r(d[2]).getSwipeSimulator)(o.value,t,u)()};return t.__closure={getLockAxis:s,getSwipeSimulator:r(d[2]).getSwipeSimulator},t.__workletHash=8186010751430,t.__initData=o,t})()}),668,[604,669,670]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.applyStyleForBelowTopScreen=e.applyStyle=void 0;var t=n(r(d[1])),o=(0,r(d[2]).isFabric)(),c={code:"function createViewDescriptorPaper_reactNativeReanimated_styleUpdaterTs1(screenId){return{tag:screenId,name:'RCTView'};}"},s=(function(){var n=function(n){return{tag:n,name:'RCTView'}};return n.__closure={},n.__workletHash=0xc366562d822,n.__initData=c,n})(),p={code:"function createViewDescriptorFabric_reactNativeReanimated_styleUpdaterTs2(screenId){return{shadowNodeWrapper:screenId};}"},l=(function(){var n=function(n){return{shadowNodeWrapper:n}};return n.__closure={},n.__workletHash=926744547348,n.__initData=p,n})(),S=o?l:s,u={code:"function applyStyleForTopScreen_reactNativeReanimated_styleUpdaterTs3(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,topScreenId:topScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{topScreenStyle:computeTopScreenStyle}=screenTransition;const topScreenStyle=computeTopScreenStyle(event,screenDimensions);const topScreenDescriptor={value:[createViewDescriptor(topScreenId)]};updateProps(topScreenDescriptor,topScreenStyle,undefined);}"},_=(function(){var n=function(n,o){var c=n.screenDimensions,s=n.topScreenId,p=(0,n.screenTransition.topScreenStyle)(o,c),l={value:[S(s)]};(0,t.default)(l,p,void 0)};return n.__closure={createViewDescriptor:S,updateProps:t.default},n.__workletHash=0x930d06902e2,n.__initData=u,n})(),T={code:"function applyStyleForBelowTopScreen_reactNativeReanimated_styleUpdaterTs4(screenTransitionConfig,event){const{createViewDescriptor,updateProps}=this.__closure;const{screenDimensions:screenDimensions,belowTopScreenId:belowTopScreenId,screenTransition:screenTransition}=screenTransitionConfig;const{belowTopScreenStyle:computeBelowTopScreenStyle}=screenTransition;const belowTopScreenStyle=computeBelowTopScreenStyle(event,screenDimensions);const belowTopScreenDescriptor={value:[createViewDescriptor(belowTopScreenId)]};updateProps(belowTopScreenDescriptor,belowTopScreenStyle,undefined);}"},y=e.applyStyleForBelowTopScreen=(function(){var n=function(n,o){var c=n.screenDimensions,s=n.belowTopScreenId,p=(0,n.screenTransition.belowTopScreenStyle)(o,c),l={value:[S(s)]};(0,t.default)(l,p,void 0)};return n.__closure={createViewDescriptor:S,updateProps:t.default},n.__workletHash=0x98ef8f08876,n.__initData=T,n})(),w={code:"function applyStyle_reactNativeReanimated_styleUpdaterTs5(screenTransitionConfig,event){const{applyStyleForTopScreen,applyStyleForBelowTopScreen}=this.__closure;applyStyleForTopScreen(screenTransitionConfig,event);applyStyleForBelowTopScreen(screenTransitionConfig,event);}"};e.applyStyle=(function(){var n=function(n,t){_(n,t),y(n,t)};return n.__closure={applyStyleForTopScreen:_,applyStyleForBelowTopScreen:y},n.__workletHash=933859614838,n.__initData=w,n})()}),669,[2,635,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getSwipeSimulator=void 0;var n=400,t={code:"function computeEasingProgress_reactNativeReanimated_swipeSimulatorTs1(startingTimestamp,distance,velocity){if(Math.abs(distance)<1){return 1;}const elapsedTime=(_getAnimationTimestamp()-startingTimestamp)/1000;const currentPosition=velocity*elapsedTime;const progress=currentPosition/distance;return progress;}"},s=(function(){var n=function(n,t,s){return Math.abs(t)<1?1:s*((_getAnimationTimestamp()-n)/1e3)/t};return n.__closure={},n.__workletHash=4610686157585,n.__initData=t,n})(),o={code:"function easing_reactNativeReanimated_swipeSimulatorTs2(x){return 1-Math.pow(1-x,5);}"},c=(function(){var n=function(n){return 1-Math.pow(1-n,5)};return n.__closure={},n.__workletHash=0xf545951aa49,n.__initData=o,n})(),l={code:"function computeProgress_reactNativeReanimated_swipeSimulatorTs3(screenTransitionConfig,event,isTransitionCanceled){const screenDimensions=screenTransitionConfig.screenDimensions;const progressX=Math.abs(event.translationX/screenDimensions.width);const progressY=Math.abs(event.translationY/screenDimensions.height);const maxProgress=Math.max(progressX,progressY);const progress=isTransitionCanceled?maxProgress/2:maxProgress;return progress;}"},y=(function(){var n=function(n,t,s){var o=n.screenDimensions,c=Math.abs(t.translationX/o.width),l=Math.abs(t.translationY/o.height),y=Math.max(c,l);return s?y/2:y};return n.__closure={},n.__workletHash=3885245770806,n.__initData=l,n})(),h={code:"function maybeScheduleNextFrame_reactNativeReanimated_swipeSimulatorTs4(step,didScreenReachDestination,screenTransitionConfig,event,isTransitionCanceled){const{computeProgress,RNScreensTurboModule}=this.__closure;if(!didScreenReachDestination){const stackTag=screenTransitionConfig.stackTag;const progress=computeProgress(screenTransitionConfig,event,isTransitionCanceled);RNScreensTurboModule.updateTransition(stackTag,progress);requestAnimationFrame(step);}else{var _screenTransitionConf;(_screenTransitionConf=screenTransitionConfig.onFinishAnimation)===null||_screenTransitionConf===void 0||_screenTransitionConf.call(screenTransitionConfig);}}"},u=(function(){var n=function(n,t,s,o,c){if(t)null==s.onFinishAnimation||s.onFinishAnimation();else{var l=s.stackTag,h=y(s,o,c);r(d[0]).RNScreensTurboModule.updateTransition(l,h),requestAnimationFrame(n)}};return n.__closure={computeProgress:y,RNScreensTurboModule:r(d[0]).RNScreensTurboModule},n.__workletHash=126376714935,n.__initData=h,n})(),x={code:"function getSwipeSimulator_reactNativeReanimated_swipeSimulatorTs5(event,screenTransitionConfig,lockAxis){const{BASE_VELOCITY,ADDITIONAL_VELOCITY_FACTOR_X,ADDITIONAL_VELOCITY_FACTOR_Y,ADDITIONAL_VELOCITY_FACTOR_XY,applyStyleForBelowTopScreen,computeEasingProgress,easing,applyStyle,maybeScheduleNextFrame}=this.__closure;const screenDimensions=screenTransitionConfig.screenDimensions;const startTimestamp=_getAnimationTimestamp();const{isTransitionCanceled:isTransitionCanceled}=screenTransitionConfig;const startingPosition={x:event.translationX,y:event.translationY};const direction={x:Math.sign(event.translationX),y:Math.sign(event.translationY)};const finalPosition=isTransitionCanceled?{x:0,y:0}:{x:direction.x*screenDimensions.width,y:direction.y*screenDimensions.height};const distance={x:Math.abs(finalPosition.x-startingPosition.x),y:Math.abs(finalPosition.y-startingPosition.y)};const didScreenReachDestination={x:false,y:false};const velocity={x:BASE_VELOCITY,y:BASE_VELOCITY};if(lockAxis==='x'){velocity.y=0;velocity.x+=ADDITIONAL_VELOCITY_FACTOR_X*distance.x/screenDimensions.width;}else if(lockAxis==='y'){velocity.x=0;velocity.y+=ADDITIONAL_VELOCITY_FACTOR_Y*distance.y/screenDimensions.height;}else{const euclideanDistance=Math.sqrt(distance.x**2+distance.y**2);const screenDiagonal=Math.sqrt(screenDimensions.width**2+screenDimensions.height**2);const velocityVectorLength=BASE_VELOCITY+ADDITIONAL_VELOCITY_FACTOR_XY*euclideanDistance/screenDiagonal;if(Math.abs(startingPosition.x)>Math.abs(startingPosition.y)){velocity.x=velocityVectorLength;velocity.y=velocityVectorLength*Math.abs(startingPosition.y/startingPosition.x);}else{velocity.x=velocityVectorLength*Math.abs(startingPosition.x/startingPosition.y);velocity.y=velocityVectorLength;}}if(isTransitionCanceled){function didScreenReachDestinationCheck(){if(lockAxis==='x'){return didScreenReachDestination.x;}else if(lockAxis==='y'){return didScreenReachDestination.y;}else{return didScreenReachDestination.x&&didScreenReachDestination.y;}}function restoreOriginalStyleForBelowTopScreen(){event.translationX=direction.x*screenDimensions.width;event.translationY=direction.y*screenDimensions.height;applyStyleForBelowTopScreen(screenTransitionConfig,event);}const computeFrame=function(){const progress={x:computeEasingProgress(startTimestamp,distance.x,velocity.x),y:computeEasingProgress(startTimestamp,distance.y,velocity.y)};event.translationX=startingPosition.x-direction.x*distance.x*easing(progress.x);event.translationY=startingPosition.y-direction.y*distance.y*easing(progress.y);if(direction.x>0){if(event.translationX<=0){didScreenReachDestination.x=true;event.translationX=0;}}else{if(event.translationX>=0){didScreenReachDestination.x=true;event.translationX=0;}}if(direction.y>0){if(event.translationY<=0){didScreenReachDestination.y=true;event.translationY=0;}}else{if(event.translationY>=0){didScreenReachDestination.y=true;event.translationY=0;}}applyStyle(screenTransitionConfig,event);const finished=didScreenReachDestinationCheck();if(finished){restoreOriginalStyleForBelowTopScreen();}maybeScheduleNextFrame(computeFrame,finished,screenTransitionConfig,event,isTransitionCanceled);};return computeFrame;}else{const computeFrame=function(){const progress={x:computeEasingProgress(startTimestamp,distance.x,velocity.x),y:computeEasingProgress(startTimestamp,distance.y,velocity.y)};event.translationX=startingPosition.x+direction.x*distance.x*easing(progress.x);event.translationY=startingPosition.y+direction.y*distance.y*easing(progress.y);if(direction.x>0){if(event.translationX>=screenDimensions.width){didScreenReachDestination.x=true;event.translationX=screenDimensions.width;}}else{if(event.translationX<=-screenDimensions.width){didScreenReachDestination.x=true;event.translationX=-screenDimensions.width;}}if(direction.y>0){if(event.translationY>=screenDimensions.height){didScreenReachDestination.y=true;event.translationY=screenDimensions.height;}}else{if(event.translationY<=-screenDimensions.height){didScreenReachDestination.y=true;event.translationY=-screenDimensions.height;}}applyStyle(screenTransitionConfig,event);maybeScheduleNextFrame(computeFrame,didScreenReachDestination.x||didScreenReachDestination.y,screenTransitionConfig,event,isTransitionCanceled);};return computeFrame;}}"};e.getSwipeSimulator=(function(){var t=function(t,o,l){var y=o.screenDimensions,h=_getAnimationTimestamp(),x=o.isTransitionCanceled,T={x:t.translationX,y:t.translationY},p=Math.sign(t.translationX),_=Math.sign(t.translationY),v=x?{x:0,y:0}:{x:p*y.width,y:_*y.height},f={x:Math.abs(v.x-T.x),y:Math.abs(v.y-T.y)},D={x:!1,y:!1},S={x:n,y:n};if('x'===l)S.y=0,S.x+=400*f.x/y.width;else if('y'===l)S.x=0,S.y+=500*f.y/y.height;else{var C=Math.sqrt(f.x**2+f.y**2),Y=Math.sqrt(y.width**2+y.height**2),A=n+600*C/Y;Math.abs(T.x)>Math.abs(T.y)?(S.x=A,S.y=A*Math.abs(T.y/T.x)):(S.x=A*Math.abs(T.x/T.y),S.y=A)}if(x){var w=function(){var n={x:s(h,f.x,S.x),y:s(h,f.y,S.y)};t.translationX=T.x-p*f.x*c(n.x),t.translationY=T.y-_*f.y*c(n.y),p>0?t.translationX<=0&&(D.x=!0,t.translationX=0):t.translationX>=0&&(D.x=!0,t.translationX=0),_>0?t.translationY<=0&&(D.y=!0,t.translationY=0):t.translationY>=0&&(D.y=!0,t.translationY=0),(0,r(d[1]).applyStyle)(o,t);var v='x'===l?D.x:('y'===l||D.x)&&D.y;v&&(t.translationX=p*y.width,t.translationY=_*y.height,(0,r(d[1]).applyStyleForBelowTopScreen)(o,t)),u(w,v,o,t,x)};return w}var R=function(){var n={x:s(h,f.x,S.x),y:s(h,f.y,S.y)};t.translationX=T.x+p*f.x*c(n.x),t.translationY=T.y+_*f.y*c(n.y),p>0?t.translationX>=y.width&&(D.x=!0,t.translationX=y.width):t.translationX<=-y.width&&(D.x=!0,t.translationX=-y.width),_>0?t.translationY>=y.height&&(D.y=!0,t.translationY=y.height):t.translationY<=-y.height&&(D.y=!0,t.translationY=-y.height),(0,r(d[1]).applyStyle)(o,t),u(R,D.x||D.y,o,t,x)};return R};return t.__closure={BASE_VELOCITY:n,ADDITIONAL_VELOCITY_FACTOR_X:400,ADDITIONAL_VELOCITY_FACTOR_Y:500,ADDITIONAL_VELOCITY_FACTOR_XY:600,applyStyleForBelowTopScreen:r(d[1]).applyStyleForBelowTopScreen,computeEasingProgress:s,easing:c,applyStyle:r(d[1]).applyStyle,maybeScheduleNextFrame:u},t.__workletHash=0xaf528a2c761,t.__initData=x,t})()}),670,[671,669]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.RNScreensTurboModule=void 0;var n={code:"function reactNativeReanimated_RNScreensTurboModuleTs1(){const{logger,defaultReturnValue}=this.__closure;logger.warn('RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app.');return defaultReturnValue;}"};function t(t){return(o=function(){return r(d[0]).logger.warn('RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app.'),t}).__closure={logger:r(d[0]).logger,defaultReturnValue:t},o.__workletHash=5026965592223,o.__initData=n,o;var o}e.RNScreensTurboModule=g.RNScreensTurboModule||{startTransition:t({topScreenId:-1,belowTopScreenId:-1,canStartTransition:!1}),updateTransition:t(),finishTransition:t()}}),671,[531]); +__d((function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.withReanimatedTimer=e.setUpTests=e.getAnimatedStyle=e.advanceAnimationByTime=e.advanceAnimationByFrame=void 0;var n=t(r(d[1])),i={fps:60},s=function(t){return 0===Object.keys(t).length},o=function(t){return void 0===t?{}:Object.fromEntries(Object.entries(t).map((function(t){var i=(0,n.default)(t,2),s=i[0],o=i[1];return[s,o._isReanimatedSharedValue?o.value:o]})))},u=function(t){var n,i=t.props.style,u={};if(Array.isArray(i))return i.forEach((function(t){u=Object.assign({},u,t)})),u;var c=t.props.jestInlineStyle,f=null==(n=t.props.jestAnimatedStyle)?void 0:n.value;if(Array.isArray(c)){for(var l of c)if(!('jestAnimatedStyle'in l)){var y=o(l);u=Object.assign({},u,y)}return u=Object.assign({},i,u,f)}var p=o(c);return u=s(f)?Object.assign({},i,p):Object.assign({},i,f)},c=function(t,n){if(Array.isArray(n)){if(!Array.isArray(t)||n.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:y;console.warn('This method is deprecated, use jest.advanceTimersByTime directly'),jest.advanceTimersByTime(t),jest.runOnlyPendingTimers()},e.advanceAnimationByFrame=function(t){console.warn('This method is deprecated, use jest.advanceTimersByTime directly'),jest.advanceTimersByTime(t*y),jest.runOnlyPendingTimers()},(0,r(d[2]).isJest)()?r:function(){throw new(r(d[3]).ReanimatedError)('`setUpTests` is available only in Jest environment.')});e.setUpTests=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=g.expect;if(void 0===n){var s=p('expect');if('object'==typeof(n=s))n=p('@jest/globals').expect;void 0!==n&&void 0!==n.extend||(n=s.default)}var o=Object.assign({},i,t);y=Math.round(1e3/o.fps),n.extend({toHaveAnimatedStyle:function(t,n){return l(t,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}})},e.getAnimatedStyle=function(t){return u(t)}}),672,[2,44,528,525]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedPropAdapter=function(t,n){var o={};return null==n||n.forEach((function(t){o[t]=!0})),(0,r(d[0]).addWhitelistedNativeProps)(o),t}}),673,[604]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"dispatchCommand",{enumerable:!0,get:function(){return r(d[0]).dispatchCommand}}),Object.defineProperty(e,"getRelativeCoords",{enumerable:!0,get:function(){return r(d[1]).getRelativeCoords}}),Object.defineProperty(e,"measure",{enumerable:!0,get:function(){return r(d[2]).measure}}),Object.defineProperty(e,"scrollTo",{enumerable:!0,get:function(){return r(d[3]).scrollTo}}),Object.defineProperty(e,"setGestureState",{enumerable:!0,get:function(){return r(d[4]).setGestureState}}),Object.defineProperty(e,"setNativeProps",{enumerable:!0,get:function(){return r(d[5]).setNativeProps}})}),674,[675,676,677,678,679,680]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.dispatchCommand=void 0;var n={code:"function dispatchCommandFabric_reactNativeReanimated_dispatchCommandTs1(animatedRef,commandName,args=[]){if(!_WORKLET){return;}const shadowNodeWrapper=animatedRef();global._dispatchCommandFabric(shadowNodeWrapper,commandName,args);}"},t=(function(){var t=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(_WORKLET){var s=n();g._dispatchCommandFabric(s,t,o)}};return t.__closure={},t.__workletHash=7855081037929,t.__initData=n,t})(),o={code:"function dispatchCommandPaper_reactNativeReanimated_dispatchCommandTs2(animatedRef,commandName,args=[]){if(!_WORKLET){return;}const viewTag=animatedRef();global._dispatchCommandPaper(viewTag,commandName,args);}"},s=(function(){var n=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(_WORKLET){var s=n();g._dispatchCommandPaper(s,t,o)}};return n.__closure={},n.__workletHash=993320024330,n.__initData=o,n})();(0,r(d[1]).shouldBeUseWeb)()?(0,r(d[1]).isJest)()?e.dispatchCommand=function(){r(d[0]).logger.warn('dispatchCommand() is not supported with Jest.')}:(0,r(d[1]).isChromeDebugger)()?e.dispatchCommand=function(){r(d[0]).logger.warn('dispatchCommand() is not supported with Chrome Debugger.')}:e.dispatchCommand=function(){r(d[0]).logger.warn('dispatchCommand() is not supported on this configuration.')}:(0,r(d[1]).isFabric)()?e.dispatchCommand=t:e.dispatchCommand=s}),675,[531,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getRelativeCoords=void 0;var t={code:"function getRelativeCoords_reactNativeReanimated_getRelativeCoordsTs1(animatedRef,absoluteX,absoluteY){const{measure}=this.__closure;const parentCoords=measure(animatedRef);if(parentCoords===null){return null;}return{x:absoluteX-parentCoords.pageX,y:absoluteY-parentCoords.pageY};}"};e.getRelativeCoords=(function(){var o=function(t,o,n){var s=(0,r(d[0]).measure)(t);return null===s?null:{x:o-s.pageX,y:n-s.pageY}};return o.__closure={measure:r(d[0]).measure},o.__workletHash=1583333301789,o.__initData=t,o})()}),676,[677]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.measure=void 0;var n={code:"function measureFabric_reactNativeReanimated_measureTs1(animatedRef){const{logger}=this.__closure;if(!_WORKLET){return null;}const viewTag=animatedRef();if(viewTag===-1){logger.warn(\"The view with tag \"+viewTag+\" is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).\");return null;}const measured=global._measureFabric(viewTag);if(measured===null){logger.warn(\"The view has some undefined, not-yet-computed or meaningless value of `LayoutMetrics` type. This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).\");return null;}else if(measured.x===-1234567){logger.warn(\"The view returned an invalid measurement response. Please make sure the view is currently rendered.\");return null;}else if(isNaN(measured.x)){logger.warn(\"The view gets view-flattened on Android. To disable view-flattening, set `collapsable={false}` on this component.\");return null;}else{return measured;}}"},t=(function(){var t=function(n){if(!_WORKLET)return null;var t=n();if(-1===t)return r(d[0]).logger.warn(`The view with tag ${t} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null;var s=g._measureFabric(t);return null===s?(r(d[0]).logger.warn("The view has some undefined, not-yet-computed or meaningless value of `LayoutMetrics` type. This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item)."),null):-1234567===s.x?(r(d[0]).logger.warn("The view returned an invalid measurement response. Please make sure the view is currently rendered."),null):isNaN(s.x)?(r(d[0]).logger.warn("The view gets view-flattened on Android. To disable view-flattening, set `collapsable={false}` on this component."),null):s};return t.__closure={logger:r(d[0]).logger},t.__workletHash=6681128993819,t.__initData=n,t})(),s={code:"function measurePaper_reactNativeReanimated_measureTs2(animatedRef){const{logger}=this.__closure;if(!_WORKLET){return null;}const viewTag=animatedRef();if(viewTag===-1){logger.warn(\"The view with tag \"+viewTag+\" is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).\");return null;}const measured=global._measurePaper(viewTag);if(measured===null){logger.warn(\"The view with tag \"+viewTag+\" has some undefined, not-yet-computed or meaningless value of `LayoutMetrics` type. This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).\");return null;}else if(measured.x===-1234567){logger.warn(\"The view with tag \"+viewTag+\" returned an invalid measurement response. Please make sure the view is currently rendered.\");return null;}else if(isNaN(measured.x)){logger.warn(\"The view with tag \"+viewTag+\" gets view-flattened on Android. To disable view-flattening, set `collapsable={false}` on this component.\");return null;}else{return measured;}}"},l=(function(){var n=function(n){if(!_WORKLET)return null;var t=n();if(-1===t)return r(d[0]).logger.warn(`The view with tag ${t} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null;var s=g._measurePaper(t);return null===s?(r(d[0]).logger.warn(`The view with tag ${t} has some undefined, not-yet-computed or meaningless value of \`LayoutMetrics\` type. This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`),null):-1234567===s.x?(r(d[0]).logger.warn(`The view with tag ${t} returned an invalid measurement response. Please make sure the view is currently rendered.`),null):isNaN(s.x)?(r(d[0]).logger.warn(`The view with tag ${t} gets view-flattened on Android. To disable view-flattening, set \`collapsable={false}\` on this component.`),null):s};return n.__closure={logger:r(d[0]).logger},n.__workletHash=0x94781795177,n.__initData=s,n})();(0,r(d[1]).shouldBeUseWeb)()?(0,r(d[1]).isJest)()?e.measure=function(){return r(d[0]).logger.warn('measure() cannot be used with Jest.'),null}:(0,r(d[1]).isChromeDebugger)()?e.measure=function(){return r(d[0]).logger.warn('measure() cannot be used with Chrome Debugger.'),null}:e.measure=function(){return r(d[0]).logger.warn('measure() is not supported on this configuration.'),null}:(0,r(d[1]).isFabric)()?e.measure=t:e.measure=l}),677,[531,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.scrollTo=void 0;var o={code:"function scrollToFabric_reactNativeReanimated_scrollToTs1(animatedRef,x,y,animated){const{dispatchCommand}=this.__closure;dispatchCommand(animatedRef,'scrollTo',[x,y,animated]);}"},t=(function(){var t=function(o,t,n,s){(0,r(d[0]).dispatchCommand)(o,'scrollTo',[t,n,s])};return t.__closure={dispatchCommand:r(d[0]).dispatchCommand},t.__workletHash=0xd396154f43b,t.__initData=o,t})(),n={code:"function scrollToPaper_reactNativeReanimated_scrollToTs2(animatedRef,x,y,animated){if(!_WORKLET){return;}const viewTag=animatedRef();global._scrollToPaper(viewTag,x,y,animated);}"},s=(function(){var o=function(o,t,n,s){if(_WORKLET){var l=o();g._scrollToPaper(l,t,n,s)}};return o.__closure={},o.__workletHash=6572018098672,o.__initData=n,o})();(0,r(d[2]).shouldBeUseWeb)()?(0,r(d[2]).isJest)()?e.scrollTo=function(){r(d[1]).logger.warn('scrollTo() is not supported with Jest.')}:(0,r(d[2]).isChromeDebugger)()?e.scrollTo=function(){r(d[1]).logger.warn('scrollTo() is not supported with Chrome Debugger.')}:e.scrollTo=function(){r(d[1]).logger.warn('scrollTo() is not supported on this configuration.')}:(0,r(d[2]).isFabric)()?e.scrollTo=t:e.scrollTo=s}),678,[675,531,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.setGestureState=void 0;var t={code:"function setGestureStateNative_reactNativeReanimated_setGestureStateTs1(handlerTag,newState){const{logger}=this.__closure;if(!_WORKLET){logger.warn('You can not use setGestureState in non-worklet function.');return;}global._setGestureState(handlerTag,newState);}"},n=(function(){var n=function(t,n){_WORKLET?g._setGestureState(t,n):r(d[0]).logger.warn('You can not use setGestureState in non-worklet function.')};return n.__closure={logger:r(d[0]).logger},n.__workletHash=9806104604520,n.__initData=t,n})();(0,r(d[1]).shouldBeUseWeb)()?(0,r(d[1]).isJest)()?e.setGestureState=function(){r(d[0]).logger.warn('setGestureState() cannot be used with Jest.')}:(0,r(d[1]).isChromeDebugger)()?e.setGestureState=function(){r(d[0]).logger.warn('setGestureState() cannot be used with Chrome Debugger.')}:e.setGestureState=function(){r(d[0]).logger.warn('setGestureState() is not supported on this configuration.')}:e.setGestureState=n}),679,[531,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.setNativeProps=void 0;var o={code:"function setNativePropsFabric_reactNativeReanimated_setNativePropsTs1(animatedRef,updates){const{logger,processColorsInProps}=this.__closure;if(!_WORKLET){logger.warn('setNativeProps() can only be used on the UI runtime.');return;}const shadowNodeWrapper=animatedRef();processColorsInProps(updates);global._updatePropsFabric([{shadowNodeWrapper:shadowNodeWrapper,updates:updates}]);}"},s=(function(){var s=function(o,s){if(_WORKLET){var t=o();(0,r(d[1]).processColorsInProps)(s),g._updatePropsFabric([{shadowNodeWrapper:t,updates:s}])}else r(d[0]).logger.warn('setNativeProps() can only be used on the UI runtime.')};return s.__closure={logger:r(d[0]).logger,processColorsInProps:r(d[1]).processColorsInProps},s.__workletHash=17594989727481,s.__initData=o,s})(),t={code:"function setNativePropsPaper_reactNativeReanimated_setNativePropsTs2(animatedRef,updates){const{logger,processColorsInProps}=this.__closure;if(!_WORKLET){logger.warn('setNativeProps() can only be used on the UI runtime.');return;}const tag=animatedRef();const name=animatedRef.viewName.value;processColorsInProps(updates);global._updatePropsPaper([{tag:tag,name:name,updates:updates}]);}"},n=(function(){var o=function(o,s){if(_WORKLET){var t=o(),n=o.viewName.value;(0,r(d[1]).processColorsInProps)(s),g._updatePropsPaper([{tag:t,name:n,updates:s}])}else r(d[0]).logger.warn('setNativeProps() can only be used on the UI runtime.')};return o.__closure={logger:r(d[0]).logger,processColorsInProps:r(d[1]).processColorsInProps},o.__workletHash=0x927beb26c80,o.__initData=t,o})();(0,r(d[2]).shouldBeUseWeb)()?(0,r(d[2]).isJest)()?e.setNativeProps=function(){r(d[0]).logger.warn('setNativeProps() is not supported with Jest.')}:(0,r(d[2]).isChromeDebugger)()?e.setNativeProps=function(){r(d[0]).logger.warn('setNativeProps() is not supported with Chrome Debugger.')}:e.setNativeProps=function(){r(d[0]).logger.warn('setNativeProps() is not supported on this configuration.')}:(0,r(d[2]).isFabric)()?e.setNativeProps=s:e.setNativeProps=n}),680,[531,550,528]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.getUseOfValueInStyleWarning=function(){return"It looks like you might be using shared value's .value inside reanimated inline style. If you want a component to update when shared value changes you should use the shared value directly instead of its current state represented by `.value`. See documentation here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#animations-in-inline-styling"}}),681,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0})}),682,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"FlatList",{enumerable:!0,get:function(){return r(d[0]).ReanimatedFlatList}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(d[1]).AnimatedImage}}),Object.defineProperty(e,"ScrollView",{enumerable:!0,get:function(){return r(d[2]).AnimatedScrollView}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d[3]).AnimatedText}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(d[4]).AnimatedView}}),Object.defineProperty(e,"addWhitelistedNativeProps",{enumerable:!0,get:function(){return r(d[5]).addWhitelistedNativeProps}}),Object.defineProperty(e,"addWhitelistedUIProps",{enumerable:!0,get:function(){return r(d[5]).addWhitelistedUIProps}}),Object.defineProperty(e,"createAnimatedComponent",{enumerable:!0,get:function(){return r(d[6]).createAnimatedComponent}})}),683,[684,686,687,688,685,604,605]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReanimatedFlatList=void 0;var e=t(_r(d[1])),n=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&{}.hasOwnProperty.call(t,o)){var u=i?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r})(_r(d[2])),r=_r(d[3]),i=_r(d[4]),o=["itemLayoutAnimation","skipEnteringExitingAnimations"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}var u=(0,_r(d[5]).createAnimatedComponent)(r.FlatList),l=function(t){return function(e){return(0,i.jsx)(_r(d[6]).AnimatedView,{layout:null==t?void 0:t.current,onLayout:e.onLayout,style:e.style,children:e.children})}};_e.ReanimatedFlatList=(0,n.forwardRef)((function(t,r){var a=t.itemLayoutAnimation,f=t.skipEnteringExitingAnimations,s=(0,e.default)(t,o);'scrollEventThrottle'in s||(s.scrollEventThrottle=1);var c=(0,n.useRef)(a);c.current=a;var p=n.default.useMemo((function(){return l(c)}),[c]),v=(0,i.jsx)(u,Object.assign({ref:r},s,{CellRendererComponent:p}));return void 0===f?v:(0,i.jsx)(_r(d[7]).LayoutAnimationConfig,{skipEntering:!0,skipExiting:!0,children:v})}))}),684,[2,4,16,18,223,605,685,601]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedView=void 0;var t=r(d[0]);e.AnimatedView=(0,r(d[1]).createAnimatedComponent)(t.View)}),685,[18,605]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedImage=void 0;var t=r(d[0]);e.AnimatedImage=(0,r(d[1]).createAnimatedComponent)(t.Image)}),686,[18,605]); +__d((function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnimatedScrollView=void 0;var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var i=o?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=_r(d[3]),o=_r(d[4]),l=["scrollViewOffset"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}var i=(0,_r(d[5]).createAnimatedComponent)(n.ScrollView);_e.AnimatedScrollView=(0,r.forwardRef)((function(e,r){var n=e.scrollViewOffset,f=(0,t.default)(e,l),a=null===r?(0,_r(d[6]).useAnimatedRef)():r;return n&&(0,_r(d[6]).useScrollViewOffset)(a,n),'scrollEventThrottle'in f||(f.scrollEventThrottle=1),(0,o.jsx)(i,Object.assign({ref:a},f))}))}),687,[2,4,16,18,223,605,645]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedText=void 0;var t=r(d[0]);e.AnimatedText=(0,r(d[1]).createAnimatedComponent)(t.Text)}),688,[18,605]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.onGestureHandlerEvent=E,e.startListening=function(){T(),l=n.DeviceEventEmitter.addListener('onGestureHandlerEvent',E),t=n.DeviceEventEmitter.addListener('onGestureHandlerStateChange',E)},e.stopListening=T;var n=r(d[0]),l=null,t=null,o=new Map,s=[];function h(n){return null!=n.oldState}function u(n){return null!=n.eventType}function E(n){var l,t,E,T,c=(0,r(d[1]).findHandler)(n.handlerTag);if(c)if(h(n))n.oldState===r(d[2]).State.UNDETERMINED&&n.state===r(d[2]).State.BEGAN?null==c.handlers.onBegin||c.handlers.onBegin(n):n.oldState!==r(d[2]).State.BEGAN&&n.oldState!==r(d[2]).State.UNDETERMINED||n.state!==r(d[2]).State.ACTIVE?n.oldState!==n.state&&n.state===r(d[2]).State.END?(n.oldState===r(d[2]).State.ACTIVE&&(null==c.handlers.onEnd||c.handlers.onEnd(n,!0)),null==c.handlers.onFinalize||c.handlers.onFinalize(n,!0),s[c.handlers.handlerTag]=void 0):n.state!==r(d[2]).State.FAILED&&n.state!==r(d[2]).State.CANCELLED||n.oldState===n.state||(n.oldState===r(d[2]).State.ACTIVE&&(null==c.handlers.onEnd||c.handlers.onEnd(n,!1)),null==c.handlers.onFinalize||c.handlers.onFinalize(n,!1),o.delete(n.handlerTag),s[c.handlers.handlerTag]=void 0):(null==c.handlers.onStart||c.handlers.onStart(n),s[c.handlers.handlerTag]=n);else if(u(n)){o.has(n.handlerTag)||o.set(n.handlerTag,r(d[3]).GestureStateManager.create(n.handlerTag));var v=o.get(n.handlerTag);switch(n.eventType){case r(d[4]).TouchEventType.TOUCHES_DOWN:null==(l=c.handlers)||null==l.onTouchesDown||l.onTouchesDown(n,v);break;case r(d[4]).TouchEventType.TOUCHES_MOVE:null==(t=c.handlers)||null==t.onTouchesMove||t.onTouchesMove(n,v);break;case r(d[4]).TouchEventType.TOUCHES_UP:null==(E=c.handlers)||null==E.onTouchesUp||E.onTouchesUp(n,v);break;case r(d[4]).TouchEventType.TOUCHES_CANCELLED:null==(T=c.handlers)||null==T.onTouchesCancelled||T.onTouchesCancelled(n,v)}}else null==c.handlers.onUpdate||c.handlers.onUpdate(n),c.handlers.onChange&&c.handlers.changeEventCalculator&&(null==c.handlers.onChange||c.handlers.onChange(null==c.handlers.changeEventCalculator?void 0:c.handlers.changeEventCalculator(n,s[c.handlers.handlerTag])),s[c.handlers.handlerTag]=n);else{var S=(0,r(d[1]).findOldGestureHandler)(n.handlerTag);if(S){var C={nativeEvent:n};return void(h(n)?S.onGestureStateChange(C):S.onGestureEvent(C))}}}function T(){l&&(l.remove(),l=null),t&&(t.remove(),t=null)}}),689,[18,488,486,690,691]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.GestureStateManager=void 0;var t=(0,r(d[0]).tagMessage)('react-native-reanimated is required in order to use synchronous state management'),n=void 0!==(null==r(d[1]).Reanimated?void 0:r(d[1]).Reanimated.useSharedValue),s=null==r(d[1]).Reanimated?void 0:r(d[1]).Reanimated.setGestureState,A={code:"function create_reactNativeGestureHandler_gestureStateManagerTs1(handlerTag){const{REANIMATED_AVAILABLE,setGestureState,State,warningMessage}=this.__closure;return{begin:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.BEGAN);}else{console.warn(warningMessage);}},activate:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.ACTIVE);}else{console.warn(warningMessage);}},fail:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.FAILED);}else{console.warn(warningMessage);}},end:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.END);}else{console.warn(warningMessage);}}};}"},o={code:"function reactNativeGestureHandler_gestureStateManagerTs2(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.BEGAN);}else{console.warn(warningMessage);}}"},l={code:"function reactNativeGestureHandler_gestureStateManagerTs3(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.ACTIVE);}else{console.warn(warningMessage);}}"},u={code:"function reactNativeGestureHandler_gestureStateManagerTs4(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.FAILED);}else{console.warn(warningMessage);}}"},_={code:"function reactNativeGestureHandler_gestureStateManagerTs5(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.END);}else{console.warn(warningMessage);}}"},E=(function(){var E=function(A){return{begin:(M=function(){n?s(A,r(d[2]).State.BEGAN):console.warn(t)},M.__closure={REANIMATED_AVAILABLE:n,setGestureState:s,handlerTag:A,State:r(d[2]).State,warningMessage:t},M.__workletHash=0x968d9ddc767,M.__initData=o,M),activate:(S=function(){n?s(A,r(d[2]).State.ACTIVE):console.warn(t)},S.__closure={REANIMATED_AVAILABLE:n,setGestureState:s,handlerTag:A,State:r(d[2]).State,warningMessage:t},S.__workletHash=292529391077,S.__initData=l,S),fail:(c=function(){n?s(A,r(d[2]).State.FAILED):console.warn(t)},c.__closure={REANIMATED_AVAILABLE:n,setGestureState:s,handlerTag:A,State:r(d[2]).State,warningMessage:t},c.__workletHash=0xe2bc5716e8d,c.__initData=u,c),end:(E=function(){n?s(A,r(d[2]).State.END):console.warn(t)},E.__closure={REANIMATED_AVAILABLE:n,setGestureState:s,handlerTag:A,State:r(d[2]).State,warningMessage:t},E.__workletHash=0xfb2caf540a0,E.__initData=_,E)};var E,c,S,M};return E.__closure={REANIMATED_AVAILABLE:n,setGestureState:s,State:r(d[2]).State,warningMessage:t},E.__workletHash=0xb1078bd325b,E.__initData=A,E})();e.GestureStateManager={create:E}}),690,[485,518,486]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TouchEventType=void 0;e.TouchEventType={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4}}),691,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.enableExperimentalWebImplementation=function(){},e.enableLegacyWebImplementation=function(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if('web'!==n.Platform.OS||t===!o)return;if(l)return void console.error('Some parts of this application have already started using the new gesture handler implementation. No changes will be applied. You can try enabling legacy implementation earlier.');t=!o},e.isNewWebImplementationEnabled=function(){return l=!0,t};var n=r(d[0]),t=!0,l=!1}),692,[18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useDetectorUpdater=function(o,u,s,c,l){var v=(0,r(d[2]).useForceRender)();return(0,t.useCallback)((function(t){var f=(0,n.findNodeHandle)(o.viewRef),p=f!==o.previousViewTag;p||(0,r(d[3]).needsToReattach)(u,s)?((0,r(d[2]).validateDetectorChildren)(o.viewRef),(0,r(d[4]).dropHandlers)(u),(0,r(d[5]).attachHandlers)({preparedGesture:u,gestureConfig:c,gesturesToAttach:s,webEventHandlersRef:l,viewTag:f}),p&&(o.previousViewTag=f,o.forceRebuildReanimatedEvent=!0,v())):t||(0,r(d[6]).updateHandlers)(u,c,s)}),[v,c,s,u,o,l])};var t=r(d[0]),n=r(d[1])}),693,[16,18,514,694,695,696,697]); +__d((function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.needsToReattach=function(t,n){if(n.length!==t.attachedGestures.length)return!0;for(var s=0;s3?C-3:0),T=3;T=23}}),705,[2,4,6,7,11,13,14,18,16,706,223]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.TOUCHABLE_STATE=void 0;var e=t(_r(d[1])),s=t(_r(d[2])),o=t(_r(d[3])),i=t(_r(d[4])),n=t(_r(d[5])),r=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=u(e);if(s&&s.has(t))return s.get(t);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&{}.hasOwnProperty.call(t,n)){var r=i?Object.getOwnPropertyDescriptor(t,n):null;r&&(r.get||r.set)?Object.defineProperty(o,n,r):o[n]=t[n]}return o.default=t,s&&s.set(t,o),o})(_r(d[6])),l=_r(d[7]),a=_r(d[8]);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(u=function(t){return t?s:e})(t)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}var c=_e.TOUCHABLE_STATE={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2},h=_e.default=(function(t){function r(){var t,s,n,a;(0,e.default)(this,r);for(var u=arguments.length,h=new Array(u),T=0;T0:w,O=t.overshootRight,b=void 0===O?v>0:O,A=s.Animated.add(r,a.interpolate({inputRange:[0,o],outputRange:[0,1]})).interpolate({inputRange:[-v-1,-v,p,p+1],outputRange:[-v-(b?1/i:0),-v,p,p+(S?1/i:0)]});n.transX=A,n.showLeftAction=p>0?A.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.Animated.Value(0),n.leftActionTranslate=n.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),n.showRightAction=v>0?A.interpolate({inputRange:[-v,0,1],outputRange:[1,0,0]}):new s.Animated.Value(0),n.rightActionTranslate=n.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})},n.onTapHandlerStateChange=function(t){t.nativeEvent.oldState===_r(d[9]).State.ACTIVE&&n.close()},n.onHandlerStateChange=function(t){if(t.nativeEvent.oldState===_r(d[9]).State.ACTIVE&&n.handleRelease(t),t.nativeEvent.state===_r(d[9]).State.ACTIVE){var e=t.nativeEvent,o=e.velocityX,i=e.translationX,a=n.state.rowState,r=n.props.friction,s=-1===a?'right':1===a||(i+.05*o)/r>0?'left':'right';0===a?null==n.props.onSwipeableOpenStartDrag||n.props.onSwipeableOpenStartDrag(s):null==n.props.onSwipeableCloseStartDrag||n.props.onSwipeableCloseStartDrag(s)}},n.handleRelease=function(t){var e=t.nativeEvent,o=e.velocityX,i=e.translationX,a=n.state,r=a.leftWidth,s=void 0===r?0:r,l=a.rowWidth,p=void 0===l?0:l,u=a.rowState,f=n.state.rightOffset,h=p-(void 0===f?p:f),c=n.props,v=c.friction,w=c.leftThreshold,S=void 0===w?s/2:w,O=c.rightThreshold,b=void 0===O?h/2:O,A=n.currentOffset()+i/v,R=(i+.05*o)/v,y=0;0===u?R>S?y=s:R<-b&&(y=-h):1===u?R>-S&&(y=s):R0)null==n.props.onSwipeableLeftOpen||n.props.onSwipeableLeftOpen(),null==n.props.onSwipeableOpen||n.props.onSwipeableOpen('left',n);else if(e<0)null==n.props.onSwipeableRightOpen||n.props.onSwipeableRightOpen(),null==n.props.onSwipeableOpen||n.props.onSwipeableOpen('right',n);else{var i=t>0?'left':'right';null==n.props.onSwipeableClose||n.props.onSwipeableClose(i,n)}})),e>0)null==n.props.onSwipeableLeftWillOpen||n.props.onSwipeableLeftWillOpen(),null==n.props.onSwipeableWillOpen||n.props.onSwipeableWillOpen('left');else if(e<0)null==n.props.onSwipeableRightWillOpen||n.props.onSwipeableRightWillOpen(),null==n.props.onSwipeableWillOpen||n.props.onSwipeableWillOpen('right');else{var l=t>0?'left':'right';null==n.props.onSwipeableWillClose||n.props.onSwipeableWillClose(l)}},n.onRowLayout=function(t){var e=t.nativeEvent;n.setState({rowWidth:e.layout.width})},n.currentOffset=function(){var t=n.state,e=t.leftWidth,o=void 0===e?0:e,i=t.rowWidth,a=void 0===i?0:i,r=t.rowState,s=n.state.rightOffset;return 1===r?o:-1===r?-(a-(void 0===s?a:s)):0},n.close=function(){n.animateRow(n.currentOffset(),0)},n.openLeft=function(){var t=n.state.leftWidth,e=void 0===t?0:t;n.animateRow(n.currentOffset(),e)},n.openRight=function(){var t=n.state.rowWidth,e=void 0===t?0:t,o=n.state.rightOffset,i=e-(void 0===o?e:o);n.animateRow(n.currentOffset(),-i)},n.reset=function(){var t=n.state,e=t.dragX,o=t.rowTranslation;e.setValue(0),o.setValue(0),n.setState({rowState:0})};var f=new s.Animated.Value(0);return n.state={dragX:f,rowTranslation:new s.Animated.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},n.updateAnimatedEvent(t,n.state),n.onGestureEvent=s.Animated.event([{nativeEvent:{translationX:f}}],{useNativeDriver:t.useNativeAnimations}),n}return(0,a.default)(r,t),(0,n.default)(r,[{key:"shouldComponentUpdate",value:function(t,e){return this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e),!0}},{key:"render",value:function(){var t=this,e=this.state.rowState,n=this.props,o=n.children,i=n.renderLeftActions,a=n.renderRightActions,r=n.dragOffsetFromLeftEdge,p=void 0===r?10:r,u=n.dragOffsetFromRightEdge,h=void 0===u?10:u,c=i&&(0,l.jsxs)(s.Animated.View,{style:[f.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[i(this.showLeftAction,this.transX,this),(0,l.jsx)(s.View,{onLayout:function(e){var n=e.nativeEvent;return t.setState({leftWidth:n.layout.x})}})]}),v=a&&(0,l.jsxs)(s.Animated.View,{style:[f.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[a(this.showRightAction,this.transX,this),(0,l.jsx)(s.View,{onLayout:function(e){var n=e.nativeEvent;return t.setState({rightOffset:n.layout.x})}})]});return(0,l.jsx)(_r(d[10]).PanGestureHandler,Object.assign({activeOffsetX:[-h,p],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,l.jsxs)(s.Animated.View,{onLayout:this.onRowLayout,style:[f.container,this.props.containerStyle],children:[c,v,(0,l.jsx)(_r(d[11]).TapGestureHandler,{enabled:0!==e,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange,children:(0,l.jsx)(s.Animated.View,{pointerEvents:0===e?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:o})})]})}))}}])})(r.Component)).defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};var f=s.StyleSheet.create({container:{overflow:'hidden'},leftActions:Object.assign({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row':'row-reverse'})})}),717,[2,6,7,11,13,14,16,18,223,486,516,515]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))}),718,[2,719]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var a,H,b=e.testOnly_pressed,p=e.hitSlop,O=e.pressRetentionOffset,E=e.delayHoverIn,w=e.onHoverIn,y=e.delayHoverOut,D=e.onHoverOut,I=e.delayLongPress,R=e.unstable_pressDelay,k=e.onPress,S=e.onPressIn,C=e.onPressOut,M=e.onLongPress,N=e.style,x=e.children,A=e.android_disableSound,j=e.android_ripple,B=e.disabled,G=(0,r.default)(e,l),W=(0,t.useState)(null!=b&&b),L=(0,n.default)(W,2),z=L[0],$=L[1],V=(0,t.useRef)(null),X=(0,t.useRef)(!0),F=(0,t.useRef)(!1),J=(0,t.useRef)(!1),U=(0,t.useMemo)((function(){return'number'==typeof p?(0,_r(d[7]).numberAsInset)(p):null!=p?p:{}}),[p]),q=(0,t.useMemo)((function(){return'number'==typeof O?(0,_r(d[7]).numberAsInset)(O):null!=O?O:{}}),[O]),K=(0,t.useRef)(null),Q=(0,t.useRef)(null),Y=(0,t.useMemo)((function(){return _r(d[8]).GestureObjects.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin((n=function(e){Q.current&&clearTimeout(Q.current),E?K.current=setTimeout((function(){return null==w?void 0:w((0,_r(d[7]).gestureToPressableEvent)(e))}),E):null==w||w((0,_r(d[7]).gestureToPressableEvent)(e))},n.__closure={hoverOutTimeout:Q,clearTimeout:clearTimeout,delayHoverIn:E,hoverInTimeout:K,setTimeout:setTimeout,onHoverIn:w,gestureToPressableEvent:_r(d[7]).gestureToPressableEvent},n.__workletHash=0xd25234fb922,n.__initData=i,n)).onFinalize(((e=function(e){K.current&&clearTimeout(K.current),y?Q.current=setTimeout((function(){return null==D?void 0:D((0,_r(d[7]).gestureToPressableEvent)(e))}),y):null==D||D((0,_r(d[7]).gestureToPressableEvent)(e))}).__closure={hoverInTimeout:K,clearTimeout:clearTimeout,delayHoverOut:y,hoverOutTimeout:Q,setTimeout:setTimeout,onHoverOut:D,gestureToPressableEvent:_r(d[7]).gestureToPressableEvent},e.__workletHash=0xd4c302f89c8,e.__initData=h,e));var e,n}),[E,y,w,D]),Z=(0,t.useRef)(null),ee=(0,t.useRef)(!1),ne=(0,t.useRef)(null),re=(0,t.useCallback)((function(e){ue.current&&(ne.current=e),ee.current&&(ne.current=null,null==S||S(e),X.current=!0,Z.current=null,$(!0))}),[S]),te=(0,t.useCallback)((function(e){!F.current||e.nativeEvent.touches.length>e.nativeEvent.changedTouches.length||(R&&null!==Z.current&&(clearTimeout(Z.current),re(e)),ne.current&&(null==S||S(ne.current),ne.current=null),null==C||C(e),X.current&&(null==k||k(e)),ae.current&&(clearTimeout(ae.current),ae.current=null),ee.current=!1,F.current=!1,X.current=!0,$(!1))}),[k,S,C,re,R]),ue=(0,t.useRef)(!1),oe=(0,t.useRef)(null),se=(0,t.useRef)(!1),le=(0,t.useCallback)((function(e){ee.current&&(F.current&&(null==M||M((0,_r(d[7]).gestureTouchToPressableEvent)(e)),X.current=!1),ae.current&&(clearTimeout(ae.current),ae.current=null))}),[M]),ae=(0,t.useRef)(null),ce=(null!=I?I:c)+(null!=R?R:0),ie=(0,t.useMemo)((function(){return _r(d[8]).GestureObjects.LongPress().minDuration(_r(d[9]).INT32_MAX).maxDistance(_r(d[9]).INT32_MAX).cancelsTouchesInView(!1).onTouchesDown((r=function(e){var n;ue.current=!0,null==(n=V.current)||n.measure((function(n,r,t,u){if(!(0,_r(d[7]).isTouchWithinInset)({width:t,height:u},U,e.changedTouches.at(-1))||F.current||se.current)return se.current=!1,oe.current=null,void(ue.current=!1);F.current=!0,null===ae.current&&(ae.current=setTimeout((function(){return le(e)}),ce)),R?Z.current=setTimeout((function(){re((0,_r(d[7]).gestureTouchToPressableEvent)(e))}),R):re((0,_r(d[7]).gestureTouchToPressableEvent)(e)),null==oe.current||oe.current(),oe.current=null,ue.current=!1}))},r.__closure={handlingOnTouchesDown:ue,pressableRef:V,isTouchWithinInset:_r(d[7]).isTouchWithinInset,normalizedHitSlop:U,hasPassedBoundsChecks:F,cancelledMidPress:se,onEndHandlingTouchesDown:oe,longPressTimeoutRef:ae,setTimeout:setTimeout,activateLongPress:le,longPressMinDuration:ce,unstable_pressDelay:R,pressDelayTimeoutRef:Z,pressInHandler:re,gestureTouchToPressableEvent:_r(d[7]).gestureTouchToPressableEvent},r.__workletHash=0x9f883ae2f5e,r.__initData=v,r)).onTouchesUp((n=function(e){ue.current?oe.current=function(){return te((0,_r(d[7]).gestureTouchToPressableEvent)(e))}:(null!==ne.current&&(J.current=!0),te((0,_r(d[7]).gestureTouchToPressableEvent)(e)))},n.__closure={handlingOnTouchesDown:ue,onEndHandlingTouchesDown:oe,pressOutHandler:te,gestureTouchToPressableEvent:_r(d[7]).gestureTouchToPressableEvent,deferredEventPayload:ne,shouldPreventNativeEffects:J},n.__workletHash=0x9ae4f454503,n.__initData=T,n)).onTouchesCancelled(((e=function(e){if(X.current=!1,ue.current)return se.current=!0,void(oe.current=function(){return te((0,_r(d[7]).gestureTouchToPressableEvent)(e))});!F.current||e.allTouches.length>e.changedTouches.length||te((0,_r(d[7]).gestureTouchToPressableEvent)(e))}).__closure={isPressCallbackEnabled:X,handlingOnTouchesDown:ue,cancelledMidPress:se,onEndHandlingTouchesDown:oe,pressOutHandler:te,gestureTouchToPressableEvent:_r(d[7]).gestureTouchToPressableEvent,hasPassedBoundsChecks:F},e.__workletHash=4358739061253,e.__initData=f,e));var e,n,r}),[le,ce,U,re,te,R]),de=(0,t.useMemo)((function(){return _r(d[8]).GestureObjects.Native().onBegin((n=function(){'android'===u.Platform.OS&&(ee.current=!0)},n.__closure={Platform:u.Platform,isTouchPropagationAllowed:ee},n.__workletHash=543365998365,n.__initData=P,n)).onStart(((e=function(){if('web'===u.Platform.OS&&(ee.current=!0),'ios'===u.Platform.OS)return ne.current?(ee.current=!0,void(F.current?(re(ne.current),ne.current=null):(te(ne.current),ee.current=!1))):void(F.current?ee.current=!0:J.current?J.current=!1:ee.current=!0)}).__closure={Platform:u.Platform,isTouchPropagationAllowed:ee,deferredEventPayload:ne,hasPassedBoundsChecks:F,pressInHandler:re,pressOutHandler:te,shouldPreventNativeEffects:J},e.__workletHash=0xa8604cdd9c3,e.__initData=_,e));var e,n}),[re,te]),he=(0,_r(d[7]).addInsets)(U,q),ve=!0!==B,Te=[ie,Y,de];for(var fe of Te)fe.enabled(ve),fe.runOnJS(!0),fe.hitSlop(he),fe.shouldCancelWhenOutside(!1),'web'!==u.Platform.OS&&fe.shouldCancelWhenOutside(!0);de.hitSlop(U);var Pe=_r(d[8]).GestureObjects.Simultaneous.apply(_r(d[8]).GestureObjects,Te),ge=j?void 0:'transparent',He='web'===u.Platform.OS?{cursor:'pointer'}:{},be='function'==typeof N?N({pressed:z}):N,pe='function'==typeof x?x({pressed:z}):x;return(0,s.jsx)(_r(d[10]).GestureDetector,{gesture:Pe,children:(0,s.jsxs)(o.default,Object.assign({},G,{ref:V,hitSlop:he,enabled:ve,touchSoundDisabled:null!=A?A:void 0,rippleColor:(0,u.processColor)(null!=(a=null==j?void 0:j.color)?a:ge),rippleRadius:null!=(H=null==j?void 0:j.radius)?H:void 0,style:[He,be],children:[pe,null]}))})};var n=e(_r(d[1])),r=e(_r(d[2])),t=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(n);if(r&&r.has(e))return r.get(e);var t={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=u?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(t,o,s):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t})(_r(d[3])),u=_r(d[4]),o=e(_r(d[5])),s=_r(d[6]),l=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","onHoverIn","delayHoverOut","onHoverOut","delayLongPress","unstable_pressDelay","onPress","onPressIn","onPressOut","onLongPress","style","children","android_disableSound","android_ripple","disabled"];function a(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:n})(e)}var c=500,i={code:"function reactNativeGestureHandler_PressableTsx1(event){const{hoverOutTimeout,clearTimeout,delayHoverIn,hoverInTimeout,setTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}"},h={code:"function reactNativeGestureHandler_PressableTsx2(event){const{hoverInTimeout,clearTimeout,delayHoverOut,hoverOutTimeout,setTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}"},v={code:"function reactNativeGestureHandler_PressableTsx3(event){const{handlingOnTouchesDown,pressableRef,isTouchWithinInset,normalizedHitSlop,hasPassedBoundsChecks,cancelledMidPress,onEndHandlingTouchesDown,longPressTimeoutRef,setTimeout,activateLongPress,longPressMinDuration,unstable_pressDelay,pressDelayTimeoutRef,pressInHandler,gestureTouchToPressableEvent}=this.__closure;var _pressableRef$current;handlingOnTouchesDown.current=true;(_pressableRef$current=pressableRef.current)===null||_pressableRef$current===void 0||_pressableRef$current.measure(function(_x,_y,width,height){var _onEndHandlingTouches,_onEndHandlingTouches2;if(!isTouchWithinInset({width:width,height:height},normalizedHitSlop,event.changedTouches.at(-1))||hasPassedBoundsChecks.current||cancelledMidPress.current){cancelledMidPress.current=false;onEndHandlingTouchesDown.current=null;handlingOnTouchesDown.current=false;return;}hasPassedBoundsChecks.current=true;if(longPressTimeoutRef.current===null){longPressTimeoutRef.current=setTimeout(function(){return activateLongPress(event);},longPressMinDuration);}if(unstable_pressDelay){pressDelayTimeoutRef.current=setTimeout(function(){pressInHandler(gestureTouchToPressableEvent(event));},unstable_pressDelay);}else{pressInHandler(gestureTouchToPressableEvent(event));}(_onEndHandlingTouches=(_onEndHandlingTouches2=onEndHandlingTouchesDown).current)===null||_onEndHandlingTouches===void 0||_onEndHandlingTouches.call(_onEndHandlingTouches2);onEndHandlingTouchesDown.current=null;handlingOnTouchesDown.current=false;});}"},T={code:"function reactNativeGestureHandler_PressableTsx4(event){const{handlingOnTouchesDown,onEndHandlingTouchesDown,pressOutHandler,gestureTouchToPressableEvent,deferredEventPayload,shouldPreventNativeEffects}=this.__closure;if(handlingOnTouchesDown.current){onEndHandlingTouchesDown.current=function(){return pressOutHandler(gestureTouchToPressableEvent(event));};return;}if(deferredEventPayload.current!==null){shouldPreventNativeEffects.current=true;}pressOutHandler(gestureTouchToPressableEvent(event));}"},f={code:"function reactNativeGestureHandler_PressableTsx5(event){const{isPressCallbackEnabled,handlingOnTouchesDown,cancelledMidPress,onEndHandlingTouchesDown,pressOutHandler,gestureTouchToPressableEvent,hasPassedBoundsChecks}=this.__closure;isPressCallbackEnabled.current=false;if(handlingOnTouchesDown.current){cancelledMidPress.current=true;onEndHandlingTouchesDown.current=function(){return pressOutHandler(gestureTouchToPressableEvent(event));};return;}if(!hasPassedBoundsChecks.current||event.allTouches.length>event.changedTouches.length){return;}pressOutHandler(gestureTouchToPressableEvent(event));}"},P={code:"function reactNativeGestureHandler_PressableTsx6(){const{Platform,isTouchPropagationAllowed}=this.__closure;if(Platform.OS==='android'){isTouchPropagationAllowed.current=true;}}"},_={code:"function reactNativeGestureHandler_PressableTsx7(){const{Platform,isTouchPropagationAllowed,deferredEventPayload,hasPassedBoundsChecks,pressInHandler,pressOutHandler,shouldPreventNativeEffects}=this.__closure;if(Platform.OS==='web'){isTouchPropagationAllowed.current=true;}if(Platform.OS!=='ios'){return;}if(deferredEventPayload.current){isTouchPropagationAllowed.current=true;if(hasPassedBoundsChecks.current){pressInHandler(deferredEventPayload.current);deferredEventPayload.current=null;}else{pressOutHandler(deferredEventPayload.current);isTouchPropagationAllowed.current=false;}return;}if(hasPassedBoundsChecks.current){isTouchPropagationAllowed.current=true;return;}if(shouldPreventNativeEffects.current){shouldPreventNativeEffects.current=false;return;}isTouchPropagationAllowed.current=true;}"}}),719,[2,44,4,16,18,493,223,720,500,485,513]); +__d((function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.numberAsInset=e.isTouchWithinInset=e.gestureTouchToPressableEvent=e.gestureToPressableEvent=e.addInsets=void 0;e.numberAsInset=function(t){return{left:t,right:t,top:t,bottom:t}},e.addInsets=function(t,n){var l,o,u,a,s,c,h,v;return{left:(null!=(l=t.left)?l:0)+(null!=(o=n.left)?o:0),right:(null!=(u=t.right)?u:0)+(null!=(a=n.right)?a:0),top:(null!=(s=t.top)?s:0)+(null!=(c=n.top)?c:0),bottom:(null!=(h=t.bottom)?h:0)+(null!=(v=n.bottom)?v:0)}};var t=function(t,n,l){return{identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:l,timestamp:n,touches:[],changedTouches:[]}},n=function(t,n,l){return{identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:l,timestamp:n,touches:[],changedTouches:[]}};e.isTouchWithinInset=function(t,n,l){var o,u,a,s,c,h,v,f;return(null!=(o=null==l?void 0:l.x)?o:0)<(null!=(u=n.right)?u:0)+t.width&&(null!=(a=null==l?void 0:l.y)?a:0)<(null!=(s=n.bottom)?s:0)+t.height&&(null!=(c=null==l?void 0:l.x)?c:0)>-(null!=(h=n.left)?h:0)&&(null!=(v=null==l?void 0:l.y)?v:0)>-(null!=(f=n.top)?f:0)},e.gestureToPressableEvent=function(t){var l=Date.now(),o=n(t,l,0);return{nativeEvent:{touches:[o],changedTouches:[o],identifier:o.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:0,timestamp:l,force:void 0}}},e.gestureTouchToPressableEvent=function(n){var l,o,u,a,s,c,h,v,f=Date.now();return{nativeEvent:{touches:n.allTouches.map((function(n){return t(n,f,0)})),changedTouches:n.changedTouches.map((function(n){return t(n,f,0)})),identifier:n.handlerTag,locationX:null!=(l=null==(o=n.allTouches.at(0))?void 0:o.x)?l:-1,locationY:null!=(u=null==(a=n.allTouches.at(0))?void 0:a.y)?u:-1,pageX:null!=(s=null==(c=n.allTouches.at(0))?void 0:c.absoluteX)?s:-1,pageY:null!=(h=null==(v=n.allTouches.at(0))?void 0:v.absoluteY)?h:-1,target:0,timestamp:f,force:void 0}}}}),720,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),a=e(_r(d[2])),r=e(_r(d[3])),n=e(_r(d[4])),i=e(_r(d[5])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(t);if(a&&a.has(e))return a.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,a&&a.set(e,r),r})(_r(d[6])),s=o,l=e(_r(d[7])),u=_r(d[8]),p=_r(d[9]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}var h='Idle',v='Dragging',f='Settling',S=_e.default=(function(e){function o(e){var a,i,c,S;(0,t.default)(this,o),i=this,c=o,S=[e],c=(0,n.default)(c),(a=(0,r.default)(i,w()?Reflect.construct(c,S||[],(0,n.default)(i).constructor):c.apply(i,S))).accessibilityIsModalView=s.createRef(),a.pointerEventsView=s.createRef(),a.panGestureHandler=s.createRef(),a.drawerShown=!1,a.updateAnimatedEvent=function(e,t){var r=e.drawerPosition,n=e.drawerWidth,i=e.drawerType,o=t.dragX,s=t.touchX,l=t.drawerTranslation,p=t.containerWidth,c=o,w=s;'left'!==r?(c=u.Animated.multiply(new u.Animated.Value(-1),o),w=u.Animated.add(new u.Animated.Value(p),u.Animated.multiply(new u.Animated.Value(-1),s)),s.setValue(p)):s.setValue(0);var h=c;if('front'===i){var v=u.Animated.add(w,u.Animated.multiply(new u.Animated.Value(-1),c)).interpolate({inputRange:[n-1,n,n+1],outputRange:[0,0,1]});h=u.Animated.add(c,v)}a.openValue=u.Animated.add(h,l).interpolate({inputRange:[0,n],outputRange:[0,1],extrapolate:'clamp'});var f={useNativeDriver:e.useNativeAnimations};a.props.onDrawerSlide&&(f.listener=function(e){var t=Math.floor(Math.abs(e.nativeEvent.translationX))/a.state.containerWidth;null==a.props.onDrawerSlide||a.props.onDrawerSlide(t)}),a.onGestureEvent=u.Animated.event([{nativeEvent:{translationX:o,x:s}}],f)},a.handleContainerLayout=function(e){var t=e.nativeEvent;a.setState({containerWidth:t.layout.width})},a.emitStateChanged=function(e,t){null==a.props.onDrawerStateChanged||a.props.onDrawerStateChanged(e,t)},a.openingHandlerStateChange=function(e){var t=e.nativeEvent;t.oldState===_r(d[10]).State.ACTIVE?a.handleRelease({nativeEvent:t}):t.state===_r(d[10]).State.ACTIVE&&(a.emitStateChanged(v,!1),a.setState({drawerState:v}),'on-drag'===a.props.keyboardDismissMode&&u.Keyboard.dismiss(),a.props.hideStatusBar&&u.StatusBar.setHidden(!0,a.props.statusBarAnimation||'slide'))},a.onTapHandlerStateChange=function(e){var t=e.nativeEvent;a.drawerShown&&t.oldState===_r(d[10]).State.ACTIVE&&'locked-open'!==a.props.drawerLockMode&&a.closeDrawer()},a.handleRelease=function(e){var t=e.nativeEvent,r=a.props,n=r.drawerWidth,i=r.drawerPosition,o=r.drawerType,s=a.state.containerWidth,l=t.translationX,u=t.velocityX,p=t.x;'left'!==i&&(l=-l,p=s-p,u=-u);var c=p-l,w=0;'front'===o&&(w=c>n?c-n:0);var h=l+w+(a.drawerShown?n:0);h+.05*u>n/2?a.animateDrawer(h,n,u):a.animateDrawer(h,0,u)},a.updateShowing=function(e){var t,r,n;a.drawerShown=e,null==(t=a.accessibilityIsModalView.current)||t.setNativeProps({accessibilityViewIsModal:e}),null==(r=a.pointerEventsView.current)||r.setNativeProps({pointerEvents:e?'auto':'none'});var i=a.props,o=i.drawerPosition,s=i.minSwipeDistance,l=i.edgeWidth,u='left'===o,p=(u?1:-1)*(a.drawerShown?-1:1),c=u?{left:0,width:e?void 0:l}:{right:0,width:e?void 0:l};null==(n=a.panGestureHandler.current)||n.setNativeProps({hitSlop:c,activeOffsetX:p*s})},a.animateDrawer=function(e,t,r,n){if(a.state.dragX.setValue(0),a.state.touchX.setValue('left'===a.props.drawerPosition?0:a.state.containerWidth),null!=e){var i=e;a.props.useNativeAnimations&&(e0?i=Math.min(e+r/60,t):e>t&&r<0&&(i=Math.max(e+r/60,t))),a.state.drawerTranslation.setValue(i)}var o=0!==t;a.updateShowing(o),a.emitStateChanged(f,o),a.setState({drawerState:f}),a.props.hideStatusBar&&u.StatusBar.setHidden(o,a.props.statusBarAnimation||'slide'),u.Animated.spring(a.state.drawerTranslation,{velocity:r,bounciness:0,toValue:t,useNativeDriver:a.props.useNativeAnimations,speed:null!=n?n:void 0}).start((function(e){e.finished&&(a.emitStateChanged(h,o),a.setState({drawerOpened:o}),a.state.drawerState!==v&&a.setState({drawerState:h}),o?null==a.props.onDrawerOpen||a.props.onDrawerOpen():null==a.props.onDrawerClose||a.props.onDrawerClose())}))},a.openDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.animateDrawer(void 0,a.props.drawerWidth,e.velocity?e.velocity:0,e.speed),a.forceUpdate()},a.closeDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),a.forceUpdate()},a.renderOverlay=function(){(0,l.default)(a.openValue,'should be set');var e={opacity:a.state.drawerState!==h?a.openValue:a.state.drawerOpened?1:0,backgroundColor:a.props.overlayColor};return(0,p.jsx)(_r(d[11]).TapGestureHandler,{onHandlerStateChange:a.onTapHandlerStateChange,children:(0,p.jsx)(u.Animated.View,{pointerEvents:a.drawerShown?'auto':'none',ref:a.pointerEventsView,style:[y.overlay,e]})})},a.renderDrawer=function(){var e,t=a.props,r=t.drawerBackgroundColor,n=t.drawerWidth,i=t.drawerPosition,o=t.drawerType,s=t.drawerContainerStyle,c=t.contentContainerStyle,w='left'===i,v='back'!==o,f='front'!==o,S=u.I18nManager.isRTL?w:!w,b={backgroundColor:r,width:n},V=a.openValue;((0,l.default)(V,'should be set'),f)&&(e={transform:[{translateX:V.interpolate({inputRange:[0,1],outputRange:w?[0,n]:[0,-n],extrapolate:'clamp'})}]});var C=0;if(v){var A=w?-n:n;C=a.state.drawerState!==h?V.interpolate({inputRange:[0,1],outputRange:[A,0],extrapolate:'clamp'}):a.state.drawerOpened?0:A}var D={transform:[{translateX:C}],flexDirection:S?'row-reverse':'row'};return(0,p.jsxs)(u.Animated.View,{style:y.main,onLayout:a.handleContainerLayout,children:[(0,p.jsxs)(u.Animated.View,{style:['front'===o?y.containerOnBack:y.containerInFront,e,c],importantForAccessibility:a.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof a.props.children?a.props.children(a.openValue):a.props.children,a.renderOverlay()]}),(0,p.jsx)(u.Animated.View,{pointerEvents:"box-none",ref:a.accessibilityIsModalView,accessibilityViewIsModal:a.drawerShown,style:[y.drawerContainer,D,s],children:(0,p.jsx)(u.View,{style:b,children:a.props.renderNavigationView(a.openValue)})})]})},a.setPanGestureRef=function(e){a.panGestureHandler.current=e,null==a.props.onGestureRef||a.props.onGestureRef(e)};var b=new u.Animated.Value(0),V=new u.Animated.Value(0),C=new u.Animated.Value(0);return a.state={dragX:b,touchX:V,drawerTranslation:C,containerWidth:0,drawerState:h,drawerOpened:!1},a.updateAnimatedEvent(e,a.state),a}return(0,i.default)(o,e),(0,a.default)(o,[{key:"shouldComponentUpdate",value:function(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}},{key:"render",value:function(){var e=this.props,t=e.drawerPosition,a=e.drawerLockMode,r=e.edgeWidth,n=e.minSwipeDistance,i='left'===t,o=(i?1:-1)*(this.drawerShown?-1:1),s=i?{left:0,width:this.drawerShown?void 0:r}:{right:0,width:this.drawerShown?void 0:r};return(0,p.jsx)(_r(d[12]).PanGestureHandler,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:s,activeOffsetX:o*n,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==a&&'locked-open'!==a,children:this.renderDrawer()})}}])})(o.Component);S.defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1},S.positions={Left:'left',Right:'right'};var y=u.StyleSheet.create({drawerContainer:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1002}),containerOnBack:Object.assign({},u.StyleSheet.absoluteFillObject),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},u.StyleSheet.absoluteFillObject,{zIndex:1e3})})}),721,[2,6,7,11,13,14,16,31,18,223,486,515,516]); +__d((function(a,e,t,n,s,i,m){s.exports={name:"InstabugExample",displayName:"Instabug - React Native"}}),722,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.App=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=l(_r(d[3])),o=_r(d[4]),a=l(_r(d[5])),i=_r(d[6]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var c=new(_r(d[7]).QueryClient),f=(_e.App=function(){var e=function(e){return e.launchType===a.LaunchType.cold||(e.sessionDurationInSeconds>20||'OS Level 34'===e.OS)},u=(0,_r(d[8]).useNavigationContainerRef)(),l=(0,r.useState)(!1),s=(0,n.default)(l,2),p=s[0],v=s[1],y=(function(){var n=(0,t.default)((function*(){try{a.SessionReplay.setSyncCallback((function(t){return e(t)})),yield a.default.init({token:'b2de455baabc2efaa9bd50bf9949520b',invocationEvents:[a.InvocationEvent.floatingButton],debugLogsLevel:a.LogLevel.verbose,networkInterceptionMode:a.NetworkInterceptionMode.javascript}),a.CrashReporting.setNDKCrashesEnabled(!0),a.default.setReproStepsConfig({all:a.ReproStepsMode.enabled}),v(!0)}catch(e){console.error('Instabug initialization failed:',e),v(!0)}}));return function(){return n.apply(this,arguments)}})();return(0,r.useEffect)((function(){y().then((function(){a.NetworkLogger.setNetworkDataObfuscationHandler((function(){var e=(0,t.default)((function*(e){return e.url=`${e.url}/JS/Obfuscated`,e}));return function(t){return e.apply(this,arguments)}})())}))})),(0,r.useEffect)((function(){return a.default.setNavigationListener(u)}),[u]),p?(0,i.jsx)(_r(d[9]).GestureHandlerRootView,{style:f.root,children:(0,i.jsx)(_r(d[10]).NativeBaseProvider,{theme:_r(d[11]).nativeBaseTheme,children:(0,i.jsx)(_r(d[7]).QueryClientProvider,{client:c,children:(0,i.jsx)(_r(d[8]).NavigationContainer,{onStateChange:a.default.onStateChange,theme:_r(d[12]).navigationTheme,children:(0,i.jsx)(_r(d[13]).RootTabNavigator,{})})})})}):(0,i.jsx)(o.ActivityIndicator,{size:"large",color:"#0000ff",style:f.loading})},o.StyleSheet.create({root:{flex:1},loading:{flex:1,justifyContent:'center',alignItems:'center'}}))}),723,[2,349,44,16,18,724,223,769,810,1,906,1650,1651,1652]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0});var r={Report:!0,Trace:!0,APM:!0,BugReporting:!0,CrashReporting:!0,FeatureRequests:!0,NetworkLogger:!0,Replies:!0,Surveys:!0,SessionReplay:!0};_e.Replies=_e.NetworkLogger=_e.FeatureRequests=_e.CrashReporting=_e.BugReporting=_e.APM=void 0,Object.defineProperty(_e,"Report",{enumerable:!0,get:function(){return t.default}}),_e.Surveys=_e.SessionReplay=void 0,Object.defineProperty(_e,"Trace",{enumerable:!0,get:function(){return n.default}}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),o=y(_r(d[3]));_e.APM=o;var u=y(_r(d[4]));_e.BugReporting=u;var a=y(_r(d[5]));_e.CrashReporting=a;var i=y(_r(d[6]));_e.FeatureRequests=i;var p=y(_r(d[7])),f=y(_r(d[8]));_e.NetworkLogger=f;var l=y(_r(d[9]));_e.Replies=l;var s=y(_r(d[10]));_e.Surveys=s;var c=y(_r(d[11]));function v(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(v=function(e){return e?t:r})(e)}function y(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=v(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=o?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}_e.SessionReplay=c,Object.keys(_r(d[12])).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in _e&&_e[e]===_r(d[12])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[12])[e]}}))}));_e.default=p}),724,[2,725,728,730,731,733,761,739,735,763,765,767,745]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=t(r(d[2])),s=t(r(d[3])),u=r(d[4]);e.default=(function(){return(0,s.default)((function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(0,n.default)(this,t),this.tags=o,this.consoleLogs=s,this.instabugLogs=u,this.userAttributes=l,this.fileAttachments=h}),[{key:"appendTag",value:function(t){r(d[5]).NativeInstabug.appendTagToReport(t),this.tags=[].concat((0,o.default)(this.tags),[t])}},{key:"appendConsoleLog",value:function(t){r(d[5]).NativeInstabug.appendConsoleLogToReport(t),this.consoleLogs=[].concat((0,o.default)(this.consoleLogs),[t])}},{key:"setUserAttribute",value:function(t,o){r(d[5]).NativeInstabug.setUserAttributeToReport(t,o),this.userAttributes[t]=o}},{key:"logDebug",value:function(t){r(d[5]).NativeInstabug.logDebugToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'debug'}])}},{key:"logVerbose",value:function(t){r(d[5]).NativeInstabug.logVerboseToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'verbose'}])}},{key:"logWarn",value:function(t){r(d[5]).NativeInstabug.logWarnToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'warn'}])}},{key:"logError",value:function(t){r(d[5]).NativeInstabug.logErrorToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'error'}])}},{key:"logInfo",value:function(t){r(d[5]).NativeInstabug.logInfoToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'info'}])}},{key:"addFileAttachmentWithUrl",value:function(t,n){'ios'===u.Platform.OS?r(d[5]).NativeInstabug.addFileAttachmentWithURLToReport(t):r(d[5]).NativeInstabug.addFileAttachmentWithURLToReport(t,n),this.fileAttachments=[].concat((0,o.default)(this.fileAttachments),[{file:t,type:'url'}])}},{key:"addFileAttachmentWithData",value:function(t,n){'ios'===u.Platform.OS?r(d[5]).NativeInstabug.addFileAttachmentWithDataToReport(t):r(d[5]).NativeInstabug.addFileAttachmentWithDataToReport(t,n),this.fileAttachments=[].concat((0,o.default)(this.fileAttachments),[{file:t,type:'data'}])}}])})()}),725,[2,22,6,7,18,726]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.emitter=e.NativeInstabug=e.NativeEvents=void 0;var t=r(d[0]),n=e.NativeInstabug=r(d[1]).NativeModules.Instabug;e.NativeEvents=(function(t){return t.PRESENDING_HANDLER="IBGpreSendingHandler",t.IBG_ON_FEATURES_UPDATED_CALLBACK="IBGOnFeatureUpdatedCallback",t.ON_FEATURE_FLAGS_CHANGE="IBGOnNewFeatureFlagsUpdateReceivedCallback",t})({}),e.emitter=new t.NativeEventEmitter(n)}),726,[18,727]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeModules=void 0;var o=r(d[0]);e.NativeModules=o.NativeModules}),727,[18]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),n=t(r(d[2]));e.default=(function(){return(0,n.default)((function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.default)(this,t),this.id=n,this.name=o,this.attributes=s}),[{key:"setAttribute",value:function(t,u){r(d[3]).NativeAPM.setExecutionTraceAttribute(this.id,t,u),this.attributes[t]=u}},{key:"end",value:function(){r(d[3]).NativeAPM.endExecutionTrace(this.id)}}])})()}),728,[2,6,7,729]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.emitter=e.NativeAPM=void 0;var t=r(d[0]),v=e.NativeAPM=r(d[1]).NativeModules.IBGAPM;e.emitter=new t.NativeEventEmitter(v)}),729,[18,727]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.startUITrace=e.startFlow=e.startExecutionTrace=e.setNetworkEnabledIOS=e.setFlowAttribute=e.setEnabled=e.setAutoUITraceEnabled=e.setAppLaunchEnabled=e.endUITrace=e.endFlow=e.endAppLaunch=e._ibgSleep=void 0;var n=t(r(d[1])),o=r(d[2]),c=t(r(d[3]));e.setEnabled=function(t){r(d[4]).NativeAPM.setEnabled(t)},e.setAppLaunchEnabled=function(t){r(d[4]).NativeAPM.setAppLaunchEnabled(t)},e.endAppLaunch=function(){r(d[4]).NativeAPM.endAppLaunch()},e.setNetworkEnabledIOS=function(t){'ios'===o.Platform.OS&&r(d[5]).NativeInstabug.setNetworkLoggingEnabled(t)},e.setAutoUITraceEnabled=function(t){r(d[4]).NativeAPM.setAutoUITraceEnabled(t)},e.startExecutionTrace=(function(){var t=(0,n.default)((function*(t){var n=`Execution trace "${t}" wasn't created. Please make sure to enable APM first by following the instructions at this link: https://docs.instabug.com/reference#enable-or-disable-apm`,o=Date.now()+'',u=yield r(d[4]).NativeAPM.startExecutionTrace(t,o);if(!u)throw new Error(n);return new c.default(u,t)}));return function(n){return t.apply(this,arguments)}})(),e.startFlow=function(t){r(d[4]).NativeAPM.startFlow(t)},e.endFlow=function(t){r(d[4]).NativeAPM.endFlow(t)},e.setFlowAttribute=function(t,n,o){r(d[4]).NativeAPM.setFlowAttribute(t,n,o)},e.startUITrace=function(t){r(d[4]).NativeAPM.startUITrace(t)},e.endUITrace=function(){r(d[4]).NativeAPM.endUITrace()},e._ibgSleep=function(){r(d[4]).NativeAPM.ibgSleep()}}),730,[2,349,18,728,729,726]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.show=e.setViewHierarchyEnabled=e.setVideoRecordingFloatingButtonPosition=e.setShakingThresholdForiPhone=e.setShakingThresholdForiPad=e.setShakingThresholdForAndroid=e.setReportTypes=e.setOptions=e.setInvocationEvents=e.setFloatingButtonEdge=e.setExtendedBugReportMode=e.setEnabledAttachmentTypes=e.setEnabled=e.setDisclaimerText=e.setDidSelectPromptOptionHandler=e.setCommentMinimumCharacterCount=e.setAutoScreenRecordingEnabled=e.setAutoScreenRecordingDurationIOS=e.onSDKDismissedHandler=e.onInvokeHandler=e.addUserConsent=void 0;var t=r(d[0]);e.setEnabled=function(t){r(d[1]).NativeBugReporting.setEnabled(t)},e.setInvocationEvents=function(t){r(d[1]).NativeBugReporting.setInvocationEvents(t)},e.setOptions=function(t){r(d[1]).NativeBugReporting.setOptions(t)},e.onInvokeHandler=function(t){r(d[1]).emitter.addListener(r(d[1]).NativeEvents.ON_INVOKE_HANDLER,t),r(d[1]).NativeBugReporting.setOnInvokeHandler(t)},e.onSDKDismissedHandler=function(t){r(d[1]).emitter.addListener(r(d[1]).NativeEvents.ON_DISMISS_HANDLER,(function(n){t(n.dismissType,n.reportType)})),r(d[1]).NativeBugReporting.setOnSDKDismissedHandler(t)},e.setShakingThresholdForiPhone=function(n){'ios'===t.Platform.OS&&r(d[1]).NativeBugReporting.setShakingThresholdForiPhone(n)},e.setShakingThresholdForiPad=function(n){'ios'===t.Platform.OS&&r(d[1]).NativeBugReporting.setShakingThresholdForiPad(n)},e.setShakingThresholdForAndroid=function(n){'android'===t.Platform.OS&&r(d[1]).NativeBugReporting.setShakingThresholdForAndroid(n)},e.setExtendedBugReportMode=function(t){r(d[1]).NativeBugReporting.setExtendedBugReportMode(t)},e.setReportTypes=function(t){r(d[1]).NativeBugReporting.setReportTypes(t)},e.show=function(t,n){r(d[1]).NativeBugReporting.show(t,null!=n?n:[])},e.setAutoScreenRecordingEnabled=function(t){r(d[1]).NativeBugReporting.setAutoScreenRecordingEnabled(t)},e.setAutoScreenRecordingDurationIOS=function(n){'ios'===t.Platform.OS&&r(d[1]).NativeBugReporting.setAutoScreenRecordingDuration(n)},e.setVideoRecordingFloatingButtonPosition=function(t){r(d[1]).NativeBugReporting.setVideoRecordingFloatingButtonPosition(t)},e.setViewHierarchyEnabled=function(t){r(d[1]).NativeBugReporting.setViewHierarchyEnabled(t)},e.addUserConsent=function(t,n,o,s,u){r(d[1]).NativeBugReporting.addUserConsent(t,n,o,s,u)},e.setDidSelectPromptOptionHandler=function(n){'android'!==t.Platform.OS&&(r(d[1]).emitter.addListener(r(d[1]).NativeEvents.DID_SELECT_PROMPT_OPTION_HANDLER,(function(t){n(t.promptOption)})),r(d[1]).NativeBugReporting.setDidSelectPromptOptionHandler(n))},e.setFloatingButtonEdge=function(t,n){r(d[1]).NativeBugReporting.setFloatingButtonEdge(t,n)},e.setEnabledAttachmentTypes=function(t,n,o,s){r(d[1]).NativeBugReporting.setEnabledAttachmentTypes(t,n,o,s)},e.setDisclaimerText=function(t){r(d[1]).NativeBugReporting.setDisclaimerText(t)},e.setCommentMinimumCharacterCount=function(t,n){r(d[1]).NativeBugReporting.setCommentMinimumCharacterCount(t,null!=n?n:[])}}),731,[18,732]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.emitter=e.NativeEvents=e.NativeBugReporting=void 0;var t=r(d[0]),n=e.NativeBugReporting=r(d[1]).NativeModules.IBGBugReporting;e.NativeEvents=(function(t){return t.ON_INVOKE_HANDLER="IBGpreInvocationHandler",t.ON_DISMISS_HANDLER="IBGpostInvocationHandler",t.DID_SELECT_PROMPT_OPTION_HANDLER="IBGDidSelectPromptOptionHandler",t})({}),e.emitter=new t.NativeEventEmitter(n)}),732,[18,727]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.setNDKCrashesEnabled=e.setEnabled=e.reportError=void 0;var n=t(r(d[1])),o=r(d[2]);e.setEnabled=function(t){r(d[3]).NativeCrashReporting.setEnabled(t)},e.reportError=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t instanceof Error){var s=r(d[4]).NonFatalErrorLevel.error;return null!=o.level&&(s=o.level),n.default.sendCrashReport(t,(function(t){return r(d[3]).NativeCrashReporting.sendHandledJSCrash(t,o.userAttributes,o.fingerprint,s)}))}r(d[5]).Logger.warn(`IBG-RN: The error ${t} has been omitted because only error type is supported.`)},e.setNDKCrashesEnabled=function(t){'android'===o.Platform.OS&&r(d[3]).NativeCrashReporting.setNDKCrashesEnabled(t)}}),733,[2,734,18,744,745,759]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.captureJsErrors=void 0,_e.checkNetworkRequestHandlers=function(){var e=o.getNetworkDataObfuscationHandler(),r=o.hasRequestFilterExpression();if(r&&e)return void L(o.getRequestFilterExpression());if(e)return void h();if(r)return void I(o.getRequestFilterExpression())},_e.getCrashDataFromError=_e.getActiveRouteName=_e.generateW3CHeader=_e.generateTracePartialId=_e.default=void 0,_e.getFullRoute=c,_e.getStackTrace=void 0,_e.isContentTypeNotAllowed=function(e){return['application/protobuf','application/json','application/xml','text/xml','text/html','text/plain'].every((function(r){return!e.includes(r)}))},_e.parseErrorStack=void 0,_e.registerFilteringAndObfuscationListener=L,_e.registerFilteringListener=I,_e.registerObfuscationListener=h,_e.reportNetworkLog=void 0,_e.resetNativeObfuscationListener=function(){'android'===t.Platform.OS&&_r(d[8]).NativeNetworkLogger.resetNetworkLogsListener();_r(d[8]).NetworkLoggerEmitter.removeAllListeners(_r(d[8]).NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER)},_e.sendCrashReport=N,_e.setApmNetworkFlagsIfChanged=function(e){if(e.hasAPMNetworkPlugin===i.hasAPMNetworkPlugin&&e.isNativeInterceptionFeatureEnabled===i.isNativeInterceptionFeatureEnabled&&e.shouldEnableNativeInterception===i.shouldEnableNativeInterception)return!1;return i=e,!0},_e.stringifyIfNotString=void 0,_e.updateNetworkLogSnapshot=O;var r=e(_r(d[1])),t=_r(d[2]),n=e(_r(d[3])),o=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n})(_r(d[4]));function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}var i={isNativeInterceptionFeatureEnabled:!1,hasAPMNetworkPlugin:!1,shouldEnableNativeInterception:!1};var s=_e.parseErrorStack=function(e){return(0,n.default)(e)},u=_e.getCrashDataFromError=function(e){var r=f(e);return{message:e.name+' - '+e.message,e_message:e.message,e_name:e.name,os:t.Platform.OS,platform:'react_native',exception:r}},l=_e.getActiveRouteName=function(e){if(!e)return null;var r=e.routes[e.index];return r.routes?l(r):r.routeName};function c(e){try{return e.routes[e.index].state?c(e.routes[e.index].state):e.routes[e.index].name}catch(e){return''}}var f=_e.getStackTrace=function(e){return t.Platform.hasOwnProperty('constants')&&t.Platform.constants.reactNativeVersion.minor>=64?(0,n.default)(e.stack):(0,n.default)(e)},p=_e.captureJsErrors=function(){process.env.JEST_WORKER_ID;var e=ErrorUtils.getGlobalHandler(),t=function(e,r){return N(e,_r(d[5]).NativeCrashReporting.sendJSCrash)};ErrorUtils.setGlobalHandler((function(){var n=(0,r.default)((function*(r,n){yield t(r),process.env.JEST_WORKER_ID||e(r,n)}));return function(e,r){return n.apply(this,arguments)}})())},v=_e.stringifyIfNotString=function(e){return'string'==typeof e?e:JSON.stringify(e)};function N(e,r){return w.apply(this,arguments)}function w(){return(w=(0,r.default)((function*(e,r){var n=u(e);return'android'===t.Platform.OS?r(JSON.stringify(n)):r(n)}))).apply(this,arguments)}var y=_e.generateTracePartialId=function(){var e,r;do{r=(e=Math.floor(4294967295*Math.random())).toString(16).padStart(8,'0')}while('00000000'===r);return{numberPartilId:e,hexStringPartialId:r.toLowerCase()}},k=_e.generateW3CHeader=function(e){var r=y(),t=r.hexStringPartialId,n=r.numberPartilId,o=Math.floor(e.valueOf()/1e3),a=o.toString(16).toLowerCase();return{timestampInSeconds:o,partialId:n,w3cHeader:`00-${`${a}${t}${a}${t}`}-${`4942472d${t}`}-01`}};var S=_e.reportNetworkLog=function(e){if('android'===t.Platform.OS){var r=JSON.stringify(e.requestHeaders),n=JSON.stringify(e.responseHeaders);_r(d[6]).NativeInstabug.networkLogAndroid(e.url,e.requestBody,e.responseBody,e.method,e.responseCode,r,n,e.duration),i.isNativeInterceptionFeatureEnabled&&i.hasAPMNetworkPlugin&&i.shouldEnableNativeInterception||_r(d[7]).NativeAPM.networkLogAndroid(e.startTime,e.duration,r,e.requestBody,e.requestBodySize,e.method,e.url,e.requestContentType,n,e.responseBody,e.responseBodySize,e.responseCode,e.contentType,e.errorDomain,{isW3cHeaderFound:e.isW3cHeaderFound,partialId:e.partialId,networkStartTimeInSeconds:e.networkStartTimeInSeconds,w3cGeneratedHeader:e.w3cGeneratedHeader,w3cCaughtHeader:e.w3cCaughtHeader},e.gqlQueryName,e.serverErrorMessage)}else _r(d[6]).NativeInstabug.networkLogIOS(e.url,e.method,e.requestBody,e.requestBodySize,e.responseBody,e.responseBodySize,e.responseCode,e.requestHeaders,e.responseHeaders,e.contentType,e.errorDomain,e.errorCode,e.startTime,e.duration,e.gqlQueryName,e.serverErrorMessage,{isW3cHeaderFound:e.isW3cHeaderFound,partialId:e.partialId,networkStartTimeInSeconds:e.networkStartTimeInSeconds,w3cGeneratedHeader:e.w3cGeneratedHeader,w3cCaughtHeader:e.w3cCaughtHeader})};function h(){o.registerNetworkLogsListener(_r(d[8]).NetworkListenerType.obfuscation,(function(){var e=(0,r.default)((function*(e){var r=o.getNetworkDataObfuscationHandler();r&&(e=yield r(e)),O(e)}));return function(r){return e.apply(this,arguments)}})())}function I(e){o.registerNetworkLogsListener(_r(d[8]).NetworkListenerType.filtering,(function(){var n=(0,r.default)((function*(r){var n=Function('network','return '+e)(r);'ios'===t.Platform.OS?_r(d[8]).NativeNetworkLogger.setNetworkLoggingRequestFilterPredicateIOS(r.id,!n):n&&(r.url='',O(r))}));return function(e){return n.apply(this,arguments)}})())}function L(e){o.registerNetworkLogsListener(_r(d[8]).NetworkListenerType.both,(function(){var n=(0,r.default)((function*(r){var n=Function('network','return '+e)(r);if('ios'===t.Platform.OS?_r(d[8]).NativeNetworkLogger.setNetworkLoggingRequestFilterPredicateIOS(r.id,!n):n&&(r.url='',O(r)),!n){var a=o.getNetworkDataObfuscationHandler();a&&(r=yield a(r)),O(r)}}));return function(e){return n.apply(this,arguments)}})())}function O(e){var r;_r(d[8]).NativeNetworkLogger.updateNetworkLogSnapshot(e.url,e.id,e.requestBody,e.responseBody,null!=(r=e.responseCode)?r:200,e.requestHeaders,e.responseHeaders)}_e.default={parseErrorStack:s,captureJsErrors:p,getActiveRouteName:l,getFullRoute:c,getStackTrace:f,stringifyIfNotString:v,sendCrashReport:N,reportNetworkLog:S,generateTracePartialId:y,generateW3CHeader:k}}),734,[2,349,18,93,735,744,726,729,740]); +__d((function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.setRequestFilterExpression=_e.setProgressHandlerForRequest=_e.setNetworkLogBodyEnabled=_e.setNetworkDataObfuscationHandler=_e.setNativeInterceptionEnabled=_e.setEnabled=_e.resetNetworkListener=_e.registerNetworkLogsListener=_e.hasRequestFilterExpression=_e.getRequestFilterExpression=_e.getNetworkDataObfuscationHandler=_e.apolloLinkRequestHandler=void 0;var t,o=e(r(d[1])),n=e(r(d[2])),s=e(r(d[3])),u=r(d[4]),l='false',E=!1,p=null,c=!1;_e.setEnabled=function(e){e?(s.default.enableInterception(),s.default.setOnDoneCallback((function(){var e=(0,o.default)((function*(e){if(!Function('network','return '+l)(e)){var o=yield r(d[5]).NativeInstabug.getNetworkBodyMaxSize();try{t&&(e=yield t(e)),e.requestBodySize>o&&(e.requestBody=`${n.default.MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE}${o/1024} Kb`,r(d[6]).Logger.warn('IBG-RN:',`${n.default.MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE}${o/1024} Kb`)),e.responseBodySize>o&&(e.responseBody=`${n.default.MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE}${o/1024} Kb`,r(d[6]).Logger.warn('IBG-RN:',`${n.default.MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE}${o/1024} Kb`)),e.requestBody&&(0,r(d[7]).isContentTypeNotAllowed)(e.requestContentType)&&(e.requestBody=`Body is omitted because content type ${e.requestContentType} isn't supported`,r(d[6]).Logger.warn(`IBG-RN: The request body for the network request with URL ${e.url} has been omitted because the content type ${e.requestContentType} isn't supported.`)),e.responseBody&&(0,r(d[7]).isContentTypeNotAllowed)(e.contentType)&&(e.responseBody=`Body is omitted because content type ${e.contentType} isn't supported`,r(d[6]).Logger.warn(`IBG-RN: The response body for the network request with URL ${e.url} has been omitted because the content type ${e.contentType} isn't supported.`)),(0,r(d[7]).reportNetworkLog)(e)}catch(e){r(d[6]).Logger.error(e)}}}));return function(t){return e.apply(this,arguments)}})())):s.default.disableInterception()},_e.setNativeInterceptionEnabled=function(e){E=e},_e.getNetworkDataObfuscationHandler=function(){return t},_e.getRequestFilterExpression=function(){return l},_e.hasRequestFilterExpression=function(){return c},_e.setNetworkDataObfuscationHandler=function(e){t=e,E&&'ios'===u.Platform.OS&&(c?(0,r(d[7]).registerFilteringAndObfuscationListener)(l):(0,r(d[7]).registerObfuscationListener)())},_e.setRequestFilterExpression=function(e){l=e,c=!0,E&&'ios'===u.Platform.OS&&(t?(0,r(d[7]).registerFilteringAndObfuscationListener)(l):(0,r(d[7]).registerFilteringListener)(l))},_e.setProgressHandlerForRequest=function(e){s.default.setOnProgressCallback(e)},_e.apolloLinkRequestHandler=function(e,t){try{e.setContext((function(t){var o,s=null!=(o=t.headers)?o:{};return s[n.default.GRAPHQL_HEADER]=e.operationName,{headers:s}}))}catch(e){r(d[6]).Logger.error(e)}return t(e)},_e.setNetworkLogBodyEnabled=function(e){r(d[5]).NativeInstabug.setNetworkLogBodyEnabled(e)},_e.resetNetworkListener=function(){r(d[6]).Logger.error(`${n.default.IBG_APM_TAG}: The \`resetNetworkListener()\` method is intended solely for testing purposes.`)},_e.registerNetworkLogsListener=function(e,t){var o;('ios'===u.Platform.OS&&(r(d[8]).NetworkLoggerEmitter.listenerCount(r(d[8]).NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER)>0&&r(d[8]).NetworkLoggerEmitter.removeAllListeners(r(d[8]).NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER),p=null==p?e:r(d[8]).NetworkListenerType.both),r(d[8]).NetworkLoggerEmitter.addListener(r(d[8]).NativeNetworkLoggerEvent.NETWORK_LOGGER_HANDLER,(function(e){var o=e.id,n=e.url,s=e.requestHeader,u=e.requestBody,l=e.responseHeader,E=e.response,p=e.responseCode;t&&t({id:o,url:n,requestBody:u,requestHeaders:s,method:'',responseBody:E,responseCode:p,responseHeaders:l,contentType:'',duration:0,requestBodySize:0,responseBodySize:0,errorDomain:'',errorCode:0,startTime:0,serverErrorMessage:'',requestContentType:'',isW3cHeaderFound:!0,networkStartTimeInSeconds:0,partialId:0,w3cCaughtHeader:'',w3cGeneratedHeader:''})})),'ios'===u.Platform.OS)?r(d[8]).NativeNetworkLogger.registerNetworkLogsListener(null!=(o=p)?o:r(d[8]).NetworkListenerType.both):r(d[8]).NativeNetworkLogger.registerNetworkLogsListener()}}),735,[2,349,736,737,18,726,759,734,740]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={GRAPHQL_HEADER:'ibg-graphql-header',MAX_NETWORK_BODY_SIZE_IN_BYTES:10240,MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE:'The response body has not been logged because it exceeds the maximum size of ',MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE:'The request body has not been logged because it exceeds the maximum size of ',SET_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE:'IBG-RN: Expected key and value passed to setUserAttribute to be of type string',REMOVE_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE:'IBG-RN: Expected key and value passed to removeUserAttribute to be of type string',DEFAULT_METRO_PORT:'8081',IBG_APM_TAG:'IBG-APM: ',SWITCHED_TO_NATIVE_INTERCEPTION_MESSAGE:'Android Plugin Detected. Switched to Native Interception.',PLUGIN_NOT_INSTALLED_MESSAGE:'Network Spans will not be captured as Android Plugin is not installed. Disabling Native Interception to minimize data loss.',NATIVE_INTERCEPTION_DISABLED_MESSAGE:'Network Spans capture is disabled by Instabug. Disabling native interception to avoid data loss.'}}),736,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.injectHeaders=e.default=void 0;var s,n,o,p=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),y=g.XMLHttpRequest,c=y.prototype.open,f=y.prototype.send,H=y.prototype.setRequestHeader,E=!1,q=(function(){var t=(0,u.default)((function*(t){var s=yield Promise.all([r(d[4]).FeatureFlags.isW3ExternalTraceID(),r(d[4]).FeatureFlags.isW3ExternalGeneratedHeader(),r(d[4]).FeatureFlags.isW3CaughtHeader()]),n=(0,p.default)(s,3),o=n[0],u=n[1],l=n[2];return h(t,{isW3cExternalTraceIDEnabled:o,isW3cExternalGeneratedHeaderEnabled:u,isW3cCaughtHeaderEnabled:l})}));return function(s){return t.apply(this,arguments)}})(),h=e.injectHeaders=function(t,s){var n=s.isW3cExternalTraceIDEnabled,o=s.isW3cExternalGeneratedHeaderEnabled,p=s.isW3cCaughtHeaderEnabled;if(n){var u=null!=t.requestHeaders.traceparent;return t.isW3cHeaderFound=u,u?v(t,p):S(t,o)}},v=function(t,s){if(s)return t.w3cCaughtHeader=t.requestHeaders.traceparent,t.requestHeaders.traceparent},S=function(t,s){var n=(0,r(d[5]).generateW3CHeader)(t.startTime),o=n.timestampInSeconds,p=n.partialId,u=n.w3cHeader;if(t.partialId=p,t.networkStartTimeInSeconds=o,s)return t.w3cGeneratedHeader=u,u};e.default={setOnDoneCallback:function(t){n=t},setOnProgressCallback:function(t){s=t},enableInterception:function(){if(!E){c=y.prototype.open,f=y.prototype.send,H=y.prototype.setRequestHeader;y.prototype.open=function(t,s){(o={id:'',url:'',method:'',requestBody:'',requestBodySize:0,responseBody:'',responseBodySize:0,responseCode:0,requestHeaders:{},responseHeaders:{},contentType:'',errorDomain:'',errorCode:0,startTime:0,duration:0,gqlQueryName:'',serverErrorMessage:'',requestContentType:'',isW3cHeaderFound:null,partialId:null,networkStartTimeInSeconds:null,w3cGeneratedHeader:null,w3cCaughtHeader:null}).url=s,o.method=t;for(var n=arguments.length,p=new Array(n>2?n-2:0),u=2;u0&&(y.errorDomain=f)}else p._timedOut&&(y.errorCode=9876,y.errorDomain='TimeOutError');if(p.response)if('blob'===p.responseType){var H=yield new Response(p.response).text();y.responseBody=H}else['text','','json'].includes(p.responseType)&&(y.responseBody=JSON.stringify(p.response));else y.responseBody='',y.contentType='text/plain';if(y.requestBodySize=y.requestBody.length,0===y.responseBodySize&&y.responseBody&&(y.responseBodySize=y.responseBody.length),y.requestHeaders[l.default.GRAPHQL_HEADER]){if(y.gqlQueryName=y.requestHeaders[l.default.GRAPHQL_HEADER],delete y.requestHeaders[l.default.GRAPHQL_HEADER],'null'===y.gqlQueryName&&(y.gqlQueryName=''),y.responseBody)JSON.parse(y.responseBody).errors?y.serverErrorMessage='GraphQLError':y.serverErrorMessage=''}else delete y.gqlQueryName;n&&n(y)}}})));var c=function(t){if(E&&t.lengthComputable&&s){var n=t.loaded,o=t.total-t.loaded;s(n,o)}};this.addEventListener('progress',c),this.upload.addEventListener('progress',c)}y.startTime=Date.now();var H=yield q(y);H&&this.setRequestHeader('Traceparent',H),this.readyState!==this.UNSENT&&f.apply(this,[t])}));return function(s){return t.apply(this,arguments)}})(),E=!0}},disableInterception:function(){E=!1,y.prototype.send=f,y.prototype.open=c,y.prototype.setRequestHeader=H,n=null,s=null}}}),737,[2,44,349,736,738,734]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerFeatureFlagsListener=e.FeatureFlags=void 0;var n=t(r(d[1])),u=e.FeatureFlags={isW3ExternalTraceID:function(){return r(d[2]).NativeInstabug.isW3ExternalTraceIDEnabled()},isW3ExternalGeneratedHeader:function(){return r(d[2]).NativeInstabug.isW3ExternalGeneratedHeaderEnabled()},isW3CaughtHeader:function(){return r(d[2]).NativeInstabug.isW3CaughtHeaderEnabled()},networkLogLimit:function(){return r(d[2]).NativeInstabug.getNetworkBodyMaxSize()}};e.registerFeatureFlagsListener=function(){(0,r(d[3])._registerFeatureFlagsChangeListener)((function(t){u.isW3ExternalTraceID=(0,n.default)((function*(){return t.isW3ExternalTraceIDEnabled})),u.isW3ExternalGeneratedHeader=(0,n.default)((function*(){return t.isW3ExternalGeneratedHeaderEnabled})),u.isW3CaughtHeader=(0,n.default)((function*(){return t.isW3CaughtHeaderEnabled})),u.networkLogLimit=(0,n.default)((function*(){return t.networkBodyLimit}))}))}}),738,[2,349,726,739]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.willRedirectToStore=_e.showWelcomeMessage=_e.show=_e.setWelcomeMessageMode=_e.setUserData=_e.setUserAttribute=_e.setTrackUserSteps=_e.setString=_e.setSessionProfilerEnabled=_e.setReproStepsConfig=_e.setPrimaryColor=_e.setNavigationListener=_e.setMetroDevServerPort=_e.setLocale=_e.setIBGLogPrintsToConsole=_e.setEnabled=_e.setColorTheme=_e.setCodePushVersion=_e.resetTags=_e.reportScreenChange=_e.removeUserAttribute=_e.removePrivateView=_e.removeFeatureFlags=_e.removeFeatureFlag=_e.removeExperiments=_e.removeAllFeatureFlags=_e.onStateChange=_e.onReportSubmitHandler=_e.onNavigationStateChange=_e.logWarn=_e.logVerbose=_e.logUserEvent=_e.logOut=_e.logInfo=_e.logError=_e.logDebug=_e.init=_e.identifyUser=_e.getUserAttribute=_e.getTags=_e.getAllUserAttributes=_e.enableAutoMasking=_e.componentDidAppearListener=_e.clearLogs=_e.clearAllUserAttributes=_e.clearAllExperiments=_e.appendTags=_e.addPrivateView=_e.addFileAttachment=_e.addFeatureFlags=_e.addFeatureFlag=_e.addExperiments=_e._registerFeatureFlagsChangeListener=void 0;var t=e(_r(d[1])),n=_r(d[2]),r=e(_r(d[3])),a=u(_r(d[4])),o=u(_r(d[5])),i=e(_r(d[6]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}var l=null,c=null,f=!1,v='Initial Screen',N=n.AppState.currentState,p=!1,I=!1,b=!1;_e.setEnabled=function(e){_r(d[7]).NativeInstabug.setEnabled(e)};function S(e){'android'===n.Platform.OS&&null!=e&&_r(d[7]).NativeInstabug.reportCurrentViewChange(e)}_e.init=(function(){var e=(0,t.default)((function*(e){var r;'android'===n.Platform.OS?((0,_r(d[8]).registerFeatureFlagsListener)(),_(e)):(p=yield _r(d[9]).NativeNetworkLogger.isNativeInterceptionEnabled(),(0,_r(d[10]).addAppStateListener)((function(){var n=(0,t.default)((function*(t){return E(t,e)}));return function(e){return n.apply(this,arguments)}})()),h(e),(0,a.setApmNetworkFlagsIfChanged)({isNativeInterceptionFeatureEnabled:p,hasAPMNetworkPlugin:I,shouldEnableNativeInterception:b})),T(e),a.default.captureJsErrors(),(0,_r(d[11]).captureUnhandledRejections)(),f=!0,l=v,_r(d[12]).InstabugRNConfig.debugLogsLevel=null!=(r=e.debugLogsLevel)?r:_r(d[13]).LogLevel.error,S(v),setTimeout((function(){l===v&&(_r(d[7]).NativeInstabug.reportScreenChange(v),l=null)}),1e3)}));return function(t){return e.apply(this,arguments)}})();var E=(function(){var e=(0,t.default)((function*(e,t){['inactive','background'].includes(N)&&'active'===e&&((yield A())&&w(t));N=e}));return function(t,n){return e.apply(this,arguments)}})(),A=(function(){var e=(0,t.default)((function*(){var e=!1,t=yield _r(d[9]).NativeNetworkLogger.isNativeInterceptionEnabled();if(p!==t&&(p=t,e=!0),'android'===n.Platform.OS){var r=yield _r(d[9]).NativeNetworkLogger.hasAPMNetworkPlugin();I!==r&&(I=r,e=!0)}return e}));return function(){return e.apply(this,arguments)}})(),h=function(e){null==e.networkInterceptionMode&&(e.networkInterceptionMode=_r(d[13]).NetworkInterceptionMode.javascript),'android'===n.Platform.OS?(P(e),e.networkInterceptionMode=_r(d[13]).NetworkInterceptionMode.javascript):'ios'===n.Platform.OS&&(M(e),o.setNativeInterceptionEnabled(b)),e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.javascript&&o.setEnabled(!0)};function L(e){b&&e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.native?_r(d[9]).NativeNetworkLogger.forceStartNetworkLoggingIOS():_r(d[9]).NativeNetworkLogger.forceStopNetworkLoggingIOS()}var P=function(e){e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.javascript?p&&I&&(b=!0,_r(d[14]).Logger.warn(i.default.IBG_APM_TAG+i.default.SWITCHED_TO_NATIVE_INTERCEPTION_MESSAGE)):p?(b=I,I||_r(d[14]).Logger.error(i.default.IBG_APM_TAG+i.default.PLUGIN_NOT_INSTALLED_MESSAGE)):(b=!1,_r(d[14]).Logger.error(i.default.IBG_APM_TAG+i.default.NATIVE_INTERCEPTION_DISABLED_MESSAGE))},M=function(e){e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.native&&(p?(b=!0,o.setEnabled(!1)):(b=!1,o.setEnabled(!0),_r(d[14]).Logger.error(i.default.IBG_APM_TAG+i.default.NATIVE_INTERCEPTION_DISABLED_MESSAGE)))},T=function(e){var t;_r(d[7]).NativeInstabug.init(e.token,e.invocationEvents,null!=(t=e.debugLogsLevel)?t:_r(d[13]).LogLevel.error,b&&e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.native,e.codePushVersion)};function w(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];h(e),'ios'===n.Platform.OS&&t&&L(e),(0,a.setApmNetworkFlagsIfChanged)({isNativeInterceptionFeatureEnabled:p,hasAPMNetworkPlugin:I,shouldEnableNativeInterception:b}),b?(0,a.checkNetworkRequestHandlers)():(0,a.resetNativeObfuscationListener)()}function _(e){_r(d[7]).emitter.addListener(_r(d[7]).NativeEvents.IBG_ON_FEATURES_UPDATED_CALLBACK,(function(t){var n=t.cpNativeInterceptionEnabled,r=t.hasAPMPlugin;p=n,I=r,b=e.networkInterceptionMode===_r(d[13]).NetworkInterceptionMode.native,w(e)})),_r(d[7]).NativeInstabug.setOnFeaturesUpdatedListener()}_e.setCodePushVersion=function(e){_r(d[7]).NativeInstabug.setCodePushVersion(e)},_e.setUserData=function(e){_r(d[7]).NativeInstabug.setUserData(e)},_e.setTrackUserSteps=function(e){'ios'===n.Platform.OS&&_r(d[7]).NativeInstabug.setTrackUserSteps(e)},_e.setIBGLogPrintsToConsole=function(e){'ios'===n.Platform.OS&&_r(d[7]).NativeInstabug.setIBGLogPrintsToConsole(e)},_e.setSessionProfilerEnabled=function(e){_r(d[7]).NativeInstabug.setSessionProfilerEnabled(e)},_e.setLocale=function(e){_r(d[7]).NativeInstabug.setLocale(e)},_e.setColorTheme=function(e){_r(d[7]).NativeInstabug.setColorTheme(e)},_e.setPrimaryColor=function(e){_r(d[7]).NativeInstabug.setPrimaryColor((0,n.processColor)(e))},_e.appendTags=function(e){_r(d[7]).NativeInstabug.appendTags(e)},_e.resetTags=function(){_r(d[7]).NativeInstabug.resetTags()},_e.getTags=(function(){var e=(0,t.default)((function*(){return yield _r(d[7]).NativeInstabug.getTags()}));return function(){return e.apply(this,arguments)}})(),_e.setString=function(e,t){'android'===n.Platform.OS&&e===_r(d[13]).StringKey.reproStepsListItemNumberingTitle&&(t=`${t} #`),_r(d[7]).NativeInstabug.setString(t,e)},_e.identifyUser=function(e,t,n){_r(d[7]).NativeInstabug.identifyUser(e,t,n)},_e.logOut=function(){_r(d[7]).NativeInstabug.logOut()},_e.logUserEvent=function(e){_r(d[7]).NativeInstabug.logUserEvent(e)},_e.logVerbose=function(e){e&&(e=(0,a.stringifyIfNotString)(e),_r(d[7]).NativeInstabug.logVerbose(e))},_e.logInfo=function(e){e&&(e=(0,a.stringifyIfNotString)(e),_r(d[7]).NativeInstabug.logInfo(e))},_e.logDebug=function(e){e&&(e=(0,a.stringifyIfNotString)(e),_r(d[7]).NativeInstabug.logDebug(e))},_e.logError=function(e){e&&(e=(0,a.stringifyIfNotString)(e),_r(d[7]).NativeInstabug.logError(e))},_e.logWarn=function(e){e&&(e=(0,a.stringifyIfNotString)(e),_r(d[7]).NativeInstabug.logWarn(e))},_e.clearLogs=function(){_r(d[7]).NativeInstabug.clearLogs()},_e.setReproStepsConfig=function(e){var t,n,r,a=null!=(t=e.bug)?t:_r(d[13]).ReproStepsMode.enabled,o=null!=(n=e.crash)?n:_r(d[13]).ReproStepsMode.enabledWithNoScreenshots,i=null!=(r=e.sessionReplay)?r:_r(d[13]).ReproStepsMode.enabled;null!=e.all&&(a=e.all,o=e.all,i=e.all),_r(d[7]).NativeInstabug.setReproStepsConfig(a,o,i)},_e.setUserAttribute=function(e,t){e&&'string'==typeof e&&'string'==typeof t?_r(d[7]).NativeInstabug.setUserAttribute(e,t):_r(d[14]).Logger.error(i.default.SET_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE)},_e.getUserAttribute=(function(){var e=(0,t.default)((function*(e){return yield _r(d[7]).NativeInstabug.getUserAttribute(e)}));return function(t){return e.apply(this,arguments)}})(),_e.removeUserAttribute=function(e){e&&'string'==typeof e?_r(d[7]).NativeInstabug.removeUserAttribute(e):_r(d[14]).Logger.error(i.default.REMOVE_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE)},_e.getAllUserAttributes=(function(){var e=(0,t.default)((function*(){return yield _r(d[7]).NativeInstabug.getAllUserAttributes()}));return function(){return e.apply(this,arguments)}})(),_e.clearAllUserAttributes=function(){_r(d[7]).NativeInstabug.clearAllUserAttributes()},_e.showWelcomeMessage=function(e){_r(d[7]).NativeInstabug.showWelcomeMessageWithMode(e)},_e.setWelcomeMessageMode=function(e){_r(d[7]).NativeInstabug.setWelcomeMessageMode(e)},_e.addFileAttachment=function(e,t){'android'===n.Platform.OS?_r(d[7]).NativeInstabug.setFileAttachment(e,t):_r(d[7]).NativeInstabug.setFileAttachment(e)},_e.addPrivateView=function(e){var t=(0,n.findNodeHandle)(e);_r(d[7]).NativeInstabug.addPrivateView(t)},_e.removePrivateView=function(e){var t=(0,n.findNodeHandle)(e);_r(d[7]).NativeInstabug.removePrivateView(t)},_e.show=function(){_r(d[7]).NativeInstabug.show()},_e.onReportSubmitHandler=function(e){_r(d[7]).emitter.addListener(_r(d[7]).NativeEvents.PRESENDING_HANDLER,(function(t){var n=t.tags,a=t.consoleLogs,o=t.instabugLogs,i=t.userAttributes,s=t.fileAttachments,u=new r.default(n,a,o,i,s);e&&e(u)})),_r(d[7]).NativeInstabug.setPreSendingHandler(e)},_e.onNavigationStateChange=function(e,t,n){var r=a.default.getActiveRouteName(t);a.default.getActiveRouteName(e)!==r&&(S(r),null!=l&&l!==v&&(_r(d[7]).NativeInstabug.reportScreenChange(l),l=null),l=r,setTimeout((function(){r&&l===r&&(_r(d[7]).NativeInstabug.reportScreenChange(r),l=null)}),1e3))};var F=_e.onStateChange=function(e){if(e){var t=a.default.getFullRoute(e);S(t),null!==l&&l!==v&&(_r(d[7]).NativeInstabug.reportScreenChange(l),l=null),l=t,setTimeout((function(){l===t&&(_r(d[7]).NativeInstabug.reportScreenChange(t),l=null)}),1e3)}},C=(_e.setNavigationListener=function(e){return e.addListener('state',(function(){F(e.getRootState())}))},_e.reportScreenChange=function(e){_r(d[7]).NativeInstabug.reportScreenChange(e)},_e.addExperiments=function(e){_r(d[7]).NativeInstabug.addExperiments(e)},_e.removeExperiments=function(e){_r(d[7]).NativeInstabug.removeExperiments(e)},_e.clearAllExperiments=function(){_r(d[7]).NativeInstabug.clearAllExperiments()},_e.addFeatureFlags=function(e){var t=e.map((function(e){return[e.name,e.variant||'']})),n=Object.fromEntries(t);_r(d[7]).NativeInstabug.addFeatureFlags(n)}),k=(_e.addFeatureFlag=function(e){C([e])},_e.removeFeatureFlags=function(e){_r(d[7]).NativeInstabug.removeFeatureFlags(e)});_e.removeFeatureFlag=function(e){k([e])},_e.removeAllFeatureFlags=function(){_r(d[7]).NativeInstabug.removeAllFeatureFlags()},_e.willRedirectToStore=function(){_r(d[7]).NativeInstabug.willRedirectToStore()},_e.setMetroDevServerPort=function(e){_r(d[12]).InstabugRNConfig.metroDevServerPort=e.toString()},_e.componentDidAppearListener=function(e){if(f)return c=e.componentName,void(f=!1);c!==e.componentName&&(_r(d[7]).NativeInstabug.reportScreenChange(e.componentName),c=e.componentName)},_e._registerFeatureFlagsChangeListener=function(e){_r(d[7]).emitter.addListener(_r(d[7]).NativeEvents.ON_FEATURE_FLAGS_CHANGE,(function(t){e(t)})),_r(d[7]).NativeInstabug.registerFeatureFlagsChangeListener()},_e.enableAutoMasking=function(e){_r(d[7]).NativeInstabug.enableAutoMasking(e)}}),739,[2,349,18,725,734,735,736,726,738,740,741,742,760,745,759]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkLoggerEmitter=e.NetworkListenerType=e.NativeNetworkLoggerEvent=e.NativeNetworkLogger=void 0;var t=r(d[0]),o=(e.NetworkListenerType=(function(t){return t.filtering="filtering",t.obfuscation="obfuscation",t.both="both",t})({}),e.NativeNetworkLogger=r(d[1]).NativeModules.IBGNetworkLogger);e.NativeNetworkLoggerEvent=(function(t){return t.NETWORK_LOGGER_HANDLER="IBGNetworkLoggerHandler",t})({}),e.NetworkLoggerEmitter=new t.NativeEventEmitter(o)}),740,[18,727]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.removeAppStateListener=e.addAppStateListener=void 0;var t=r(d[0]),n=null;e.addAppStateListener=function(p){n||(n=t.AppState.addEventListener('change',p))},e.removeAppStateListener=function(){n&&(n.remove(),n=null)}}),741,[18]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.captureUnhandledRejections=function(){var n={allRejections:!0,onUnhandled:s};o=t(),u=!0===(null==o||null==o.hasPromise?void 0:o.hasPromise()),f=null!=(null==o?void 0:o.enablePromiseRejectionTracker),u&&f?l(n):c(n);var o,u,f};var o=n(r(d[1]));function t(){return g.HermesInternal}function l(n){t().enablePromiseRejectionTracker(n)}function c(n){o.default.enable(n)}function s(n,o){u(n,o),o instanceof Error&&(0,r(d[2]).sendCrashReport)(o,(function(n){return r(d[3]).NativeCrashReporting.sendHandledJSCrash(n,null,null,r(d[4]).NonFatalErrorLevel.error)}))}function u(n){var o,t,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if('[object Error]'===Object.prototype.toString.call(c))t=Error.prototype.toString.call(c),l=c.stack;else try{t=r(d[5])(c)}catch(n){t='string'==typeof c?c:JSON.stringify(c)}var s=`Possible Unhandled Promise Rejection (id: ${n}):\n${null!=(o=t)?o:''}\n`+(null==l?'':l);r(d[6]).Logger.warn(s)}}),742,[2,743,734,744,745,746,759]); +__d((function(g,r,i,a,m,e,d){'use strict';var n=[ReferenceError,TypeError,RangeError],o=!1;function l(){o=!1,r(d[0])._B=null,r(d[0])._C=null}function s(n,o){console.warn('Possible Unhandled Promise Rejection (id: '+n+'):'),((o&&(o.stack||o))+'').split('\n').forEach((function(n){console.warn(' '+n)}))}function t(n,o){return o.some((function(o){return n instanceof o}))}e.disable=l,e.enable=function(c){c=c||{},o&&l();o=!0;var u=0,f=0,_={};function E(o){(c.allRejections||t(_[o].error,c.whitelist||n))&&(_[o].displayId=f++,c.onUnhandled?(_[o].logged=!0,c.onUnhandled(_[o].displayId,_[o].error)):(_[o].logged=!0,s(_[o].displayId,_[o].error)))}function y(n){_[n].logged&&(c.onHandled?c.onHandled(_[n].displayId,_[n].error):_[n].onUnhandled||(console.warn('Promise Rejection Handled (id: '+_[n].displayId+'):'),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+_[n].displayId+'.')))}r(d[0])._B=function(n){2===n._y&&_[n._E]&&(_[n._E].logged?y(n._E):clearTimeout(_[n._E].timeout),delete _[n._E])},r(d[0])._C=function(o,l){0===o._x&&(o._E=u++,_[o._E]={displayId:null,error:l,timeout:setTimeout(E.bind(null,o._E),t(l,n)?100:2e3),logged:!1})}}}),743,[102]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeCrashReporting=void 0;e.NativeCrashReporting=r(d[0]).NativeModules.IBGCrashReporting}),744,[727]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.userConsentActionType=e.WelcomeMessageMode=e.StringKey=e.ReproStepsMode=e.ReportType=e.RecordingButtonPosition=e.NonFatalErrorLevel=e.NetworkInterceptionMode=e.LogLevel=e.Locale=e.LaunchType=e.InvocationOption=e.InvocationEvent=e.FloatingButtonPosition=e.ExtendedBugReportMode=e.DismissType=e.ColorTheme=e.AutoMaskingType=e.ActionType=void 0;var t=r(d[0]).NativeInstabug.getConstants();e.LogLevel=(function(o){return o[o.verbose=t.sdkDebugLogsLevelVerbose]="verbose",o[o.debug=t.sdkDebugLogsLevelDebug]="debug",o[o.error=t.sdkDebugLogsLevelError]="error",o[o.none=t.sdkDebugLogsLevelNone]="none",o})({}),e.userConsentActionType=(function(o){return o[o.dropAutoCapturedMedia=t.dropAutoCapturedMedia]="dropAutoCapturedMedia",o[o.dropLogs=t.dropLogs]="dropLogs",o[o.noChat=t.noChat]="noChat",o})({}),e.InvocationEvent=(function(o){return o[o.none=t.invocationEventNone]="none",o[o.shake=t.invocationEventShake]="shake",o[o.screenshot=t.invocationEventScreenshot]="screenshot",o[o.twoFingersSwipe=t.invocationEventTwoFingersSwipeLeft]="twoFingersSwipe",o[o.floatingButton=t.invocationEventFloatingButton]="floatingButton",o})({}),e.NetworkInterceptionMode=(function(t){return t[t.javascript=0]="javascript",t[t.native=1]="native",t})({}),e.InvocationOption=(function(o){return o[o.emailFieldHidden=t.optionEmailFieldHidden]="emailFieldHidden",o[o.emailFieldOptional=t.optionEmailFieldOptional]="emailFieldOptional",o[o.commentFieldRequired=t.optionCommentFieldRequired]="commentFieldRequired",o[o.disablePostSendingDialog=t.optionDisablePostSendingDialog]="disablePostSendingDialog",o})({}),e.ColorTheme=(function(o){return o[o.light=t.colorThemeLight]="light",o[o.dark=t.colorThemeDark]="dark",o})({}),e.FloatingButtonPosition=(function(o){return o[o.left=t.rectMinXEdge]="left",o[o.right=t.rectMaxXEdge]="right",o})({}),e.RecordingButtonPosition=(function(o){return o[o.bottomRight=t.bottomRight]="bottomRight",o[o.topRight=t.topRight]="topRight",o[o.bottomLeft=t.bottomLeft]="bottomLeft",o[o.topLeft=t.topLeft]="topLeft",o})({}),e.WelcomeMessageMode=(function(o){return o[o.live=t.welcomeMessageModeLive]="live",o[o.beta=t.welcomeMessageModeBeta]="beta",o[o.disabled=t.welcomeMessageModeDisabled]="disabled",o})({}),e.ReportType=(function(o){return o[o.bug=t.bugReportingReportTypeBug]="bug",o[o.feedback=t.bugReportingReportTypeFeedback]="feedback",o[o.question=t.bugReportingReportTypeQuestion]="question",o})({}),e.DismissType=(function(o){return o[o.submit=t.dismissTypeSubmit]="submit",o[o.cancel=t.dismissTypeCancel]="cancel",o[o.addAttachment=t.dismissTypeAddAttachment]="addAttachment",o})({}),e.ActionType=(function(o){return o[o.all=t.allActions]="all",o[o.reportBug=t.reportBugAction]="reportBug",o[o.requestNewFeature=t.requestNewFeature]="requestNewFeature",o[o.addCommentToFeature=t.addCommentToFeature]="addCommentToFeature",o})({}),e.ExtendedBugReportMode=(function(o){return o[o.enabledWithRequiredFields=t.enabledWithRequiredFields]="enabledWithRequiredFields",o[o.enabledWithOptionalFields=t.enabledWithOptionalFields]="enabledWithOptionalFields",o[o.disabled=t.disabled]="disabled",o})({}),e.ReproStepsMode=(function(o){return o[o.enabledWithNoScreenshots=t.reproStepsEnabledWithNoScreenshots]="enabledWithNoScreenshots",o[o.enabled=t.reproStepsEnabled]="enabled",o[o.disabled=t.reproStepsDisabled]="disabled",o})({}),e.NonFatalErrorLevel=(function(o){return o[o.error=t.nonFatalErrorLevelError]="error",o[o.critical=t.nonFatalErrorLevelCritical]="critical",o[o.info=t.nonFatalErrorLevelInfo]="info",o[o.warning=t.nonFatalErrorLevelWarning]="warning",o})({}),e.Locale=(function(o){return o[o.arabic=t.localeArabic]="arabic",o[o.azerbaijani=t.localeAzerbaijani]="azerbaijani",o[o.chineseSimplified=t.localeChineseSimplified]="chineseSimplified",o[o.chineseTraditional=t.localeChineseTraditional]="chineseTraditional",o[o.czech=t.localeCzech]="czech",o[o.danish=t.localeDanish]="danish",o[o.dutch=t.localeDutch]="dutch",o[o.english=t.localeEnglish]="english",o[o.french=t.localeFrench]="french",o[o.german=t.localeGerman]="german",o[o.italian=t.localeItalian]="italian",o[o.japanese=t.localeJapanese]="japanese",o[o.korean=t.localeKorean]="korean",o[o.polish=t.localePolish]="polish",o[o.portugueseBrazil=t.localePortugueseBrazil]="portugueseBrazil",o[o.romanian=t.localeRomanian]="romanian",o[o.russian=t.localeRussian]="russian",o[o.spanish=t.localeSpanish]="spanish",o[o.swedish=t.localeSwedish]="swedish",o[o.turkish=t.localeTurkish]="turkish",o})({}),e.StringKey=(function(o){return o[o.addAttachmentButtonTitleStringName=t.addAttachmentButtonTitleStringName]="addAttachmentButtonTitleStringName",o[o.addExtraScreenshot=t.addExtraScreenshot]="addExtraScreenshot",o[o.addImageFromGallery=t.addImageFromGallery]="addImageFromGallery",o[o.addVideoMessage=t.addVideoMessage]="addVideoMessage",o[o.addVoiceMessage=t.addVoiceMessage]="addVoiceMessage",o[o.audio=t.audio]="audio",o[o.audioRecordingPermissionDeniedMessage=t.audioRecordingPermissionDeniedMessage]="audioRecordingPermissionDeniedMessage",o[o.audioRecordingPermissionDeniedTitle=t.audioRecordingPermissionDeniedTitle]="audioRecordingPermissionDeniedTitle",o[o.cancelButtonText=t.cancelButtonTitle]="cancelButtonText",o[o.collectingDataText=t.collectingDataText]="collectingDataText",o[o.commentFieldHintForBugReport=t.commentFieldHintForBugReport]="commentFieldHintForBugReport",o[o.commentFieldHintForFeedback=t.commentFieldHintForFeedback]="commentFieldHintForFeedback",o[o.commentFieldHintForQuestion=t.commentFieldHintForQuestion]="commentFieldHintForQuestion",o[o.conversationsHeaderTitle=t.conversationsHeaderTitle]="conversationsHeaderTitle",o[o.conversationTextFieldHint=t.conversationTextFieldHint]="conversationTextFieldHint",o[o.discardAlertDiscard=t.discardAlertDiscard]="discardAlertDiscard",o[o.discardAlertStay=t.discardAlertStay]="discardAlertStay",o[o.discardAlertMessage=t.discardAlertMessage]="discardAlertMessage",o[o.discardAlertTitle=t.discardAlertTitle]="discardAlertTitle",o[o.edgeSwipeStartHint=t.edgeSwipeStartHint]="edgeSwipeStartHint",o[o.emailFieldHint=t.emailFieldHint]="emailFieldHint",o[o.image=t.image]="image",o[o.insufficientContentMessage=t.insufficientContentMessage]="insufficientContentMessage",o[o.insufficientContentTitle=t.insufficientContentTitle]="insufficientContentTitle",o[o.invalidEmailMessage=t.invalidEmailMessage]="invalidEmailMessage",o[o.invalidEmailTitle=t.invalidEmailTitle]="invalidEmailTitle",o[o.invocationHeader=t.invocationHeader]="invocationHeader",o[o.messagesNotification=t.messagesNotification]="messagesNotification",o[o.messagesNotificationAndOthers=t.messagesNotificationAndOthers]="messagesNotificationAndOthers",o[o.microphonePermissionAlertSettingsButtonText=t.microphonePermissionAlertSettingsButtonTitle]="microphonePermissionAlertSettingsButtonText",o[o.okButtonText=t.okButtonTitle]="okButtonText",o[o.recordingMessageToHoldText=t.recordingMessageToHoldText]="recordingMessageToHoldText",o[o.recordingMessageToReleaseText=t.recordingMessageToReleaseText]="recordingMessageToReleaseText",o[o.reportBug=t.reportBug]="reportBug",o[o.reportBugDescription=t.reportBugDescription]="reportBugDescription",o[o.reportFeedback=t.reportFeedback]="reportFeedback",o[o.reportFeedbackDescription=t.reportFeedbackDescription]="reportFeedbackDescription",o[o.reportQuestion=t.reportQuestion]="reportQuestion",o[o.reportQuestionDescription=t.reportQuestionDescription]="reportQuestionDescription",o[o.reportReproStepsDisclaimerBody=t.reportReproStepsDisclaimerBody]="reportReproStepsDisclaimerBody",o[o.reportReproStepsDisclaimerLink=t.reportReproStepsDisclaimerLink]="reportReproStepsDisclaimerLink",o[o.reproStepsListDescription=t.reproStepsListDescription]="reproStepsListDescription",o[o.reproStepsListEmptyStateDescription=t.reproStepsListEmptyStateDescription]="reproStepsListEmptyStateDescription",o[o.reproStepsListHeader=t.reproStepsListHeader]="reproStepsListHeader",o[o.reproStepsListItemNumberingTitle=t.reproStepsListItemNumberingTitle]="reproStepsListItemNumberingTitle",o[o.reproStepsProgressDialogBody=t.reproStepsProgressDialogBody]="reproStepsProgressDialogBody",o[o.requestFeatureDescription=t.requestFeatureDescription]="requestFeatureDescription",o[o.screenRecording=t.screenRecording]="screenRecording",o[o.screenshotHeaderTitle=t.screenshotHeaderTitle]="screenshotHeaderTitle",o[o.shakeHint=t.shakeHint]="shakeHint",o[o.startAlertText=t.startAlertText]="startAlertText",o[o.surveysStoreRatingThanksSubtitle=t.surveysStoreRatingThanksSubtitle]="surveysStoreRatingThanksSubtitle",o[o.surveysStoreRatingThanksTitle=t.surveysStoreRatingThanksTitle]="surveysStoreRatingThanksTitle",o[o.swipeHint=t.swipeHint]="swipeHint",o[o.team=t.team]="team",o[o.thankYouAlertText=t.thankYouAlertText]="thankYouAlertText",o[o.thankYouText=t.thankYouText]="thankYouText",o[o.videoPressRecord=t.videoPressRecord]="videoPressRecord",o[o.welcomeMessageBetaFinishStepContent=t.welcomeMessageBetaFinishStepContent]="welcomeMessageBetaFinishStepContent",o[o.welcomeMessageBetaFinishStepTitle=t.welcomeMessageBetaFinishStepTitle]="welcomeMessageBetaFinishStepTitle",o[o.welcomeMessageBetaHowToReportStepContent=t.welcomeMessageBetaHowToReportStepContent]="welcomeMessageBetaHowToReportStepContent",o[o.welcomeMessageBetaHowToReportStepTitle=t.welcomeMessageBetaHowToReportStepTitle]="welcomeMessageBetaHowToReportStepTitle",o[o.welcomeMessageBetaWelcomeStepContent=t.welcomeMessageBetaWelcomeStepContent]="welcomeMessageBetaWelcomeStepContent",o[o.welcomeMessageBetaWelcomeStepTitle=t.welcomeMessageBetaWelcomeStepTitle]="welcomeMessageBetaWelcomeStepTitle",o[o.welcomeMessageLiveWelcomeStepContent=t.welcomeMessageLiveWelcomeStepContent]="welcomeMessageLiveWelcomeStepContent",o[o.welcomeMessageLiveWelcomeStepTitle=t.welcomeMessageLiveWelcomeStepTitle]="welcomeMessageLiveWelcomeStepTitle",o})({}),e.LaunchType=(function(o){return o[o.cold=t.cold]="cold",o[o.unknown=t.unknown]="unknown",o[o.warm=t.warm]="warm",o})({}),e.AutoMaskingType=(function(o){return o[o.labels=t.labels]="labels",o[o.textInputs=t.textInputs]="textInputs",o[o.media=t.media]="media",o[o.none=t.none]="none",o})({})}),745,[726]); +__d((function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]),e=r(d[1]),n=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]);function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}Object.defineProperty(_e,'__esModule',{value:!0}),_e.default=_e.DEFAULT_OPTIONS=void 0,_e.format=X,_e.plugins=void 0;var p=j(r(d[6])),s=j(r(d[7])),f=j(r(d[8])),y=j(r(d[9])),v=j(r(d[10])),b=j(r(d[11])),h=j(r(d[12]));function j(t){return t&&t.__esModule?t:{default:t}}var O=Object.prototype.toString,S=Date.prototype.toISOString,$=Error.prototype.toString,w=RegExp.prototype.toString,A=function(t){return'function'==typeof t.constructor&&t.constructor.name||'Object'},N=function(t){return'undefined'!=typeof window&&t===window},E=/^Symbol\((.*)\)(.*)$/,x=/\n/gi,D=(function(c){function p(t,u){var c,s,f,y;return e(this,p),s=this,y=[t],f=o(f=p),(c=n(s,l()?Reflect.construct(f,y||[],o(s).constructor):f.apply(s,y))).stack=u,c.name=c.constructor.name,c}return u(p,c),t(p)})(c(Error));function F(t){return'[object Array]'===t||'[object ArrayBuffer]'===t||'[object DataView]'===t||'[object Float32Array]'===t||'[object Float64Array]'===t||'[object Int8Array]'===t||'[object Int16Array]'===t||'[object Int32Array]'===t||'[object Uint8Array]'===t||'[object Uint8ClampedArray]'===t||'[object Uint16Array]'===t||'[object Uint32Array]'===t}function I(t){return Object.is(t,-0)?'-0':String(t)}function k(t){return String(`${t}n`)}function P(t,e){return e?`[Function ${t.name||'anonymous'}]`:'[Function]'}function R(t){return String(t).replace(E,'Symbol($1)')}function M(t){return`[${$.call(t)}]`}function T(t,e,n,o){if(!0===t||!1===t)return`${t}`;if(void 0===t)return'undefined';if(null===t)return'null';var u=typeof t;if('number'===u)return I(t);if('bigint'===u)return k(t);if('string'===u)return o?`"${t.replace(/"|\\/g,'\\$&')}"`:`"${t}"`;if('function'===u)return P(t,e);if('symbol'===u)return R(t);var c=O.call(t);return'[object WeakMap]'===c?'WeakMap {}':'[object WeakSet]'===c?'WeakSet {}':'[object Function]'===c||'[object GeneratorFunction]'===c?P(t,e):'[object Symbol]'===c?R(t):'[object Date]'===c?isNaN(+t)?'Date { NaN }':S.call(t):'[object Error]'===c?M(t):'[object RegExp]'===c?n?w.call(t).replace(/[\\^$*+?.()|[\]{}]/g,'\\$&'):w.call(t):t instanceof Error?M(t):null}function B(t,e,n,o,u,c){if(-1!==u.indexOf(t))return'[Circular]';(u=u.slice()).push(t);var l=++o>e.maxDepth,p=e.min;if(e.callToJSON&&!l&&t.toJSON&&'function'==typeof t.toJSON&&!c)return U(t.toJSON(),e,n,o,u,!0);var s=O.call(t);return'[object Arguments]'===s?l?'[Arguments]':`${p?'':'Arguments '}[${(0,r(d[13]).printListItems)(t,e,n,o,u,U)}]`:F(s)?l?`[${t.constructor.name}]`:`${p?'':e.printBasicPrototype||'Array'!==t.constructor.name?`${t.constructor.name} `:''}[${(0,r(d[13]).printListItems)(t,e,n,o,u,U)}]`:'[object Map]'===s?l?'[Map]':`Map {${(0,r(d[13]).printIteratorEntries)(t.entries(),e,n,o,u,U,' => ')}}`:'[object Set]'===s?l?'[Set]':`Set {${(0,r(d[13]).printIteratorValues)(t.values(),e,n,o,u,U)}}`:l||N(t)?`[${A(t)}]`:`${p?'':e.printBasicPrototype||'Object'!==A(t)?`${A(t)} `:''}{${(0,r(d[13]).printObjectProperties)(t,e,n,o,u,U)}}`}function J(t){return null!=t.serialize}function W(t,e,n,o,u,c){var l;try{l=J(t)?t.serialize(e,n,o,u,c,U):t.print(e,(function(t){return U(t,n,o,u,c)}),(function(t){var e=o+n.indent;return e+t.replace(x,`\n${e}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(t){throw new D(t.message,t.stack)}if('string'!=typeof l)throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof l}".`);return l}function _(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0;return function(t){return`\x1b[${38+o};5;${t}m`}},l=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,n,l){return`\x1b[${38+o};2;${t};${n};${l}m`}};Object.defineProperty(m,'exports',{enumerable:!0,get:function(){var b=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(var c of(u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright,Object.entries(u))){var h=t(c,2),B=h[0],s=h[1];for(var f of Object.entries(s)){var v=t(f,2),y=v[0],p=v[1];u[y]={open:`\x1b[${p[0]}m`,close:`\x1b[${p[1]}m`},s[y]=u[y],b.set(p[0],p[1])}Object.defineProperty(u,B,{value:s,enumerable:!1})}return Object.defineProperty(u,'codes',{value:b,enumerable:!1}),u.color.close="\x1b[39m",u.bgColor.close="\x1b[49m",u.color.ansi256=n(),u.color.ansi16m=l(),u.bgColor.ansi256=n(10),u.bgColor.ansi16m=l(10),Object.defineProperties(u,{rgbToAnsi256:{value:function(o,t,n){return o===t&&t===n?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value:function(o){var t=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(o.toString(16));if(!t)return[0,0,0];var n=t.groups.colorString;3===n.length&&(n=n.split('').map((function(o){return o+o})).join(''));var l=Number.parseInt(n,16);return[l>>16&255,l>>8&255,255&l]},enumerable:!1},hexToAnsi256:{value:function(t){return u.rgbToAnsi256.apply(u,o(u.hexToRgb(t)))},enumerable:!1}}),u}})}),747,[22,44]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.test=e.serialize=e.default=void 0;var t=globalThis['jest-symbol-do-not-touch']||globalThis.Symbol,n='function'==typeof t&&t.for?t.for('jest.asymmetricMatcher'):1267621,o=' ',s=function(t,n,s,c,f,l){var u=t.toString();if('ArrayContaining'===u||'ArrayNotContaining'===u)return++c>n.maxDepth?`[${u}]`:`${u+o}[${(0,r(d[0]).printListItems)(t.sample,n,s,c,f,l)}]`;if('ObjectContaining'===u||'ObjectNotContaining'===u)return++c>n.maxDepth?`[${u}]`:`${u+o}{${(0,r(d[0]).printObjectProperties)(t.sample,n,s,c,f,l)}}`;if('StringMatching'===u||'StringNotMatching'===u)return u+o+l(t.sample,n,s,c,f);if('StringContaining'===u||'StringNotContaining'===u)return u+o+l(t.sample,n,s,c,f);if('function'!=typeof t.toAsymmetricMatcher)throw new Error(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()};e.serialize=s;var c=function(t){return t&&t.$$typeof===n};e.test=c;var f={serialize:s,test:c};e.default=f}),748,[749]); +__d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.printIteratorEntries=function(n,t,i,o,u,c){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:': ',p='',f=0,l=n.next();if(!l.done){p+=t.spacingOuter;for(var O=i+t.indent;!l.done;){if(p+=O,f++===t.maxWidth){p+='\u2026';break}p+=c(l.value[0],t,O,o,u)+s+c(l.value[1],t,O,o,u),(l=n.next()).done?t.min||(p+=','):p+=`,${t.spacingInner}`}p+=t.spacingOuter+i}return p},e.printIteratorValues=function(n,t,i,o,u,c){var s='',p=0,f=n.next();if(!f.done){s+=t.spacingOuter;for(var l=i+t.indent;!f.done;){if(s+=l,p++===t.maxWidth){s+='\u2026';break}s+=c(f.value,t,l,o,u),(f=n.next()).done?t.min||(s+=','):s+=`,${t.spacingInner}`}s+=t.spacingOuter+i}return s},e.printListItems=function(n,t,i,o,u,c){var s='';if(n.length){s+=t.spacingOuter;for(var p=i+t.indent,f=0;fo.maxDepth?`[${p}]`:(o.min?'':p+" ")+(-1!==t.indexOf(p)?`{${(0,r(d[0]).printObjectProperties)(c(n)?Array.from(n).reduce((function(t,n){return t[n.name]=n.value,t}),{}):Object.assign({},n),o,s,u,f,l)}}`:`[${(0,r(d[0]).printListItems)(Array.from(n),o,s,u,f,l)}]`)};e.serialize=s;var u={serialize:s,test:o};e.default=u}),750,[749]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.test=e.serialize=e.default=void 0;var t=/^((HTML|SVG)\w*)?Element$/,n=function(t){try{return'function'==typeof t.hasAttribute&&t.hasAttribute('is')}catch(t){return!1}},u=function(u){var o=u.constructor.name,c=u.nodeType,s=u.tagName,l='string'==typeof s&&s.includes('-')||n(u);return 1===c&&(t.test(o)||l)||3===c&&'Text'===o||8===c&&'Comment'===o||11===c&&'DocumentFragment'===o},o=function(t){var n;return(null==t||null==(n=t.constructor)?void 0:n.name)&&u(t)};function c(t){return 3===t.nodeType}function s(t){return 8===t.nodeType}function l(t){return 11===t.nodeType}e.test=o;var f=function(t,n,u,o,f,p){if(c(t))return(0,r(d[0]).printText)(t.data,n);if(s(t))return(0,r(d[0]).printComment)(t.data,n);var y=l(t)?'DocumentFragment':t.tagName.toLowerCase();return++o>n.maxDepth?(0,r(d[0]).printElementAsLeaf)(y,n):(0,r(d[0]).printElement)(y,(0,r(d[0]).printProps)(l(t)?[]:Array.from(t.attributes).map((function(t){return t.name})).sort(),l(t)?{}:Array.from(t.attributes).reduce((function(t,n){return t[n.name]=n.value,t}),{}),n,u+n.indent,o,f,p),(0,r(d[0]).printChildren)(Array.prototype.slice.call(t.childNodes||t.children),n,u+n.indent,o,f,p),n,u)};e.serialize=f;var p={serialize:f,test:o};e.default=p}),751,[752]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var n,t=(n=r(d[0]))&&n.__esModule?n:{default:n};e.printProps=function(n,t,o,p,c,u,s){var l=p+o.indent,$=o.colors;return n.map((function(n){var f=t[n],v=s(f,o,l,c,u);return'string'!=typeof f&&(-1!==v.indexOf('\n')&&(v=o.spacingOuter+l+v+o.spacingOuter+p),v=`{${v}}`),`${o.spacingInner+p+$.prop.open+n+$.prop.close}=${$.value.open}${v}${$.value.close}`})).join('')};e.printChildren=function(n,t,p,c,u,s){return n.map((function(n){return t.spacingOuter+p+('string'==typeof n?o(n,t):s(n,t,p,c,u))})).join('')};var o=function(n,o){var p=o.colors.content;return p.open+(0,t.default)(n)+p.close};e.printText=o;e.printComment=function(n,o){var p=o.colors.comment;return`${p.open}\x3c!--${(0,t.default)(n)}--\x3e${p.close}`};e.printElement=function(n,t,o,p,c){var u=p.colors.tag;return`${u.open}<${n}${t&&u.close+t+p.spacingOuter+c+u.open}${o?`>${u.close}${o}${p.spacingOuter}${c}${u.open}${u.close}`};e.printElementAsLeaf=function(n,t){var o=t.colors.tag;return`${o.open}<${n}${o.close} \u2026${o.open} />${o.close}`}}),752,[753]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.default=function(t){return t.replace(//g,'>')}}),753,[]); +__d((function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.test=e.serialize=e.default=void 0;var t='@@__IMMUTABLE_ORDERED__@@',_=function(t){return`Immutable.${t}`},n=function(t){return`[${t}]`},i=' ',u=function(t,u,o,M,s,E,c){return++M>u.maxDepth?n(_(c)):`${_(c)+i}{${(0,r(d[0]).printIteratorEntries)(t.entries(),u,o,M,s,E)}}`};function o(t){var _=0;return{next:function(){if(_u.maxDepth?n(l):`${l+i}{${(0,r(d[0]).printIteratorEntries)(o(t),u,M,s,E,c)}}`},s=function(t,u,o,M,s,E){var c=_('Seq');return++M>u.maxDepth?n(c):t["@@__IMMUTABLE_KEYED__@@"]?`${c+i}{${t._iter||t._object?(0,r(d[0]).printIteratorEntries)(t.entries(),u,o,M,s,E):"\u2026"}}`:`${c+i}[${t._iter||t._array||t._collection||t._iterable?(0,r(d[0]).printIteratorValues)(t.values(),u,o,M,s,E):"\u2026"}]`},E=function(t,u,o,M,s,E,c){return++M>u.maxDepth?n(_(c)):`${_(c)+i}[${(0,r(d[0]).printIteratorValues)(t.values(),u,o,M,s,E)}]`},c=function(_,n,i,o,c,l){return _["@@__IMMUTABLE_MAP__@@"]?u(_,n,i,o,c,l,_[t]?'OrderedMap':'Map'):_["@@__IMMUTABLE_LIST__@@"]?E(_,n,i,o,c,l,'List'):_["@@__IMMUTABLE_SET__@@"]?E(_,n,i,o,c,l,_[t]?'OrderedSet':'Set'):_["@@__IMMUTABLE_STACK__@@"]?E(_,n,i,o,c,l,'Stack'):_["@@__IMMUTABLE_SEQ__@@"]?s(_,n,i,o,c,l):M(_,n,i,o,c,l)};e.serialize=c;var l=function(t){return t&&(!0===t["@@__IMMUTABLE_ITERABLE__@@"]||!0===t["@@__IMMUTABLE_RECORD__@@"])};e.test=l;var I={serialize:c,test:l};e.default=I}),754,[749]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.test=e.serialize=e.default=void 0;var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||'object'!=typeof t&&'function'!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if('default'!==p&&Object.prototype.hasOwnProperty.call(t,p)){var l=s?Object.getOwnPropertyDescriptor(t,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=t[p]}f.default=t,u&&u.set(t,f);return f})(r(d[0]));function n(t){if('function'!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}var o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(t)?t.forEach((function(t){o(t,n)})):null!=t&&!1!==t&&n.push(t),n},u=function(n){var o=n.type;if('string'==typeof o)return o;if('function'==typeof o)return o.displayName||o.name||'Unknown';if(t.isFragment(n))return'React.Fragment';if(t.isSuspense(n))return'React.Suspense';if('object'==typeof o&&null!==o){if(t.isContextProvider(n))return'Context.Provider';if(t.isContextConsumer(n))return'Context.Consumer';if(t.isForwardRef(n)){if(o.displayName)return o.displayName;var u=o.render.displayName||o.render.name||'';return''!==u?`ForwardRef(${u})`:'ForwardRef'}if(t.isMemo(n)){var f=o.displayName||o.type.displayName||o.type.name||'';return''!==f?`Memo(${f})`:'Memo'}}return'UNDEFINED'},f=function(t){var n=t.props;return Object.keys(n).filter((function(t){return'children'!==t&&void 0!==n[t]})).sort()},s=function(t,n,s,p,l,c){return++p>n.maxDepth?(0,r(d[1]).printElementAsLeaf)(u(t),n):(0,r(d[1]).printElement)(u(t),(0,r(d[1]).printProps)(f(t),t.props,n,s+n.indent,p,l,c),(0,r(d[1]).printChildren)(o(t.props.children),n,s+n.indent,p,l,c),n,s)};e.serialize=s;var p=function(n){return null!=n&&t.isElement(n)};e.test=p;var l={serialize:s,test:p};e.default=l}),755,[756,752]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),756,[757]); +__d((function(_g,_r,i,_a,_m,_e,_d){ +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +'use strict';var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen");function d(e){if("object"==typeof e&&null!==e){var S=e.$$typeof;switch(S){case t:switch(e=e.type){case o:case c:case n:case l:case y:return e;default:switch(e=e&&e.$$typeof){case u:case s:case a:case p:case m:case f:return e;default:return S}}case r:return S}}}e=Symbol.for("react.module.reference"),_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=a,_e.Fragment=o,_e.Lazy=p,_e.Memo=m,_e.Portal=r,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.SuspenseList=y,_e.isAsyncMode=function(){return!1},_e.isConcurrentMode=function(){return!1},_e.isContextConsumer=function(e){return d(e)===s},_e.isContextProvider=function(e){return d(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return d(e)===a},_e.isFragment=function(e){return d(e)===o},_e.isLazy=function(e){return d(e)===p},_e.isMemo=function(e){return d(e)===m},_e.isPortal=function(e){return d(e)===r},_e.isProfiler=function(e){return d(e)===c},_e.isStrictMode=function(e){return d(e)===n},_e.isSuspense=function(e){return d(e)===l},_e.isSuspenseList=function(e){return d(e)===y},_e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===c||t===n||t===l||t===y||t===S||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===m||t.$$typeof===f||t.$$typeof===s||t.$$typeof===a||t.$$typeof===e||void 0!==t.getModuleId)},_e.typeOf=d}),757,[]); +__d((function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.test=e.serialize=e.default=void 0;var t=globalThis['jest-symbol-do-not-touch']||globalThis.Symbol,n='function'==typeof t&&t.for?t.for('react.test.json'):245830487,o=function(t){var n=t.props;return n?Object.keys(n).filter((function(t){return void 0!==n[t]})).sort():[]},s=function(t,n,s,l,p,u){return++l>n.maxDepth?(0,r(d[0]).printElementAsLeaf)(t.type,n):(0,r(d[0]).printElement)(t.type,t.props?(0,r(d[0]).printProps)(o(t),t.props,n,s+n.indent,l,p,u):'',t.children?(0,r(d[0]).printChildren)(t.children,n,s+n.indent,l,p,u):'',n,s)};e.serialize=s;var l=function(t){return t&&t.$$typeof===n};e.test=l;var p={serialize:s,test:l};e.default=p}),758,[752]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var n=o(r(d[1])),l=o(r(d[2])),t=o(r(d[3]));e.Logger=(function(){return(0,t.default)((function o(){(0,l.default)(this,o)}),null,[{key:"shouldLog",value:function(o){var l=r(d[4]).InstabugRNConfig.debugLogsLevel,t=(0,n.default)((0,n.default)((0,n.default)((0,n.default)({},r(d[5]).LogLevel.verbose,3),r(d[5]).LogLevel.debug,2),r(d[5]).LogLevel.error,1),r(d[5]).LogLevel.none,0);return t[l]>=t[o]}},{key:"logMessage",value:function(o,n,l){if(this.shouldLog(o)){for(var t=arguments.length,s=new Array(t>3?t-3:0),u=3;u1?n-1:0),t=1;t1?n-1:0),t=1;t1?n-1:0),t=1;t1?n-1:0),t=1;t1?n-1:0),t=1;t1?n-1:0),t=1;t=0&&t!==1/0},e.ensureQueryKeyArray=i,e.difference=function(t,n){return t.filter((function(t){return-1===n.indexOf(t)}))},e.replaceAt=function(t,n,u){var i=t.slice(0);return i[n]=u,i},e.timeUntilStale=function(t,n){return Math.max(t+(n||0)-Date.now(),0)},e.parseQueryArgs=function(t,u,i){if(!v(t))return t;if('function'==typeof u)return(0,n.default)({},i,{queryKey:t,queryFn:u});return(0,n.default)({},u,{queryKey:t})},e.parseMutationArgs=function(t,u,i){if(v(t))return'function'==typeof u?(0,n.default)({},i,{mutationKey:t,mutationFn:u}):(0,n.default)({},u,{mutationKey:t});if('function'==typeof t)return(0,n.default)({},u,{mutationFn:t});return(0,n.default)({},t)},e.parseFilterArgs=function(t,u,i){return v(t)?[(0,n.default)({},u,{queryKey:t}),i]:[t||{},u]},e.parseMutationFilterArgs=function(t,u){return v(t)?(0,n.default)({},u,{mutationKey:t}):t},e.mapQueryStatusFilter=o,e.matchQuery=function(t,n){var u=t.active,i=t.exact,a=t.fetching,c=t.inactive,s=t.predicate,l=t.queryKey,p=t.stale;if(v(l))if(i){if(n.queryHash!==f(l,n.options))return!1}else if(!y(n.queryKey,l))return!1;var h=o(u,c);if('none'===h)return!1;if('all'!==h){var b=n.isActive();if('active'===h&&!b)return!1;if('inactive'===h&&b)return!1}if('boolean'==typeof p&&n.isStale()!==p)return!1;if('boolean'==typeof a&&n.isFetching()!==a)return!1;if(s&&!s(n))return!1;return!0},e.matchMutation=function(t,n){var u=t.exact,i=t.fetching,o=t.predicate,f=t.mutationKey;if(v(f)){if(!n.options.mutationKey)return!1;if(u){if(a(n.options.mutationKey)!==a(f))return!1}else if(!y(n.options.mutationKey,f))return!1}if('boolean'==typeof i&&'loading'===n.state.status!==i)return!1;if(o&&!o(n))return!1;return!0},e.hashQueryKeyByOptions=f,e.hashQueryKey=a,e.stableValueHash=c,e.partialMatchKey=y,e.partialDeepEqual=s,e.replaceEqualDeep=function t(n,u){if(n===u)return n;var i=Array.isArray(n)&&Array.isArray(u);if(i||l(n)&&l(u)){for(var o=i?n.length:Object.keys(n).length,f=i?u:Object.keys(u),a=f.length,c=i?[]:{},y=0,s=0;s0},s.onSubscribe=function(){},s.onUnsubscribe=function(){},n})();e.Subscribable=n}),776,[]); +__d((function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]);e.__esModule=!0,e.onlineManager=e.OnlineManager=void 0;var t=n(r(d[1])),o=(function(n){function o(){var t;return(t=n.call(this)||this).setup=function(n){var t;if(!r(d[2]).isServer&&(null==(t=window)?void 0:t.addEventListener)){var o=function(){return n()};return window.addEventListener('online',o,!1),window.addEventListener('offline',o,!1),function(){window.removeEventListener('online',o),window.removeEventListener('offline',o)}}},t}(0,t.default)(o,n);var s=o.prototype;return s.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},s.onUnsubscribe=function(){var n;this.hasListeners()||(null==(n=this.cleanup)||n.call(this),this.cleanup=void 0)},s.setEventListener=function(n){var t,o=this;this.setup=n,null==(t=this.cleanup)||t.call(this),this.cleanup=n((function(n){'boolean'==typeof n?o.setOnline(n):o.onOnline()}))},s.setOnline=function(n){this.online=n,n&&this.onOnline()},s.onOnline=function(){this.listeners.forEach((function(n){n()}))},s.isOnline=function(){return'boolean'==typeof this.online?this.online:'undefined'==typeof navigator||void 0===navigator.onLine||navigator.onLine},o})(r(d[3]).Subscribable);e.OnlineManager=o;var s=new o;e.onlineManager=s}),777,[2,775,772,776]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.QueryCache=void 0;var n=t(r(d[1])),u=(function(t){function u(n){var u;return(u=t.call(this)||this).config=n||{},u.queries=[],u.queriesMap={},u}(0,n.default)(u,t);var s=u.prototype;return s.build=function(t,n,u){var s,o=n.queryKey,c=null!=(s=n.queryHash)?s:(0,r(d[2]).hashQueryKeyByOptions)(o,n),f=this.get(c);return f||(f=new(r(d[3]).Query)({cache:this,queryKey:o,queryHash:c,options:t.defaultQueryOptions(n),state:u,defaultOptions:t.getQueryDefaults(o),meta:n.meta}),this.add(f)),f},s.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:'queryAdded',query:t}))},s.remove=function(t){var n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter((function(n){return n!==t})),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:'queryRemoved',query:t}))},s.clear=function(){var t=this;r(d[4]).notifyManager.batch((function(){t.queries.forEach((function(n){t.remove(n)}))}))},s.get=function(t){return this.queriesMap[t]},s.getAll=function(){return this.queries},s.find=function(t,n){var u=(0,r(d[2]).parseFilterArgs)(t,n)[0];return void 0===u.exact&&(u.exact=!0),this.queries.find((function(t){return(0,r(d[2]).matchQuery)(u,t)}))},s.findAll=function(t,n){var u=(0,r(d[2]).parseFilterArgs)(t,n)[0];return Object.keys(u).length>0?this.queries.filter((function(t){return(0,r(d[2]).matchQuery)(u,t)})):this.queries},s.notify=function(t){var n=this;r(d[4]).notifyManager.batch((function(){n.listeners.forEach((function(n){n(t)}))}))},s.onFocus=function(){var t=this;r(d[4]).notifyManager.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))},s.onOnline=function(){var t=this;r(d[4]).notifyManager.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))},u})(r(d[5]).Subscribable);e.QueryCache=u}),778,[2,775,772,779,781,776]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.Query=void 0;var s=t(r(d[1])),n=(function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var n=t.prototype;return n.setOptions=function(t){var n;this.options=(0,s.default)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(n=this.options.cacheTime)?n:3e5)},n.setDefaultOptions=function(t){this.defaultOptions=t},n.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,r(d[2]).isValidTimeout)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){t.optionalRemove()}),this.cacheTime))},n.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},n.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},n.setData=function(t,s){var n,o,u=this.state.data,c=(0,r(d[2]).functionalUpdate)(t,u);return(null==(n=(o=this.options).isDataEqual)?void 0:n.call(o,u,c))?c=u:!1!==this.options.structuralSharing&&(c=(0,r(d[2]).replaceEqualDeep)(u,c)),this.dispatch({data:c,type:'success',dataUpdatedAt:null==s?void 0:s.updatedAt}),c},n.setState=function(t,s){this.dispatch({type:'setState',state:t,setStateOptions:s})},n.cancel=function(t){var s,n=this.promise;return null==(s=this.retryer)||s.cancel(t),n?n.then(r(d[2]).noop).catch(r(d[2]).noop):Promise.resolve()},n.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},n.reset=function(){this.destroy(),this.setState(this.initialState)},n.isActive=function(){return this.observers.some((function(t){return!1!==t.options.enabled}))},n.isFetching=function(){return this.state.isFetching},n.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(t){return t.getCurrentResult().isStale}))},n.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r(d[2]).timeUntilStale)(this.state.dataUpdatedAt,t)},n.onFocus=function(){var t,s=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));s&&s.refetch(),null==(t=this.retryer)||t.continue()},n.onOnline=function(){var t,s=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));s&&s.refetch(),null==(t=this.retryer)||t.continue()},n.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:'observerAdded',query:this,observer:t}))},n.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter((function(s){return s!==t})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:'observerRemoved',query:this,observer:t}))},n.getObserversCount=function(){return this.observers.length},n.invalidate=function(){this.state.isInvalidated||this.dispatch({type:'invalidate'})},n.fetch=function(t,s){var n,o,u,c=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==s?void 0:s.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var h;return null==(h=this.retryer)||h.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var l=this.observers.find((function(t){return t.options.queryFn}));l&&this.setOptions(l.options)}var f=(0,r(d[2]).ensureQueryKeyArray)(this.queryKey),p=(0,r(d[2]).getAbortController)(),v={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(v,'signal',{enumerable:!0,get:function(){if(p)return c.abortSignalConsumed=!0,p.signal}});var y,b,F={fetchOptions:s,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return c.options.queryFn?(c.abortSignalConsumed=!1,c.options.queryFn(v)):Promise.reject('Missing queryFn')},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(y=this.options.behavior)||y.onFetch(F));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(o=F.fetchOptions)?void 0:o.meta))||this.dispatch({type:'fetch',meta:null==(b=F.fetchOptions)?void 0:b.meta});return this.retryer=new(r(d[3]).Retryer)({fn:F.fetchFn,abort:null==p||null==(u=p.abort)?void 0:u.bind(p),onSuccess:function(t){c.setData(t),null==c.cache.config.onSuccess||c.cache.config.onSuccess(t,c),0===c.cacheTime&&c.optionalRemove()},onError:function(t){(0,r(d[3]).isCancelledError)(t)&&t.silent||c.dispatch({type:'error',error:t}),(0,r(d[3]).isCancelledError)(t)||(null==c.cache.config.onError||c.cache.config.onError(t,c),(0,r(d[4]).getLogger)().error(t)),0===c.cacheTime&&c.optionalRemove()},onFail:function(){c.dispatch({type:'failed'})},onPause:function(){c.dispatch({type:'pause'})},onContinue:function(){c.dispatch({type:'continue'})},retry:F.options.retry,retryDelay:F.options.retryDelay}),this.promise=this.retryer.promise,this.promise},n.dispatch=function(t){var s=this;this.state=this.reducer(this.state,t),r(d[5]).notifyManager.batch((function(){s.observers.forEach((function(s){s.onQueryUpdate(t)})),s.cache.notify({query:s,type:'queryUpdated',action:t})}))},n.getDefaultState=function(t){var s='function'==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?'function'==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,o=void 0!==s;return{data:s,dataUpdateCount:0,dataUpdatedAt:o?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:o?'success':'idle'}},n.reducer=function(t,n){var o,u;switch(n.type){case'failed':return(0,s.default)({},t,{fetchFailureCount:t.fetchFailureCount+1});case'pause':return(0,s.default)({},t,{isPaused:!0});case'continue':return(0,s.default)({},t,{isPaused:!1});case'fetch':return(0,s.default)({},t,{fetchFailureCount:0,fetchMeta:null!=(o=n.meta)?o:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:'loading'});case'success':return(0,s.default)({},t,{data:n.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(u=n.dataUpdatedAt)?u:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:'success'});case'error':var c=n.error;return(0,r(d[3]).isCancelledError)(c)&&c.revert&&this.revertState?(0,s.default)({},this.revertState):(0,s.default)({},t,{error:c,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:'error'});case'invalidate':return(0,s.default)({},t,{isInvalidated:!0});case'setState':return(0,s.default)({},t,n.state);default:return t}},t})();e.Query=n}),779,[2,773,772,771,780,781]); +__d((function(g,r,i,a,m,e,d){"use strict";e.__esModule=!0,e.getLogger=function(){return n},e.setLogger=function(o){n=o};var n=console}),780,[]); +__d((function(g,r,i,a,m,e,d){"use strict";e.__esModule=!0,e.notifyManager=e.NotifyManager=void 0;var t=(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var n=t.prototype;return n.batch=function(t){var n;this.transactions++;try{n=t()}finally{this.transactions--,this.transactions||this.flush()}return n},n.schedule=function(t){var n=this;this.transactions?this.queue.push(t):(0,r(d[0]).scheduleMicrotask)((function(){n.notifyFn(t)}))},n.batchCalls=function(t){var n=this;return function(){for(var o=arguments.length,s=new Array(o),u=0;u0||Q.errorUpdateCount>0,isFetchedAfterMount:Q.dataUpdateCount>R.dataUpdateCount||Q.errorUpdateCount>R.errorUpdateCount,isFetching:E,isRefetching:E&&'loading'!==T,isLoadingError:'error'===T&&0===Q.dataUpdatedAt,isPlaceholderData:C,isPreviousData:U,isRefetchError:'error'===T&&0!==Q.dataUpdatedAt,isStale:f(t,s),refetch:this.refetch,remove:this.remove}},o.shouldNotifyListeners=function(t,s){if(!s)return!0;var n=this.options,u=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!u&&!o)return!0;if('tracked'===u&&!this.trackedProps.length)return!0;var c='tracked'===u?this.trackedProps:u;return Object.keys(t).some((function(n){var u=n,l=t[u]!==s[u],h=null==c?void 0:c.some((function(t){return t===n})),f=null==o?void 0:o.some((function(t){return t===n}));return l&&!f&&(!c||h)}))},o.updateResult=function(t){var n=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,r(d[3]).shallowEqualObjects)(this.currentResult,n)){var u={cache:!0};!1!==(null==t?void 0:t.listeners)&&this.shouldNotifyListeners(this.currentResult,n)&&(u.listeners=!0),this.notify((0,s.default)({},u,t))}},o.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var s=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==s||s.removeObserver(this),t.addObserver(this))}},o.onQueryUpdate=function(t){var s={};'success'===t.type?s.onSuccess=!0:'error'!==t.type||(0,r(d[6]).isCancelledError)(t.error)||(s.onError=!0),this.updateResult(s),this.hasListeners()&&this.updateTimers()},o.notify=function(t){var s=this;r(d[7]).notifyManager.batch((function(){t.onSuccess?(null==s.options.onSuccess||s.options.onSuccess(s.currentResult.data),null==s.options.onSettled||s.options.onSettled(s.currentResult.data,null)):t.onError&&(null==s.options.onError||s.options.onError(s.currentResult.error),null==s.options.onSettled||s.options.onSettled(void 0,s.currentResult.error)),t.listeners&&s.listeners.forEach((function(t){t(s.currentResult)})),t.cache&&s.client.getQueryCache().notify({query:s.currentQuery,type:'observerResultsUpdated'})}))},u})(r(d[8]).Subscribable);function o(t,s){return!(!1===s.enabled||t.state.dataUpdatedAt||'error'===t.state.status&&!1===s.retryOnMount)}function c(t,s){return o(t,s)||t.state.dataUpdatedAt>0&&l(t,s,s.refetchOnMount)}function l(t,s,n){if(!1!==s.enabled){var u='function'==typeof n?n(t):n;return'always'===u||!1!==u&&f(t,s)}return!1}function h(t,s,n,u){return!1!==n.enabled&&(t!==s||!1===u.enabled)&&(!n.suspense||'error'!==t.state.status)&&f(t,n)}function f(t,s){return t.isStaleByTime(s.staleTime)}e.QueryObserver=u}),786,[2,773,775,772,774,780,771,781,776]); +__d((function(g,r,i,_a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.QueriesObserver=void 0;var n=t(r(d[1])),s=(function(t){function s(n,s){var u;return(u=t.call(this)||this).client=n,u.queries=[],u.result=[],u.observers=[],u.observersMap={},s&&u.setQueries(s),u}(0,n.default)(s,t);var u=s.prototype;return u.onSubscribe=function(){var t=this;1===this.listeners.length&&this.observers.forEach((function(n){n.subscribe((function(s){t.onUpdate(n,s)}))}))},u.onUnsubscribe=function(){this.listeners.length||this.destroy()},u.destroy=function(){this.listeners=[],this.observers.forEach((function(t){t.destroy()}))},u.setQueries=function(t,n){this.queries=t,this.updateObservers(n)},u.getCurrentResult=function(){return this.result},u.getOptimisticResult=function(t){return this.findMatchingObservers(t).map((function(t){return t.observer.getOptimisticResult(t.defaultedQueryOptions)}))},u.findMatchingObservers=function(t){var n=this,s=this.observers,u=t.map((function(t){return n.client.defaultQueryObserverOptions(t)})),o=u.flatMap((function(t){var n=s.find((function(n){return n.options.queryHash===t.queryHash}));return null!=n?[{defaultedQueryOptions:t,observer:n}]:[]})),f=o.map((function(t){return t.defaultedQueryOptions.queryHash})),a=u.filter((function(t){return!f.includes(t.queryHash)})),c=s.filter((function(t){return!o.some((function(n){return n.observer===t}))})),h=a.map((function(t,s){if(t.keepPreviousData){var u=c[s];if(void 0!==u)return{defaultedQueryOptions:t,observer:u}}return{defaultedQueryOptions:t,observer:n.getObserver(t)}}));return o.concat(h).sort((function(t,n){return u.indexOf(t.defaultedQueryOptions)-u.indexOf(n.defaultedQueryOptions)}))},u.getObserver=function(t){var n=this.client.defaultQueryObserverOptions(t),s=this.observersMap[n.queryHash];return null!=s?s:new(r(d[2]).QueryObserver)(this.client,n)},u.updateObservers=function(t){var n=this;r(d[3]).notifyManager.batch((function(){var s=n.observers,u=n.findMatchingObservers(n.queries);u.forEach((function(n){return n.observer.setOptions(n.defaultedQueryOptions,t)}));var o=u.map((function(t){return t.observer})),f=Object.fromEntries(o.map((function(t){return[t.options.queryHash,t]}))),a=o.map((function(t){return t.getCurrentResult()})),c=o.some((function(t,n){return t!==s[n]}));(s.length!==o.length||c)&&(n.observers=o,n.observersMap=f,n.result=a,n.hasListeners()&&((0,r(d[4]).difference)(s,o).forEach((function(t){t.destroy()})),(0,r(d[4]).difference)(o,s).forEach((function(t){t.subscribe((function(s){n.onUpdate(t,s)}))})),n.notify()))}))},u.onUpdate=function(t,n){var s=this.observers.indexOf(t);-1!==s&&(this.result=(0,r(d[4]).replaceAt)(this.result,s,n),this.notify())},u.notify=function(){var t=this;r(d[3]).notifyManager.batch((function(){t.listeners.forEach((function(n){n(t.result)}))}))},s})(r(d[5]).Subscribable);e.QueriesObserver=s}),787,[2,775,786,781,772,776]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.InfiniteQueryObserver=void 0;var n=t(r(d[1])),o=t(r(d[2])),c=(function(t){function c(n,o){return t.call(this,n,o)||this}(0,o.default)(c,t);var h=c.prototype;return h.bindMethods=function(){t.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},h.setOptions=function(o,c){t.prototype.setOptions.call(this,(0,n.default)({},o,{behavior:(0,r(d[3]).infiniteQueryBehavior)()}),c)},h.getOptimisticResult=function(n){return n.behavior=(0,r(d[3]).infiniteQueryBehavior)(),t.prototype.getOptimisticResult.call(this,n)},h.fetchNextPage=function(t){var n;return this.fetch({cancelRefetch:null==(n=null==t?void 0:t.cancelRefetch)||n,throwOnError:null==t?void 0:t.throwOnError,meta:{fetchMore:{direction:'forward',pageParam:null==t?void 0:t.pageParam}}})},h.fetchPreviousPage=function(t){var n;return this.fetch({cancelRefetch:null==(n=null==t?void 0:t.cancelRefetch)||n,throwOnError:null==t?void 0:t.throwOnError,meta:{fetchMore:{direction:'backward',pageParam:null==t?void 0:t.pageParam}}})},h.createResult=function(o,c){var h,s,u,l,f,v,P=o.state,p=t.prototype.createResult.call(this,o,c);return(0,n.default)({},p,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r(d[3]).hasNextPage)(c,null==(h=P.data)?void 0:h.pages),hasPreviousPage:(0,r(d[3]).hasPreviousPage)(c,null==(s=P.data)?void 0:s.pages),isFetchingNextPage:P.isFetching&&'forward'===(null==(u=P.fetchMeta)||null==(l=u.fetchMore)?void 0:l.direction),isFetchingPreviousPage:P.isFetching&&'backward'===(null==(f=P.fetchMeta)||null==(v=f.fetchMore)?void 0:v.direction)})},c})(r(d[4]).QueryObserver);e.InfiniteQueryObserver=c}),788,[2,773,775,785,786]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.MutationObserver=void 0;var s=t(r(d[1])),n=t(r(d[2])),u=(function(t){function u(s,n){var u;return(u=t.call(this)||this).client=s,u.setOptions(n),u.bindMethods(),u.updateResult(),u}(0,n.default)(u,t);var o=u.prototype;return o.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},o.setOptions=function(t){this.options=this.client.defaultMutationOptions(t)},o.onUnsubscribe=function(){var t;this.listeners.length||(null==(t=this.currentMutation)||t.removeObserver(this))},o.onMutationUpdate=function(t){this.updateResult();var s={listeners:!0};'success'===t.type?s.onSuccess=!0:'error'===t.type&&(s.onError=!0),this.notify(s)},o.getCurrentResult=function(){return this.currentResult},o.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},o.mutate=function(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,s.default)({},this.options,{variables:void 0!==t?t:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},o.updateResult=function(){var t=this.currentMutation?this.currentMutation.state:(0,r(d[3]).getDefaultState)(),n=(0,s.default)({},t,{isLoading:'loading'===t.status,isSuccess:'success'===t.status,isError:'error'===t.status,isIdle:'idle'===t.status,mutate:this.mutate,reset:this.reset});this.currentResult=n},o.notify=function(t){var s=this;r(d[4]).notifyManager.batch((function(){s.mutateOptions&&(t.onSuccess?(null==s.mutateOptions.onSuccess||s.mutateOptions.onSuccess(s.currentResult.data,s.currentResult.variables,s.currentResult.context),null==s.mutateOptions.onSettled||s.mutateOptions.onSettled(s.currentResult.data,null,s.currentResult.variables,s.currentResult.context)):t.onError&&(null==s.mutateOptions.onError||s.mutateOptions.onError(s.currentResult.error,s.currentResult.variables,s.currentResult.context),null==s.mutateOptions.onSettled||s.mutateOptions.onSettled(void 0,s.currentResult.error,s.currentResult.variables,s.currentResult.context))),t.listeners&&s.listeners.forEach((function(t){t(s.currentResult)}))}))},u})(r(d[5]).Subscribable);e.MutationObserver=u}),789,[2,773,775,784,781,776]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);e.__esModule=!0,e.dehydrate=function(t,u){var y,c,f=[],h=[];if(!1!==(null==(y=u=u||{})?void 0:y.dehydrateMutations)){var q=u.shouldDehydrateMutation||o;t.getMutationCache().getAll().forEach((function(t){q(t)&&f.push(n(t))}))}if(!1!==(null==(c=u)?void 0:c.dehydrateQueries)){var v=u.shouldDehydrateQuery||l;t.getQueryCache().getAll().forEach((function(t){v(t)&&h.push(s(t))}))}return{mutations:f,queries:h}},e.hydrate=function(t,n,s){if('object'!=typeof n||null===n)return;var o=t.getMutationCache(),l=t.getQueryCache(),y=n.mutations||[],c=n.queries||[];y.forEach((function(n){var l;o.build(t,(0,u.default)({},null==s||null==(l=s.defaultOptions)?void 0:l.mutations,{mutationKey:n.mutationKey}),n.state)})),c.forEach((function(n){var o,y=l.get(n.queryHash);y?y.state.dataUpdatedAt ${o.name}`:o.name;null==(f=o.state)||null==(f=f.routeNames)||f.forEach((function(n){n===o.name&&t.push([c,`${c} > ${o.name}`])})),o.state&&u(c,o.state)}))};return u('',n),t}}),817,[]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return i(t,new Set,[])};var n=t(r(d[1])),i=function(t,l,o){if(null==t||'boolean'==typeof t||'number'==typeof t||'string'==typeof t)return{serializable:!0};if('[object Object]'!==Object.prototype.toString.call(t)&&!Array.isArray(t))return{serializable:!1,location:o,reason:'function'==typeof t?'Function':String(t)};if(l.has(t))return{serializable:!1,reason:'Circular reference',location:o};if(l.add(t),Array.isArray(t))for(var f=0;f-1&&(n=!0,t[e].splice(u,1))}}),[t]);return{listeners:t,addListener:r}};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=f?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(u,o,a):u[o]=e[o]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}}),827,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var n=t.useRef(e);t.useEffect((function(){n.current=e}));var u=t.useRef(Object.create(null)),a=t.useCallback((function(e){var r=function(r,t){var n=u.current[r]?u.current[r][e]:void 0;if(n){var a=n.indexOf(t);a>-1&&n.splice(a,1)}};return{addListener:function(t,n){u.current[t]=u.current[t]||{},u.current[t][e]=u.current[t][e]||[],u.current[t][e].push(n);var a=!1;return function(){a||(a=!0,r(t,n))}},removeListener:r}}),[]),c=t.useCallback((function(e){var t,a,c=e.type,f=e.data,i=e.target,o=e.canPreventDefault,l=u.current[c]||{},p=void 0!==i?null==(t=l[i])?void 0:t.slice():(a=[]).concat.apply(a,(0,r.default)(Object.keys(l).map((function(e){return l[e]})))).filter((function(e,r,t){return t.lastIndexOf(e)===r})),v={get type(){return c}};if(void 0!==i&&Object.defineProperty(v,'target',{enumerable:!0,get:function(){return i}}),void 0!==f&&Object.defineProperty(v,'data',{enumerable:!0,get:function(){return f}}),o){var s=!1;Object.defineProperties(v,{defaultPrevented:{enumerable:!0,get:function(){return s}},preventDefault:{enumerable:!0,value:function(){s=!0}}})}return null==n.current||n.current(v),null==p||p.forEach((function(e){return e(v)})),v}),[]);return t.useMemo((function(){return{create:a,emit:c}}),[a,c])};var r=e(_r(d[1])),t=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var u={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&{}.hasOwnProperty.call(e,c)){var f=a?Object.getOwnPropertyDescriptor(e,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=e[c]}return u.default=e,t&&t.set(e,u),u})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}}),828,[2,22,16]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var t=e.useRef(Object.assign(Object.create(null),{getState:{},beforeRemove:{}})).current,r=e.useCallback((function(e,r,n){return t[e][r]=n,function(){t[e][r]=void 0}}),[t]);return{keyedListeners:t,addKeyedListener:r}};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}}),829,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var u=e.key,l=e.options,o=e.navigation,a=n.useRef(l),i=n.useRef({}),c=n.useContext(t.default).onOptionsChange,f=n.useContext(r.default).addOptionsGetter,s=n.useCallback((function(){var e,n,t=null==(e=null==o?void 0:o.isFocused())||e,r=Object.keys(i.current).length;t&&!r&&c(null!=(n=a.current)?n:{})}),[o,c]);n.useEffect((function(){return a.current=l,s(),null==o?void 0:o.addListener('focus',s)}),[o,l,s]);var p=n.useCallback((function(){for(var e in i.current)if(i.current.hasOwnProperty(e)){var n,t,r=null==(n=(t=i.current)[e])?void 0:n.call(t);if(null!==r)return r}return null}),[]),v=n.useCallback((function(){var e;if(!(null==(e=null==o?void 0:o.isFocused())||e))return null;var n=p();return null!==n?n:a.current}),[o,p]);return n.useEffect((function(){return null==f?void 0:f(u,v)}),[v,f,u]),{addOptionsGetter:n.useCallback((function(e,n){return i.current[e]=n,s(),function(){delete i.current[e],s()}}),[s]),getCurrentOptions:v}};var n=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=l?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r})(_r(d[1])),t=e(_r(d[2])),r=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:n})(e)}}),830,[2,16,821,825]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var n=t.useRef(u),c=t.useRef(!1),f=t.useRef(!0);t.useEffect((function(){return f.current=!0,function(){f.current=!1}}),[]),n.current===u&&(n.current='function'==typeof e?e():e);var a=t.useState(n.current),o=(0,r.default)(a,2),l=o[0],i=o[1],s=t.useCallback((function(){return n.current}),[]),p=t.useCallback((function(e){e!==n.current&&f.current&&(n.current=e,c.current||i(e))}),[]),v=t.useCallback((function(e){c.current=!0;try{e()}finally{c.current=!1}}),[]),y=t.useCallback((function(){f.current&&i(n.current)}),[]);l!==n.current&&i(n.current);var b=n.current;return t.useDebugValue(b),[b,s,p,v,y]};var r=e(_r(d[1])),t=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var u={__proto__:null},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=c?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,t&&t.set(e,u),u})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var u={}}),831,[2,44,16]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NOT_INITIALIZED_ERROR=void 0,e.default=function(){var t=[].concat((0,o.default)(Object.keys(r(d[3]).CommonActions)),['addListener','removeListener','resetRoot','dispatch','isFocused','canGoBack','getRootState','getState','getParent','getCurrentRoute','getCurrentOptions']),c={},s=function(t,n){c[t]&&(c[t]=c[t].filter((function(t){return t!==n})))},f=null,l=Object.assign({get current(){return f},set current(t){f=t,null!=t&&Object.entries(c).forEach((function(o){var u=(0,n.default)(o,2),c=u[0];u[1].forEach((function(n){t.addListener(c,n)}))}))},isReady:function(){return null!=f&&f.isReady()}},t.reduce((function(t,n){return t[n]=function(){for(var t=arguments.length,o=new Array(t),l=0;l1&&void 0!==arguments[1]?arguments[1]:21;return function(){for(var o='',i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;i--;)o+=n[Math.random()*n.length|0];return o}},e.nanoid=function(){for(var n='',t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n}}),836,[]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.DrawerActions=void 0,_e.default=function(t){var o=t.defaultStatus,i=void 0===o?'closed':o,s=(0,r.default)(t,a),c=(0,n.default)(s),f=function(t){var e;return Boolean(null==(e=t.history)?void 0:e.some((function(t){return'drawer'===t.type})))},l=function(t){return f(t)?t:Object.assign({},t,{history:[].concat((0,e.default)(t.history),[{type:'drawer',status:'open'===i?'closed':'open'}])})},p=function(t){return f(t)?Object.assign({},t,{history:t.history.filter((function(t){return'drawer'!==t.type}))}):t},y=function(t){return'open'===i?p(t):l(t)},O=function(t){return'open'===i?l(t):p(t)};return Object.assign({},c,{type:'drawer',getInitialState:function(t){var e=t.routeNames,r=t.routeParamList,n=t.routeGetIdList,a=c.getInitialState({routeNames:e,routeParamList:r,routeGetIdList:n});return Object.assign({},a,{default:i,stale:!1,type:'drawer',key:`drawer-${(0,_r(d[4]).nanoid)()}`})},getRehydratedState:function(t,e){var r=e.routeNames,n=e.routeParamList,a=e.routeGetIdList;if(!1===t.stale)return t;var o=c.getRehydratedState(t,{routeNames:r,routeParamList:n,routeGetIdList:a});return f(t)&&(o=p(o),o=l(o)),Object.assign({},o,{default:i,type:'drawer',key:`drawer-${(0,_r(d[4]).nanoid)()}`})},getStateForRouteFocus:function(t,e){var r=c.getStateForRouteFocus(t,e);return O(r)},getStateForAction:function(t,e,r){switch(e.type){case'OPEN_DRAWER':return y(t);case'CLOSE_DRAWER':return O(t);case'TOGGLE_DRAWER':return f(t)?p(t):l(t);case'JUMP_TO':case'NAVIGATE':var n=c.getStateForAction(t,e,r);return null!=n&&n.index!==t.index?O(n):n;case'GO_BACK':return f(t)?p(t):c.getStateForAction(t,e,r);default:return c.getStateForAction(t,e,r)}},actionCreators:u})};var e=t(_r(d[1])),r=t(_r(d[2])),n=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var i=a?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=t[u]}return n.default=t,r&&r.set(t,n),n})(_r(d[3])),a=["defaultStatus"];function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}var u=_e.DrawerActions=Object.assign({},n.TabActions,{openDrawer:function(){return{type:'OPEN_DRAWER'}},closeDrawer:function(){return{type:'CLOSE_DRAWER'}},toggleDrawer:function(){return{type:'TOGGLE_DRAWER'}}})}),837,[2,22,4,838,836]); +__d((function(g,_r,_i,a,m,e,d){var t=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.TabActions=void 0,e.default=function(t){var r=t.initialRouteName,s=t.backBehavior,y=void 0===s?'firstRoute':s;return Object.assign({},n.default,{type:'tab',getInitialState:function(t){var n=t.routeNames,i=t.routeParamList,u=void 0!==r&&n.includes(r)?n.indexOf(r):0,s=n.map((function(t){return{name:t,key:`${t}-${(0,_r(d[2]).nanoid)()}`,params:i[t]}})),c=o(s,u,y,r);return{stale:!1,type:'tab',key:`tab-${(0,_r(d[2]).nanoid)()}`,index:u,routeNames:n,history:c,routes:s}},getRehydratedState:function(t,n){var i,o,s,c,l=n.routeNames,f=n.routeParamList,p=t;if(!1===p.stale)return p;var h=l.map((function(t){var n=p.routes.find((function(n){return n.name===t}));return Object.assign({},n,{name:t,key:n&&n.name===t&&n.key?n.key:`${t}-${(0,_r(d[2]).nanoid)()}`,params:void 0!==f[t]?Object.assign({},f[t],n?n.params:void 0):n?n.params:void 0})})),v=Math.min(Math.max(l.indexOf(null==(i=p.routes[null!=(o=null==p?void 0:p.index)?o:0])?void 0:i.name),0),h.length-1),k=null!=(s=null==(c=p.history)?void 0:c.filter((function(t){return h.find((function(n){return n.key===t.key}))})))?s:[];return u({stale:!1,type:'tab',key:`tab-${(0,_r(d[2]).nanoid)()}`,index:v,routeNames:l,history:k,routes:h},v,y,r)},getStateForRouteNamesChange:function(t,n){var i=n.routeNames,u=n.routeParamList,s=n.routeKeyChanges,c=i.map((function(n){return t.routes.find((function(t){return t.name===n&&!s.includes(t.name)}))||{name:n,key:`${n}-${(0,_r(d[2]).nanoid)()}`,params:u[n]}})),l=Math.max(0,i.indexOf(t.routes[t.index].name)),f=t.history.filter((function(t){return'route'!==t.type||c.find((function(n){return n.key===t.key}))}));return f.length||(f=o(c,l,y,r)),Object.assign({},t,{history:f,routeNames:i,routes:c,index:l})},getStateForRouteFocus:function(t,n){var i=t.routes.findIndex((function(t){return t.key===n}));return-1===i||i===t.index?t:u(t,i,y,r)},getStateForAction:function(t,i,o){var s=o.routeParamList,c=o.routeGetIdList;switch(i.type){case'JUMP_TO':case'NAVIGATE':var l=-1;return-1===(l='NAVIGATE'===i.type&&i.payload.key?t.routes.findIndex((function(t){return t.key===i.payload.key})):t.routes.findIndex((function(t){return t.name===i.payload.name})))?null:u(Object.assign({},t,{routes:t.routes.map((function(t,n){if(n!==l)return t;var r,o=c[t.name],u=null==o?void 0:o({params:t.params}),y=null==o?void 0:o({params:i.payload.params}),f=u===y?t.key:`${t.name}-${(0,_r(d[2]).nanoid)()}`;r='NAVIGATE'===i.type&&i.payload.merge&&u===y?void 0!==i.payload.params||void 0!==s[t.name]?Object.assign({},s[t.name],t.params,i.payload.params):t.params:void 0!==s[t.name]?Object.assign({},s[t.name],i.payload.params):i.payload.params;var p='NAVIGATE'===i.type&&null!=i.payload.path?i.payload.path:t.path;return r!==t.params||p!==t.path?Object.assign({},t,{key:f,path:p,params:r}):t}))}),l,y,r);case'GO_BACK':if(1===t.history.length)return null;var f=t.history[t.history.length-2].key,p=t.routes.findIndex((function(t){return t.key===f}));return-1===p?null:Object.assign({},t,{history:t.history.slice(0,-1),index:p});default:return n.default.getStateForAction(t,i)}},shouldActionChangeFocus:function(t){return'NAVIGATE'===t.type},actionCreators:i})};var n=t(_r(d[1])),r='route',i=e.TabActions={jumpTo:function(t,n){return{type:'JUMP_TO',payload:{name:t,params:n}}}},o=function(t,n,i,o){var u,s=[{type:r,key:t[n].key}];switch(i){case'order':for(var y=n;y>0;y--)s.unshift({type:r,key:t[y-1].key});break;case'firstRoute':0!==n&&s.unshift({type:r,key:t[0].key});break;case'initialRoute':n!==(u=-1===(u=t.findIndex((function(t){return t.name===o})))?0:u)&&s.unshift({type:r,key:t[u].key})}return s},u=function(t,n,i,u){var s;if('history'===i){var y=t.routes[n].key;s=t.history.filter((function(t){return'route'===t.type&&t.key!==y})).concat({type:r,key:y})}else s=o(t.routes,n,i,u);return Object.assign({},t,{index:n,history:s})}}),838,[2,835,836]); +__d((function(g,_r,_i,a,m,e,d){var t=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.StackActions=void 0,e.default=function(t){var i=Object.assign({},o.default,{type:'stack',getInitialState:function(n){var o=n.routeNames,r=n.routeParamList,i=void 0!==t.initialRouteName&&o.includes(t.initialRouteName)?t.initialRouteName:o[0];return{stale:!1,type:'stack',key:`stack-${(0,_r(d[3]).nanoid)()}`,index:0,routeNames:o,routes:[{key:`${i}-${(0,_r(d[3]).nanoid)()}`,name:i,params:r[i]}]}},getRehydratedState:function(n,o){var r=o.routeNames,i=o.routeParamList,s=n;if(!1===s.stale)return s;var u=s.routes.filter((function(t){return r.includes(t.name)})).map((function(t){return Object.assign({},t,{key:t.key||`${t.name}-${(0,_r(d[3]).nanoid)()}`,params:void 0!==i[t.name]?Object.assign({},i[t.name],t.params):t.params})}));if(0===u.length){var l=void 0!==t.initialRouteName?t.initialRouteName:r[0];u.push({key:`${l}-${(0,_r(d[3]).nanoid)()}`,name:l,params:i[l]})}return{stale:!1,type:'stack',key:`stack-${(0,_r(d[3]).nanoid)()}`,index:u.length-1,routeNames:r,routes:u}},getStateForRouteNamesChange:function(n,o){var r=o.routeNames,i=o.routeParamList,s=o.routeKeyChanges,u=n.routes.filter((function(t){return r.includes(t.name)&&!s.includes(t.name)}));if(0===u.length){var l=void 0!==t.initialRouteName&&r.includes(t.initialRouteName)?t.initialRouteName:r[0];u.push({key:`${l}-${(0,_r(d[3]).nanoid)()}`,name:l,params:i[l]})}return Object.assign({},n,{routeNames:r,routes:u,index:Math.min(n.index,u.length-1)})},getStateForRouteFocus:function(t,n){var o=t.routes.findIndex((function(t){return t.key===n}));return-1===o||o===t.index?t:Object.assign({},t,{index:o,routes:t.routes.slice(0,o+1)})},getStateForAction:function(t,r,s){var u=s.routeParamList;switch(r.type){case'REPLACE':var l=r.target===t.key&&r.source?t.routes.findIndex((function(t){return t.key===r.source})):t.index;if(-1===l)return null;var p=r.payload,y=p.name,c=p.key,f=p.params;return t.routeNames.includes(y)?Object.assign({},t,{routes:t.routes.map((function(t,n){return n===l?{key:void 0!==c?c:`${y}-${(0,_r(d[3]).nanoid)()}`,name:y,params:void 0!==u[y]?Object.assign({},u[y],f):f}:t}))}):null;case'PUSH':if(t.routeNames.includes(r.payload.name)){var v,k=s.routeGetIdList[r.payload.name],O=null==k?void 0:k({params:r.payload.params}),h=O?t.routes.find((function(t){return t.name===r.payload.name&&O===(null==k?void 0:k({params:t.params}))})):void 0;return h?(v=t.routes.filter((function(t){return t.key!==h.key}))).push(Object.assign({},h,{params:void 0!==u[r.payload.name]?Object.assign({},u[r.payload.name],r.payload.params):r.payload.params})):v=[].concat((0,n.default)(t.routes),[{key:`${r.payload.name}-${(0,_r(d[3]).nanoid)()}`,name:r.payload.name,params:void 0!==u[r.payload.name]?Object.assign({},u[r.payload.name],r.payload.params):r.payload.params}]),Object.assign({},t,{index:v.length-1,routes:v})}return null;case'POP':var P=r.target===t.key&&r.source?t.routes.findIndex((function(t){return t.key===r.source})):t.index;if(P>0){var x=Math.max(P-r.payload.count+1,1),b=t.routes.slice(0,x).concat(t.routes.slice(P+1));return Object.assign({},t,{index:b.length-1,routes:b})}return null;case'POP_TO_TOP':return i.getStateForAction(t,{type:'POP',payload:{count:t.routes.length-1}},s);case'NAVIGATE':if(void 0!==r.payload.name&&!t.routeNames.includes(r.payload.name))return null;if(r.payload.key||r.payload.name){var j,N=-1,$=void 0===r.payload.key&&void 0!==r.payload.name?s.routeGetIdList[r.payload.name]:void 0,R=null==$?void 0:$({params:r.payload.params});if(R)N=t.routes.findIndex((function(t){return t.name===r.payload.name&&R===(null==$?void 0:$({params:t.params}))}));else if(t.routes[t.index].name===r.payload.name&&void 0===r.payload.key||t.routes[t.index].key===r.payload.key)N=t.index;else for(var S=t.routes.length-1;S>=0;S--)if(t.routes[S].name===r.payload.name&&void 0===r.payload.key||t.routes[S].key===r.payload.key){N=S;break}if(-1===N&&r.payload.key&&void 0===r.payload.name)return null;if(-1===N&&void 0!==r.payload.name){var A,_=[].concat((0,n.default)(t.routes),[{key:null!=(A=r.payload.key)?A:`${r.payload.name}-${(0,_r(d[3]).nanoid)()}`,name:r.payload.name,path:r.payload.path,params:void 0!==u[r.payload.name]?Object.assign({},u[r.payload.name],r.payload.params):r.payload.params}]);return Object.assign({},t,{routes:_,index:_.length-1})}var I,L=t.routes[N];return I=r.payload.merge?void 0!==r.payload.params||void 0!==u[L.name]?Object.assign({},u[L.name],L.params,r.payload.params):L.params:void 0!==u[L.name]?Object.assign({},u[L.name],r.payload.params):r.payload.params,Object.assign({},t,{index:N,routes:[].concat((0,n.default)(t.routes.slice(0,N)),[I!==L.params||r.payload.path&&r.payload.path!==L.path?Object.assign({},L,{path:null!=(j=r.payload.path)?j:L.path,params:I}):t.routes[N]])})}return null;case'GO_BACK':return t.index>0?i.getStateForAction(t,{type:'POP',payload:{count:1},target:r.target,source:r.source},s):null;default:return o.default.getStateForAction(t,r)}},actionCreators:r});return i};var n=t(_r(d[1])),o=t(_r(d[2])),r=e.StackActions={replace:function(t,n){return{type:'REPLACE',payload:{name:t,params:n}}},push:function(t,n){return{type:'PUSH',payload:{name:t,params:n}}},pop:function(){return{type:'POP',payload:{count:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1}}},popToTop:function(){return{type:'POP_TO_TOP'}}}}),839,[2,22,835,836]); +__d((function(g,r,i,a,m,e,d){}),840,[]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ScheduleUpdateContext=void 0,_e.default=function(t){var r=e.useContext(n),o=r.scheduleUpdate,u=r.flushUpdates;o(t),e.useEffect(u)};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}var r="Couldn't find a schedule context.",n=_e.ScheduleUpdateContext=e.createContext({scheduleUpdate:function(){throw new Error(r)},flushUpdates:function(){throw new Error(r)}})}),841,[16]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){if(void 0!==arguments[0])throw new Error("Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API? See https://reactnavigation.org/docs/hello-react-navigation for the latest API and guides.");return{Navigator:t,Group:n.default,Screen:o.default}}};var n=t(r(d[1])),o=t(r(d[2]))}),842,[2,843,844]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return null}}),843,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return null}}),844,[]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(void 0);_e.default=t}),845,[16]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t){var s,u,o=t?l(t):{},v=null!=n.index?n.routes.slice(0,n.index+1):n.routes;if(0===v.length)return;if(!(1===v.length&&void 0===v[0].key||2===v.length&&void 0===v[0].key&&v[0].name===(null==o?void 0:o.initialRouteName)&&void 0===v[1].key))return{type:'RESET',payload:n};var c=n.routes[null!=(s=n.index)?s:n.routes.length-1],p=null==c?void 0:c.state,f=null==o||null==(u=o.screens)?void 0:u[null==c?void 0:c.name],h=Object.assign({},c.params),y=c?{name:c.name,path:c.path,params:h}:void 0;for(;p;){var b,k;if(0===p.routes.length)return;var j=null!=p.index?p.routes.slice(0,p.index+1):p.routes,x=j[j.length-1];if(Object.assign(h,{initial:void 0,screen:void 0,params:void 0,state:void 0}),1===j.length&&void 0===j[0].key)h.initial=!0,h.screen=x.name;else{if(2!==j.length||void 0!==j[0].key||j[0].name!==(null==(b=f)?void 0:b.initialRouteName)||void 0!==j[1].key){h.state=p;break}h.initial=!1,h.screen=x.name}x.state?(h.params=Object.assign({},x.params),h=h.params):(h.path=x.path,h.params=x.params),p=x.state,f=null==(k=f)||null==(k=k.screens)?void 0:k[x.name]}if(!y)return;return{type:'NAVIGATE',payload:y}};var t=n(r(d[1]));var l=function(n){return'object'==typeof n&&null!=n?{initialRouteName:n.initialRouteName,screens:null!=n.screens?s(n.screens):void 0}:{}},s=function(n){return Object.entries(n).reduce((function(n,s){var u=(0,t.default)(s,2),o=u[0],v=u[1];return n[o]=l(v),n}),{})}}),846,[2,44]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n,u,l=null!=(n=t[r(d[0]).CHILD_STATE])?n:t.state,o=t.params;return l?l.routes[null!=(u=l.index)?u:'string'==typeof l.type&&'stack'!==l.type?0:l.routes.length-1].name:'string'==typeof(null==o?void 0:o.screen)?o.screen:void 0}}),847,[848]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.CHILD_STATE=void 0,_e.default=function(e){t.useMemo((function(){return{current:new Map}}),[]);return e};e(_r(d[1]));var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,n&&n.set(e,u),u})(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}_e.CHILD_STATE=Symbol('CHILD_STATE')}),848,[2,4,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,t){if(null==e)throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");t&&(0,i.default)(t);var o=null!=t&&t.screens?c(null==t?void 0:t.screens):{},f='/',l=e,p={},v=function(){for(var t,i,c='number'==typeof l.index?l.index:0,v=l.routes[c],y=u(e),h=o,b=[],j=!0,O=function(){if(t=h[v.name].pattern,b.push(v.name),v.params){var e,r,o=null==(e=h[v.name])?void 0:e.stringify,u=(0,a.default)(Object.entries(v.params).map((function(e){var t=(0,n.default)(e,2),r=t[0],a=t[1];return[r,null!=o&&o[r]?o[r](a):String(a)]})));if(t&&Object.assign(p,u),y===v)i=Object.assign({},u),null==(r=t)||r.split('/').filter((function(e){return e.startsWith(':')})).forEach((function(e){var t=s(e);i&&delete i[t]}))}if(h[v.name].screens&&void 0!==v.state){c='number'==typeof v.state.index?v.state.index:v.state.routes.length-1;var f=v.state.routes[c],l=h[v.name].screens;l&&f.name in l?(v=f,h=l):j=!1}else j=!1};v.name in h&&j;)O();if(void 0===t&&(t=b.join('/')),void 0!==h[v.name]?f+=t.split('/').map((function(e){var t=s(e);if('*'===e)return v.name;if(e.startsWith(':')){var n=p[t];return void 0===n&&e.endsWith('?')?'':encodeURIComponent(n)}return encodeURIComponent(e)})).join('/'):f+=encodeURIComponent(v.name),i||(i=y.params),v.state)f+='/';else if(i){for(var w in i)'undefined'===i[w]&&delete i[w];var _=r.stringify(i,{sort:!1});_&&(f+=`?${_}`)}l=v.state};for(;l;)v();return f=(f=f.replace(/\/+/g,'/')).length>1?f.replace(/\/$/,''):f};var t=e(_r(d[1])),n=e(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),a=e(_r(d[4])),i=e(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}var u=function(e){var t='number'==typeof e.index?e.routes[e.index]:e.routes[e.routes.length-1];return t.state?u(t.state):t};var s=function(e){return e.replace(/^:/,'').replace(/\?$/,'')},f=function(){for(var e,n=arguments.length,r=new Array(n),a=0;a0})).join('&')},e.parseUrl=function(t,a){a=Object.assign({decode:!0},a);var o=r(d[5])(t,'#'),u=n(o,2),c=u[0],s=u[1];return Object.assign({url:c.split('?')[0]||'',query:k(b(t),a)},a&&a.parseFragmentIdentifier&&s?{fragmentIdentifier:f(s,a)}:{})},e.stringifyUrl=function(n,a){a=Object.assign(t({encode:!0,strict:!0},o,!0),a);var u=y(n.url).split('?')[0]||'',c=e.extract(n.url),s=e.parse(c,{sort:!1}),f=Object.assign(s,n.query),p=e.stringify(f,a);p&&(p=`?${p}`);var b=v(n.url);return n.fragmentIdentifier&&(b=`#${a[o]?l(n.fragmentIdentifier,a):n.fragmentIdentifier}`),`${u}${p}${b}`},e.pick=function(n,a,u){u=Object.assign(t({parseFragmentIdentifier:!0},o,!1),u);var c=e.parseUrl(n,u),s=c.url,l=c.query,f=c.fragmentIdentifier;return e.stringifyUrl({url:s,query:r(d[6])(l,a),fragmentIdentifier:f},u)},e.exclude=function(t,n,a){var o=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,a){return!n(t,a)};return e.pick(t,o,a)}}),850,[197,44,22,851,852,853,854]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return`%${t.charCodeAt(0).toString(16).toUpperCase()}`}))}}),851,[]); +__d((function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp("(%[a-f0-9]{2})|([^%]+?)",'gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return[decodeURIComponent(t.join(''))]}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t)||[],p=1;p1&&void 0!==arguments[1])||arguments[1],f=['initialRouteName','screens'];s||f.push('path','exact','stringify','parse');var u=Object.keys(c).filter((function(n){return!f.includes(n)}));if(u.length)throw new Error(`Found invalid properties in the configuration:\n${o(u)}\n\nDid you forget to specify them under a 'screens' property?\n\nYou can only specify the following properties:\n${o(f)}\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.`);c.screens&&Object.entries(c.screens).forEach((function(o){var c=(0,t.default)(o,2),s=(c[0],c[1]);'string'!=typeof s&&n(s,!1)}))};var t=n(r(d[1])),o=function(n){return n.map((function(n){return`- ${n}`})).join('\n')}}),856,[2,44]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,n){var a;n&&(0,o.default)(n);var i=[];null!=n&&n.initialRouteName&&i.push({initialRouteName:n.initialRouteName,parentScreens:[]});var u=null==n?void 0:n.screens,s=e.replace(/\/+/g,'/').replace(/^\//,'').replace(/\?.*$/,'');if(s=s.endsWith('/')?s:`${s}/`,void 0===u){var p=s.split('/').filter(Boolean).map((function(e){return{name:decodeURIComponent(e)}}));return p.length?y(e,p,i):void 0}var c,h,v=(a=[]).concat.apply(a,(0,r.default)(Object.keys(u).map((function(e){return f(e,u,[],i,[])})))).sort((function(e,t){if(e.pattern===t.pattern)return t.routeNames.join('>').localeCompare(e.routeNames.join('>'));if(e.pattern.startsWith(t.pattern))return-1;if(t.pattern.startsWith(e.pattern))return 1;for(var r=e.pattern.split('/'),n=t.pattern.split('/'),a=0;aa.length?a.every((function(e,t){return n[t]===e})):n.every((function(e,t){return a[t]===e}))))throw new Error(`Found conflicting screens with the same pattern. The pattern '${r.pattern}' resolves to both '${n.join(' > ')}' and '${a.join(' > ')}'. Patterns must be unique and cannot resolve to more than one screen.`)}return Object.assign(e,(0,t.default)({},r.pattern,r))}),{}),'/'===s){var j=v.find((function(e){return''===e.path&&e.routeNames.every((function(e){var t;return!(null!=(t=v.find((function(t){return t.screen===e})))&&t.path)}))}));return j?y(e,j.routeNames.map((function(e){return{name:e}})),i,v):void 0}var b=l(s,v.map((function(e){return Object.assign({},e,{regex:e.regex?new RegExp(e.regex.source+'$'):void 0})}))),O=b.routes,N=b.remainingPath;void 0!==O&&(s=N,c=h=y(e,O,i,v));if(null==h||null==c)return;return c};var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[4])),i=e(_r(d[5])),o=e(_r(d[6]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var s=function(){for(var e,t=arguments.length,n=new Array(t),a=0;a2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,u=[];n.push(e),i.push(e);var l=t[e];if('string'==typeof l){var c=o?s(o,l):l;u.push(p(e,n,c,l))}else if('object'==typeof l){var h;if('string'==typeof l.path){if(l.exact&&void 0===l.path)throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");h=!0!==l.exact?s(o||'',l.path||''):l.path||'',u.push(p(e,n,h,l.path,l.parse))}l.screens&&(l.initialRouteName&&a.push({initialRouteName:l.initialRouteName,parentScreens:i}),Object.keys(l.screens).forEach((function(e){var t,s=f(e,l.screens,n,a,(0,r.default)(i),null!=(t=h)?t:o);u.push.apply(u,(0,r.default)(s))})))}return n.pop(),u},p=function(e,t,a,i,o){return{screen:e,regex:(a=a.split('/').filter(Boolean).join('/'))?new RegExp(`^(${a.split('/').map((function(e){return e.startsWith(':')?`(([^/]+\\/)${e.endsWith('?')?'?':''})`:`${'*'===e?'.*':(0,n.default)(e)}\\/`})).join('')})`):void 0,pattern:a,path:i,routeNames:(0,r.default)(t),parse:o}},c=function(e,t){for(var r of t)if(e===r.routeNames[r.routeNames.length-1])return r.parse},h=function(e,t,r){for(var n of r)if(t.length===n.parentScreens.length){for(var a=!0,i=0;i0)for(var l=a;o=t.shift();){s=h(o.name,u,r);var f=l.index||l.routes.length-1;l.routes[f].state=v(s,o,0===t.length),t.length>0&&(l=l.routes[f].state),u.push(o.name)}(o=(0,i.default)(a)).path=e;var p=j(e,n?c(o.name,n):void 0);return p&&(o.params=Object.assign({},o.params,p)),a},j=function(e,t){var r=e.split('?')[1],n=a.parse(r);return t&&Object.keys(n).forEach((function(e){Object.hasOwnProperty.call(t,e)&&'string'==typeof n[e]&&(n[e]=t[e](n[e]))})),Object.keys(n).length?n:void 0}}),857,[2,197,22,858,850,820,856]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){if('string'!=typeof t)throw new TypeError('Expected a string');return t.replace(/[|\\{}()[\]^$+*?.]/g,'\\$&').replace(/-/g,'\\x2d')}}),858,[]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(void 0);_e.default=t}),859,[16]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(void 0);_e.default=t}),860,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var f=e.children,c=r.useState((function(){return(0,_r(d[9]).nanoid)()})),s=(0,t.default)(c,1)[0],p=r.useState(new Map),y=(0,t.default)(p,2),w=y[0],_=y[1],k=r.useContext(o.default),P=r.useContext(i.default),R=r.useContext(l.default),M=null==R?void 0:R.setPreventRemove,O=(0,u.default)((function(e,t,n){if(n&&(null==k||null!=k&&k.getState().routes.every((function(e){return e.key!==t}))))throw new Error(`Couldn't find a route with the key ${t}. Is your component inside NavigationContent?`);_((function(r){var u,o;if(t===(null==(u=r.get(e))?void 0:u.routeKey)&&n===(null==(o=r.get(e))?void 0:o.preventRemove))return r;var i=new Map(r);return n?i.set(e,{routeKey:t,preventRemove:n}):i.delete(e),i}))})),h=(0,n.default)(w.values()).some((function(e){return e.preventRemove}));r.useEffect((function(){if(void 0!==(null==P?void 0:P.key)&&void 0!==M)return M(s,P.key,h),function(){M(s,P.key,!1)}}),[s,h,null==P?void 0:P.key,M]);var j=r.useMemo((function(){return{setPreventRemove:O,preventedRoutes:v(w)}}),[O,w]);return(0,a.jsx)(l.default.Provider,{value:j,children:f})};var t=e(_r(d[1])),n=e(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=u?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[3])),u=e(_r(d[4])),o=e(_r(d[5])),i=e(_r(d[6])),l=e(_r(d[7])),a=_r(d[8]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var v=function(e){return(0,n.default)(e.values()).reduce((function(e,t){var n,r=t.routeKey,u=t.preventRemove;return e[r]={preventRemove:(null==(n=e[r])?void 0:n.preventRemove)||u},e}),{})}}),861,[2,44,22,16,862,859,824,860,223,836]); +__d((function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]);m.exports=function(n){var u=t.useRef(n),c=t.useRef((function(){for(var t=[],n=0;n {\n // Your code here\n }, [depA, depB])\n);\n\nSee usage guide: https://reactnavigation.org/docs/use-focus-effect")}t.useEffect((function(){var t,n=!1,o=function(){var t=e();if(void 0===t||'function'==typeof t)return t};r.isFocused()&&(t=o(),n=!0);var u=r.addListener('focus',(function(){n||(void 0!==t&&t(),t=o(),n=!0)})),a=r.addListener('blur',(function(){void 0!==t&&t(),t=void 0,n=!1}));return function(){void 0!==t&&t(),u(),a()}}),[e,r])};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var c=u?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o})(_r(d[1])),n=e(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}}),865,[2,16,866]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=t.useContext(n.default),o=t.useContext(r.default);if(void 0===o&&void 0===e)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");return null!=o?o:e};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=u?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}}),866,[2,16,822,823]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=(0,u.default)(),f=(0,r.useState)(e.isFocused),o=(0,t.default)(f,2),a=o[0],i=o[1],c=e.isFocused();a!==c&&i(c);return n.useEffect((function(){var t=e.addListener('focus',(function(){return i(!0)})),r=e.addListener('blur',(function(){return i(!1)}));return function(){t(),r()}}),[e]),n.useDebugValue(c),c};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=r,u=e(_r(d[3]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}}),867,[2,44,16,866]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,i){var v=(0,K.default)(),_=o.useContext(p.default),G=i.children,A=i.screenListeners,x=(0,r.default)(i,E),M=o.useRef(e(Object.assign({},x,null!=_&&_.params&&null==_.params.state&&!1!==_.params.initial&&'string'==typeof _.params.screen?{initialRouteName:_.params.screen}:null))).current,F=$(G),J=F.reduce((function(e,t){if(t.props.name in e)throw new Error(`A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named '${t.props.name}')`);return e[t.props.name]=t,e}),{}),V=F.map((function(e){return e.props.name})),W=V.reduce((function(e,t){return e[t]=J[t].keys.map((function(e){return null!=e?e:''})).join(':'),e}),{}),D=V.reduce((function(e,t){var n=J[t].props.initialParams;return e[t]=n,e}),{}),T=V.reduce((function(e,t){return Object.assign(e,(0,n.default)({},t,J[t].props.getId))}),{});if(!V.length)throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");var H=o.useCallback((function(e){return void 0===e.type||e.type===M.type}),[M.type]),q=o.useCallback((function(e){return void 0!==e&&!1===e.stale&&H(e)}),[H]),z=o.useContext(f.default),B=z.state,Q=z.getState,U=z.setState,X=z.setKey,Y=z.getKey,Z=z.getIsInitial,ee=o.useRef(!1),te=o.useCallback((function(){U(void 0),ee.current=!0}),[U]),ne=o.useCallback((function(e){ee.current||U(e)}),[U]),re=o.useMemo((function(){var e,t,n,r=V.reduce((function(e,t){var n,r,a,o=J[t].props.initialParams,i=null==(null==_||null==(n=_.params)?void 0:n.state)&&!1!==(null==_||null==(r=_.params)?void 0:r.initial)&&(null==_||null==(a=_.params)?void 0:a.screen)===t?_.params.params:void 0;return e[t]=void 0!==o||void 0!==i?Object.assign({},o,i):void 0,e}),{});return void 0!==B&&H(B)||null!=(null==_||null==(e=_.params)?void 0:e.state)?[M.getRehydratedState(null!=(t=null==_||null==(n=_.params)?void 0:n.state)?t:B,{routeNames:V,routeParamList:r,routeGetIdList:T}),!1]:[M.getInitialState({routeNames:V,routeParamList:r,routeGetIdList:T}),!0]}),[B,M,H]),ae=(0,t.default)(re,2),oe=ae[0],ie=ae[1],ue=o.useRef(W);o.useEffect((function(){ue.current=W}));var se=ue.current,le=q(B)?B:oe,pe=le;(0,u.default)(le.routeNames,V)&&(0,s.default)(W,se)||(pe=M.getStateForRouteNamesChange(le,{routeNames:V,routeParamList:D,routeGetIdList:T,routeKeyChanges:Object.keys(W).filter((function(e){return se.hasOwnProperty(e)&&W[e]!==se[e]}))}));var fe=o.useRef(null==_?void 0:_.params);if(o.useEffect((function(){fe.current=null==_?void 0:_.params}),[null==_?void 0:_.params]),null!=_&&_.params){var ce,de=fe.current;'object'==typeof _.params.state&&null!=_.params.state&&_.params!==de?ce=_r(d[30]).CommonActions.reset(_.params.state):'string'==typeof _.params.screen&&(!1===_.params.initial&&ie||_.params!==de)&&(ce=_r(d[30]).CommonActions.navigate({name:_.params.screen,params:_.params.params,path:_.params.path}));var me=ce?M.getStateForAction(pe,ce,{routeNames:V,routeParamList:D,routeGetIdList:T}):null;pe=null!==me?M.getRehydratedState(me,{routeNames:V,routeParamList:D,routeGetIdList:T}):pe}var ve=le!==pe;(0,N.default)((function(){ve&&ne(pe)})),le=pe,o.useEffect((function(){return X(v),Z()||ne(pe),function(){setTimeout((function(){void 0!==Q()&&Y()===v&&te()}),0)}}),[]);var ye=o.useRef();ye.current=oe;var ge=o.useCallback((function(){var e=Q();return q(e)?e:ye.current}),[Q,q]),he=(0,b.default)((function(e){var t,n,r,o=[];e.target?null!=(r=n=le.routes.find((function(t){return t.key===e.target})))&&r.name&&o.push(n.name):(n=le.routes[le.index],o.push.apply(o,(0,a.default)(Object.keys(J).filter((function(e){var t;return(null==(t=n)?void 0:t.name)===e})))));if(null!=n){var i=Ie[n.key].navigation;(t=[]).concat.apply(t,(0,a.default)([A].concat((0,a.default)(o.map((function(e){return J[e].props.listeners})))).map((function(t){var r='function'==typeof t?t({route:n,navigation:i}):t;return r?Object.keys(r).filter((function(t){return t===e.type})).map((function(e){return null==r?void 0:r[e]})):void 0})))).filter((function(e,t,n){return e&&n.lastIndexOf(e)===t})).forEach((function(t){return null==t?void 0:t(e)}))}}));(0,k.default)({state:le,emitter:he}),o.useEffect((function(){he.emit({type:'state',data:{state:le}})}),[he,le]);var Se=(0,y.default)(),Oe=Se.listeners,be=Se.addListener,Le=(0,j.default)(),ke=Le.keyedListeners,je=Le.addKeyedListener,we=(0,P.default)({router:M,getState:ge,setState:ne,key:null==_?void 0:_.key,actionListeners:Oe.action,beforeRemoveListeners:ke.beforeRemove,routerConfigOptions:{routeNames:V,routeParamList:D,routeGetIdList:T},emitter:he}),Pe=(0,I.default)({router:M,key:null==_?void 0:_.key,getState:ge,setState:ne}),Ce=(0,w.default)({id:i.id,onAction:we,getState:ge,emitter:he,router:M});(0,L.default)({navigation:Ce,focusedListeners:Oe.focus}),(0,C.default)({getState:ge,getStateListeners:ke.getState});var Ie=(0,O.default)({state:le,screens:J,navigation:Ce,screenOptions:i.screenOptions,defaultScreenOptions:i.defaultScreenOptions,onAction:we,getState:ge,setState:ne,onRouteFocus:Pe,addListener:be,addKeyedListener:je,router:M,emitter:he});(0,S.default)({state:le,navigation:Ce,descriptors:Ie});var Ke=(0,h.default)((function(e){return(0,R.jsx)(l.default.Provider,{value:Ce,children:(0,R.jsx)(c.default,{children:e})})}));return{state:le,navigation:Ce,descriptors:Ie,NavigationContent:Ke}};var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),a=e(_r(d[4])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=e(_r(d[9])),p=e(_r(d[10])),f=e(_r(d[11])),c=e(_r(d[12])),v=e(_r(d[13])),y=e(_r(d[14])),h=e(_r(d[15])),S=e(_r(d[16])),O=e(_r(d[17])),b=e(_r(d[18])),L=e(_r(d[19])),k=e(_r(d[20])),j=e(_r(d[21])),w=e(_r(d[22])),P=e(_r(d[23])),C=e(_r(d[24])),I=e(_r(d[25])),K=e(_r(d[26])),N=e(_r(d[27])),R=_r(d[28]),E=["children","screenListeners"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}_r(d[29]).PrivateValueStore;var G=function(e){return void 0===e||'string'==typeof e&&''!==e},$=function(e,t,n){return o.Children.toArray(e).reduce((function(e,r){var u,s;if(o.isValidElement(r)){if(r.type===v.default){if(!G(r.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(r.props.navigationKey)}) for the screen '${r.props.name}'. It must be a non-empty string or 'undefined'.`);return e.push({keys:[t,r.props.navigationKey],options:n,props:r.props}),e}if(r.type===o.Fragment||r.type===i.default){if(!G(r.props.navigationKey))throw new Error(`Got an invalid 'navigationKey' prop (${JSON.stringify(r.props.navigationKey)}) for the group. It must be a non-empty string or 'undefined'.`);return e.push.apply(e,(0,a.default)($(r.props.children,r.props.navigationKey,r.type!==i.default?n:null!=n?[].concat((0,a.default)(n),[r.props.screenOptions]):[r.props.screenOptions]))),e}}throw new Error(`A navigator can only contain 'Screen', 'Group' or 'React.Fragment' as its direct children (found ${o.isValidElement(r)?`'${'string'==typeof r.type?r.type:null==(u=r.type)?void 0:u.name}'${null!=r.props&&'object'==typeof r.props&&'name'in r.props&&null!=(s=r.props)&&s.name?` for the screen '${r.props.name}'`:''}`:'object'==typeof r?JSON.stringify(r):`'${String(r)}'`}). To render this component in the navigator, pass it in the 'component' prop to 'Screen'.`)}),[])}}),868,[2,44,197,4,22,16,843,869,870,859,824,825,861,844,827,871,872,873,828,877,878,829,879,880,882,883,884,841,223,864,833]); +__d((function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t){if(n===t)return!0;if(n.length!==t.length)return!1;return n.every((function(n,u){return n===t[u]}))}}),869,[]); +__d((function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){if(t===n)return!0;var u=Object.keys(t),f=Object.keys(n);if(u.length!==f.length)return!1;return u.every((function(u){return t[u]===n[u]}))}}),870,[]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(n){var u=e.useRef(n);return u.current=n,e.useEffect((function(){u.current=null})),e.useRef((function(e){var n=e.children,o=u.current;if(null===o)throw new Error('The returned component must be rendered in the same render phase as the hook.');return(0,r.jsx)(t,{render:o,children:n})})).current};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var c=o?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=e[f]}return u.default=e,t&&t.set(e,u),u})(_r(d[0])),r=_r(d[1]);function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var t=function(e){return(0,e.render)(e.children)}}),871,[16,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var n=e.state,o=e.navigation,u=e.descriptors,a=t.useContext(r.default);a&&o.isFocused()&&(a.options=u[n.routes[n.index].key].options)};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var i=u?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),872,[2,16,845]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var p=e.state,y=e.screens,O=e.navigation,j=e.screenOptions,b=e.defaultScreenOptions,k=e.onAction,P=e.getState,h=e.setState,S=e.addListener,_=e.addKeyedListener,w=e.onRouteFocus,M=e.router,x=e.emitter,A=o.useState({}),D=(0,r.default)(A,2),L=D[0],R=D[1],C=o.useContext(i.default),W=C.onDispatchAction,F=C.onOptionsChange,K=C.stackRef,B=o.useMemo((function(){return{navigation:O,onAction:k,addListener:S,addKeyedListener:_,onRouteFocus:w,onDispatchAction:W,onOptionsChange:F,stackRef:K}}),[O,k,S,_,w,W,F,K]),E=(0,f.default)({state:p,getState:P,navigation:O,setOptions:R,router:M,emitter:x});return(0,c.default)(p.routes).reduce((function(e,r,o){var f=y[r.name],c=f.props,O=E[r.key],k=[j].concat((0,n.default)(f.options?f.options.filter(Boolean):[]),[c.options,L[r.key]]).reduce((function(e,t){return Object.assign(e,'function'!=typeof t?t:t({route:r,navigation:O}))}),{}),S=Object.assign({},'function'==typeof b?b({route:r,navigation:O,options:k}):b,k),_=function(){return R((function(e){if(r.key in e){var n=r.key;e[n];return(0,t.default)(e,[n].map(v))}return e}))};return e[r.key]={route:r,navigation:O,render:function(){return(0,l.jsx)(i.default.Provider,{value:B,children:(0,l.jsx)(a.default.Provider,{value:O,children:(0,l.jsx)(u.default.Provider,{value:r,children:(0,l.jsx)(s.default,{navigation:O,route:r,screen:c,routeState:p.routes[o].state,getState:P,setState:h,options:S,clearOptions:_})})})},r.key)},options:S},e}),{})};var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r})(_r(d[4])),i=e(_r(d[5])),a=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),f=e(_r(d[9])),c=e(_r(d[10])),l=_r(d[11]);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function v(e){var t=y(e,"string");return"symbol"==typeof t?t:t+""}function y(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}}),873,[2,4,22,44,16,821,823,824,874,876,848,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var i=e.screen,c=e.route,f=e.navigation,l=e.routeState,s=e.getState,p=e.setState,v=e.options,y=e.clearOptions,k=t.useRef(),b=t.useCallback((function(){return k.current}),[]),O=(0,a.default)({key:c.key,options:v,navigation:f}).addOptionsGetter,j=t.useCallback((function(e){k.current=e}),[]),_=t.useCallback((function(){var e=s().routes.find((function(e){return e.key===c.key}));return e?e.state:void 0}),[s,c.key]),h=t.useCallback((function(e){var t=s();p(Object.assign({},t,{routes:t.routes.map((function(t){return t.key===c.key?Object.assign({},t,{state:e}):t}))}))}),[s,c.key,p]),C=t.useRef(!0);t.useEffect((function(){C.current=!1})),t.useEffect((function(){return y}),[]);var P=t.useCallback((function(){return C.current}),[]),M=t.useMemo((function(){return{state:l,getState:_,setState:h,getKey:b,setKey:j,getIsInitial:P,addOptionsGetter:O}}),[l,_,h,b,j,P,O]),w=i.getComponent?i.getComponent():i.component;return(0,o.jsx)(r.default.Provider,{value:M,children:(0,o.jsx)(n.default,{children:(0,o.jsx)(u.default,{name:i.name,render:w||i.children,navigation:f,route:c,children:void 0!==w?(0,o.jsx)(w,{navigation:f,route:c}):void 0!==i.children?i.children({navigation:f,route:c}):null})})})};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),a=e(_r(d[5])),o=_r(d[6]);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}}),874,[2,16,819,825,875,830,223]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=f?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(u,o,i):u[o]=e[o]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}_e.default=e.memo((function(e){return e.children}),(function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var u of r)if('children'!==u&&e[u]!==t[u])return!1;return!0}))}),875,[16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var i=e.state,c=e.getState,a=e.navigation,f=e.setOptions,s=e.router,l=e.emitter,y=(r.useContext(u.default).stackRef,r.useMemo((function(){return{current:{}}}),[c,a,f,s,l])),p=Object.assign({},s.actionCreators,_r(d[5]).CommonActions);return y.current=i.routes.reduce((function(e,r){var u=y.current[r.key];if(u)e[r.key]=u;else{a.emit;var i=(0,n.default)(a,o),s=function(e){var t='function'==typeof e?e(c()):e;null!=t&&a.dispatch(Object.assign({source:r.key},t))},v=function(e){try{e()}finally{}},O=Object.keys(p).reduce((function(e,t){return e[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:new Set,r=u();if(t.has(r.key))return!1;if(t.add(r.key),'string'!=typeof e.target||e.target===r.key){var l=o.getStateForAction(r,e,h.current);if(null!==(l=null===l&&e.target===r.key?r:l)){if(b(e,r===l),r!==l){if((0,n.shouldPreventRemove)(s,c,r.routes,l.routes,e))return!0;i(l)}if(void 0!==y)o.shouldActionChangeFocus(e)&&void 0!==f&&y(f);return!0}}if(void 0!==p&&p(e,t))return!0;for(var v=a.length-1;v>=0;v--){if((0,a[v])(e,t))return!0}return!1}),[a,c,s,u,f,p,b,y,o,i]);return(0,n.default)({getState:u,emitter:s,beforeRemoveListeners:c}),t.useEffect((function(){return null==_?void 0:_('action',k)}),[_,k]),k};var t=u(_r(d[1])),r=e(_r(d[2])),n=u(_r(d[3]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var f=u?Object.getOwnPropertyDescriptor(e,i):null;f&&(f.get||f.set)?Object.defineProperty(n,i,f):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}),880,[2,16,821,881]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var t=e.getState,o=e.emitter,f=e.beforeRemoveListeners,i=r.useContext(n.default).addKeyedListener,l=r.useContext(u.default),v=null==l?void 0:l.key;r.useEffect((function(){if(v)return null==i?void 0:i('beforeRemove',v,(function(e){var r=t();return a(o,f,r.routes,[],e)}))}),[i,f,o,t,v])},_e.shouldPreventRemove=void 0;var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(n,f,a):n[f]=e[f]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=e(_r(d[3])),u=e(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var f=Symbol('VISITED_ROUTE_KEYS'),a=_e.shouldPreventRemove=function(e,r,n,u,o){var a,i=u.map((function(e){return e.key})),l=n.filter((function(e){return!i.includes(e.key)})).reverse(),v=null!=(a=o[f])?a:new Set,c=Object.assign({},o,(0,t.default)({},f,v));for(var s of l){var y;if(!v.has(s.key)){if(null==(y=r[s.key])?void 0:y.call(r,c))return!0;if(v.add(s.key),e.emit({type:'beforeRemove',target:s.key,data:{action:c},canPreventDefault:!0}).defaultPrevented)return!0}}return!1}}),881,[2,197,16,821,824]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var a=e.getState,o=e.getStateListeners,f=t.useContext(n.default).addKeyedListener,l=t.useContext(u.default),i=l?l.key:'root',c=t.useCallback((function(){var e=a(),t=e.routes.map((function(e){var t,r=null==(t=o[e.key])?void 0:t.call(o);return e.state===r?e:Object.assign({},e,{state:r})}));return(0,r.default)(e.routes,t)?e:Object.assign({},e,{routes:t})}),[a,o]);t.useEffect((function(){return null==f?void 0:f('getState',i,c)}),[f,c,i])};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),u=e(_r(d[4]));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}}),882,[2,16,869,821,824]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var n=e.router,o=e.getState,u=e.key,a=e.setState,f=t.useContext(r.default).onRouteFocus;return t.useCallback((function(e){var t=o(),r=n.getStateForRouteFocus(t,e);r!==t&&a(r),void 0!==f&&void 0!==u&&f(u)}),[o,f,n,a,u])};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),883,[2,16,821]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=r.useState((function(){return(0,_r(d[3]).nanoid)()})),n=(0,t.default)(e,1)[0],a=r.useContext(_r(d[4]).SingleNavigatorContext);if(void 0===a)throw new Error("Couldn't register the navigator. Have you wrapped your app with 'NavigationContainer'?\n\nThis can also happen if there are multiple copies of '@react-navigation' packages installed.");return r.useEffect((function(){var e=a.register,t=a.unregister;return e(n),function(){return t(n)}}),[a,n]),n};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(a,i,u):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a})(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),884,[2,44,16,836,819]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=r.useRef(null);null==e.current&&(e.current=(0,t.default)());return e.current};var r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var u={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=f?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(u,o,a):u[o]=e[o]}return u.default=e,t&&t.set(e,u),u})(_r(d[1])),t=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}}),885,[2,16,832]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var u=(0,n.default)(),f=r.useState((function(){return e(u.getState())})),a=(0,t.default)(f,2)[1],o=r.useRef(e);return r.useEffect((function(){o.current=e})),r.useEffect((function(){return u.addListener('state',(function(e){a(o.current(e.data.state))}))}),[u]),e(u.getState())};var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=e(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}}),886,[2,44,16,866]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,o){var i=n.useState((function(){return(0,_r(d[7]).nanoid)()})),l=(0,t.default)(i,1)[0],c=(0,u.default)(),p=(0,a.default)().key,v=(0,f.default)().setPreventRemove;n.useEffect((function(){return v(l,p,e),function(){v(l,p,!1)}}),[v,l,p,e]);var s=(0,r.default)((function(t){e&&(t.preventDefault(),o({data:t.data}))}));n.useEffect((function(){return null==c?void 0:c.addListener('beforeRemove',s)}),[c,s])};var t=e(_r(d[1])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(r,f,a):r[f]=e[f]}return r.default=e,n&&n.set(e,r),r})(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),f=e(_r(d[5])),a=e(_r(d[6]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}}),887,[2,44,16,862,866,888,889,836]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=t.useContext(r.default);if(null==e)throw new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");return e};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=u?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=e[f]}return o.default=e,r&&r.set(e,o),o})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),888,[2,16,860]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=t.useContext(r.default);if(void 0===e)throw new Error("Couldn't find a route object. Is your component inside a screen in a navigator?");return e};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),889,[2,16,824]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a})(_r(d[3])),r=e(_r(d[4])),l=e(_r(d[5])),i=e(_r(d[6])),u=e(_r(d[7])),o=e(_r(d[8])),f=e(_r(d[9])),c=e(_r(d[10])),s=_r(d[11]),v=["theme","linking","fallback","documentTitle","onReady"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}g.REACT_NAVIGATION_DEVTOOLS=new WeakMap;var O=a.forwardRef((function(e,p){var O=e.theme,S=void 0===O?l.default:O,b=e.linking,P=e.fallback,_=void 0===P?null:P,h=e.documentTitle,j=e.onReady,y=(0,n.default)(e,v),k=!!b&&!1!==b.enabled;null!=b&&b.config&&(0,_r(d[12]).validatePathConfig)(b.config);var A=a.useRef(null);(0,u.default)(A),(0,o.default)(A,h);var F=(0,f.default)(A,Object.assign({independent:y.independent,enabled:k,prefixes:[]},b)).getInitialState;a.useEffect((function(){A.current&&REACT_NAVIGATION_DEVTOOLS.set(A.current,{get linking(){var e,t,n,a;return Object.assign({},b,{enabled:k,prefixes:null!=(e=null==b?void 0:b.prefixes)?e:[],getStateFromPath:null!=(t=null==b?void 0:b.getStateFromPath)?t:_r(d[12]).getStateFromPath,getPathFromState:null!=(n=null==b?void 0:b.getPathFromState)?n:_r(d[12]).getPathFromState,getActionFromState:null!=(a=null==b?void 0:b.getActionFromState)?a:_r(d[12]).getActionFromState})}})}));var T=(0,c.default)(F),w=(0,t.default)(T,2),E=w[0],M=w[1];a.useImperativeHandle(p,(function(){return A.current}));var R=a.useMemo((function(){return{options:b}}),[b]),x=null!=y.initialState||!k||E,I=a.useRef(j);return a.useEffect((function(){I.current=j})),a.useEffect((function(){x&&(null==I.current||I.current())}),[x]),x?(0,s.jsx)(r.default.Provider,{value:R,children:(0,s.jsx)(i.default,{value:S,children:(0,s.jsx)(_r(d[12]).BaseNavigationContainer,Object.assign({},y,{initialState:null==y.initialState?M:y.initialState,ref:A}))})}):_}));_e.default=O}),890,[2,44,4,16,813,891,892,894,895,896,898,223,815]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={dark:!1,colors:{primary:'rgb(0, 122, 255)',background:'rgb(242, 242, 242)',card:'rgb(255, 255, 255)',text:'rgb(28, 28, 30)',border:'rgb(216, 216, 216)',notification:'rgb(255, 59, 48)'}}}),891,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var n=e.value,u=e.children;return(0,t.jsx)(r.default.Provider,{value:n,children:u})};!(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var u={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var f=a?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(u,o,f):u[o]=e[o]}u.default=e,t&&t.set(e,u)})(_r(d[1]));var r=e(_r(d[2])),t=_r(d[3]);function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}}),892,[2,16,893,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var f=o?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(a,u,f):a[u]=e[u]}return a.default=e,r&&r.set(e,a),a})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var a=t.createContext(r.default);a.displayName='ThemeContext';_e.default=a}),893,[2,16,891]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(t){e.useEffect((function(){var e=r.BackHandler.addEventListener('hardwareBackPress',(function(){var e=t.current;return null!=e&&(!!e.canGoBack()&&(e.goBack(),!0))}));return function(){return e.remove()}}),[t])};var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=t(r);if(n&&n.has(e))return n.get(e);var u={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var f=a?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(u,o,f):u[o]=e[o]}return u.default=e,n&&n.set(e,u),u})(_r(d[0])),r=_r(d[1]);function t(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(t=function(e){return e?n:r})(e)}}),894,[16,18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}}),895,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,i){var u=i.independent,o=i.enabled,a=void 0===o||o,c=i.prefixes,f=i.filter,s=i.config,l=i.getInitialURL,v=void 0===l?function(){return Promise.race([n.Linking.getInitialURL(),new Promise((function(e){return setTimeout(e,150)}))])}:l,p=i.subscribe,h=void 0===p?function(e){var t,r=function(t){var n=t.url;return e(n)},i=n.Linking.addEventListener('url',r),u=null==(t=n.Linking.removeEventListener)?void 0:t.bind(n.Linking);return function(){null!=i&&i.remove?i.remove():null==u||u('url',r)}}:p,y=i.getStateFromPath,b=void 0===y?_r(d[4]).getStateFromPath:y,k=i.getActionFromState,R=void 0===k?_r(d[4]).getActionFromState:k;t.useEffect((function(){}),[a,u]);var P=t.useRef(a),w=t.useRef(c),_=t.useRef(f),L=t.useRef(s),O=t.useRef(v),j=t.useRef(b),S=t.useRef(R);t.useEffect((function(){P.current=a,w.current=c,_.current=f,L.current=s,O.current=v,j.current=b,S.current=R}));var E=t.useCallback((function(e){if(e&&(!_.current||_.current(e))){var t=(0,r.default)(w.current,e);return void 0!==t?j.current(t,L.current):void 0}}),[]),M=t.useCallback((function(){var e;if(P.current){var t=O.current();if(null!=t&&'string'!=typeof t)return t.then((function(e){return E(e)}));e=E(t)}var n={then:function(t){return Promise.resolve(t?t(e):e)},catch:function(){return n}};return n}),[E]);return t.useEffect((function(){return h((function(t){if(a){var n=e.current,r=n?E(t):void 0;if(n&&r){var i=n.getRootState();if(r.routes.some((function(e){return!(null!=i&&i.routeNames.includes(e.name))})))return void console.warn("The navigation state parsed from the URL contains routes not present in the root navigator. This usually means that the linking configuration doesn't match the navigation structure. See https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.");var u=S.current(r,L.current);if(void 0!==u)try{n.dispatch(u)}catch(e){console.warn(`An error occurred when trying to handle the link '${t}': ${'object'==typeof e&&null!=e&&'message'in e?e.message:e}`)}else n.resetRoot(r)}}}))}),[a,E,e,h]),{getInitialState:M}};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[1])),n=_r(d[2]),r=e(_r(d[3]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}}),896,[2,16,18,897,815]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){for(var c of t){var f,p,o=null!=(f=null==(p=c.match(/^[^:]+:/))?void 0:p[0])?f:'',v=c.replace(new RegExp(`^${(0,n.default)(o)}`),'').replace(/\/+/g,'/').replace(/^\//,''),s=new RegExp(`^${(0,n.default)(o)}(/)*${v.split('.').map((function(t){return'*'===t?'[^/]+':(0,n.default)(t)})).join('\\.')}`),$=u.split('?'),_=(0,l.default)($,2),j=_[0],w=_[1],x=j.replace(/\/+/g,'/').concat(w?`?${w}`:'');if(s.test(x))return x.replace(s,'')}return};var l=t(r(d[1])),n=t(r(d[2]))}),897,[2,44,858]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var u=n.useState(e),f=(0,r.default)(u,1)[0],a=[!1,void 0];f.then((function(e){a=[!0,e]}));var o=n.useState(a),i=(0,r.default)(o,2),l=i[0],c=i[1],p=(0,r.default)(l,1)[0];return n.useEffect((function(){var e=!1,r=(function(){var r=(0,t.default)((function*(){var t;try{t=yield f}finally{e||c([!0,t])}}));return function(){return r.apply(this,arguments)}})();return p||r(),function(){e=!0}}),[f,p]),l};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var o=f?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[3]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}}),898,[2,349,44,16]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var r=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var i=u?Object.getOwnPropertyDescriptor(e,f):null;i&&(i.get||i.set)?Object.defineProperty(n,f,i):n[f]=e[f]}return n.default=e,t&&t.set(e,n),n})(_r(d[1])),t=e(_r(d[2])),n=_r(d[3]);function o(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(o=function(e){return e?t:r})(e)}_e.default=r.forwardRef((function(e,o){var u=e.children,f=e.location;r.useEffect((function(){console.error("'ServerContainer' should only be used on the server with 'react-dom/server' for SSR.")}),[]);var i={};if(o){var a={getCurrentOptions:function(){return i.options}};'function'==typeof o?o(a):o.current=a}return(0,n.jsx)(t.default.Provider,{value:{location:f},children:(0,n.jsx)(_r(d[4]).CurrentRenderContext.Provider,{value:i,children:u})})}))}),899,[2,16,900,223,815]); +__d((function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&{}.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(void 0);_e.default=t}),900,[16]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={dark:!0,colors:{primary:'rgb(10, 132, 255)',background:'rgb(1, 1, 1)',card:'rgb(18, 18, 18)',text:'rgb(229, 229, 231)',border:'rgb(39, 39, 41)',notification:'rgb(255, 69, 58)'}}}),901,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){return t.useContext(r.default)};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,r&&r.set(e,u),u})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}}),902,[2,16,893]); +__d((function(g,r,i,a,m,e,d){}),903,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){var e=t.useContext(_r(d[3]).NavigationHelpersContext),n=t.useContext(r.default);return t.useCallback((function(t,r){var o=n.options;if(!1!==(null==o?void 0:o.enabled)){var u=e?a(e,{index:0,routes:[{name:t,params:r}]}):{index:0,routes:[{name:t,params:r}]};return null!=o&&o.getPathFromState?o.getPathFromState(u,null==o?void 0:o.config):(0,_r(d[3]).getPathFromState)(u,null==o?void 0:o.config)}}),[n,e])};var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(a,u,i):a[u]=e[u]}return a.default=e,r&&r.set(e,a),a})(_r(d[1])),r=e(_r(d[2]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var a=function(e,t){var r=e.getParent();if(r){var n=r.getState();return a(r,{index:0,routes:[Object.assign({},n.routes[n.index],{state:t})]})}return t}}),904,[2,16,813,815]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(r){var n=e.useContext(_r(d[1]).NavigationContext),o=(0,_r(d[1]).useRoute)();if(void 0===n)throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");e.useEffect((function(){for(var e=[],u=n;u;)'tab'===u.getState().type&&e.push(u),u=u.getParent();if(0!==e.length){var l=e.map((function(u){return u.addListener('tabPress',(function(u){var l=n.isFocused(),c=e.includes(n)||n.getState().routes[0].key===o.key;requestAnimationFrame((function(){var e=t(r);l&&c&&e&&!u.defaultPrevented&&('scrollToTop'in e?e.scrollToTop():'scrollTo'in e?e.scrollTo({y:0,animated:!0}):'scrollToOffset'in e?e.scrollToOffset({offset:0,animated:!0}):'scrollResponderScrollTo'in e&&e.scrollResponderScrollTo({y:0,animated:!0}))}))}))}));return function(){l.forEach((function(e){return e()}))}}}),[n,r,o.key])};var e=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=u?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function t(e){return null==e.current?null:'scrollToTop'in e.current||'scrollTo'in e.current||'scrollToOffset'in e.current||'scrollResponderScrollTo'in e.current?e.current:'getScrollResponder'in e.current?e.current.getScrollResponder():'getNode'in e.current?e.current.getNode():e.current}}),905,[16,815]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={Badge:!0,IconButton:!0,Alert:!0,AspectRatio:!0,Avatar:!0,Breadcrumb:!0,Card:!0,Container:!0,Divider:!0,Kbd:!0,Progress:!0,Accordion:!0,Skeleton:!0,FormControl:!0,Tag:!0,Code:!0,Center:!0,Square:!0,Circle:!0,Wrap:!0,PinInput:!0,Fade:!0,ScaleFade:!0,PresenceTransition:!0,Stagger:!0,Slide:!0,SlideFade:!0,NumberInput:!0,NumberInputField:!0,NumberInputStepper:!0,NumberIncrementStepper:!0,NumberDecrementStepper:!0,Collapse:!0,CircularProgress:!0,Popover:!0,AlertDialog:!0,Menu:!0,SimpleGrid:!0,Actionsheet:!0,Fab:!0,useFormControlContext:!0,TextField:!0,Typeahead:!0,useTypeahead:!0,Modal:!0,useToast:!0,Toast:!0,Backdrop:!0,Drawer:!0,Tooltip:!0,Text:!0,Checkbox:!0,Radio:!0,RadioContext:!0,Hidden:!0,Button:!0,Column:!0,Row:!0,Box:!0,Stack:!0,VStack:!0,HStack:!0,ZStack:!0,Slider:!0,Icon:!0,createIcon:!0,Input:!0,InputGroup:!0,InputLeftAddon:!0,InputRightAddon:!0,Image:!0,Spinner:!0,Heading:!0,Flex:!0,Switch:!0,TextArea:!0,Link:!0,Spacer:!0,List:!0,Select:!0,Pressable:!0,Overlay:!0,extractInObject:!0,stylingProps:!0};Object.defineProperty(e,"Accordion",{enumerable:!0,get:function(){return r(d[0]).Accordion}}),Object.defineProperty(e,"Actionsheet",{enumerable:!0,get:function(){return r(d[0]).Actionsheet}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r(d[0]).Alert}}),Object.defineProperty(e,"AlertDialog",{enumerable:!0,get:function(){return r(d[0]).AlertDialog}}),Object.defineProperty(e,"AspectRatio",{enumerable:!0,get:function(){return r(d[0]).AspectRatio}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return r(d[0]).Avatar}}),Object.defineProperty(e,"Backdrop",{enumerable:!0,get:function(){return r(d[0]).Backdrop}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return r(d[0]).Badge}}),Object.defineProperty(e,"Box",{enumerable:!0,get:function(){return r(d[1]).Box}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return r(d[0]).Breadcrumb}}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return r(d[1]).Button}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return r(d[0]).Card}}),Object.defineProperty(e,"Center",{enumerable:!0,get:function(){return r(d[0]).Center}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return r(d[1]).Checkbox}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(d[0]).Circle}}),Object.defineProperty(e,"CircularProgress",{enumerable:!0,get:function(){return r(d[0]).CircularProgress}}),Object.defineProperty(e,"Code",{enumerable:!0,get:function(){return r(d[0]).Code}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return r(d[0]).Collapse}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return r(d[1]).Column}}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return r(d[0]).Container}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return r(d[0]).Divider}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return r(d[0]).Drawer}}),Object.defineProperty(e,"Fab",{enumerable:!0,get:function(){return r(d[0]).Fab}}),Object.defineProperty(e,"Fade",{enumerable:!0,get:function(){return r(d[0]).Fade}}),Object.defineProperty(e,"Flex",{enumerable:!0,get:function(){return r(d[1]).Flex}}),Object.defineProperty(e,"FormControl",{enumerable:!0,get:function(){return r(d[0]).FormControl}}),Object.defineProperty(e,"HStack",{enumerable:!0,get:function(){return r(d[1]).HStack}}),Object.defineProperty(e,"Heading",{enumerable:!0,get:function(){return r(d[1]).Heading}}),Object.defineProperty(e,"Hidden",{enumerable:!0,get:function(){return r(d[1]).Hidden}}),Object.defineProperty(e,"Icon",{enumerable:!0,get:function(){return r(d[1]).Icon}}),Object.defineProperty(e,"IconButton",{enumerable:!0,get:function(){return r(d[0]).IconButton}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(d[1]).Image}}),Object.defineProperty(e,"Input",{enumerable:!0,get:function(){return r(d[1]).Input}}),Object.defineProperty(e,"InputGroup",{enumerable:!0,get:function(){return r(d[1]).InputGroup}}),Object.defineProperty(e,"InputLeftAddon",{enumerable:!0,get:function(){return r(d[1]).InputLeftAddon}}),Object.defineProperty(e,"InputRightAddon",{enumerable:!0,get:function(){return r(d[1]).InputRightAddon}}),Object.defineProperty(e,"Kbd",{enumerable:!0,get:function(){return r(d[0]).Kbd}}),Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return r(d[1]).Link}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return r(d[1]).List}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return r(d[0]).Menu}}),Object.defineProperty(e,"Modal",{enumerable:!0,get:function(){return r(d[0]).Modal}}),Object.defineProperty(e,"NumberDecrementStepper",{enumerable:!0,get:function(){return r(d[0]).NumberDecrementStepper}}),Object.defineProperty(e,"NumberIncrementStepper",{enumerable:!0,get:function(){return r(d[0]).NumberIncrementStepper}}),Object.defineProperty(e,"NumberInput",{enumerable:!0,get:function(){return r(d[0]).NumberInput}}),Object.defineProperty(e,"NumberInputField",{enumerable:!0,get:function(){return r(d[0]).NumberInputField}}),Object.defineProperty(e,"NumberInputStepper",{enumerable:!0,get:function(){return r(d[0]).NumberInputStepper}}),Object.defineProperty(e,"Overlay",{enumerable:!0,get:function(){return r(d[1]).Overlay}}),Object.defineProperty(e,"PinInput",{enumerable:!0,get:function(){return r(d[0]).PinInput}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return r(d[0]).Popover}}),Object.defineProperty(e,"PresenceTransition",{enumerable:!0,get:function(){return r(d[0]).PresenceTransition}}),Object.defineProperty(e,"Pressable",{enumerable:!0,get:function(){return r(d[1]).Pressable}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return r(d[0]).Progress}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return r(d[1]).Radio}}),Object.defineProperty(e,"RadioContext",{enumerable:!0,get:function(){return r(d[1]).RadioContext}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return r(d[1]).Row}}),Object.defineProperty(e,"ScaleFade",{enumerable:!0,get:function(){return r(d[0]).ScaleFade}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return r(d[1]).Select}}),Object.defineProperty(e,"SimpleGrid",{enumerable:!0,get:function(){return r(d[0]).SimpleGrid}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r(d[0]).Skeleton}}),Object.defineProperty(e,"Slide",{enumerable:!0,get:function(){return r(d[0]).Slide}}),Object.defineProperty(e,"SlideFade",{enumerable:!0,get:function(){return r(d[0]).SlideFade}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r(d[1]).Slider}}),Object.defineProperty(e,"Spacer",{enumerable:!0,get:function(){return r(d[1]).Spacer}}),Object.defineProperty(e,"Spinner",{enumerable:!0,get:function(){return r(d[1]).Spinner}}),Object.defineProperty(e,"Square",{enumerable:!0,get:function(){return r(d[0]).Square}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return r(d[1]).Stack}}),Object.defineProperty(e,"Stagger",{enumerable:!0,get:function(){return r(d[0]).Stagger}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return r(d[1]).Switch}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return r(d[0]).Tag}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d[1]).Text}}),Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r(d[1]).TextArea}}),Object.defineProperty(e,"TextField",{enumerable:!0,get:function(){return r(d[0]).TextField}}),Object.defineProperty(e,"Toast",{enumerable:!0,get:function(){return r(d[0]).Toast}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return r(d[0]).Tooltip}}),Object.defineProperty(e,"Typeahead",{enumerable:!0,get:function(){return r(d[0]).Typeahead}}),Object.defineProperty(e,"VStack",{enumerable:!0,get:function(){return r(d[1]).VStack}}),Object.defineProperty(e,"Wrap",{enumerable:!0,get:function(){return r(d[0]).Wrap}}),Object.defineProperty(e,"ZStack",{enumerable:!0,get:function(){return r(d[1]).ZStack}}),Object.defineProperty(e,"createIcon",{enumerable:!0,get:function(){return r(d[1]).createIcon}}),Object.defineProperty(e,"extractInObject",{enumerable:!0,get:function(){return r(d[2]).extractInObject}}),Object.defineProperty(e,"stylingProps",{enumerable:!0,get:function(){return r(d[2]).stylingProps}}),Object.defineProperty(e,"useFormControlContext",{enumerable:!0,get:function(){return r(d[0]).useFormControlContext}}),Object.defineProperty(e,"useToast",{enumerable:!0,get:function(){return r(d[0]).useToast}}),Object.defineProperty(e,"useTypeahead",{enumerable:!0,get:function(){return r(d[0]).useTypeahead}}),Object.keys(r(d[3])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))})),Object.keys(r(d[4])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[4])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[4])[n]}}))})),Object.keys(r(d[5])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))})),Object.keys(r(d[6])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[6])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[6])[n]}}))})),Object.keys(r(d[7])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[7])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[7])[n]}}))})),Object.keys(r(d[8])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[8])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[8])[n]}}))})),Object.keys(r(d[9])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[9])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[9])[n]}}))})),Object.keys(r(d[10])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[10])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[10])[n]}}))}))}),906,[907,1219,935,1636,1237,980,1645,913,1405,1649,1206]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={AspectRatio:!0,Badge:!0,Card:!0,IconButton:!0,Alert:!0,Avatar:!0,Breadcrumb:!0,Backdrop:!0,Container:!0,Modal:!0,Drawer:!0,useToast:!0,Toast:!0,Divider:!0,Progress:!0,Skeleton:!0,Accordion:!0,FormControl:!0,useFormControlContext:!0,NumberInput:!0,NumberInputField:!0,NumberInputStepper:!0,NumberIncrementStepper:!0,NumberDecrementStepper:!0,Tag:!0,Kbd:!0,Code:!0,Center:!0,Square:!0,Circle:!0,Wrap:!0,PinInput:!0,Collapse:!0,CircularProgress:!0,Popover:!0,Tooltip:!0,AlertDialog:!0,Menu:!0,SimpleGrid:!0,TextField:!0,Actionsheet:!0,Fab:!0,Typeahead:!0,useTypeahead:!0};Object.defineProperty(e,"Accordion",{enumerable:!0,get:function(){return r(d[1]).Accordion}}),Object.defineProperty(e,"Actionsheet",{enumerable:!0,get:function(){return r(d[2]).Actionsheet}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r(d[3]).Alert}}),Object.defineProperty(e,"AlertDialog",{enumerable:!0,get:function(){return r(d[4]).AlertDialog}}),Object.defineProperty(e,"AspectRatio",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return r(d[5]).Avatar}}),Object.defineProperty(e,"Backdrop",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return r(d[6]).Breadcrumb}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Center",{enumerable:!0,get:function(){return r(d[7]).Center}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(d[7]).Circle}}),Object.defineProperty(e,"CircularProgress",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"Code",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Fab",{enumerable:!0,get:function(){return r(d[8]).Fab}}),Object.defineProperty(e,"FormControl",{enumerable:!0,get:function(){return r(d[9]).FormControl}}),Object.defineProperty(e,"IconButton",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"Kbd",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return r(d[10]).Menu}}),Object.defineProperty(e,"Modal",{enumerable:!0,get:function(){return r(d[11]).Modal}}),Object.defineProperty(e,"NumberDecrementStepper",{enumerable:!0,get:function(){return r(d[12]).NumberDecrementStepper}}),Object.defineProperty(e,"NumberIncrementStepper",{enumerable:!0,get:function(){return r(d[12]).NumberIncrementStepper}}),Object.defineProperty(e,"NumberInput",{enumerable:!0,get:function(){return r(d[12]).NumberInput}}),Object.defineProperty(e,"NumberInputField",{enumerable:!0,get:function(){return r(d[12]).NumberInputField}}),Object.defineProperty(e,"NumberInputStepper",{enumerable:!0,get:function(){return r(d[12]).NumberInputStepper}}),Object.defineProperty(e,"PinInput",{enumerable:!0,get:function(){return r(d[13]).PinInput}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return r(d[14]).Popover}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"SimpleGrid",{enumerable:!0,get:function(){return r(d[15]).SimpleGrid}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r(d[16]).Skeleton}}),Object.defineProperty(e,"Square",{enumerable:!0,get:function(){return r(d[7]).Square}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"TextField",{enumerable:!0,get:function(){return r(d[17]).TextField}}),Object.defineProperty(e,"Toast",{enumerable:!0,get:function(){return r(d[18]).Toast}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return r(d[19]).Tooltip}}),Object.defineProperty(e,"Typeahead",{enumerable:!0,get:function(){return r(d[20]).Typeahead}}),Object.defineProperty(e,"Wrap",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"useFormControlContext",{enumerable:!0,get:function(){return r(d[9]).useFormControlContext}}),Object.defineProperty(e,"useToast",{enumerable:!0,get:function(){return r(d[18]).useToast}}),Object.defineProperty(e,"useTypeahead",{enumerable:!0,get:function(){return r(d[20]).useTypeahead}});var u=t(r(d[21])),o=t(r(d[22])),c=t(r(d[23])),b=t(r(d[24])),f=t(r(d[25])),l=t(r(d[26])),p=t(r(d[27])),P=t(r(d[28])),y=t(r(d[29])),O=t(r(d[30])),j=t(r(d[31])),s=t(r(d[32])),C=t(r(d[33]));Object.keys(r(d[34])).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in e&&e[t]===r(d[34])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[34])[t]}}))}));var T=t(r(d[35])),S=t(r(d[36]))}),907,[2,908,1481,1515,1519,1527,1532,1396,1539,1376,1541,1483,1551,1558,1562,1571,1573,1576,1578,1581,1583,1621,1622,1623,1625,1485,1626,1627,1628,1629,1630,1631,1632,1633,1487,1218,1634]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Accordion=void 0,Object.defineProperty(e,"AccordionContext",{enumerable:!0,get:function(){return r(d[1]).AccordionContext}}),Object.defineProperty(e,"AccordionItemContext",{enumerable:!0,get:function(){return r(d[1]).AccordionItemContext}});var o=t(r(d[2])),n=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),l=o.default;l.Item=n.default,l.Summary=c.default,l.Details=u.default,l.Icon=f.default;e.Accordion=l}),908,[2,909,910,1204,1205,1217,1514]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionItemContext=e.AccordionContext=void 0;var t=r(d[0]);e.AccordionContext=(0,t.createContext)({}),e.AccordionItemContext=(0,t.createContext)({})}),909,[16]); +__d((function(g,r,_i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),i=n(r(d[2])),o=n(r(d[3])),l=n(r(d[4])),u=n(r(d[5])),f=r(d[6]),s=["children","index","defaultIndex","allowMultiple","allowToggle","onChange"],c=["endingHeight","startingHeight","duration","isOpen","onAnimationEnd","onAnimationStart"];e.default=o.default.memo(o.default.forwardRef((function(n,h){var p=n.children,v=n.index,x=n.defaultIndex,A=n.allowMultiple,H=n.allowToggle,w=n.onChange,O=(0,i.default)(n,s),P=(0,r(d[7]).useThemeProps)('Accordion',O),j=P.endingHeight,S=P.startingHeight,_=P.duration,C=P.isOpen,E=P.onAnimationEnd,M=P.onAnimationStart,T=(0,i.default)(P,c),b=o.default.useState(v||x||[]),I=(0,t.default)(b,2),R=I[0],y=I[1];if((0,r(d[8]).useHasResponsiveProps)(O))return null;return(0,f.jsx)(r(d[9]).AccordionContext.Provider,{value:{index:R,changeHandler:function(n,t){var i=R.map((function(n){return n}));H?n?(i.push(t),y(A?i:[t])):y(R.splice(R.indexOf(t),1)):n?(i.push(t),y(A?i:[t])):(i=i.filter((function(n){return n!==t})),y(i)),w&&w(i)},AnimationProps:{endingHeight:j,startingHeight:S,duration:_,isOpen:C,onAnimationEnd:E,onAnimationStart:M}},children:(0,f.jsx)(l.default,Object.assign({overflow:"hidden"},T,{ref:h,children:(0,u.default)(p)}))})})))}),910,[2,44,4,16,911,1203,223,913,1155,909]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var r=e(_r(d[1])),n=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(r);if(n&&n.has(e))return n.get(e);var t={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(t,l,a):t[l]=e[l]}return t.default=e,n&&n.set(e,t),t})(_r(d[2])),t=_r(d[3]),o=_r(d[4]),l=["children"],a=["_text"];function i(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:r})(e)}var u,c=(0,_r(d[5]).makeStyledComponent)(t.View);_e.default=(0,n.memo)((0,n.forwardRef)((function(e,n){var t,i,f,s,p,v=e.children,b=(0,r.default)(e,l),y=(0,_r(d[6]).useTheme)(),C=(0,_r(d[7]).usePropsResolution)('Box',b),h=C._text,_=(0,r.default)(C,a),k=null==(t=(0,_r(d[8]).useNativeBaseConfig)('NativeBaseConfigProvider').config.dependencies)?void 0:t['linear-gradient'],j=(0,_r(d[9]).useSafeArea)(_);if((0,_r(d[10]).useHasResponsiveProps)(b))return null;if(null!=(i=_.bg)&&i.linearGradient||null!=(f=_.background)&&f.linearGradient||null!=(s=_.bgColor)&&s.linearGradient||null!=(p=_.backgroundColor)&&p.linearGradient){var O,w,x,P,G=(null==(O=_.bg)?void 0:O.linearGradient)||(null==(w=_.background)?void 0:w.linearGradient)||(null==(x=_.bgColor)?void 0:x.linearGradient)||(null==(P=_.backgroundColor)?void 0:P.linearGradient);if(k){var M;u||(u=(0,_r(d[5]).makeStyledComponent)(k)),k=u,G.colors=null==(M=G.colors)?void 0:M.map((function(e){return(0,_r(d[11]).getColor)(e,y.colors,y)}));var S={x:0,y:0},B={x:0,y:1};G.start&&2===G.start.length&&(S={x:G.start[0],y:G.start[1]}),G.end&&2===G.end.length&&(B={x:G.end[0],y:G.end[1]});return['bg','bgColor','background','backgroundColor'].forEach((function(e){e in j&&delete j[e]})),(0,o.jsx)(k,Object.assign({ref:n},j,{colors:G.colors,start:S,end:B,locations:G.locations,children:(0,_r(d[12]).wrapStringChild)(v,h)}))}}return(0,o.jsx)(c,Object.assign({ref:n},j,{children:(0,_r(d[12]).wrapStringChild)(v,h)}))})))}),911,[2,4,16,18,223,912,913,959,916,969,1155,980,1156]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.makeStyledComponent=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),l=r(d[4]),f=["debug"];e.makeStyledComponent=function(t){return u.default.forwardRef((function(u,s){u.debug;var c=(0,o.default)(u,f),v=(0,r(d[5]).useStyledSystemPropsResolver)(c),y=(0,n.default)(v,2),b=y[0],p=y[1];return(0,l.jsx)(t,Object.assign({},p,{style:b,ref:s,children:c.children}))}))}}),912,[2,44,4,16,223,913]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"keyboardDismissHandlerManager",{enumerable:!0,get:function(){return r(d[0]).keyboardDismissHandlerManager}}),Object.defineProperty(e,"useBreakpointResolvedProps",{enumerable:!0,get:function(){return r(d[1]).useBreakpointResolvedProps}}),Object.defineProperty(e,"useBreakpointValue",{enumerable:!0,get:function(){return r(d[2]).useBreakpointValue}}),Object.defineProperty(e,"useClipboard",{enumerable:!0,get:function(){return r(d[3]).useClipboard}}),Object.defineProperty(e,"useContrastText",{enumerable:!0,get:function(){return r(d[4]).useContrastText}}),Object.defineProperty(e,"useControllableProp",{enumerable:!0,get:function(){return r(d[5]).useControllableProp}}),Object.defineProperty(e,"useControllableState",{enumerable:!0,get:function(){return r(d[5]).useControllableState}}),Object.defineProperty(e,"useDisclose",{enumerable:!0,get:function(){return r(d[6]).useDisclose}}),Object.defineProperty(e,"useKeyboardDismissable",{enumerable:!0,get:function(){return r(d[0]).useKeyboardDismissable}}),Object.defineProperty(e,"useLayout",{enumerable:!0,get:function(){return r(d[7]).useLayout}}),Object.defineProperty(e,"useMediaQuery",{enumerable:!0,get:function(){return r(d[8]).useMediaQuery}}),Object.defineProperty(e,"useNativeBase",{enumerable:!0,get:function(){return r(d[9]).useNativeBase}}),Object.defineProperty(e,"usePlatformProps",{enumerable:!0,get:function(){return r(d[10]).usePlatformProps}}),Object.defineProperty(e,"usePropsResolution",{enumerable:!0,get:function(){return r(d[11]).usePropsResolution}}),Object.defineProperty(e,"usePropsResolutionTest",{enumerable:!0,get:function(){return r(d[12]).usePropsResolutionTest}}),Object.defineProperty(e,"usePropsWithComponentTheme",{enumerable:!0,get:function(){return r(d[11]).usePropsWithComponentTheme}}),Object.defineProperty(e,"useSafeArea",{enumerable:!0,get:function(){return r(d[13]).useSafeArea}}),Object.defineProperty(e,"useScreenReaderEnabled",{enumerable:!0,get:function(){return r(d[14]).useScreenReaderEnabled}}),Object.defineProperty(e,"useStyledSystemPropsResolver",{enumerable:!0,get:function(){return r(d[15]).useStyledSystemPropsResolver}}),Object.defineProperty(e,"useSx",{enumerable:!0,get:function(){return r(d[16]).useSx}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return r(d[17]).useTheme}}),Object.defineProperty(e,"useThemeProps",{enumerable:!0,get:function(){return r(d[11]).useThemeProps}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return r(d[18]).useToken}})}),913,[914,915,949,950,943,951,952,953,954,955,957,959,967,969,1145,1146,1154,918,944]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.keyboardDismissHandlerManager=void 0,_e.useBackHandler=u,_e.useKeyboardDismissable=void 0;var e=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=u?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,t&&t.set(e,a),a})(_r(d[0])),r=_r(d[1]);function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var t=[],a=_e.keyboardDismissHandlerManager={push:function(e){return t.push(e),function(){t=t.filter((function(r){return r!==e}))}},length:function(){return t.length},pop:function(){return t.pop()}};_e.useKeyboardDismissable=function(r){var n=r.enabled,t=r.callback;e.default.useEffect((function(){var e=function(){};return n?e=a.push(t):e(),function(){e()}}),[n,t]),u({enabled:n,callback:t})};function u(n){var t=n.enabled,a=n.callback;(0,e.useEffect)((function(){var e=function(){return a(),!0};return t?r.BackHandler.addEventListener('hardwareBackPress',e):r.BackHandler.removeEventListener('hardwareBackPress',e),function(){return r.BackHandler.removeEventListener('hardwareBackPress',e)}}),[t,a])}}),914,[16,18]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useBreakpointResolvedProps=void 0;var n=o(r(d[1]));e.useBreakpointResolvedProps=function(o){var t=(0,r(d[2]).useNativeBaseConfig)('useBreakpointResolvedProps').currentBreakpoint,s=(0,r(d[3]).useTheme)();return n.default.useMemo((function(){var n={};for(var u in o){var v=o[u],p=(0,r(d[4]).resolveValueWithBreakpoint)(v,s.breakpoints,t,u);n[u]=p}return n}),[o,t,s.breakpoints])}}),915,[2,16,916,918,919]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useNativeBaseConfig=e.defaultConfig=e.NativeBaseConfigProvider=void 0;var t=o(r(d[1])),f=(e.defaultConfig={strictMode:'off'},(0,r(d[2]).createContext)('NativeBaseConfigProvider')),v=(0,t.default)(f,2);e.NativeBaseConfigProvider=v[0],e.useNativeBaseConfig=v[1]}),916,[2,44,917]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createContext=function(t){var c=u.default.createContext(null);function f(t){var f=t.children,v=(0,n.default)(t,o),s=u.default.useMemo((function(){return v}),Object.values(v));return(0,l.jsx)(c.Provider,{value:s,children:f})}return f.displayName=t+'Provider',[f,function(n){var l=u.default.useContext(c);if(null===l)throw new Error(`\`${n}\` must be used within \`${t}\``);return l}]};var n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]),o=["children"]}),917,[2,4,16,223]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTheme=function(){var o=(0,r(d[0]).useNativeBaseConfig)('useTheme').theme;if(!o)throw Error('useTheme: `theme` is undefined. Seems you forgot to wrap your app in ``');return o}}),918,[916]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.calculateProps=function(t,o,n,s,v){var y,h=(0,r(d[8]).getClosestBreakpoint)(t.breakpoints,v);s||(s={});if(n){y=c(p(s,n.defaultProps),t,o,n,h);var P='function'!=typeof n.baseStyle?n.baseStyle:n.baseStyle(Object.assign({theme:t},y,s,o));y=(0,f.default)(y,P,(function(t,o,n){(0,u.default)(t)||delete y[n]}));var j=s.variant||(0,l.default)(n,'defaultProps.variant');if(j&&n.variants&&n.variants[j]){var k=s.colorScheme||(0,l.default)(n,'defaultProps.colorScheme'),O=n.variants[j](Object.assign({},s,y,{colorScheme:k,theme:t},o));O=c(O,t,o,n,h),delete(y=(0,f.default)(y,O,(function(t,o,n){(0,u.default)(t)||delete y[n]}))).variant,delete y.colorScheme}}var M=c(s,t,o,n,h);return y=b(y=(0,f.default)(y,M,(function(t,o,n){(0,u.default)(t)||delete y[n]})),s)},e.extractPropertyFromFunction=void 0,e.extractProps=c,e.mergeUnderscoreProps=b,e.resolveValueWithBreakpoint=void 0;var o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),f=t(r(d[5])),s=t(r(d[6]));function c(t,o,f,c,p){(0,n.default)(f);var b={};for(var h in t)if(r(d[7]).themePropertyMap[h]){var P=v(h,t,o,c);if('string'==typeof P||'number'==typeof P)b[h]=P;else if((0,u.default)(P))if('shadow'===h){var j=o[r(d[7]).themePropertyMap[h]][t[h]];(0,u.default)(j)||(b=Object.assign({},b,j))}else b[h]=y(t[h],o.breakpoints,p,h);else for(var k in P)b[k]=(0,l.default)(o,`${r(d[7]).themePropertyMap[k]}.${P[k]}`,P[k])}else b[h]=y(t[h],o.breakpoints,p,h);return(0,s.default)(b)}function p(t,n){var l=(0,r(d[8]).extractInObject)(n,Object.keys(t));return(0,o.default)(l,2)[1]}var v=e.extractPropertyFromFunction=function(t,o,n,u){var f;if(u&&'function'==typeof u[r(d[7]).themePropertyMap[t]]){var s=u[r(d[7]).themePropertyMap[t]](Object.assign({theme:n},o));f=Object.keys(s).some((function(t){return s[t]&&'object'==typeof s[t]}))?Object.assign({},(0,l.default)(s,`${o[t]}`)):Object.assign({},s)}else f=(0,l.default)(u,`${r(d[7]).themePropertyMap[t]}.${o[t]}`);return f};function b(t,o){return Object.keys(t).filter((function(t){return t.startsWith('_')})).forEach((function(n){var l,u,f,s,c=null!=(l=t.bg)?l:t.backgroundColor,p=c?{color:(0,r(d[9]).useContrastText)(c,null!=(u=null==(f=t[n])?void 0:f.color)?u:null==(s=o[n])?void 0:s.color)}:{};t[n]=Object.assign({},p,t[n],o[n])})),t}var y=e.resolveValueWithBreakpoint=function(t,o,n,l){return(0,r(d[8]).hasValidBreakpointFormat)(t,o,l)?(0,r(d[8]).findLastValidBreakpoint)(t,o,n):t}}),919,[2,44,920,921,922,923,924,925,935,943]); +__d((function(g,r,i,a,m,e,d){m.exports=function(t){if(null==t)throw new TypeError("Cannot destructure "+t)},m.exports.__esModule=!0,m.exports.default=m.exports}),920,[]); +__d((function(g,r,i,a,m,_e,d){var t='__lodash_hash_undefined__',n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,e=/^\w*$/,o=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,s='object'==typeof g&&g&&g.Object===Object&&g,p='object'==typeof self&&self&&self.Object===Object&&self,l=s||p||Function('return this')();function _(t,n){return null==t?void 0:t[n]}function h(t){var n=!1;if(null!=t&&'function'!=typeof t.toString)try{n=!!(t+'')}catch(t){}return n}var y,v=Array.prototype,b=Function.prototype,j=Object.prototype,O=l['__core-js_shared__'],w=(y=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||''))?'Symbol(src)_1.'+y:'',$=b.toString,S=j.hasOwnProperty,x=j.toString,E=RegExp('^'+$.call(S).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),F=l.Symbol,A=v.splice,C=H(l,'Map'),P=H(Object,'create'),k=F?F.prototype:void 0,R=k?k.toString:void 0;function T(t){var n=-1,e=t?t.length:0;for(this.clear();++n-1},G.prototype.set=function(t,n){var e=this.__data__,o=M(e,t);return o<0?e.push([t,n]):e[o][1]=n,this},I.prototype.clear=function(){this.__data__={hash:new T,map:new(C||G),string:new T}},I.prototype.delete=function(t){return D(this,t).delete(t)},I.prototype.get=function(t){return D(this,t).get(t)},I.prototype.has=function(t){return D(this,t).has(t)},I.prototype.set=function(t,n){return D(this,t).set(t,n),this};var K=Q((function(t){var n;t=null==(n=t)?'':B(n);var e=[];return o.test(t)&&e.push(''),t.replace(u,(function(t,n,o,u){e.push(o?u.replace(c,'$1'):n||t)})),e}));function L(t){if('string'==typeof t||Y(t))return t;var n=t+'';return'0'==n&&1/t==-1/0?'-0':n}function N(t){if(null!=t){try{return $.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Q(t,n){if('function'!=typeof t||n&&'function'!=typeof n)throw new TypeError("Expected a function");var e=function(){var o=arguments,u=n?n.apply(this,o):o[0],c=e.cache;if(c.has(u))return c.get(u);var f=t.apply(this,o);return e.cache=c.set(u,f),f};return e.cache=new(Q.Cache||I),e}Q.Cache=I;var U=Array.isArray;function V(t){var n=W(t)?x.call(t):'';return"[object Function]"==n||"[object GeneratorFunction]"==n}function W(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function X(t){return!!t&&'object'==typeof t}function Y(t){return'symbol'==typeof t||X(t)&&"[object Symbol]"==x.call(t)}m.exports=function(t,n,e){var o=null==t?void 0:q(t,n);return void 0===o?e:o}}),921,[]); +__d((function(g,r,i,a,m,e,d){m.exports=function(n){return null==n}}),922,[]); +__d((function(g,r,i,a,m,_e,d){var t='__lodash_hash_undefined__',n=9007199254740991,e='[object Arguments]',o='[object Function]',u='[object Object]',c=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,s={};s['[object Float32Array]']=s['[object Float64Array]']=s['[object Int8Array]']=s['[object Int16Array]']=s['[object Int32Array]']=s['[object Uint8Array]']=s['[object Uint8ClampedArray]']=s['[object Uint16Array]']=s['[object Uint32Array]']=!0,s[e]=s['[object Array]']=s['[object ArrayBuffer]']=s['[object Boolean]']=s['[object DataView]']=s['[object Date]']=s['[object Error]']=s[o]=s['[object Map]']=s['[object Number]']=s[u]=s['[object RegExp]']=s['[object Set]']=s['[object String]']=s['[object WeakMap]']=!1;var l='object'==typeof g&&g&&g.Object===Object&&g,p='object'==typeof self&&self&&self.Object===Object&&self,_=l||p||Function('return this')(),h='object'==typeof _e&&_e&&!_e.nodeType&&_e,v=h&&'object'==typeof m&&m&&!m.nodeType&&m,y=v&&v.exports===h,b=y&&l.process,j=(function(){try{var t=v&&v.require&&v.require('util').types;return t||b&&b.binding&&b.binding('util')}catch(t){}})(),O=j&&j.isTypedArray;function A(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function w(t,n){for(var e=-1,o=Array(t);++e-1},nt.prototype.set=function(t,n){var e=this.__data__,o=at(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this},et.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(Y||nt),string:new rt}},et.prototype.delete=function(t){var n=zt(this,t).delete(t);return this.size-=n?1:0,n},et.prototype.get=function(t){return zt(this,t).get(t)},et.prototype.has=function(t){return zt(this,t).has(t)},et.prototype.set=function(t,n){var e=zt(this,t),o=e.size;return e.set(t,n),this.size+=e.size==o?0:1,this},ot.prototype.clear=function(){this.__data__=new nt,this.size=0},ot.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ot.prototype.get=function(t){return this.__data__.get(t)},ot.prototype.has=function(t){return this.__data__.has(t)},ot.prototype.set=function(t,n){var e=this.__data__;if(e instanceof nt){var o=e.__data__;if(!Y||o.length<199)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new et(o)}return e.set(t,n),this.size=e.size,this};var st,lt=function(t,n,e){for(var o=-1,u=Object(t),c=e(t),f=c.length;f--;){var s=c[st?f:++o];if(!1===n(u[s],s,u))break}return t};function pt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":H&&H in Object(t)?St(t):It(t)}function _t(t){return Wt(t)&&pt(t)==e}function ht(t){return!(!Vt(t)||$t(t))&&(Nt(t)?D:c).test(Mt(t))}function vt(t){if(!Vt(t))return Et(t);var n=Pt(t),e=[];for(var o in t)('constructor'!=o||!n&&T.call(t,o))&&e.push(o);return e}function yt(t,n,e,o,u){t!==n&<(n,(function(c,f){if(u||(u=new ot),Vt(c))bt(t,n,f,e,yt,o,u);else{var s=o?o(kt(t,f),c,f+'',t,n,u):void 0;void 0===s&&(s=c),ut(t,f,s)}}),Qt)}function bt(t,n,e,o,u,c,f){var s=kt(t,e),l=kt(n,e),p=f.get(l);if(p)ut(t,e,p);else{var _,h,v,y=c?c(s,l,e+'',t,n,f):void 0,b=void 0===y;if(b){var j=qt(l),O=!j&&Lt(l),A=!j&&!O&&Jt(l);y=l,j||O||A?qt(s)?y=s:Wt(v=s)&&Ct(v)?y=At(s):O?(b=!1,y=jt(l,!0)):A?(b=!1,_=l,h=!0?Ot(_.buffer):_.buffer,y=new _.constructor(h,_.byteOffset,_.length)):y=[]:Ht(l)||Rt(l)?(y=s,Rt(s)?y=Kt(s):Vt(s)&&!Nt(s)||(y=xt(l))):b=!1}b&&(f.set(l,y),u(y,l,o,c,f),f.delete(l)),ut(t,e,y)}}function dt(t,n){return Bt(Tt(t,n,Zt),t+'')}var gt=J?function(t,n){return J(t,'toString',{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Zt;function jt(t,n){if(n)return t.slice();var e=t.length,o=L?L(e):new t.constructor(e);return t.copy(o),o}function Ot(t){var n=new t.constructor(t.byteLength);return new C(n).set(new C(t)),n}function At(t,n){var e=-1,o=t.length;for(n||(n=Array(o));++e-1&&t%1==0&&t0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}})(gt);function Mt(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Dt(t,n){return t===n||t!=t&&n!=n}var Rt=_t((function(){return arguments})())?_t:function(t){return Wt(t)&&T.call(t,'callee')&&!V.call(t,'callee')},qt=Array.isArray;function Ct(t){return null!=t&&Gt(t.length)&&!Nt(t)}var Lt=K||function(){return!1};function Nt(t){if(!Vt(t))return!1;var n=pt(t);return n==o||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Gt(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=n}function Vt(t){var n=typeof t;return null!=t&&('object'==n||'function'==n)}function Wt(t){return null!=t&&'object'==typeof t}function Ht(t){if(!Wt(t)||pt(t)!=u)return!1;var n=N(t);if(null===n)return!0;var e=T.call(n,'constructor')&&n.constructor;return'function'==typeof e&&e instanceof e&&I.call(e)==M}var Jt=O?(function(t){return function(n){return t(n)}})(O):function(t){return Wt(t)&&Gt(t.length)&&!!s[pt(t)]};function Kt(t){return wt(t,Qt(t))}function Qt(t){return Ct(t)?it(t,!0):vt(t)}var Xt,Yt=(Xt=function(t,n,e,o){yt(t,n,e,o)},dt((function(t,n){var e=-1,o=n.length,u=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(u=Xt.length>3&&'function'==typeof u?(o--,u):void 0,c&&Ut(n[0],n[1],c)&&(u=o<3?void 0:u,o=1),t=Object(t);++e-1},Ut.prototype.set=function(t,e){var n=this.__data__,o=zt(n,t);return o<0?n.push([t,e]):n[o][1]=e,this},Mt.prototype.clear=function(){this.__data__={hash:new Bt,map:new(wt||Ut),string:new Bt}},Mt.prototype.delete=function(t){return rr(this,t).delete(t)},Mt.prototype.get=function(t){return rr(this,t).get(t)},Mt.prototype.has=function(t){return rr(this,t).has(t)},Mt.prototype.set=function(t,e){return rr(this,t).set(t,e),this},Dt.prototype.clear=function(){this.__data__=new Ut},Dt.prototype.delete=function(t){return this.__data__.delete(t)},Dt.prototype.get=function(t){return this.__data__.get(t)},Dt.prototype.has=function(t){return this.__data__.has(t)},Dt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ut){var o=n.__data__;if(!wt||o.length<199)return o.push([t,e]),this;n=this.__data__=new Mt(o)}return n.set(t,e),this};var nr=bt?Y(bt,Object):function(){return[]},or=function(t){return it.call(t)};function cr(t){var e=t.length,n=t.constructor(e);return e&&'string'==typeof t[0]&&at.call(t,'index')&&(n.index=t.index,n.input=t.input),n}function ur(t){return'function'!=typeof t.constructor||fr(t)?{}:jr(e=pt(t))?ht(e):{};var e}function ar(t,e,n,u){var f,_,p,j=t.constructor;switch(e){case w:return qt(t);case o:case c:return new j(+t);case O:return Ht(t,u);case A:case x:case S:case $:case E:case I:case P:case F:case k:return Qt(t,u);case s:return Jt(t,u,n);case l:case v:return new j(t);case h:return(p=new(_=t).constructor(_.source,B.exec(_))).lastIndex=_.lastIndex,p;case y:return Kt(t,u,n);case b:return f=t,kt?Object(kt.call(f)):{}}}function ir(t,n){return!!(n=null==n?e:n)&&('number'==typeof t||M.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=e}function jr(t){var e=typeof t;return!!t&&('object'==e||'function'==e)}function gr(t){return!!t&&'object'==typeof t}function wr(t){return hr(t)?Rt(t):Gt(t)}m.exports=function(t){return Lt(t,!0,!0)}}),924,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.themePropertyMap=e.default=void 0;var s=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),n=t(r(d[5])),u=t(r(d[6])),c=t(r(d[7])),p=t(r(d[8])),h=Object.assign({borderWidths:s.default,breakpoints:o.default,colors:l.default,radii:f.default},c.default,{sizes:u.default,space:r(d[9]).spacing,shadows:n.default,opacity:p.default});e.themePropertyMap={borderRadius:'radii',color:'colors',letterSpacing:'letterSpacings',lineHeight:'lineHeights',fontFamily:'fonts',fontSize:'fontSizes',fontWeight:'fontWeights',size:'sizes',space:'space',border:'borders',shadow:'shadows'},e.default=h}),925,[2,926,927,928,929,930,931,933,934,932]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={0:0,1:'1px',2:'2px',4:'4px',8:'8px'}}),926,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={base:0,sm:480,md:768,lg:992,xl:1280,'2xl':1536}}),927,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f={contrastThreshold:7,white:'#FFFFFF',black:'#000000',lightText:'#FFFFFF',darkText:'#000000',rose:{50:'#fff1f2',100:'#ffe4e6',200:'#fecdd3',300:'#fda4af',400:'#fb7185',500:'#f43f5e',600:'#e11d48',700:'#be123c',800:'#9f1239',900:'#881337'},pink:{50:'#fdf2f8',100:'#fce7f3',200:'#fbcfe8',300:'#f9a8d4',400:'#f472b6',500:'#ec4899',600:'#db2777',700:'#be185d',800:'#9d174d',900:'#831843'},fuchsia:{50:'#fdf4ff',100:'#fae8ff',200:'#f5d0fe',300:'#f0abfc',400:'#e879f9',500:'#d946ef',600:'#c026d3',700:'#a21caf',800:'#86198f',900:'#701a75'},purple:{50:'#faf5ff',100:'#f3e8ff',200:'#e9d5ff',300:'#d8b4fe',400:'#c084fc',500:'#a855f7',600:'#9333ea',700:'#7e22ce',800:'#6b21a8',900:'#581c87'},violet:{50:'#f5f3ff',100:'#ede9fe',200:'#ddd6fe',300:'#c4b5fd',400:'#a78bfa',500:'#8b5cf6',600:'#7c3aed',700:'#6d28d9',800:'#5b21b6',900:'#4c1d95'},indigo:{50:'#eef2ff',100:'#e0e7ff',200:'#c7d2fe',300:'#a5b4fc',400:'#818cf8',500:'#6366f1',600:'#4f46e5',700:'#4338ca',800:'#3730a3',900:'#312e81'},blue:{50:'#eff6ff',100:'#dbeafe',200:'#bfdbfe',300:'#93c5fd',400:'#60a5fa',500:'#3b82f6',600:'#2563eb',700:'#1d4ed8',800:'#1e40af',900:'#1e3a8a'},lightBlue:{50:'#f0f9ff',100:'#e0f2fe',200:'#bae6fd',300:'#7dd3fc',400:'#38bdf8',500:'#0ea5e9',600:'#0284c7',700:'#0369a1',800:'#075985',900:'#0c4a6e'},darkBlue:{50:'#dbf4ff',100:'#addbff',200:'#7cc2ff',300:'#4aa9ff',400:'#1a91ff',500:'#0077e6',600:'#005db4',700:'#004282',800:'#002851',900:'#000e21'},cyan:{50:'#ecfeff',100:'#cffafe',200:'#a5f3fc',300:'#67e8f9',400:'#22d3ee',500:'#06b6d4',600:'#0891b2',700:'#0e7490',800:'#155e75',900:'#164e63'},teal:{50:'#f0fdfa',100:'#ccfbf1',200:'#99f6e4',300:'#5eead4',400:'#2dd4bf',500:'#14b8a6',600:'#0d9488',700:'#0f766e',800:'#115e59',900:'#134e4a'},emerald:{50:'#ecfdf5',100:'#d1fae5',200:'#a7f3d0',300:'#6ee7b7',400:'#34d399',500:'#10b981',600:'#059669',700:'#047857',800:'#065f46',900:'#064e3b'},green:{50:'#f0fdf4',100:'#dcfce7',200:'#bbf7d0',300:'#86efac',400:'#4ade80',500:'#22c55e',600:'#16a34a',700:'#15803d',800:'#166534',900:'#14532d'},lime:{50:'#f7fee7',100:'#ecfccb',200:'#d9f99d',300:'#bef264',400:'#a3e635',500:'#84cc16',600:'#65a30d',700:'#4d7c0f',800:'#3f6212',900:'#365314'},yellow:{50:'#fefce8',100:'#fef9c3',200:'#fef08a',300:'#fde047',400:'#facc15',500:'#eab308',600:'#ca8a04',700:'#a16207',800:'#854d0e',900:'#713f12'},amber:{50:'#fffbeb',100:'#fef3c7',200:'#fde68a',300:'#fcd34d',400:'#fbbf24',500:'#f59e0b',600:'#d97706',700:'#b45309',800:'#92400e',900:'#78350f'},orange:{50:'#fff7ed',100:'#ffedd5',200:'#fed7aa',300:'#fdba74',400:'#fb923c',500:'#f97316',600:'#ea580c',700:'#c2410c',800:'#9a3412',900:'#7c2d12'},red:{50:'#fef2f2',100:'#fee2e2',200:'#fecaca',300:'#fca5a5',400:'#f87171',500:'#ef4444',600:'#dc2626',700:'#b91c1c',800:'#991b1b',900:'#7f1d1d'},warmGray:{50:'#fafaf9',100:'#f5f5f4',200:'#e7e5e4',300:'#d6d3d1',400:'#a8a29e',500:'#78716c',600:'#57534e',700:'#44403c',800:'#292524',900:'#1c1917'},trueGray:{50:'#fafafa',100:'#f5f5f5',200:'#e5e5e5',300:'#d4d4d4',400:'#a3a3a3',500:'#737373',600:'#525252',700:'#404040',800:'#262626',900:'#171717'},gray:{50:'#fafafa',100:'#f4f4f5',200:'#e4e4e7',300:'#d4d4d8',400:'#a1a1aa',500:'#71717a',600:'#52525b',700:'#3f3f46',800:'#27272a',900:'#18181b'},coolGray:{50:'#f9fafb',100:'#f3f4f6',200:'#e5e7eb',300:'#d1d5db',400:'#9ca3af',500:'#6b7280',600:'#4b5563',700:'#374151',800:'#1f2937',900:'#111827'},blueGray:{50:'#f8fafc',100:'#f1f5f9',200:'#e2e8f0',300:'#cbd5e1',400:'#94a3b8',500:'#64748b',600:'#475569',700:'#334155',800:'#1e293b',900:'#0f172a'},dark:{50:'#18181b',100:'#27272a',200:'#3f3f46',300:'#52525b',400:'#71717a',500:'#a1a1aa',600:'#d4d4d8',700:'#e4e4e7',800:'#f4f4f5',900:'#fafafa'},text:{50:'#fafafa',100:'#f5f5f5',200:'#e5e5e5',300:'#d4d4d4',400:'#a3a3a3',500:'#737373',600:'#525252',700:'#404040',800:'#262626',900:'#171717'},danger:{},error:{},success:{},warning:{},muted:{},primary:{},info:{},secondary:{},light:{},tertiary:{}};f.danger=f.rose,f.error=f.red,f.success=f.green,f.warning=f.orange,f.muted=f.trueGray,f.primary=f.cyan,f.secondary=f.pink,f.tertiary=f.emerald,f.info=f.lightBlue,f.light=f.warmGray;e.default=f}),928,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={none:0,xs:2,sm:4,md:6,lg:8,xl:12,'2xl':16,'3xl':24,full:9999}}),929,[]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=o(r(d[1])),t={none:{shadowColor:'transparent',shadowOffset:{width:0,height:0},shadowOpacity:0,shadowRadius:0,elevation:0},0:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.18,shadowRadius:1,elevation:1},1:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:1.41,elevation:2},2:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.22,shadowRadius:2.22,elevation:3},3:{shadowColor:h.default.black,shadowOffset:{width:0,height:2},shadowOpacity:.23,shadowRadius:2.62,elevation:4},4:{shadowColor:h.default.black,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:3.84,elevation:5},5:{shadowColor:h.default.black,shadowOffset:{width:0,height:3},shadowOpacity:.27,shadowRadius:4.65,elevation:6},6:{shadowColor:h.default.black,shadowOffset:{width:0,height:3},shadowOpacity:.29,shadowRadius:4.65,elevation:7},7:{shadowColor:h.default.black,shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:4.65,elevation:8},8:{shadowColor:h.default.black,shadowOffset:{width:0,height:4},shadowOpacity:.32,shadowRadius:5.46,elevation:9},9:{shadowColor:h.default.black,shadowOffset:{width:0,height:5},shadowOpacity:.34,shadowRadius:6.27,elevation:10}};e.default=t}),930,[2,928]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=Object.assign({},r(d[0]).spacing,{'3xs':224,'2xs':256,xs:320,sm:384,md:448,lg:512,xl:576,'2xl':672},{container:{sm:640,md:768,lg:1024,xl:1280}});e.default=l}),931,[932]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.spacing=void 0;e.spacing={px:'1px',0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,12:48,16:64,20:80,24:96,32:128,40:160,48:192,56:224,64:256,72:288,80:320,96:384,'1/2':'50%','1/3':'33.333%','2/3':'66.666%','1/4':'25%','2/4':'50%','3/4':'75%','1/5':'20%','2/5':'40%','3/5':'60%','4/5':'80%','1/6':'16.666%','2/6':'33.333%','3/6':'50%','4/6':'66.666%','5/6':'83.333%',full:'100%'}}),932,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={letterSpacings:{xs:'-0.05em',sm:'-0.025em',md:0,lg:'0.025em',xl:'0.05em','2xl':'0.1em'},lineHeights:{'2xs':'1em',xs:'1.125em',sm:'1.25em',md:'1.375em',lg:'1.5em',xl:'1.75em','2xl':'2em','3xl':'2.5em','4xl':'3em','5xl':'4em'},fontConfig:{},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900,extraBlack:950},fonts:{heading:void 0,body:void 0,mono:void 0},fontSizes:{'2xs':10,xs:12,sm:14,md:16,lg:18,xl:20,'2xl':24,'3xl':30,'4xl':36,'5xl':48,'6xl':60,'7xl':72,'8xl':96,'9xl':128}};e.default=l}),933,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={0:0,5:.05,10:.1,20:.2,25:.25,30:.3,40:.4,50:.5,60:.6,70:.7,75:.75,80:.8,90:.9,95:.95,100:1}}),934,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}))}),935,[936,939]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isLight=e.isDark=e.getColor=void 0,e.mode=function(t,n){return function(o){return'dark'===o.colorMode?n:t}},e.randomColor=function(t){var n=i.default.random().toHexString();if(!t||(0,o.default)(t))return n;if(t.string&&t.colors)return l(t.string,t.colors);if(t.string&&!t.colors)return c(t.string);if(t.colors&&!t.string)return(u=t.colors)[Math.floor(Math.random()*u.length)];var u;return n},e.transparentize=e.tone=void 0;var n=t(r(d[1])),o=t(r(d[2])),i=t(r(d[3]));e.transparentize=function(t,n){return function(o){var f=u(o,t);return(0,i.default)(f).setAlpha(n).toRgbString()}};var u=e.getColor=function(t,o,u){var f=(0,n.default)(t,`colors.${o}`,o);return(0,i.default)(f).isValid()?f:u},f=e.tone=function(t){return function(n){var o=u(n,t);return(0,i.default)(o).isDark()?'dark':'light'}};e.isDark=function(t){return function(n){return'dark'===f(t)(n)}},e.isLight=function(t){return function(n){return'light'===f(t)(n)}};function l(t,n){var o=0;if(0===t.length)return n[0];for(var i=0;i>8*u&255).toString(16)).substr(-2)}return i}}),936,[2,921,937,938]); +__d((function(g,r,i,a,m,_e,d){var t='[object Map]',e='[object Promise]',n='[object Set]',o='[object WeakMap]',c='[object DataView]',u=/^\[object .+?Constructor\]$/,f='object'==typeof g&&g&&g.Object===Object&&g,l='object'==typeof self&&self&&self.Object===Object&&self,s=f||l||Function('return this')(),p='object'==typeof _e&&_e&&!_e.nodeType&&_e,y=p&&'object'==typeof m&&m&&!m.nodeType&&m,b=y&&y.exports===p;function j(t,e){return null==t?void 0:t[e]}function v(t){var e=!1;if(null!=t&&'function'!=typeof t.toString)try{e=!!(t+'')}catch(t){}return e}var O,h,w,_=Function.prototype,S=Object.prototype,$=s['__core-js_shared__'],k=(O=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||''))?'Symbol(src)_1.'+O:'',P=_.toString,x=S.hasOwnProperty,A=S.toString,F=RegExp('^'+P.call(x).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),M=b?s.Buffer:void 0,B=S.propertyIsEnumerable,E=M?M.isBuffer:void 0,T=(h=Object.keys,w=Object,function(t){return h(w(t))}),D=L(s,'DataView'),I=L(s,'Map'),R=L(s,'Promise'),V=L(s,'Set'),W=L(s,'WeakMap'),z=!B.call({valueOf:1},'valueOf'),C=X(D),G=X(I),q=X(R),H=X(V),J=X(W);function K(t){return!(!ct(t)||Q(t))&&(nt(t)||v(t)?F:u).test(X(t))}function L(t,e){var n=j(t,e);return K(n)?n:void 0}var N=function(t){return A.call(t)};function Q(t){return!!k&&k in t}function U(t){var e=t&&t.constructor;return t===('function'==typeof e&&e.prototype||S)}function X(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Y(t){return et(t)&&x.call(t,'callee')&&(!B.call(t,'callee')||"[object Arguments]"==A.call(t))}(D&&N(new D(new ArrayBuffer(1)))!=c||I&&N(new I)!=t||R&&N(R.resolve())!=e||V&&N(new V)!=n||W&&N(new W)!=o)&&(N=function(u){var f=A.call(u),l="[object Object]"==f?u.constructor:void 0,s=l?X(l):void 0;if(s)switch(s){case C:return c;case G:return t;case q:return e;case H:return n;case J:return o}return f});var Z=Array.isArray;function tt(t){return null!=t&&ot(t.length)&&!nt(t)}function et(t){return ut(t)&&tt(t)}var rt=E||function(){return!1};function nt(t){var e=ct(t)?A.call(t):'';return"[object Function]"==e||"[object GeneratorFunction]"==e}function ot(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function ct(t){var e=typeof t;return!!t&&('object'==e||'function'==e)}function ut(t){return!!t&&'object'==typeof t}m.exports=function(e){if(tt(e)&&(Z(e)||'string'==typeof e||'function'==typeof e.splice||rt(e)||Y(e)))return!e.length;var o=N(e);if(o==t||o==n)return!e.size;if(z||U(e))return!T(e).length;for(var c in e)if(x.call(e,c))return!1;return!0}}),937,[]); +__d((function(_g,_r,_i,_a,m,e,_d){var t,r;t=this,r=function(){'use strict';function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}var r=/^\s+/,a=/\s+$/;function n(t,r){if(r=r||{},(t=t||"")instanceof n)return t;if(!(this instanceof n))return new n(t,r);var a=i(t);this._originalInput=t,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||a.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function i(r){var a,n,i,o={r:0,g:0,b:0},h=1,u=null,d=null,l=null,c=!1,g=!1;return"string"==typeof r&&(r=P(r)),"object"==t(r)&&(O(r.r)&&O(r.g)&&O(r.b)?(a=r.r,n=r.g,i=r.b,o={r:255*F(a,255),g:255*F(n,255),b:255*F(i,255)},c=!0,g="%"===String(r.r).substr(-1)?"prgb":"rgb"):O(r.h)&&O(r.s)&&O(r.v)?(u=I(r.s),d=I(r.v),o=f(r.h,u,d),c=!0,g="hsv"):O(r.h)&&O(r.s)&&O(r.l)&&(u=I(r.s),l=I(r.l),o=s(r.h,u,l),c=!0,g="hsl"),r.hasOwnProperty("a")&&(h=r.a)),h=R(h),{ok:c,format:r.format||g,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:h}}function o(t,r,a){t=F(t,255),r=F(r,255),a=F(a,255);var n,i,o=Math.max(t,r,a),s=Math.min(t,r,a),h=(o+s)/2;if(o==s)n=i=0;else{var f=o-s;switch(i=h>.5?f/(2-o-s):f/(o+s),o){case t:n=(r-a)/f+(r1&&(a-=1),a<.16666666666666666?t+6*(r-t)*a:a<.5?r:a<.6666666666666666?t+(r-t)*(.6666666666666666-a)*6:t}if(t=F(t,360),r=F(r,100),a=F(a,100),0===r)n=i=o=a;else{var h=a<.5?a*(1+r):a+r-a*r,f=2*a-h;n=s(f,h,t+.3333333333333333),i=s(f,h,t),o=s(f,h,t-.3333333333333333)}return{r:255*n,g:255*i,b:255*o}}function h(t,r,a){t=F(t,255),r=F(r,255),a=F(a,255);var n,i,o=Math.max(t,r,a),s=Math.min(t,r,a),h=o,f=o-s;if(i=0===o?0:f/o,o==s)n=0;else{switch(o){case t:n=(r-a)/f+(r>1)+720)%360;--r;)i.h=(i.h+o)%360,s.push(n(i));return s}function w(t,r){r=r||6;for(var a=n(t).toHsv(),i=a.h,o=a.s,s=a.v,h=[],f=1/r;r--;)h.push(n({h:i,s:o,v:s})),s=(s+f)%1;return h}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,a,n=this.toRgb();return t=n.r/255,r=n.g/255,a=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(t){return this._a=R(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),r=Math.round(360*t.h),a=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+r+", "+a+"%, "+n+"%)":"hsva("+r+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=o(this._r,this._g,this._b),r=Math.round(360*t.h),a=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+r+", "+a+"%, "+n+"%)":"hsla("+r+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return u(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return d(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*F(this._r,255))+"%",g:Math.round(100*F(this._g,255))+"%",b:Math.round(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*F(this._r,255))+"%, "+Math.round(100*F(this._g,255))+"%, "+Math.round(100*F(this._b,255))+"%)":"rgba("+Math.round(100*F(this._r,255))+"%, "+Math.round(100*F(this._g,255))+"%, "+Math.round(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(H[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+l(this._r,this._g,this._b,this._a),a=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=n(t);a="#"+l(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+a+")"},toString:function(t){var r=!!t;t=t||this._format;var a=!1,n=this._a<1&&this._a>=0;return r||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(a=this.toRgbString()),"prgb"===t&&(a=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(a=this.toHexString()),"hex3"===t&&(a=this.toHexString(!0)),"hex4"===t&&(a=this.toHex8String(!0)),"hex8"===t&&(a=this.toHex8String()),"name"===t&&(a=this.toName()),"hsl"===t&&(a=this.toHslString()),"hsv"===t&&(a=this.toHsvString()),a||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(t,r){var a=t.apply(null,[this].concat([].slice.call(r)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},n.fromRatio=function(r,a){if("object"==t(r)){var i={};for(var o in r)r.hasOwnProperty(o)&&(i[o]="a"===o?r[o]:I(r[o]));r=i}return n(r,a)},n.equals=function(t,r){return!(!t||!r)&&n(t).toRgbString()==n(r).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(t,r,a){a=0===a?0:a||50;var i=n(t).toRgb(),o=n(r).toRgb(),s=a/100;return n({r:(o.r-i.r)*s+i.r,g:(o.g-i.g)*s+i.g,b:(o.b-i.b)*s+i.b,a:(o.a-i.a)*s+i.a})},n.readability=function(t,r){var a=n(t),i=n(r);return(Math.max(a.getLuminance(),i.getLuminance())+.05)/(Math.min(a.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(t,r,a){var i,o,s,h,f,u=n.readability(t,r);switch(o=!1,(s=a,"AA"!==(h=((s=s||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==h&&(h="AA"),"small"!==(f=(s.size||"small").toLowerCase())&&"large"!==f&&(f="small"),i={level:h,size:f}).level+i.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},n.mostReadable=function(t,r,a){var i,o,s,h,f=null,u=0;o=(a=a||{}).includeFallbackColors,s=a.level,h=a.size;for(var d=0;du&&(u=i,f=n(r[d]));return n.isReadable(t,f,{level:s,size:h})||!o?f:(a.includeFallbackColors=!1,n.mostReadable(t,["#fff","#000"],a))};var S=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=n.hexNames=(function(t){var r={};for(var a in t)t.hasOwnProperty(a)&&(r[t[a]]=a);return r})(S);function R(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function F(t,r){N(t)&&(t="100%");var a=T(t);return t=Math.min(r,Math.max(0,parseFloat(t))),a&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function C(t){return Math.min(1,Math.max(0,t))}function q(t){return parseInt(t,16)}function N(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function T(t){return"string"==typeof t&&-1!=t.indexOf("%")}function E(t){return 1==t.length?"0"+t:""+t}function I(t){return t<=1&&(t=100*t+"%"),t}function L(t){return Math.round(255*parseFloat(t)).toString(16)}function j(t){return q(t)/255}var z={CSS_UNIT:new RegExp("(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)"),rgb:new RegExp("rgb[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),rgba:new RegExp("rgba[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsl:new RegExp("hsl[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsla:new RegExp("hsla[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsv:new RegExp("hsv[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsva:new RegExp("hsva[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function O(t){return!!z.CSS_UNIT.exec(t)}function P(t){t=t.replace(r,"").replace(a,"").toLowerCase();var n,i=!1;if(S[t])t=S[t],i=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(n=z.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=z.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=z.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=z.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=z.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=z.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=z.hex8.exec(t))?{r:q(n[1]),g:q(n[2]),b:q(n[3]),a:j(n[4]),format:i?"name":"hex8"}:(n=z.hex6.exec(t))?{r:q(n[1]),g:q(n[2]),b:q(n[3]),format:i?"name":"hex"}:(n=z.hex4.exec(t))?{r:q(n[1]+""+n[1]),g:q(n[2]+""+n[2]),b:q(n[3]+""+n[3]),a:j(n[4]+""+n[4]),format:i?"name":"hex8"}:!!(n=z.hex3.exec(t))&&{r:q(n[1]+""+n[1]),g:q(n[2]+""+n[2]),b:q(n[3]+""+n[3]),format:i?"name":"hex"}}return n},'object'==typeof e&&void 0!==m?m.exports=r():'function'==typeof define&&define.amd?define(r):(t='undefined'!=typeof globalThis?globalThis:t||self).tinycolor=r()}),938,[]); +__d((function(g,r,_i2,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.convertToDp=e.convertRemToAbsolute=e.convertAbsoluteToRem=e.baseFontSize=void 0,e.extractInObject=function(t,o){return[u((0,i.default)(t,o)),u((0,l.default)(t,o))]},e.findLastValidBreakpoint=function(t,o,i){var l,f=Array.isArray(t)?t:Object.keys(o).map((function(o){return t[o]}));return null!=(l=f[i])?l:f.slice(0,i+1).filter((function(t){return!(0,n.default)(t)})).pop()},e.getClosestBreakpoint=function(t,o){for(var n=Object.values(t),i=-1,l={},f=0;fo&&0!==u){i=l[s[u-1]];break}if(parseInt(s[u])l))return!1;var p=c.get(t);if(p&&c.get(n))return p==n;var h=-1,v=!0,_=1&u?new xt:void 0;for(c.set(t,n),c.set(n,t);++h-1},$t.prototype.set=function(t,n){var e=this.__data__,o=It(e,t);return o<0?e.push([t,n]):e[o][1]=n,this},Pt.prototype.clear=function(){this.__data__={hash:new Et,map:new(vt||$t),string:new Et}},Pt.prototype.delete=function(t){return tr(this,t).delete(t)},Pt.prototype.get=function(t){return tr(this,t).get(t)},Pt.prototype.has=function(t){return tr(this,t).has(t)},Pt.prototype.set=function(t,n){return tr(this,t).set(t,n),this},xt.prototype.add=xt.prototype.push=function(t){return this.__data__.set(t,n),this},xt.prototype.has=function(t){return this.__data__.has(t)},Ft.prototype.clear=function(){this.__data__=new $t},Ft.prototype.delete=function(t){return this.__data__.delete(t)},Ft.prototype.get=function(t){return this.__data__.get(t)},Ft.prototype.has=function(t){return this.__data__.has(t)},Ft.prototype.set=function(t,n){var e=this.__data__;if(e instanceof $t){var o=e.__data__;if(!vt||o.length<199)return o.push([t,n]),this;e=this.__data__=new Pt(o)}return e.set(t,n),this};var er=st?J(st,Object):Cr,or=st?function(t){for(var n=[];t;)V(n,er(t)),t=ct(t);return n}:Cr,ur=function(t){return ot.call(t)};function ar(t,n,e){for(var o,u=-1,c=(n=cr(n,t)?[n]:Kt(n)).length;++u-1&&t%1==0&&t-1&&t%1==0&&t<=e}function Sr(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function kr(t){return!!t&&'object'==typeof t}function Er(t){return'symbol'==typeof t||kr(t)&&ot.call(t)==w}var $r,Pr=R?($r=R,function(t){return $r(t)}):function(t){return kr(t)&&Ar(t.length)&&!!I[ot.call(t)]};function xr(t,n,e){var o=null==t?void 0:Ut(t,n);return void 0===o?e:o}function Fr(t,n){return null!=t&&ar(t,n,Ct)}function Tr(t){return wr(t)?Tt(t):Vt(t)}function Ir(t){return wr(t)?Tt(t,!0):Wt(t)}function Ur(t,n){return null==t?{}:qt(t,Zt(t),Rt(n))}function zr(t){return t}function Cr(){return[]}m.exports=function(t,n){return Ur(t,br(Rt(n)))}}),940,[]); +__d((function(g,r,i,a,m,e,d){var t='object'==typeof g&&g&&g.Object===Object&&g,n='object'==typeof self&&self&&self.Object===Object&&self,o=t||n||Function('return this')();function c(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}function u(t,n){for(var o=-1,c=t?t.length:0,u=Array(c);++o0&&o(s)?n>1?j(s,n-1,o,c,u):l(u,s):c||(u[u.length]=s)}return u}function O(t,n){return A(t=Object(t),n,(function(n,o){return o in t}))}function A(t,n,o){for(var c=-1,u=n.length,l={};++c-1&&t%1==0&&t<=9007199254740991}function I(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function M(t){return!!t&&'object'==typeof t}function P(t){return'symbol'==typeof t||M(t)&&"[object Symbol]"==s.call(t)}var k,q,z=(k=function(t,n){return null==t?{}:O(t,u(j(n,1),F))},q=h(void 0===q?k.length-1:q,0),function(){for(var t=arguments,n=-1,o=h(t.length-q,0),u=Array(o);++n-1}function h(t,n,e){for(var o=-1,u=t?t.length:0;++o=200&&(f=O,l=!1,n=new U(n));t:for(;++c<_;){var b=t[c],j=e?e(b):b;if(b=o||0!==b?b:0,l&&j==j){for(var w=y;w--;)if(n[w]===j)continue t;v.push(b)}else f(n,j,o)||v.push(b)}return v}function Y(t,n,e,o,u){var c=-1,f=t.length;for(e||(e=ft),u||(u=[]);++c0&&e(l)?n>1?Y(l,n-1,e,o,u):_(u,l):o||(u[u.length]=l)}return u}function Z(t,n,e){var o=n(t);return vt(t)?o:_(o,e(t))}function tt(t){return!(!jt(t)||(n=t,k&&k in n))&&(dt(t)||S(t)?R:e).test(pt(t));var n}function rt(t){if(!jt(t))return st(t);var n,e,o,u=(e=(n=t)&&n.constructor,o='function'==typeof e&&e.prototype||F,n===o),c=[];for(var f in t)('constructor'!=f||!u&&I.call(t,f))&&c.push(f);return c}function nt(t,n){return et(t=Object(t),n,(function(n,e){return e in t}))}function et(t,n,e){for(var o=-1,u=n.length,c={};++o-1},N.prototype.set=function(t,n){var e=this.__data__,o=W(e,t);return o<0?e.push([t,n]):e[o][1]=n,this},Q.prototype.clear=function(){this.__data__={hash:new L,map:new(J||N),string:new L}},Q.prototype.delete=function(t){return ut(this,t).delete(t)},Q.prototype.get=function(t){return ut(this,t).get(t)},Q.prototype.has=function(t){return ut(this,t).has(t)},Q.prototype.set=function(t,n){return ut(this,t).set(t,n),this},U.prototype.add=U.prototype.push=function(n){return this.__data__.set(n,t),this},U.prototype.has=function(t){return this.__data__.has(t)};var at=D?A(D,Object):Pt,ct=D?function(t){for(var n=[];t;)_(n,at(t)),t=T(t);return n}:Pt;function ft(t){return vt(t)||_t(t)||!!(B&&t&&t[B])}function lt(t,e){return!!(e=null==e?n:e)&&('number'==typeof t||o.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}function jt(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function Ot(t){return!!t&&'object'==typeof t}function mt(t){return'symbol'==typeof t||Ot(t)&&"[object Symbol]"==M.call(t)}function wt(t){return yt(t)?V(t,!0):rt(t)}var St,At,$t=(St=function(t,n){return null==t?{}:(n=p(Y(n,1),ht),nt(t,X(ot(t),n)))},At=H(void 0===At?St.length-1:At,0),function(){for(var t=arguments,n=-1,e=H(t.length-At,0),o=Array(e);++n=o&&'dark'!==t||'dark'===t&&n=t||h>p?y='darkText':y='lightText',y}function s(t,n){var u=(0,o.default)(t).getLuminance(),l=(0,o.default)(n).getLuminance();return(Math.max(u,l)+.05)/(Math.min(u,l)+.05)}var f={rose:500,pink:500,fuchsia:800,purple:700,violet:600,indigo:500,blue:400,lightBlue:400,cyan:300,teal:300,emerald:300,tertiary:300,green:400,lime:600,yellow:800,amber:500,orange:500,red:500,warmGray:500,trueGray:500,gray:500,coolGray:500,blueGray:500,dark:500,danger:500,error:500,success:400,warning:500,muted:500,primary:500,info:400,secondary:500,light:500}}),943,[2,44,938,944,916,945]); +__d((function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useToken=function(u,t,l){var f=(0,r(d[2]).useTheme)();if(Array.isArray(t)){var v=[];return l&&(v=Array.isArray(l)?l:[l]),t.map((function(t,l){var o,s=`${u}.${t}`;return(0,n.default)(f,s,null!=(o=v[l])?o:t)}))}var o=`${u}.${t}`;return(0,n.default)(f,o,null!=l?l:t)};var n=u(r(d[1]))}),944,[2,921,918]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.useAccessibleColors=function(){var e=n.default.useContext(_r(d[5]).HybridContext).colorMode;return[e.accessibleColors,e.setAccessibleColors,function(){return e.setAccessibleColors(!e.accessibleColors)}]},_e.useColorMode=_e.useAppState=void 0,_e.useColorModeValue=function(e,t){return'dark'===a().colorMode?t:e},_e.useColorScheme=void 0,_e.useModeManager=function(e,o,u){var a=i();o&&(e=a);var s=(0,n.useState)(e),c=(0,r.default)(s,2),l=c[0],f=c[1],v=n.default.useCallback((function(){var e=(0,t.default)((function*(e){u&&(yield u.set(e)),f(e)}));return function(t){return e.apply(this,arguments)}})(),[u]);return(0,n.useEffect)((function(){var r;u&&(r=(0,t.default)((function*(){var t=yield u.get(e);t&&t!==l&&f(t)})),function(){return r.apply(this,arguments)})()}),[l,e,u]),(0,n.useEffect)((function(){!u&&o&&f(a)}),[a,u,o,f]),{colorMode:l,setColorMode:v}};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),o=_r(d[4]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var a=_e.useColorMode=function(){var e=n.default.useContext(_r(d[5]).HybridContext).colorMode;if(void 0===e)throw new Error('useColorMode must be used within a NativeBaseProvider');return e};var s=_e.useAppState=function(){var e=n.default.useMemo((function(){return{getCurrentValue:function(){return o.AppState.currentState},subscribe:function(e){var t=o.AppState.addEventListener('change',e);return function(){o.AppState.removeEventListener?o.AppState.removeEventListener('change',e):t.remove()}}}}),[]);return(0,_r(d[6]).useNativeBaseConfig)('useBreakpointResolvedProps').isSSR?'unknown':(0,_r(d[7]).useSyncExternalStore)(e.subscribe,e.getCurrentValue,e.getCurrentValue)},i=_e.useColorScheme=function(){var e=(0,o.useColorScheme)(),t=(0,n.useState)(e),u=(0,r.default)(t,2),a=u[0],i=u[1],c=s();return(0,n.useEffect)((function(){'active'===c&&i(e)}),[c,e]),a}}),945,[2,349,44,16,18,946,916,947]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.HybridContext=void 0;var o=r(d[0]);e.HybridContext=(0,o.createContext)({colorMode:{colorMode:'light',toggleColorMode:function(){},setColorMode:function(){},accessibleColors:!1,setAccessibleColors:function(){}}})}),946,[16]); +__d((function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])}),947,[948]); +__d((function(_g,_r,i,_a,_m,_e,_d){ +/** + * @license React + * use-sync-external-store-shim.native.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r((function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})}),[t,c,n]),u((function(){return a(f)&&S({inst:f}),t((function(){a(f)&&S({inst:f})}))}),[t]),s(c),c}}),948,[16]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useBreakpointValue=function(t){var o,s=null==(o=(0,n.useWindowDimensions)())?void 0:o.width,u=(0,r(d[1]).useTheme)();if((0,r(d[2]).hasValidBreakpointFormat)(t,u.breakpoints)){var l=(0,r(d[2]).getClosestBreakpoint)(u.breakpoints,s);return(0,r(d[2]).findLastValidBreakpoint)(t,u.breakpoints,l)}return t};var n=r(d[0])}),949,[18,918,935]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useClipboard=function(){var t=l.default.useState(!1),f=(0,n.default)(t,2),p=f[0],s=f[1],c=l.default.useState(''),v=(0,n.default)(c,2),C=v[0],b=v[1],y=(function(){var t=(0,u.default)((function*(t){o.Clipboard&&(yield o.Clipboard.setString(t)),b(t),s(!0)}));return function(u){return t.apply(this,arguments)}})();return{value:C,onCopy:y,hasCopied:p}};var u=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),o=r(d[4])}),950,[2,349,44,16,18]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useControllableProp=function(t,u){var l=n.default.useRef(void 0!==t).current;return[l,l&&void 0!==t?t:u]},e.useControllableState=function(t){var l=t.value,o=t.defaultValue,f=t.onChange,v=n.default.useState(o),c=(0,u.default)(v,2),s=c[0],b=c[1],C=void 0!==l,_=C?l:s,p=n.default.useCallback((function(t){var u='function'==typeof t?t(_):t;C||b(u),f&&f(u)}),[C,f,_]);return[_,p]};var u=t(r(d[1])),n=t(r(d[2]))}),951,[2,44,16]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useDisclose=function(n){var u=t.default.useState(n||!1),f=(0,o.default)(u,2),c=f[0],l=f[1];return{isOpen:c,onOpen:function(){l(!0)},onClose:function(){l(!1)},onToggle:function(){l(!c)}}};var o=n(r(d[1])),t=n(r(d[2]))}),952,[2,44,16]); +__d((function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.useLayout=void 0;var e=t(r(d[1])),u=t(r(d[2]));_e.useLayout=function(){var t=u.default.useState({width:0,height:0}),o=(0,e.default)(t,2),n=o[0],v=o[1];return{onLayout:function(t){v(t.nativeEvent.layout)},layout:n}}}),953,[2,44,16]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useMediaQuery=function(t){var u=(0,n.useWindowDimensions)(),o=null==u?void 0:u.height,c=null==u?void 0:u.width;return f(t,o,c)};var n=r(d[1]),u=t(r(d[2]));function o(t,n,u){for(var o in t)if(!c(o,t[o],u,n))return!1;return!0}function f(t,n,u){var f=[];return Array.isArray(t)?t.forEach((function(t){f.push(o(t,u,n))})):f.push(o(t,u,n)),f}function c(t,n,o,f){var c;if(!((0,u.default)(f)||(0,u.default)(o)||(0,u.default)(n))){switch(t){case'maxWidth':c=(0,u.default)(n)?void 0:f<=n;break;case'minWidth':c=(0,u.default)(n)?void 0:f>=n;break;case'maxHeight':c=(0,u.default)(n)?void 0:o<=n;break;case'minHeight':c=(0,u.default)(n)?void 0:o>=n;break;case'orientation':(0,u.default)(n)||(c=f>o?'landscape'===n:'portrait'===n)}return c}}}),954,[2,18,922]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useNativeBase=function(){var t=(0,r(d[0]).useColorMode)(),u=(0,r(d[1]).useTheme)();return Object.assign({},t,{theme:u})}}),955,[956,918]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useAccessibleColors",{enumerable:!0,get:function(){return r(d[0]).useAccessibleColors}}),Object.defineProperty(e,"useColorMode",{enumerable:!0,get:function(){return r(d[0]).useColorMode}}),Object.defineProperty(e,"useColorModeValue",{enumerable:!0,get:function(){return r(d[0]).useColorModeValue}})}),956,[945]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.usePlatformProps=void 0;var t=o(r(d[1])),n=o(r(d[2])),u=r(d[3]),s=["_web","_ios","_android"];e.usePlatformProps=function(o){var f=o._web,_=o._ios,c=o._android,l=(0,t.default)(o,s);return(0,n.default)(l,(function(){switch(u.Platform.OS){case'web':return f;case'ios':return _;case'android':return c;default:return{}}})())}}),957,[2,4,958,18]); +__d((function(g,r,i,a,m,_e,d){var t='__lodash_hash_undefined__',n=9007199254740991,e='[object Arguments]',o='[object Function]',u='[object Object]',c=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,s={};s['[object Float32Array]']=s['[object Float64Array]']=s['[object Int8Array]']=s['[object Int16Array]']=s['[object Int32Array]']=s['[object Uint8Array]']=s['[object Uint8ClampedArray]']=s['[object Uint16Array]']=s['[object Uint32Array]']=!0,s[e]=s['[object Array]']=s['[object ArrayBuffer]']=s['[object Boolean]']=s['[object DataView]']=s['[object Date]']=s['[object Error]']=s[o]=s['[object Map]']=s['[object Number]']=s[u]=s['[object RegExp]']=s['[object Set]']=s['[object String]']=s['[object WeakMap]']=!1;var l='object'==typeof g&&g&&g.Object===Object&&g,p='object'==typeof self&&self&&self.Object===Object&&self,_=l||p||Function('return this')(),h='object'==typeof _e&&_e&&!_e.nodeType&&_e,v=h&&'object'==typeof m&&m&&!m.nodeType&&m,y=v&&v.exports===h,b=y&&l.process,j=(function(){try{var t=v&&v.require&&v.require('util').types;return t||b&&b.binding&&b.binding('util')}catch(t){}})(),O=j&&j.isTypedArray;function A(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function w(t,n){for(var e=-1,o=Array(t);++e-1},nt.prototype.set=function(t,n){var e=this.__data__,o=at(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this},et.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(Y||nt),string:new rt}},et.prototype.delete=function(t){var n=zt(this,t).delete(t);return this.size-=n?1:0,n},et.prototype.get=function(t){return zt(this,t).get(t)},et.prototype.has=function(t){return zt(this,t).has(t)},et.prototype.set=function(t,n){var e=zt(this,t),o=e.size;return e.set(t,n),this.size+=e.size==o?0:1,this},ot.prototype.clear=function(){this.__data__=new nt,this.size=0},ot.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ot.prototype.get=function(t){return this.__data__.get(t)},ot.prototype.has=function(t){return this.__data__.has(t)},ot.prototype.set=function(t,n){var e=this.__data__;if(e instanceof nt){var o=e.__data__;if(!Y||o.length<199)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new et(o)}return e.set(t,n),this.size=e.size,this};var st,lt=function(t,n,e){for(var o=-1,u=Object(t),c=e(t),f=c.length;f--;){var s=c[st?f:++o];if(!1===n(u[s],s,u))break}return t};function pt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":H&&H in Object(t)?St(t):It(t)}function _t(t){return Wt(t)&&pt(t)==e}function ht(t){return!(!Vt(t)||$t(t))&&(Nt(t)?D:c).test(Mt(t))}function vt(t){if(!Vt(t))return Et(t);var n=Pt(t),e=[];for(var o in t)('constructor'!=o||!n&&T.call(t,o))&&e.push(o);return e}function yt(t,n,e,o,u){t!==n&<(n,(function(c,f){if(u||(u=new ot),Vt(c))bt(t,n,f,e,yt,o,u);else{var s=o?o(kt(t,f),c,f+'',t,n,u):void 0;void 0===s&&(s=c),ut(t,f,s)}}),Qt)}function bt(t,n,e,o,u,c,f){var s=kt(t,e),l=kt(n,e),p=f.get(l);if(p)ut(t,e,p);else{var _,h,v,y=c?c(s,l,e+'',t,n,f):void 0,b=void 0===y;if(b){var j=qt(l),O=!j&&Lt(l),A=!j&&!O&&Jt(l);y=l,j||O||A?qt(s)?y=s:Wt(v=s)&&Ct(v)?y=At(s):O?(b=!1,y=jt(l,!0)):A?(b=!1,_=l,h=!0?Ot(_.buffer):_.buffer,y=new _.constructor(h,_.byteOffset,_.length)):y=[]:Ht(l)||Rt(l)?(y=s,Rt(s)?y=Kt(s):Vt(s)&&!Nt(s)||(y=xt(l))):b=!1}b&&(f.set(l,y),u(y,l,o,c,f),f.delete(l)),ut(t,e,y)}}function dt(t,n){return Bt(Tt(t,n,Zt),t+'')}var gt=J?function(t,n){return J(t,'toString',{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:Zt;function jt(t,n){if(n)return t.slice();var e=t.length,o=L?L(e):new t.constructor(e);return t.copy(o),o}function Ot(t){var n=new t.constructor(t.byteLength);return new C(n).set(new C(t)),n}function At(t,n){var e=-1,o=t.length;for(n||(n=Array(o));++e-1&&t%1==0&&t0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}})(gt);function Mt(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Dt(t,n){return t===n||t!=t&&n!=n}var Rt=_t((function(){return arguments})())?_t:function(t){return Wt(t)&&T.call(t,'callee')&&!V.call(t,'callee')},qt=Array.isArray;function Ct(t){return null!=t&&Gt(t.length)&&!Nt(t)}var Lt=K||function(){return!1};function Nt(t){if(!Vt(t))return!1;var n=pt(t);return n==o||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Gt(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=n}function Vt(t){var n=typeof t;return null!=t&&('object'==n||'function'==n)}function Wt(t){return null!=t&&'object'==typeof t}function Ht(t){if(!Wt(t)||pt(t)!=u)return!1;var n=N(t);if(null===n)return!0;var e=T.call(n,'constructor')&&n.constructor;return'function'==typeof e&&e instanceof e&&I.call(e)==M}var Jt=O?(function(t){return function(n){return t(n)}})(O):function(t){return Wt(t)&&Gt(t.length)&&!!s[pt(t)]};function Kt(t){return wt(t,Qt(t))}function Qt(t){return Ct(t)?it(t,!0):vt(t)}var Xt,Yt=(Xt=function(t,n,e){yt(t,n,e)},dt((function(t,n){var e=-1,o=n.length,u=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(u=Xt.length>3&&'function'==typeof u?(o--,u):void 0,c&&Ut(n[0],n[1],c)&&(u=o<3?void 0:u,o=1),t=Object(t);++e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,r(d[8]).propsFlattener)({props:t,platform:l.Platform.OS,colormode:L.colorMode,state:v||{},currentSpecificityMap:n,previouslyFlattenProps:S||{},cascadePseudoProps:null==h?void 0:h.cascadePseudoProps},o)},M=(0,p.default)({},t.defaultProps||{},z),A={},E={},I={};x.map((function(t){t.baseStyle&&(A=Object.assign({},A,_(['baseStyle'],t))),M.variant&&t.variants&&(E=Object.assign({},E,_(['variants',M.variant],t))),M.size&&null!=t&&t.sizes&&null!=t&&t.sizes[M.size]&&('string'==typeof t.sizes[M.size]||'number'==typeof t.sizes[M.size]?M.size=t.sizes[M.size]:(I=Object.assign({},I,_(['sizes',M.size],t)),M.size=void 0))}));var W=N(M,{},2),F=(0,n.default)(W,2);S=F[0],C=F[1];var Q={};if(O&&B.map((function(t){S[t]&&(Q[t]=S[t])})),B.includes('direction')){var $='direction';S[$]&&(Q[$]=S[$])}var k,w,U,q,D,G,H=(0,r(d[14]).useBreakpointResolvedProps)(Q);if(S=Object.assign({},S,H),A){var J=N(A,C),K=(0,n.default)(J,2);k=K[0],w=K[1]}if(E){var V=N(E,w||C),X=(0,n.default)(V,2);U=X[0],q=X[1],S.variant=void 0}if(I){var Y=N(I,q||w||C),Z=(0,n.default)(Y,2);D=Z[0],G=Z[1]}var ee=(0,p.default)({},k,U,D),te=function(t,n){for(var o in t)n[o]=t[o];return n};for(var ne in ee)ne.startsWith('_')&&S.hasOwnProperty(ne)&&(ee[ne]=te(S[ne],ee[ne])),delete S[ne];var ie=(0,p.default)({},C,w,q,G);return S=y(Object.assign({},ee,S),ie),(0,r(d[11]).omitUndefined)(Object.assign({},S,T))}}),960,[2,44,22,921,958,937,18,16,961,955,962,935,963,956,915]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.propsFlattener=e.compareSpecificity=void 0;var o,n=t(r(d[1])),p=t(r(d[2])),s=1e3,l=10,c=[s,110,100,70,60,55,50,40,30,20,l],u=(o={},(0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)(o,s,0),110,0),100,0),70,0),60,0),50,0),55,0),40,0),30,0),20,0),(0,n.default)(o,l,0)),f={_web:{dependentOn:'platform',priority:l},_ios:{dependentOn:'platform',priority:l},_android:{dependentOn:'platform',priority:l},_light:{dependentOn:'colormode',priority:l},_dark:{dependentOn:'colormode',priority:l},_indeterminate:{dependentOn:'state',respondTo:'isIndeterminate',priority:30},_checked:{dependentOn:'state',respondTo:'isChecked',priority:30},_readOnly:{dependentOn:'state',respondTo:'isReadOnly',priority:30},_invalid:{dependentOn:'state',respondTo:'isInvalid',priority:40},_focus:{dependentOn:'state',respondTo:'isFocused',priority:50},_focusVisible:{dependentOn:'state',respondTo:'isFocusVisible',priority:55},_hover:{dependentOn:'state',respondTo:'isHovered',priority:60},_pressed:{dependentOn:'state',respondTo:'isPressed',priority:70},_disabled:{dependentOn:'state',respondTo:'isDisabled',priority:100},_loading:{dependentOn:'state',respondTo:'isLoading',priority:110},_important:{dependentOn:null,priority:s}},y=e.compareSpecificity=function(t,o,n){if(!t)return!0;if(!o)return!1;for(var p=n?c.length-1:c.length,s=0;so[c[s]])return!1;if(t[c[s]]1&&void 0!==arguments[1]?arguments[1]:{},b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},F=arguments.length>3?arguments[3]:void 0,S=function(t,n){y(b[t],n,!1)?(b[t]=n,h[t]=(0,p.default)({},h[t],o[t])):h[t]=(0,p.default)({},o[t],h[t])};for(var k in o){var j,M=O?Object.assign({},O):Object.assign({},u,(0,n.default)({},20,F));c[null==(j=f[k])?void 0:j.respondTo]||['_dark','_light','_web','_ios','_android','_important'].includes(k)?_({property:k,state:c,platform:l,colormode:s})&&(M[f[k].priority]++,v({props:o[k],colormode:s,platform:l,state:c,currentSpecificity:M,previouslyFlattenProps:P,cascadePseudoProps:T},h,b,F)):void 0===f[k]?k.startsWith('_')?S(k,M):y(b[k],M,!1)&&(b[k]=M,h[k]=o[k]):T?S(k,M):delete h[k]}};e.propsFlattener=function(t,o){var n=t.props,p=t.colormode,s=t.platform,l=t.state,c=t.currentSpecificityMap,u=t.previouslyFlattenProps,y=t.cascadePseudoProps,_={};for(var O in n){var P;void 0===l[null==(P=f[O])?void 0:P.respondTo]&&O.startsWith('_')&&(_[O]=u[O])}var T=c||{};return v({props:n,colormode:p,platform:s,state:l,currentSpecificityMap:c,previouslyFlattenProps:u,cascadePseudoProps:y},_,T,o),[_,T]}}),961,[2,197,958]); +__d((function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useResponsiveSSRProps=function(s){var t=(0,o.useState)(!1),u=(0,n.default)(t,2),f=u[0],v=u[1],p=(0,r(d[3]).useTheme)(),c=(0,r(d[4]).isResponsiveAnyProp)(s,p),R=(0,r(d[5]).useNativeBaseConfig)('useBreakpointResolvedProps').isSSR,S=s;c&&R&&!f&&(S=Object.assign({},S,{key:Math.random()}));return(0,o.useEffect)((function(){c&&R&&v(!0)}),[c,R]),S};var n=s(r(d[1])),o=r(d[2])}),962,[2,44,16,918,935,916]); +__d((function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ResponsiveQueryProvider=e.ResponsiveQueryContext=void 0;var u=s(r(d[1])),n=r(d[2]),o=e.ResponsiveQueryContext=u.default.createContext({disableCSSMediaQueries:!1});e.ResponsiveQueryProvider=function(s){var t=u.default.useMemo((function(){return{disableCSSMediaQueries:s.disableCSSMediaQueries}}),[s.disableCSSMediaQueries]);return(0,n.jsx)(o.Provider,{value:t,children:s.children})}}),963,[2,16,223]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.usePropsWithComponentTheme=function(o,n,t){return(0,r(d[0]).usePropsResolutionWithComponentTheme)(o,n,t)}}),964,[960]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useThemeProps=function(n,o){var p,v=(0,r(d[9]).useNativeBase)(),h=v.theme,P=(0,t.default)(v,c),O=(0,s.default)(h,`components.${n}`),_=null==(p=(0,l.useWindowDimensions)())?void 0:p.width;return f((0,u.default)(h,['components']),P,O,o,_)};var t=n(r(d[1])),o=n(r(d[2])),s=n(r(d[3])),u=n(r(d[4])),l=r(d[5]),c=["theme"],f=function(n,t,s,u,c){var f=(0,r(d[6]).extractInObject)(u,['children','style','onPress','icon','onOpen','onClose']),p=(0,o.default)(f,2),v=p[0],h=p[1],P=(0,r(d[7]).calculateProps)(n,t,s,h,c),O=(0,r(d[8]).filterShadowProps)(P,v,l.Platform.OS);return(0,r(d[6]).omitUndefined)(O)}}),965,[2,4,44,921,942,18,935,919,966,955]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.filterShadowProps=void 0;var s=t(r(d[1])),o=t(r(d[2]));e.filterShadowProps=function(t,n,l){var f;if('web'!==l)return Object.assign({},n,t);var u=null!=(f=n.style)?f:{},c=(0,r(d[3]).extractInObject)(t,['shadowColor','shadowOffset','shadowOpacity','shadowRadius']),w=(0,s.default)(c,2),O=w[0],b=w[1];return(0,o.default)(O)||(u=Object.assign({},u,O)),Object.assign({},b,n,{style:u})}}),966,[2,44,937,935]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.usePropsResolutionTest=function(t,c,u,f){var v,b,h,O,x,P,z,C,R=(0,r(d[7]).extractInObject)(c,['children','onPress','icon','onOpen','onClose'].concat((null==f?void 0:f.ignoreProps)||[])),S=(0,o.default)(R,2),j=S[0],B=S[1],T=['colorScheme','size','variant'].concat((0,n.default)((null==f?void 0:f.resolveResponsively)||[])),k=(0,r(d[8]).useNativeBase)().theme,L=(0,r(d[9]).useColorMode)(),G=(0,l.default)(k,`components.${t}`,{}),M=(0,p.default)({},G.defaultProps||{},B),_=(0,r(d[6]).propsFlattener)({props:M,platform:s.Platform.OS,colormode:L.colorMode,state:u||{},previouslyFlattenProps:{}},2),F=(0,o.default)(_,2),E=F[0],I=F[1],N={};T.map((function(t){E[t]&&(N[t]=E[t])}));var U=(0,r(d[10]).useBreakpointResolvedProps)(N);E=Object.assign({},E,U);var $,q,w={};if(G.baseStyle){w='function'!=typeof G.baseStyle?G.baseStyle:G.baseStyle(Object.assign({theme:k},E,L));var A=(0,r(d[6]).propsFlattener)({props:w,platform:s.Platform.OS,colormode:L.colorMode,state:u||{},currentSpecificityMap:I,previouslyFlattenProps:E},1),D=(0,o.default)(A,2);$=D[0],q=D[1]}var H,J,K=E.variant,Q={};if(K&&G.variants&&G.variants[K]){Q='function'!=typeof G.variants[K]?G.variants[K]:G.variants[K](Object.assign({theme:k},E,L));var V=(0,r(d[6]).propsFlattener)({props:Q,platform:s.Platform.OS,colormode:L.colorMode,state:u||{},currentSpecificityMap:q||I,previouslyFlattenProps:E},1),W=(0,o.default)(V,2);H=W[0],J=W[1],E.variant=void 0}var X,Y,Z=E.size,tt={};if(Z&&G.sizes&&G.sizes[Z]){'string'==typeof G.sizes[Z]||'number'==typeof G.sizes[Z]?E.size=G.sizes[Z]:'function'==typeof G.sizes[Z]?(E.size=void 0,tt=G.sizes[Z](Object.assign({theme:k},E,L))):(E.size=void 0,tt=G.sizes[Z]);var et=(0,r(d[6]).propsFlattener)({props:tt,platform:s.Platform.OS,colormode:L.colorMode,state:u||{},currentSpecificityMap:J||q||I,previouslyFlattenProps:E},1),at=(0,o.default)(et,2);X=at[0],Y=at[1]}var ot=(0,p.default)({},$,H,X);for(var rt in ot)delete E[rt];var nt=(0,p.default)({},I,q,J,Y);E=y(Object.assign({},ot,E),nt);var it=[];if(null!=(v=E.bg)&&v.linearGradient||null!=(b=E.background)&&b.linearGradient||null!=(h=E.bgColor)&&h.linearGradient||null!=(O=E.backgroundColor)&&O.linearGradient){var lt,dt,pt,st='bg';null!=(lt=E.background)&<.linearGradient?st='background':null!=(dt=E.bgColor)&&dt.linearGradient?st='bgColor':null!=(pt=E.backgroundColor)&&pt.linearGradient&&(st='backgroundColor'),E[st].linearGradient.colors=E[st].linearGradient.colors.map((function(t){return(0,l.default)(k.colors,t,t)})),it=['bg','background','backgroundColor','bgColor']}var gt=(0,r(d[7]).extractInObject)(E,it),mt=(0,o.default)(gt,1)[0],ct=null!=(x=null!=(P=E.bg)?P:E.backgroundColor)?x:E.bgColor,ut=(0,r(d[11]).useContrastText)(ct,null==(z=E)||null==(z=z._text)?void 0:z.color);return E._text=ut&&void 0===(null==(C=E)||null==(C=C._text)?void 0:C.color)?Object.assign({color:ut},E._text):E._text,(0,r(d[7]).omitUndefined)(Object.assign({},E,j,mt))};var o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),p=t(r(d[4])),s=r(d[5]),c=['p','padding','px','py','pt','pb','pl','pr','paddingTop','paddingBottom','paddingLeft','paddingRight','m','margin','mx','my','mt','mb','ml','mr','marginTop','marginBottom','marginLeft','marginRight'],u=['paddingTop','paddingBottom','paddingLeft','paddingRight','marginTop','marginBottom','marginLeft','marginRight'],f={mx:['marginRight','marginLeft'],my:['marginTop','marginBottom'],mt:['marginTop'],mb:['marginBottom'],mr:['marginRight'],ml:['marginLeft']};f.margin=[].concat((0,n.default)(f.mx),(0,n.default)(f.my)),f.m=f.margin,f.marginTop=f.mt,f.marginBottom=f.mb,f.marginLeft=f.ml,f.marginRight=f.mr;var v={px:['paddingRight','paddingLeft'],py:['paddingTop','paddingBottom'],pt:['paddingTop'],pb:['paddingBottom'],pr:['paddingRight'],pl:['paddingLeft']};v.padding=[].concat((0,n.default)(v.px),(0,n.default)(v.py)),v.p=v.padding,v.paddingTop=v.pt,v.paddingBottom=v.pb,v.paddingLeft=v.pl,v.paddingRight=v.pr;var b=Object.assign({},v,f);function y(t,o){var n=Object.assign({},t),l={};return c.forEach((function(p){if(p in n){var s=t[p]||n[p];u.includes(p)||(delete n[p],l[p]=o[p]),b[p].forEach((function(t){(0,r(d[6]).compareSpecificity)(l[t],l[p])&&(l[t]=o[p],n[t]=s)}))}})),(0,p.default)({},n)}}),967,[2,44,22,921,958,18,968,935,955,956,915,943]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.propsFlattener=e.compareSpecificity=void 0;var o=t(r(d[1])),n=t(r(d[2])),p=10,s=[100,70,60,55,50,40,30,p,1],l=(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)({},100,0),70,0),60,0),50,0),55,0),40,0),30,0),p,0),1,0),c={_web:{dependentOn:'platform',priority:p},_ios:{dependentOn:'platform',priority:p},_android:{dependentOn:'platform',priority:p},_light:{dependentOn:'colormode',priority:p},_dark:{dependentOn:'colormode',priority:p},_indeterminate:{dependentOn:'state',respondTo:'isIndeterminate',priority:30},_checked:{dependentOn:'state',respondTo:'isChecked',priority:30},_readOnly:{dependentOn:'state',respondTo:'isReadOnly',priority:30},_invalid:{dependentOn:'state',respondTo:'isInvalid',priority:40},_focus:{dependentOn:'state',respondTo:'isFocused',priority:50},_focusVisible:{dependentOn:'state',respondTo:'isFocusVisible',priority:55},_hover:{dependentOn:'state',respondTo:'isHovered',priority:60},_pressed:{dependentOn:'state',respondTo:'isPressed',priority:70},_disabled:{dependentOn:'state',respondTo:'isDisabled',priority:100}},f=e.compareSpecificity=function(t,o,n){if(!t)return!0;if(!o)return!1;for(var p=n?s.length-1:s.length,l=0;lo[s[l]])return!1;if(t[s[l]]1&&void 0!==arguments[1]?arguments[1]:{},b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},F=arguments.length>3?arguments[3]:void 0;for(var P in p){var S,k,j=O?Object.assign({},O):Object.assign({},l,(0,o.default)({},1,F));_[null==(S=c[P])?void 0:S.respondTo]||['_dark','_light','_web','_ios','_android'].includes(P)?u({property:P,state:_,platform:v,colormode:s})&&(j[c[P].priority]++,y({props:p[P],colormode:s,platform:v,state:_,currentSpecificity:j,previouslyFlattenProps:T},h,b,F)):void 0===_[null==(k=c[P])?void 0:k.respondTo]&&(P.startsWith('_')?f(b[P],j,!1)?(b[P]=j,h[P]=(0,n.default)({},h[P],p[P])):h[P]=(0,n.default)({},p[P],h[P]):f(b[P],j,!1)&&(b[P]=j,h[P]=p[P]))}};e.propsFlattener=function(t,o){var n=t.props,p=t.colormode,s=t.platform,l=t.state,f=t.currentSpecificityMap,u=t.previouslyFlattenProps,v={};for(var _ in n){var O;void 0===l[null==(O=c[_])?void 0:O.respondTo]&&_.startsWith('_')&&(v[_]=u[_])}var T=f||{};return y({props:n,colormode:p,platform:s,state:l,currentSpecificityMap:f,previouslyFlattenProps:u},v,T,o),[v,T]}}),968,[2,197,958]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useSafeArea=function(s){var n=(0,r(d[0]).useSafeAreaInsets)(),t=(0,r(d[1]).useTheme)().sizes,o=(0,r(d[2]).getSortedProps)(s),u=o.safeAreaProps,P=o.paddingProps,c=o.sansPaddingProps;if(!Object.keys(u).length)return s;var f=(0,r(d[2]).calculatePaddingProps)(u,P,n,t);return Object.assign({},c,P,f)}}),969,[970,918,979]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))})),Object.keys(r(d[2])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))})),Object.keys(r(d[3])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))}))}),970,[971,974,976,978]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SafeAreaInsetsContext=_e.SafeAreaFrameContext=_e.SafeAreaContext=_e.SafeAreaConsumer=void 0,_e.SafeAreaProvider=function(e){var u,c,v,h,S,p=e.children,x=e.initialMetrics,w=e.initialSafeAreaInsets,y=e.style,A=(0,r.default)(e,o),C=n.useContext(l),b=n.useContext(f),j=n.useState(null!=(u=null!=(c=null!=(v=null==x?void 0:x.insets)?v:w)?c:C)?u:null),P=(0,t.default)(j,2),O=P[0],_=P[1],M=n.useState(null!=(h=null!=(S=null==x?void 0:x.frame)?S:b)?h:{x:0,y:0,width:a.Dimensions.get('window').width,height:a.Dimensions.get('window').height}),I=(0,t.default)(M,2),k=I[0],D=I[1],E=n.useCallback((function(e){var t=e.nativeEvent,r=t.frame,n=t.insets;D((function(e){return!r||r.height===e.height&&r.width===e.width&&r.x===e.x&&r.y===e.y?e:r})),_((function(e){return e&&n.bottom===e.bottom&&n.left===e.left&&n.right===e.right&&n.top===e.top?e:n}))}),[]);return(0,i.jsx)(_r(d[6]).NativeSafeAreaProvider,Object.assign({style:[s.fill,y],onInsetsChange:E},A,{children:null!=O?(0,i.jsx)(f.Provider,{value:k,children:(0,i.jsx)(l.Provider,{value:O,children:p})}):null}))},_e.useSafeArea=function(){return v()},_e.useSafeAreaFrame=function(){var e=n.useContext(f);if(null==e)throw new Error(c);return e},_e.useSafeAreaInsets=v,_e.withSafeAreaInsets=function(e){return n.forwardRef((function(t,r){var n=v();return(0,i.jsx)(e,Object.assign({},t,{insets:n,ref:r}))}))};var t=e(_r(d[1])),r=e(_r(d[2])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),a=_r(d[4]),i=_r(d[5]),o=["children","initialMetrics","initialSafeAreaInsets","style"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var l=_e.SafeAreaInsetsContext=n.createContext(null),f=_e.SafeAreaFrameContext=n.createContext(null);var s=a.StyleSheet.create({fill:{flex:1}});var c='No safe area value available. Make sure you are rendering `` at the top of your app.';function v(){var e=n.useContext(l);if(null==e)throw new Error(c);return e}_e.SafeAreaConsumer=l.Consumer,_e.SafeAreaContext=l}),971,[2,44,4,16,18,223,972]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NativeSafeAreaProvider",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))}),972,[2,973]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;n(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNCSafeAreaProvider',directEventTypes:{topInsetsChange:{registrationName:'onInsetsChange'}},validAttributes:Object.assign({},r(d[2]).ConditionallyIgnoredEventHandlers({onInsetsChange:!0}))};e.default=r(d[3]).get('RNCSafeAreaProvider',(function(){return t}))}),973,[2,267,219,186]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SafeAreaView=void 0;var t=e(_r(d[1])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=f?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),n=r,f=e(_r(d[3])),o=_r(d[4]),a=["edges"];function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}var u={top:'additive',left:'additive',bottom:'additive',right:'additive'};_e.SafeAreaView=n.forwardRef((function(e,n){var i=e.edges,l=(0,t.default)(e,a),c=(0,r.useMemo)((function(){var e,t,r,n;if(null==i)return u;var f=Array.isArray(i)?i.reduce((function(e,t){return e[t]='additive',e}),{}):i;return{top:null!=(e=f.top)?e:'off',right:null!=(t=f.right)?t:'off',bottom:null!=(r=f.bottom)?r:'off',left:null!=(n=f.left)?n:'off'}}),[i]);return(0,o.jsx)(f.default,Object.assign({},l,{edges:c,ref:n}))}))}),974,[2,4,16,975,223]); +__d((function(g,r,i,a,m,e,d){var _=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;_(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNCSafeAreaView',validAttributes:{mode:!0,edges:!0}};e.default=r(d[2]).get('RNCSafeAreaView',(function(){return t}))}),975,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.initialWindowSafeAreaInsets=e.initialWindowMetrics=void 0;var t,l,s=n(r(d[1])),o=e.initialWindowMetrics=null!=(t=null==s.default||null==s.default.getConstants||null==(l=s.default.getConstants())?void 0:l.initialWindowMetrics)?t:null;e.initialWindowSafeAreaInsets=null==o?void 0:o.insets}),976,[2,977]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);e.default=t.TurboModuleRegistry.get('RNCSafeAreaContext')}),977,[18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0})}),978,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaddingBottom=s,e.calculatePaddingLeft=l,e.calculatePaddingProps=function(t,n,f,o){return r(d[3]).themeTools.omitUndefined({pt:p(t,n,f,o),pb:s(t,n,f,o),pl:l(t,n,f,o),pr:u(t,n,f,o)})},e.calculatePaddingRight=u,e.calculatePaddingTop=p,e.getSortedProps=function(t){var f=r(d[3]).themeTools.orderedExtractInObject(t,['safeArea','safeAreaX','safeAreaY','safeAreaTop','safeAreaBottom','safeAreaLeft','safeAreaRight']),o=(0,n.default)(f,2),p=o[0],s=o[1],l=r(d[3]).themeTools.orderedExtractInObject(s,['p','padding','pt','paddingTop','pr','paddingRight','pb','paddingBottom','pl','paddingLeft','px','paddingX','py','paddingY']),u=(0,n.default)(l,2),c=u[0],A=u[1];return{safeAreaProps:p,paddingProps:c,sansPaddingProps:A}};var n=t(r(d[1])),f=t(r(d[2]));function o(t,n,o,p,s){var l=0,u=n.length?o[t[n[n.length-1]]]:0;if(l=(0,f.default)(s)||'boolean'==typeof s?p:'string'==typeof s&&s.includes('px')?parseInt(s,10):o[s],'string'==typeof u){if(u.endsWith('px'))return parseInt(u,10)+parseInt(l,10)+'px';if(u.endsWith('rem'))return parseFloat(u)*r(d[4]).baseFontSize+parseInt(l,10)+'px'}return u?parseInt(u,10)+parseInt(l,10)+'px':parseInt(l,10)+'px'}function p(t,p,s,l){if(!((0,f.default)(t.safeArea)&&(0,f.default)(t.safeAreaTop)&&(0,f.default)(t.safeAreaY))){var u=r(d[3]).themeTools.orderedExtractInObject(t,['safeArea','safeAreaY','safeAreaTop']),A=(0,n.default)(u,1)[0],h=Object.keys(A),b=h.length?A[h[h.length-1]]:void 0;if(s.top||'boolean'!=typeof b&&b)return o(p,c(p,['p','padding','pt','paddingTop','py','paddingY']),l,s.top,b)}}function s(t,p,s,l){if(!((0,f.default)(t.safeArea)&&(0,f.default)(t.safeAreaBottom)&&(0,f.default)(t.safeAreaY))){var u=r(d[3]).themeTools.orderedExtractInObject(t,['safeArea','safeAreaY','safeAreaBottom']),A=(0,n.default)(u,1)[0],h=Object.keys(A),b=h.length?A[h[h.length-1]]:void 0;if(s.bottom||b&&'boolean'!=typeof b)return o(p,c(p,['p','padding','pb','paddingBottom','py','paddingY']),l,s.bottom,b)}}function l(t,p,s,l){if(!((0,f.default)(t.safeArea)&&(0,f.default)(t.safeAreaLeft)&&(0,f.default)(t.safeAreaX))){var u=r(d[3]).themeTools.orderedExtractInObject(t,['safeArea','safeAreaLeft','safeAreaX']),A=(0,n.default)(u,1)[0],h=Object.keys(A),b=h.length?A[h[h.length-1]]:void 0;if(s.left||b&&'boolean'!=typeof b)return o(p,c(p,['p','padding','pl','paddingLeft','px','paddingX']),l,s.left,b)}}function u(t,p,s,l){if(!((0,f.default)(t.safeArea)&&(0,f.default)(t.safeAreaRight)&&(0,f.default)(t.safeAreaX))){var u=r(d[3]).themeTools.orderedExtractInObject(t,['safeArea','safeAreaX','safeAreaRight']),A=(0,n.default)(u,1)[0],h=Object.keys(A),b=h.length?A[h[h.length-1]]:void 0;if(s.right||b&&'boolean'!=typeof b)return o(p,c(p,['p','padding','pr','paddingRight','px','paddingX']),l,s.right,b)}}function c(t,n){return Object.keys(t).filter((function(t){return n.includes(t)}))}}),979,[2,44,922,980,939]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0});var t={theme:!0,themeTools:!0,getColor:!0};Object.defineProperty(_e,"getColor",{enumerable:!0,get:function(){return _r(d[1]).getColor}}),_e.themeTools=_e.theme=void 0;var r=e(_r(d[2])),o=e(_r(d[3])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=n?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o})(_r(d[4]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}_e.themeTools=n,Object.keys(_r(d[5])).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[5])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[5])[e]}}))}));_e.theme=Object.assign({},r.default,{components:o.default,config:{useSystemColorMode:!1,initialColorMode:'light',accessibleColors:!1}})}),980,[2,981,925,985,935,1058]); +__d((function(g,r,i,_a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.typography=e.space=e.propConfig=e.position=e.layout=e.getStyleAndFilteredProps=e.getColor=e.flexbox=e.color=e.border=e.background=void 0;var t=r(d[1]),a=o(r(d[2])),p=function(o){return'number'==typeof o&&!isNaN(o)},s=e.getColor=function(o,t,p){var s='string'==typeof o&&(null==o?void 0:o.match(/:alpha\.\d\d?\d?/));if(s){var l=null==o?void 0:o.match(/^.*?(?=:alpha)/),n=l?l[0]:l,c=s[0].split('.')[1],b=(0,a.default)(p.opacity,c,c),y=b?parseFloat(b):1;return(0,r(d[3]).transparentize)(n,y)(p)}return(0,a.default)(t,o,o)},l=function(o,t){if(o=(0,r(d[4]).convertStringNumberToNumber)('margin',o),!p(o))return(0,a.default)(t,o,o);var s=o<0,l=Math.abs(o),n=(0,a.default)(t,l,l);return p(n)?n*(s?-1:1):s?'-'+n:n},n=e.layout={width:{property:'width',scale:'sizes'},w:{property:'width',scale:'sizes'},height:{property:'height',scale:'sizes'},h:{property:'height',scale:'sizes'},minWidth:{property:'minWidth',scale:'sizes'},minW:{property:'minWidth',scale:'sizes'},minHeight:{property:'minHeight',scale:'sizes'},minH:{property:'minHeight',scale:'sizes'},maxWidth:{property:'maxWidth',scale:'sizes'},maxW:{property:'maxWidth',scale:'sizes'},maxHeight:{property:'maxHeight',scale:'sizes'},maxH:{property:'maxHeight',scale:'sizes'},size:{properties:['width','height'],scale:'sizes'},boxSize:{properties:['width','height'],scale:'sizes'},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0,textAlign:!0},c=e.flexbox={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flexDir:{property:'flexDirection',scale:'flexDirection'},flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0},b=e.position={position:!0,zIndex:{property:'zIndex'},top:{property:'top',scale:'space'},right:{property:'right',scale:'space'},bottom:{property:'bottom',scale:'space'},left:{property:'left',scale:'space'}},y=e.color={color:{property:'color',scale:'colors',transformer:s},tintColor:{property:'tintColor',scale:'colors',transformer:s},backgroundColor:{property:'backgroundColor',scale:'colors',transformer:s},opacity:{property:'opacity',scale:'opacity'},bg:{property:'backgroundColor',scale:'colors',transformer:s},bgColor:{property:'backgroundColor',scale:'colors',transformer:s},background:{property:'backgroundColor',scale:'colors',transformer:s},textDecorationColor:{property:'textDecorationColor',scale:'colors',transformer:s}},f=e.border={borderWidth:{property:'borderWidth',scale:'borderWidths'},borderStyle:{property:'borderStyle',scale:'borderStyles'},borderColor:{property:'borderColor',scale:'colors',transformer:s},borderRadius:{property:'borderRadius',scale:'radii'},borderTop:{property:'borderTop',scale:'borders'},borderTopRadius:{properties:['borderTopLeftRadius','borderTopRightRadius'],scale:'radii'},borderLeftRadius:{properties:['borderTopLeftRadius','borderBottomLeftRadius'],scale:'radii'},borderRightRadius:{properties:['borderTopRightRadius','borderBottomRightRadius'],scale:'radii'},borderTopLeftRadius:{property:'borderTopLeftRadius',scale:'radii'},borderTopRightRadius:{property:'borderTopRightRadius',scale:'radii'},borderRight:{property:'borderRight',scale:'borders'},borderBottom:{property:'borderBottom',scale:'borders'},borderBottomLeftRadius:{property:'borderBottomLeftRadius',scale:'radii'},borderBottomRightRadius:{property:'borderBottomRightRadius',scale:'radii'},borderLeft:{property:'borderLeft',scale:'borders'},borderX:{properties:['borderLeft','borderRight'],scale:'borders'},borderY:{properties:['borderTop','borderBottom'],scale:'borders'},borderTopWidth:{property:'borderTopWidth',scale:'borderWidths'},borderTopColor:{property:'borderTopColor',scale:'colors',transformer:s},borderTopStyle:{property:'borderTopStyle',scale:'borderStyles'},borderBottomWidth:{property:'borderBottomWidth',scale:'borderWidths'},borderBottomColor:{property:'borderBottomColor',scale:'colors',transformer:s},borderBottomStyle:{property:'borderBottomStyle',scale:'borderStyles'},borderLeftWidth:{property:'borderLeftWidth',scale:'borderWidths'},borderLeftColor:{property:'borderLeftColor',scale:'colors',transformer:s},borderLeftStyle:{property:'borderLeftStyle',scale:'borderStyles'},borderRightWidth:{property:'borderRightWidth',scale:'borderWidths'},borderRightColor:{property:'borderRightColor',scale:'colors',transformer:s},borderRightStyle:{property:'borderRightStyle',scale:'borderStyles'},rounded:{property:'borderRadius',scale:'radii'},roundedTopLeft:{property:'borderTopLeftRadius',scale:'radii'},roundedTopRight:{property:'borderTopRightRadius',scale:'radii'},roundedBottomLeft:{property:'borderBottomLeftRadius',scale:'radii'},roundedBottomRight:{property:'borderBottomRightRadius',scale:'radii'},roundedTop:{properties:['borderTopLeftRadius','borderTopRightRadius'],scale:'radii'},borderBottomRadius:{properties:['borderBottomLeftRadius','borderBottomRightRadius'],scale:'radii'},roundedBottom:{properties:['borderBottomLeftRadius','borderBottomRightRadius'],scale:'radii'},roundedLeft:{properties:['borderTopLeftRadius','borderBottomLeftRadius'],scale:'radii'},roundedRight:{properties:['borderTopRightRadius','borderBottomRightRadius'],scale:'radii'}},u=e.background={backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundBlendMode:!0,bgImage:{property:'backgroundImage'},bgImg:{property:'backgroundImage'},bgBlendMode:{property:'backgroundBlendMode'},bgSize:{property:'backgroundSize'},bgPosition:{property:'backgroundPosition'},bgPos:{property:'backgroundPosition'},bgRepeat:{property:'backgroundRepeat'},bgAttachment:{property:'backgroundAttachment'}},h=e.space={margin:{property:'margin',scale:'space',transformer:l},m:{property:'margin',scale:'space',transformer:l},marginTop:{property:'marginTop',scale:'space',transformer:l},mt:{property:'marginTop',scale:'space',transformer:l},marginRight:{property:'marginRight',scale:'space',transformer:l},mr:{property:'marginRight',scale:'space',transformer:l},marginBottom:{property:'marginBottom',scale:'space',transformer:l},mb:{property:'marginBottom',scale:'space',transformer:l},marginLeft:{property:'marginLeft',scale:'space',transformer:l},ml:{property:'marginLeft',scale:'space',transformer:l},marginX:{properties:['marginLeft','marginRight'],scale:'space',transformer:l},mx:{properties:['marginLeft','marginRight'],scale:'space',transformer:l},marginY:{properties:['marginTop','marginBottom'],scale:'space',transformer:l},my:{properties:['marginTop','marginBottom'],scale:'space',transformer:l},padding:{property:'padding',scale:'space'},p:{property:'padding',scale:'space'},paddingTop:{property:'paddingTop',scale:'space'},pt:{property:'paddingTop',scale:'space'},paddingRight:{property:'paddingRight',scale:'space'},pr:{property:'paddingRight',scale:'space'},paddingBottom:{property:'paddingBottom',scale:'space'},pb:{property:'paddingBottom',scale:'space'},paddingLeft:{property:'paddingLeft',scale:'space'},pl:{property:'paddingLeft',scale:'space'},paddingX:{properties:['paddingLeft','paddingRight'],scale:'space'},px:{properties:['paddingLeft','paddingRight'],scale:'space'},paddingY:{properties:['paddingTop','paddingBottom'],scale:'space'},py:{properties:['paddingTop','paddingBottom'],scale:'space'},gap:{property:'gap',scale:'space'}},R=e.typography={fontFamily:{property:'fontFamily',scale:'fonts'},fontSize:{property:'fontSize',scale:'fontSizes'},fontWeight:{property:'fontWeight',scale:'fontWeights',transformer:function(o,t){return o?(0,a.default)(t,o,o).toString():o}},lineHeight:{property:'lineHeight',scale:'lineHeights'},letterSpacing:{property:'letterSpacing',scale:'letterSpacings'},textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,textDecoration:{property:'textDecorationLine'},txtDecor:{property:'textDecorationLine'},textDecorationLine:!0},S=e.propConfig=Object.assign({},y,h,n,c,f,b,R,u,{outline:!0,outlineWidth:!0,outlineColor:!0,outlineStyle:!0,shadow:{scale:'shadows'},cursor:!0,overflow:!0,userSelect:{property:'userSelect'}});e.getStyleAndFilteredProps=function(o){o.style;var a=o.theme,p=(o.debug,o.currentBreakpoint),s=o.getResponsiveStyles,l=o.styledSystemProps,n={},c=Object.entries(a.breakpoints).sort((function(o,t){return o[1]-t[1]})),b=(0,r(d[5]).getStyledFromProps)(l,a,p,S),y=b.styleFromProps,f=b.responsiveStyles;if(f){var u={query:[]};c.forEach((function(o){var t,a=o[0];'base'===a?f&&(u.initial=f.base):f&&a in f&&(null==(t=u.query)||t.push({minWidth:o[1],style:f[a]}))}));var h=s(u),R=h.dataSet,B=h.styles;n=Object.assign({},n,R),y=Object.assign({},y,t.StyleSheet.flatten(B))}return{styleSheet:t.StyleSheet.create({box:y}),styleFromProps:y,dataSet:n}}}),981,[2,18,921,935,982,983]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.convertStringNumberToNumber=void 0;e.convertStringNumberToNumber=function(t,n){return'string'==typeof n&&'fontWeight'!==t&&n&&!isNaN(Number(n))?parseFloat(n):n}}),982,[]); +__d((function(g,r,_i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getStyledFromProps=void 0;e.getStyledFromProps=function(t,n,o,s){var a={},i=null,l=Object.entries(n.breakpoints).sort((function(t,n){return t[1]-n[1]})),y=function(y){var u=t[y],p=s[y];if((0,r(d[0]).hasValidBreakpointFormat)(u,n.breakpoints)){i||(i={});var c=u;if(Array.isArray(c))c.forEach((function(s,a){i[l[a][0]]||(i[l[a][0]]=[]);var u=(0,r(d[1]).getRNKeyAndStyleValue)({config:p,value:s,key:y,styledSystemProps:t,theme:n,currentBreakpoint:o});i[l[a][0]].push(u)}));else for(var f in c){var v=(0,r(d[1]).getRNKeyAndStyleValue)({config:p,value:c[f],key:y,styledSystemProps:t,theme:n,currentBreakpoint:o});i[f]||(i[f]=[]),i[f].push(v)}}else{var k=u,S=(0,r(d[1]).getRNKeyAndStyleValue)({config:p,value:k,key:y,styledSystemProps:t,theme:n,currentBreakpoint:o});a=Object.assign({},a,S)}};for(var u in t)y(u);return{styleFromProps:a,responsiveStyles:i}}}),983,[935,984]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getRNKeyAndStyleValue=void 0;var n=t(r(d[1])),o=r(d[2]),s=t(r(d[3]));e.getRNKeyAndStyleValue=function(t){var f=t.config,l=t.value,u=t.key,c=t.theme,p=t.styledSystemProps,b=t.currentBreakpoint,v={};if(!0===f)v=Object.assign({},v,(0,n.default)({},u,(0,r(d[4]).convertStringNumberToNumber)(u,l)));else if(f){var y=f.property,S=f.scale,N=f.properties,O=f.transformer,h=l;if('string'==typeof(h=O?O(h,c[S],c,p.fontSize):(0,s.default)(c[S],l,l)))if(h.endsWith('px'))h=parseFloat(h);else if(h.endsWith('em')&&'web'!==o.Platform.OS){var j=(0,r(d[5]).resolveValueWithBreakpoint)(p.fontSize,c.breakpoints,b,u);h=parseFloat(h)*parseFloat((0,s.default)(c.fontSizes,j,j))}h=(0,r(d[4]).convertStringNumberToNumber)(u,h),N?N.forEach((function(t){v=Object.assign({},v,(0,n.default)({},t,h))})):v=y?Object.assign({},v,(0,n.default)({},y,h)):Object.assign({},v,h)}return v}}),984,[2,197,18,921,982,919]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),a=e(_r(d[2])),o=e(_r(d[3])),l=e(_r(d[4])),r=e(_r(d[5])),u=oe(_r(d[6])),n=e(_r(d[7])),i=e(_r(d[8])),c=e(_r(d[9])),f=e(_r(d[10])),p=e(_r(d[11])),A=e(_r(d[12])),s=e(_r(d[13])),S=e(_r(d[14])),I=e(_r(d[15])),b=e(_r(d[16])),C=e(_r(d[17])),F=e(_r(d[18])),M=e(_r(d[19])),B=e(_r(d[20])),T=e(_r(d[21])),y=e(_r(d[22])),D=e(_r(d[23])),h=e(_r(d[24])),k=e(_r(d[25])),v=e(_r(d[26])),x=e(_r(d[27])),O=e(_r(d[28])),L=e(_r(d[29])),P=oe(_r(d[30])),_=oe(_r(d[31])),w=oe(_r(d[32])),G=e(_r(d[33])),H=e(_r(d[34])),j=e(_r(d[35])),W=e(_r(d[36])),R=e(_r(d[37])),V=e(_r(d[38])),N=e(_r(d[39])),E=e(_r(d[40])),K=e(_r(d[41])),q=e(_r(d[42])),Z=e(_r(d[43])),z=e(_r(d[44])),J=e(_r(d[45])),Q=e(_r(d[46])),U=e(_r(d[47])),X=e(_r(d[48])),Y=e(_r(d[49])),$=e(_r(d[50])),ee=e(_r(d[51])),te=e(_r(d[52]));function ae(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(ae=function(e){return e?a:t})(e)}function oe(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=ae(t);if(a&&a.has(e))return a.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var u=l?Object.getOwnPropertyDescriptor(e,r):null;u&&(u.get||u.set)?Object.defineProperty(o,r,u):o[r]=e[r]}return o.default=e,a&&a.set(e,o),o}_e.default=Object.assign({FlatList:A.default,KeyboardAvoidingView:s.default,ScrollView:S.default,SectionList:I.default,StatusBar:b.default,Accordion:_r(d[53]).Accordion,AccordionItem:_r(d[53]).AccordionItem,AccordionIcon:_r(d[53]).AccordionIcon,AccordionSummary:_r(d[53]).AccordionSummary,AccordionDetails:_r(d[53]).AccordionDetails,Actionsheet:_r(d[54]).Actionsheet,ActionsheetContent:_r(d[54]).ActionsheetContent,ActionsheetItem:_r(d[54]).ActionsheetItem,Alert:_r(d[55]).Alert,AlertIcon:_r(d[55]).AlertIcon,AspectRatio:t.default,Avatar:a.default,AvatarBadge:o.default,AvatarGroup:l.default,Badge:r.default,Box:p.default,Breadcrumb:_r(d[56]).Breadcrumb,BreadcrumbText:_r(d[56]).BreadcrumbText,BreadcrumbIcon:_r(d[56]).BreadcrumbIcon,Button:u.default,ButtonGroup:u.ButtonGroup,Card:n.default,Center:i.default,Circle:D.default,Checkbox:c.default,CheckboxGroup:f.default,CircularProgress:C.default,Code:F.default,Container:M.default,Divider:y.default,Fade:_r(d[57]).Fade,FAB:$.default,Flex:_r(d[58]).Flex,Spacer:_r(d[58]).Spacer,FormControl:_r(d[59]).FormControl,FormControlLabel:_r(d[59]).FormControlLabel,FormControlHelperText:_r(d[59]).FormControlHelperText,FormControlErrorMessage:_r(d[59]).FormControlErrorMessage,Heading:k.default,HStack:B.default,VStack:T.default,Icon:v.default,IconButton:x.default,Image:_r(d[60]).Image,Input:_r(d[61]).Input,InputLeftAddon:ee.default,InputRightAddon:te.default,Kbd:O.default,Link:L.default,List:_r(d[62]).List,ListItem:_r(d[62]).ListItem,ListIcon:_r(d[62]).ListIcon,Menu:P.default,MenuGroup:P.MenuGroup,MenuItem:P.MenuItem,Modal:_r(d[63]).Modal,ModalContent:_r(d[63]).ModalContent,ModalHeader:_r(d[63]).ModalHeader,ModalBody:_r(d[63]).ModalBody,ModalFooter:_r(d[63]).ModalFooter,ModalOverlay:_r(d[63]).ModalOverlay,ModalCloseButton:_r(d[63]).ModalCloseButton,AlertDialog:_r(d[64]).AlertDialog,AlertDialogContent:_r(d[64]).AlertDialogContent,AlertDialogHeader:_r(d[64]).AlertDialogHeader,AlertDialogBody:_r(d[64]).AlertDialogBody,AlertDialogFooter:_r(d[64]).AlertDialogFooter,AlertDialogOverlay:_r(d[64]).AlertDialogOverlay,AlertDialogCloseButton:_r(d[64]).AlertDialogCloseButton,NumberInput:w.default,NumberInputStepper:w.NumberInputStepper,PinInput:G.default,Pressable:H.default},_,{Progress:j.default,Radio:W.default,RadioGroup:R.default,ScaleFade:_r(d[57]).ScaleFade,Select:_r(d[65]).Select,SelectItem:_r(d[65]).SelectItem,SimpleGrid:h.default,Skeleton:_r(d[66]).Skeleton,SkeletonText:_r(d[66]).SkeletonText,SliderFilledTrack:_r(d[67]).SliderFilledTrack,SliderThumb:_r(d[67]).SliderThumb,SliderTrack:_r(d[67]).SliderTrack,Slider:_r(d[67]).Slider,Slide:_r(d[57]).Slide,SlideFade:_r(d[57]).SlideFade,Spinner:V.default,Square:U.default,Stack:Q.default,Stat:N.default,Switch:E.default,Tabs:K.default,Tag:q.default,Text:Z.default,AppBar:z.default,TextArea:J.default,TextField:_r(d[68]).TextField,Toast:_r(d[69]).Toast,TypeAheadSearchItem:_r(d[70]).TypeAheadSearchItem,View:X.default,Wrap:_r(d[71]).Wrap,ZStack:Y.default,Tooltip:_r(d[72]).Tooltip})}),985,[2,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{ratio:1.3333333333333333}}}),986,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(t,o,l){return{width:t,height:t,_text:{fontSize:o},_badgeSize:l}}var o={xs:t('6','2xs','2'),sm:t('8','xs','3'),md:t('12','md','4'),lg:t('16','xl','5'),xl:t('24','3xl','6'),'2xl':t('32','5xl','7')};e.default={baseStyle:function(t){var o=t.name;return{bg:o?(0,r(d[0]).randomColor)({string:(0,r(d[0]).getRandomString)(5)+o}):'gray.400',position:'relative',justifyContent:'center',alignItems:'center',borderRadius:'full',_text:{fontWeight:600,color:'text.50'},_image:{borderRadius:'full',alt:'--',_alt:{fontWeight:600},style:{height:'100%',width:'100%'}},borderColor:'gray.800',_dark:{borderColor:'white'}}},sizes:o,defaultProps:{size:'md'}}}),987,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{borderRadius:'full',borderWidth:2,bg:'success.600',size:3,position:'absolute',right:0,bottom:0,_light:{borderColor:'muted.50'},_dark:{borderColor:'muted.900'}}}}}),988,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(t){return{flexDirection:t.isVertical?'column-reverse':'row-reverse',space:-4,_avatar:{borderWidth:2},_hiddenAvatarPlaceholder:{_text:{color:'text.50'}},_light:{_avatar:{borderColor:'muted.50'},_hiddenAvatarPlaceholder:{bg:'gray.600'}},_dark:{_avatar:{borderColor:'muted.900'},_hiddenAvatarPlaceholder:{bg:'gray.600'}}}},defaultProps:{isVertical:!1}}}),989,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={solid:function(o){return{_text:{color:'text.50'},_icon:{color:'text.50'},bg:`${(0,r(d[0]).getColorScheme)(o)}.600`,borderWidth:'1',borderColor:'transparent',borderRadius:'2'}},subtle:function(o){var t=(0,r(d[0]).getColorScheme)(o);return{_text:{color:`${t}.900`},_icon:{color:`${t}.900`},bg:`${t}.100`,_dark:{bg:`${t}.300`},borderWidth:'1',borderRadius:'2',borderColor:'transparent'}},outline:function(o){var t=(0,r(d[0]).getColorScheme)(o);return{_text:{color:`${t}.600`},_icon:{color:`${t}.600`},borderColor:`${t}.600`,_dark:{_text:{color:`${t}.300`},_icon:{color:`${t}.300`},borderColor:`${t}.300`},borderRadius:'2',borderWidth:'1'}}};e.default={baseStyle:{flexDirection:'row',justifyContent:'center',space:1,px:'2',py:'0.5',alignItems:'center',_text:{fontSize:'xs',fontWeight:'medium'}},variants:o,defaultProps:{variant:'subtle',colorScheme:'muted',size:'md'}}}),990,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ButtonGroup=void 0;var o={ghost:function(o){var t=o.colorScheme;return{_text:{color:`${t}.600`},_icon:{color:`${t}.600`},_spinner:{color:`${t}.600`},_hover:{bg:`${t}.600:alpha.10`},_pressed:{bg:`${t}.600:alpha.20`},_dark:{_text:{color:`${t}.500`},_icon:{color:`${t}.500`},_spinner:{color:`${t}.500`},_hover:{bg:`${t}.500:alpha.10`},_pressed:{bg:`${t}.500:alpha.20`}}}},outline:function(o){var t=o.colorScheme;return{borderWidth:'1px',borderColor:'muted.300',_text:{color:`${t}.600`},_icon:{color:`${t}.600`},_spinner:{color:`${t}.600`},_hover:{bg:`${t}.600:alpha.10`},_pressed:{bg:`${t}.600:alpha.20`},_dark:{borderColor:'muted.700',_text:{color:`${t}.500`},_icon:{color:`${t}.500`},_spinner:{color:`${t}.500`},_hover:{bg:`${t}.500:alpha.10`},_pressed:{bg:`${t}.500:alpha.20`}}}},solid:function(o){var t=o.colorScheme;return{_text:{color:'text.50'},_icon:{color:'text.50'},_spinner:{color:'text.50'},bg:`${t}.600`,_hover:{bg:`${t}.700`},_pressed:{bg:`${t}.800`},_dark:{bg:`${t}.600`,_hover:{bg:`${t}.700`},_pressed:{bg:`${t}.800`}}}},subtle:function(o){var t=o.colorScheme;return{bg:`${t}.100`,_text:{color:`${t}.900`},_icon:{color:`${t}.900`},_spinner:{color:`${t}.900`},_hover:{bg:`${t}.200`},_pressed:{bg:`${t}.300`},_dark:{bg:`${t}.300`,_hover:{bg:`${t}.200`},_pressed:{bg:`${t}.100`}}}},link:function(o){var t=o.colorScheme;return{_icon:{color:`${t}.600`},_spinner:{color:`${t}.600`},_hover:{_text:{textDecorationLine:'underline'}},_pressed:{_text:{color:`${t}.800`,textDecorationLine:'underline'}},_text:{color:`${t}.600`},_dark:{_text:{color:`${t}.500`},_pressed:{_text:{color:`${t}.300`}}}}},unstyled:{}};e.ButtonGroup={baseStyle:{direction:'row'},defaultProps:{space:2}},e.default={baseStyle:function(o){var t=o.theme.colors.primary;return{borderRadius:'sm',flexDirection:'row',justifyContent:'center',alignItems:'center',_web:{_disabled:{cursor:'not-allowed'},_loading:{cursor:'not-allowed'},cursor:'pointer',userSelect:'none'},_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:`${t[400]} 0px 0px 0px 2px`}}},_dark:{_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:`${t[500]} 0px 0px 0px 2px`}}}},_stack:{space:'1.5',alignItems:'center'},_loading:{opacity:'40'},_disabled:{opacity:'40'},_spinner:{size:'sm',focusable:!1}}},variants:o,sizes:{lg:{px:'3',py:'3',_text:{fontSize:'md'},_icon:{size:'md'}},md:{px:'3',py:'2.5',_text:{fontSize:'sm'},_icon:{size:'sm'}},sm:{px:'3',py:'2',_text:{fontSize:'xs'},_icon:{size:'sm'}},xs:{px:'3',py:'2',_text:{fontSize:'2xs'},_icon:{size:'xs'}}},defaultProps:{variant:'solid',size:'md',colorScheme:'primary'}}}),991,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{shadow:4,borderRadius:'md',padding:4,overflow:'hidden'},defaultProps:{}}}),992,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{display:'flex',alignItems:'center',justifyContent:'center'},sizes:{xs:{height:10,width:10},sm:{height:12,width:12},md:{height:16,width:16},lg:{height:24,width:24},xl:{height:32,width:32},'2xl':{height:40,width:40}}}}),993,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(o){var t=o.colorScheme,l=o.theme.colors;return{justifyContent:'flex-start',flexDirection:'row',borderWidth:2,borderRadius:'sm',opacity:1,p:.5,bg:'muted.50',borderColor:'muted.400',_text:{color:'darkText',ml:2},_icon:{color:"muted.50"},_checked:{borderColor:`${t}.600`,bg:`${t}.600`,_hover:{borderColor:`${t}.700`,bg:`${t}.700`,_disabled:{borderColor:`${t}.600`,bg:`${t}.600`}},_pressed:{borderColor:`${t}.800`,bg:`${t}.800`}},_hover:{borderColor:'muted.500',_disabled:{borderColor:'muted.400'}},_pressed:{borderColor:'muted.600'},_invalid:{borderColor:'error.600'},_dark:{bg:'muted.900',borderColor:'muted.500',_text:{color:'lightText'},_icon:{color:"muted.900"},_checked:{borderColor:`${t}.500`,bg:`${t}.500`,_hover:{borderColor:`${t}.400`,bg:`${t}.400`,_disabled:{borderColor:`${t}.500`,bg:`${t}.500`}},_pressed:{borderColor:`${t}.300`,bg:`${t}.300`}},_hover:{borderColor:'muted.400',_disabled:{borderColor:'muted.500'}},_pressed:{borderColor:'muted.300'},_invalid:{borderColor:'error.500'}},_stack:{direction:'row',alignItems:'center',space:2,_web:{cursor:o.isDisabled?'not-allowed':'pointer'}},_focusVisible:{_web:{style:{outlineWidth:'2px',outlineColor:l[t][400],outlineStyle:'solid'}}},_disabled:{_web:{cursor:'not-allowed'},opacity:.4}}},sizes:{lg:{_icon:{size:5},_text:{fontSize:'xl'}},md:{_icon:{size:4},_text:{fontSize:'lg'}},sm:{_icon:{size:3},_text:{fontSize:'md'}}},defaultProps:{defaultIsChecked:!1,size:'sm',colorScheme:'primary'}}}),994,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{alignItems:'flex-start'}}}}),995,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),996,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),997,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),998,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),999,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),1000,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),1001,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(t){var h=(0,r(d[0]).getColorScheme)(t);return{color:(0,r(d[0]).mode)(`${h}.600`,`${h}.500`)(t),trackColor:(0,r(d[0]).mode)(`${h}.200`,`${h}.800`)(t)}},sizes:{xs:{height:6,width:6},sm:{height:8,width:8},md:{height:16,width:16},lg:{height:20,width:20},xl:{height:24,width:24},'2xl':{height:32,width:32}},defaultProps:{thickness:8,colorScheme:'primary',size:'lg'}}}),1002,[935]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),f=r(d[2]),l=o.default.variants,s=o.default.defaultProps,u={_text:{fontFamily:'ios'===f.Platform.OS?'Courier':'monospace',fontSize:'sm'},borderRadius:'sm',px:2,py:1};e.default={baseStyle:u,variants:l,defaultProps:s}}),1003,[2,990,18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(t){var n=t.centerContent;return{maxWidth:'80%',alignItems:n?'center':'flex-start',_text:{textAlign:n?'center':'left'}}}}}),1004,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{},sizes:{}}}),1005,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{},sizes:{}}}),1006,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(t){var n=t.orientation,o=t.thickness,u='vertical'===n?{width:`${o}px`,height:'100%'}:{width:'100%',height:`${o}px`};return Object.assign({bg:'muted.300',_dark:{bg:'muted.600'}},u)},defaultProps:{orientation:'horizontal',thickness:'1'}}}),1007,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{rounded:'full',alignItems:'center',justifyContent:'center'},sizes:{xs:{height:10,width:10},sm:{height:12,width:12},md:{height:16,width:16},lg:{height:24,width:24},xl:{height:32,width:32},'2xl':{height:40,width:40}}}}),1008,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),1009,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{color:'text.900',_dark:{color:'text.50'},fontWeight:'bold',lineHeight:'sm'}},sizes:{'4xl':{fontSize:{base:'6xl',md:'7xl'},letterSpacing:'xl'},'3xl':{fontSize:{base:'5xl',md:'6xl'},letterSpacing:'xl'},'2xl':{fontSize:{base:'4xl',md:'5xl'}},xl:{fontSize:{base:'3xl',md:'4xl'}},lg:{fontSize:{base:'2xl',md:'3xl'}},md:{fontSize:'xl'},sm:{fontSize:'md'},xs:{fontSize:'sm'}},defaultProps:{size:'lg'}}}),1010,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{color:'muted.500',_dark:{color:'muted.400'}}},sizes:{'2xs':2,xs:3,sm:4,md:5,lg:6,xl:7,'2xl':8,'3xl':9,'4xl':10,'5xl':12,'6xl':16},defaultProps:{size:'sm'}}}),1011,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={ghost:function(o){var c=o.colorScheme;return{_icon:{color:`${c}.600`},_hover:{bg:`${c}.600:alpha.10`},_pressed:{bg:`${c}.600:alpha.20`},_dark:{_icon:{color:`${c}.500`},_hover:{bg:`${c}.500:alpha.10`},_pressed:{bg:`${c}.500:alpha.20`}}}},outline:function(o){var c=o.colorScheme;return{borderWidth:'1px',borderColor:`${c}.600`,_icon:{color:`${c}.600`},_hover:{bg:`${c}.700`,_icon:{color:'muted.50'}},_pressed:{bg:`${c}.800`,_icon:{color:'muted.50'}},_focus:{bg:`${c}.600`,_icon:{color:'muted.50'}},_dark:{borderColor:`${c}.500`,_icon:{color:`${c}.500`},_hover:{bg:`${c}.400`,_icon:{color:'muted.900'}},_pressed:{bg:`${c}.300`,_icon:{color:'muted.900'}},_focus:{bg:`${c}.500`,_icon:{color:'muted.900'}}}}},solid:function(o){var c=o.colorScheme;return{bg:`${c}.600`,_hover:{bg:`${c}.700`},_pressed:{bg:`${c}.800`},_icon:{color:'muted.50'},_dark:{bg:`${c}.500`,_hover:{bg:`${c}.400`},_pressed:{bg:`${c}.300`,_icon:{color:'muted.900'}},_icon:{color:'muted.900'}}}},subtle:function(o){var c=o.colorScheme;return{_text:{color:`${c}.900`},_icon:{color:`${c}.900`},bg:`${c}.100`,_hover:{bg:`${c}.200`},_pressed:{bg:`${c}.300`},_dark:{bg:`${c}.300`,_hover:{bg:`${c}.200`},_pressed:{bg:`${c}.100`}}}},link:function(o){var c=o.colorScheme;return{_spinner:{color:`${c}.600`},_icon:{color:`${c}.600`},_hover:{_icon:{color:`${c}.700`}},_pressed:{_icon:{color:`${c}.800`}},_dark:{_icon:{color:`${c}.500`},_hover:{_icon:{color:`${c}.400`}},_pressed:{_icon:{color:`${c}.300`}}}}},unstyled:function(){return{_icon:{color:'muted.900'},_dark:{_icon:{color:'muted.50'}}}}};e.default={baseStyle:function(o){var c=o.colorScheme,l=o.theme.colors;return{borderRadius:'sm',flexDirection:'row',justifyContent:'center',alignItems:'center',_web:{_disabled:{cursor:'not-allowed'},_loading:{cursor:'not-allowed'},cursor:'pointer',userSelect:'none'},_focus:{borderColor:`${c}.400`},_focusVisible:{_web:{style:{outlineWidth:'2px',outlineColor:`${l[c][600]}`,outlineStyle:'solid'}}},_loading:{opacity:'40'},_disabled:{opacity:'40'},_dark:{_focusVisible:{_web:{style:{outlineWidth:'2px',outlineColor:`${l[c][500]}`,outlineStyle:'solid'}}}}}},variants:o,sizes:{lg:{p:'3',_icon:{size:'lg'}},md:{p:'2.5',_icon:{size:'md'}},sm:{p:'2',_icon:{size:'sm'}},xs:{p:'1.5',_icon:{size:'xs'}}},defaultProps:{variant:'ghost',size:'md',colorScheme:'primary'}}}),1012,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]);e.default={baseStyle:function(t){return{bg:(0,r(d[1]).mode)('muted.200','muted.700')(t),borderColor:(0,r(d[1]).mode)('muted.300','muted.600')(t),borderWidth:2,borderBottomWidth:4,shadow:1,borderRadius:'md',px:2,_text:{fontSize:'sm',fontWeight:'bold',fontFamily:'ios'===o.Platform.OS?'Courier':'monospace'}}},defaultProps:{}}}),1013,[18,935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{width:'auto',height:'auto'}},defaultProps:{isUnderlined:!0}}}),1014,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MenuItem=e.MenuGroup=void 0;var t={py:2,borderRadius:'sm',shadow:6,bg:'muted.50',_dark:{bg:'muted.800'},_presenceTransition:{initial:{opacity:0},animate:{opacity:1,translateY:0,transition:{duration:200}},exit:{opacity:0,transition:{duration:150}},style:r(d[0]).StyleSheet.absoluteFill},_overlay:{unmountOnExit:!0},_backdrop:{bg:'transparent'}};e.default={baseStyle:t},e.MenuGroup={baseStyle:{_title:{fontSize:'xs',textTransform:'uppercase',color:'text.500',_dark:{color:'text.400'}},p:3}},e.MenuItem={baseStyle:{px:3,py:2,_web:{outlineWidth:0},_stack:{alignItems:'center',px:3,space:3},_icon:{size:4,opacity:0,color:'muted.500'},_text:{color:'text.900'},_disabled:{_text:{color:'text.400'}},_hover:{bg:'muted.200'},_focus:{bg:'muted.300'},_pressed:{bg:'muted.400'},_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:"none"},bg:'muted.300'}},_dark:{_text:{color:'text.50'},_disabled:{_text:{color:'text.600'}},_hover:{bg:'muted.700'},_focus:{bg:'muted.600'},_pressed:{bg:'muted.500'},_icon:{color:'muted.400'},_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:"none"},bg:'muted.600'}}},_checked:{_icon:{opacity:1}}},defaultProps:{}}}),1015,[18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PopoverHeader=e.PopoverFooter=e.PopoverContent=e.PopoverCloseButton=e.PopoverBody=e.PopoverArrow=e.Popover=void 0;e.Popover={baseStyle:function(){return{_overlay:{unmountOnExit:!0}}}},e.PopoverCloseButton={baseStyle:function(){return{position:'absolute',right:3,top:3,zIndex:1,p:'2',bg:'transparent',borderRadius:'sm',_web:{outlineWidth:0,cursor:'pointer'},_icon:{size:'4'},_light:{_icon:{color:'muted.500'},_hover:{bg:'muted.200'},_pressed:{bg:'muted.300'}},_dark:{_icon:{color:'muted.400'},_hover:{bg:'muted.700'},_pressed:{bg:'muted.600'}}}}},e.PopoverBody={baseStyle:function(){return{p:'3',shadow:'6',bg:'muted.50',_text:{color:'text.900'},_dark:{bg:'muted.800',_text:{color:'text.50'}}}}},e.PopoverContent={baseStyle:function(){return{borderColor:'muted.300',_text:{color:'text.900'},_dark:{borderColor:'muted.700',_text:{color:'text.50'}},borderWidth:1,rounded:'md',overflow:'hidden'}}},e.PopoverHeader={baseStyle:function(){return{_web:{accessibilityRole:'header'},p:'4',borderBottomWidth:'1',_text:{fontSize:'md',fontWeight:'700',lineHeight:'sm',color:'text.900'},bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700',_text:{color:'text.50'}}}}},e.PopoverArrow={baseStyle:function(){return{bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700'}}}},e.PopoverFooter={baseStyle:function(){return{p:'4',shadow:'6',flexDirection:'row',justifyContent:'flex-end',flexWrap:'wrap',borderTopWidth:1,bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700'}}}}}),1016,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.NumberInputStepper=void 0;var t={size:'sm',step:1,min:-1/0,max:1/0,defaultValue:'0',keepWithinRange:!0,clampValueOnBlur:!0,focusInputOnChange:!0,getAriaValueText:!0};e.default={defaultProps:t},e.NumberInputStepper={baseStyle:function(t){return{bg:(0,r(d[0]).mode)('primary.600','primary.200')(t),iconColor:(0,r(d[0]).mode)('gray.50','gray.800')(t),_active:{},_disabled:{opacity:.5}}}}}),1017,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={sizes:{'2xl':{fontSize:'2xl',p:3,width:'56px',height:'56px',textAlign:'center',borderRadius:'lg'},xl:{fontSize:'xl',p:3,width:'52px',height:'52px',textAlign:'center',borderRadius:'lg'},lg:{fontSize:'lg',p:2,width:'48px',height:'48px',textAlign:'center',borderRadius:'md'},md:{fontSize:'md',p:2,width:'40px',height:'40px',textAlign:'center',borderRadius:'md'},sm:{fontSize:'sm',p:1,width:'30px',height:'30px',textAlign:'center',borderRadius:'md'},xs:{fontSize:'xs',p:1,width:'24px',height:'24px',textAlign:'center',borderRadius:'md'}},defaultProps:{placeholder:'\u25cb',size:'md',manageFocus:!0,space:1}}}),1018,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(o){var t=o.theme.colors.primary;return{_focusVisible:{_web:{style:{outlineWidth:0,boxShadow:`${t[400]} 0px 0px 0px 2px`}}},_dark:{_focusVisible:{_web:{style:{outlineWidth:0,boxShadow:`${t[500]} 0px 0px 0px 2px`}}}}}},defaultProps:{}}}),1019,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(t){var l=t.colorScheme;return{overflow:'hidden',_filledTrack:{bg:`${l}.600`,shadow:0,height:'100%',display:'flex',alignItems:'center',justifyContent:'center',rounded:'full',_text:{color:'white',fontWeight:'bold'}},bg:'muted.200',_dark:{bg:'muted.700',_filledTrack:{bg:`${l}.400`}}}},defaultProps:{colorScheme:'primary',size:'sm',rounded:'full',min:0,max:100,value:0,isIndeterminate:!1},sizes:{xs:{height:1},sm:{height:2},md:{height:3},lg:{height:4},xl:{height:5},'2xl':{height:6}}}}),1020,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(o){var l=o.colorScheme,t=o.theme.colors;return{borderWidth:2,borderRadius:'full',p:1,bg:'muted.50',borderColor:'muted.400',_checked:{borderColor:`${l}.600`,_icon:{color:`${l}.600`},_hover:{borderColor:`${l}.700`,_icon:{color:`${l}.700`},_disabled:{borderColor:`${l}.600`,_icon:{color:`${l}.600`}}},_pressed:{borderColor:`${l}.800`,_icon:{color:`${l}.800`}}},_hover:{borderColor:'muted.500',_disabled:{borderColor:'muted.400'},_checked:{borderColor:`${l}.600`}},_pressed:{borderColor:'muted.600'},_invalid:{borderColor:'error.600'},_dark:{bg:'muted.900',borderColor:'muted.500',_checked:{borderColor:`${l}.500`,_icon:{color:`${l}.500`},_hover:{borderColor:`${l}.400`,_icon:{color:`${l}.400`},_disabled:{borderColor:`${l}.500`,_icon:{color:`${l}.500`}}},_pressed:{borderColor:`${l}.300`,_icon:{color:`${l}.300`}}},_hover:{borderColor:'muted.400',_disabled:{borderColor:'muted.500'},_checked:{borderColor:`${l}.600`}},_pressed:{borderColor:'muted.300'},_invalid:{borderColor:'error.500'}},_stack:{direction:'row',alignItems:'center',space:2,_web:{cursor:o.isDisabled?'not-allowed':'pointer'}},_disabled:{opacity:'0.6',_icon:{bg:'transparent'},_stack:{opacity:'0.6'}},_focusVisible:{_web:{style:{outlineWidth:'2px',outlineColor:t[l][400],outlineStyle:'solid'}}}}},sizes:{lg:{_icon:{size:4},_text:{fontSize:'lg'}},md:{_icon:{size:3},_text:{fontSize:'md'}},sm:{_icon:{size:2},_text:{fontSize:'sm'}}},defaultProps:{defaultIsChecked:!1,size:'md',colorScheme:'primary'}}}),1021,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{alignItems:'flex-start'}}}}),1022,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{color:'primary.600'},sizes:{sm:'small',lg:'large'},defaultProps:{size:'small'}}}),1023,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={defaultProps:{_statLabel:{fontSize:'xl'},_statNumber:{fontSize:'4xl',fontWeight:'bold',my:2},_statHelpText:{_text:{color:'gray.500',fontSize:'xl'},flexDirection:'row',alignItems:'center'},_statGroup:{flexWrap:'wrap',space:4,justifyContent:'space-between'}}}}),1024,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(o){var l=o.colorScheme;return{_disabled:{opacity:.4},_invalid:{borderColor:'error.600',borderWidth:2,borderRadius:12},onThumbColor:'muted.50',offThumbColor:'muted.50',offTrackColor:'muted.300',onTrackColor:`${l}.600`,_hover:{offTrackColor:'muted.400',onTrackColor:`${l}.700`},_dark:{offTrackColor:'muted.700',onTrackColor:`${l}.500`,_hover:{offTrackColor:'muted.600',onTrackColor:`${l}.400`},_invalid:{borderColor:'error.500'}}}},sizes:{sm:{style:{transform:[{scale:.75}]}},md:{},lg:{style:{transform:[{scale:1.25}]},margin:1}},defaultProps:{size:'md',colorScheme:'primary'}}}),1025,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={outline:function(t){var o=(0,r(d[0]).getColorFormColorScheme)(t),l=t.colorScheme,n=t.status;return l=(0,r(d[0]).getColorScheme)(t,'primary'!==l?l:n),{activeTabStyle:{borderColor:o,_text:{color:(0,r(d[0]).mode)(`${l}.600`,`${l}.200`)(t)},_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)},borderBottomWidth:2},inactiveTabStyle:{borderColor:'transparent',borderBottomWidth:2,_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)}},tabBarStyle:{borderBottomWidth:2,borderColor:(0,r(d[0]).mode)('muted.200','muted.500')(t)}}},filled:function(t){var o=(0,r(d[0]).getColorFormColorScheme)(t),l=t.colorScheme,n=t.status;return l=(0,r(d[0]).getColorScheme)(t,'primary'!==l?l:n),{activeTabStyle:{borderColor:o,_text:{color:(0,r(d[0]).mode)(`${l}.600`,`${l}.200`)(t)},_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)},borderBottomWidth:2,bg:(0,r(d[0]).mode)(`${l}.100`,`${l}.700`)(t)},inactiveTabStyle:{borderColor:'transparent',borderBottomWidth:2,_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)}},tabBarStyle:{borderBottomWidth:2,borderColor:(0,r(d[0]).mode)('muted.200','muted.500')(t)}}},'filled-outline':function(t){var o=(0,r(d[0]).getColorFormColorScheme)(t),l=t.colorScheme,n=t.status;return l=(0,r(d[0]).getColorScheme)(t,'primary'!==l?l:n),{activeTabStyle:{borderColor:o,_text:{color:(0,r(d[0]).mode)(`${l}.600`,`${l}.200`)(t)},_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)},borderBottomWidth:2},inactiveTabStyle:{borderColor:'transparent',borderBottomWidth:2,_hover:{bg:(0,r(d[0]).mode)(`${l}.50`,`${l}.800`)(t)}},tabBarStyle:{borderBottomWidth:2,borderColor:(0,r(d[0]).mode)('muted.200','muted.500')(t),bg:(0,r(d[0]).mode)(`${l}.100`,`${l}.700`)(t)}}}};e.default={baseStyle:function(t){var o=(0,r(d[0]).getColorFormColorScheme)(t);return{activeTabStyle:{justifyContent:'center',alignItems:'center',mb:'-2px',flexDirection:'row',_text:{fontSize:'sm',fontWeight:'bold'}},inactiveTabStyle:{justifyContent:'center',alignItems:'center',mb:'-2px',flexDirection:'row',_text:{color:(0,r(d[0]).mode)('gray.500','gray.400')(t),fontSize:'sm',fontWeight:'bold'}},activeIconProps:{color:o,name:'home',mx:2},inactiveIconProps:{name:'home',mx:2}}},variants:t,sizes:{sm:{activeTabStyle:{_text:{fontSize:'sm'},py:2,px:3},inactiveTabStyle:{_text:{fontSize:'sm'},py:2,px:3}},md:{activeTabStyle:{_text:{fontSize:'md'},py:3,px:4},inactiveTabStyle:{_text:{fontSize:'md'},py:3,px:4}},lg:{activeTabStyle:{_text:{fontSize:'lg'},py:4,px:5},inactiveTabStyle:{_text:{fontSize:'lg'},py:4,px:5}}},defaultProps:{size:'md',variant:'outline',colorScheme:'primary'}}}),1026,[935]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])).default.variants;e.default={variants:n,baseStyle:{_text:{fontWeight:'medium'},alignItems:'center',justifyContent:'center',flexDirection:'row',display:'flex'},sizes:{sm:{minH:5,minW:5,_text:{fontSize:'xs'},p:1,borderRadius:'sm'},md:{minH:6,minW:6,_text:{fontSize:'sm'},borderRadius:'md',p:2},lg:{minH:8,minW:8,_text:{fontSize:'md'},borderRadius:'md',p:3}},defaultProps:{size:'md',variant:'subtle',colorScheme:'primary'}}}),1027,[2,990]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{color:'text.900',_dark:{color:'text.50'},fontWeight:'400',fontFamily:'body',fontStyle:'normal',fontSize:'sm',letterSpacing:'md',lineHeight:'lg'}},defaultProps:{}}}),1028,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(o){var t=(0,r(d[0]).getColorScheme)(o);return{bg:(0,r(d[0]).mode)(`${t}.500`,`${t}.300`)(o),px:2}},defaultProps:{colorScheme:'primary'}}}),1029,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{multiline:!0,p:'2',textAlignVertical:'top',h:'20'},defaultProps:{size:'sm',variant:'outline'}}}),1030,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{},sizes:{gutter:0,'2xs':1,xs:2,sm:3,md:4,lg:6,xl:7,'2xl':8}}}),1031,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{alignItems:'center',justifyContent:'center'},sizes:{xs:{height:10,width:10},sm:{height:12,width:12},md:{height:16,width:16},lg:{height:24,width:24},xl:{height:32,width:32},'2xl':{height:40,width:40}}}}),1032,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),1033,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{}}}),1034,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={shadow:7,rounded:'full',zIndex:20,placementProps:{'top-right':{top:4,right:4,position:'absolute'},'top-left':{top:4,left:4,position:'absolute'},'bottom-right':{bottom:4,right:4,position:'absolute'},'bottom-left':{bottom:4,left:4,position:'absolute'}},px:4,py:4};e.default={baseStyle:t,defaultProps:{renderInPortal:!0,variant:'solid',colorScheme:'primary',placement:'bottom-right'}}}),1035,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{p:'2',borderWidth:'1',borderRightWidth:'0',borderLeftRadius:'sm',_text:{color:'text.900',fontWeight:400},alignItems:'center',justifyContent:'center',bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700',_text:{color:'text.50'}}}}}}),1036,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:function(){return{p:'2',borderWidth:'1',borderLeftWidth:'0',borderRightRadius:'sm',_text:{color:'text.900',fontWeight:400},alignItems:'center',justifyContent:'center',bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700',_text:{color:'text.50'}}}}}}),1037,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionSummary=e.AccordionItem=e.AccordionIcon=e.AccordionDetails=e.Accordion=void 0;e.Accordion={baseStyle:function(o){return{borderWidth:1,borderColor:(0,r(d[0]).mode)('gray.300','gray.600')(o),borderRadius:'lg'}}},e.AccordionItem={},e.AccordionIcon={},e.AccordionSummary={baseStyle:function(o){return{borderTopWidth:1,borderTopColor:(0,r(d[0]).mode)('gray.300','gray.600')(o),p:3,_hover:{bg:(0,r(d[0]).mode)('primary.200','primary.300')(o)},_expanded:{bg:'primary.600',borderBottomColor:(0,r(d[0]).mode)('gray.300','gray.600')(o),_text:{color:'white'}},_disabled:{bg:(0,r(d[0]).mode)('gray.200','gray.700')(o)}}}},e.AccordionDetails={baseStyle:{p:3}}}),1038,[936]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionsheetItem=e.ActionsheetContent=e.Actionsheet=void 0;e.Actionsheet={defaultProps:{size:'full',justifyContent:'flex-end',animationPreset:'slide'}},e.ActionsheetContent={baseStyle:function(){return{alignItems:'center',px:2,py:2,borderRadius:'none',roundedTop:20,_web:{userSelect:'none'},_dragIndicator:{height:1,width:10,borderRadius:2,bg:'muted.500'},_dark:{_dragIndicator:{bg:'muted.400'}},_dragIndicatorWrapper:{pt:3,pb:3,mt:-2,width:'100%',alignItems:'center',collapsable:!1},_dragIndicatorWrapperOffSet:{py:2,collapsable:!1}}}},e.ActionsheetItem={baseStyle:function(){return{width:'100%',justifyContent:'flex-start',_stack:{space:4},p:4,_text:{color:'text.900',fontSize:'md',fontWeight:'normal'},_disabled:{opacity:40},bg:'muted.50',_icon:{color:'muted.500'},_hover:{bg:'muted.200'},_pressed:{bg:'muted.400'},_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:"none"},bg:'muted.300'},bg:'muted.300'},_dark:{bg:'muted.800',_icon:{color:'muted.400'},_text:{color:'muted.50'},_hover:{bg:'muted.700'},_pressed:{bg:'muted.500'},_focusVisible:{_web:{outlineWidth:'0',style:{boxShadow:"none"},bg:'muted.600'}}}}}}}),1039,[]); +__d((function(g,r,i,a,m,e,d){function o(o){var t=o.theme,l=o.colorScheme,c=o.status,n=o.variant,s=(0,r(d[0]).getColorScheme)(o,c||l);return{lightBg:'solid'===n?(0,r(d[0]).getColor)(t,`${s}.700`,s):(0,r(d[0]).getColor)(t,`${s}.200`,s),darkBg:'solid'===n?(0,r(d[0]).getColor)(t,`${s}.600`,s):(0,r(d[0]).getColor)(t,`${s}.200`,s)}}Object.defineProperty(e,"__esModule",{value:!0}),e.AlertIcon=e.Alert=void 0;var t={subtle:function(t){var l=t.colorScheme,c=t.status,n=o(t),s=n.lightBg,u=n.darkBg;return{bg:s,_icon:{color:`${l=(0,r(d[0]).getColorScheme)(t,c||l)}.700`},_dark:{bg:u,_icon:{color:`${l}.600`}}}},solid:function(t){var l=o(t);return{bg:l.lightBg,_dark:{bg:l.darkBg},_icon:{color:"muted.50"}}},'left-accent':function(t){var l=t.colorScheme,c=t.status,n=o(t),s=n.lightBg,u=n.darkBg;return{borderLeftWidth:4,bg:s,_icon:{color:`${l=(0,r(d[0]).getColorScheme)(t,c||l)}.700`},borderLeftColor:`${l}.700`,_dark:{bg:u,_icon:{color:`${l}.600`},borderLeftColor:`${l}.600`}}},'top-accent':function(t){var l=t.colorScheme,c=t.status,n=o(t),s=n.lightBg,u=n.darkBg;return{borderTopWidth:4,bg:s,_icon:{color:`${l=(0,r(d[0]).getColorScheme)(t,c||l)}.700`},borderTopColor:`${l}.700`,_dark:{bg:u,_icon:{color:`${l}.600`},borderTopColor:`${l}.600`}}},outline:function(o){var t=o.colorScheme,l=o.status;return{borderWidth:1,_icon:{color:`${t=(0,r(d[0]).getColorScheme)(o,l||t)}.700`},borderColor:`${t}.700`,_dark:{_icon:{color:`${t}.600`},borderColor:`${t}.600`}}},'outline-light':function(o){var t=o.colorScheme,l=o.status,c=o.theme;return{borderWidth:1,_icon:{color:`${t=(0,r(d[0]).getColorScheme)(o,l||t)}.700`},borderColor:(0,r(d[0]).transparentize)(`${t}.700`,.4)(c),_dark:{_icon:{color:`${t}.600`},borderColor:(0,r(d[0]).transparentize)(`${t}.600`,.4)(c)}}}};e.Alert={baseStyle:{alignItems:'center',justifyContent:'flex-start',p:3,space:3,borderRadius:'sm'},variants:t,defaultProps:{colorScheme:'info',variant:'subtle'}},e.AlertIcon={baseStyle:{size:4}}}),1040,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BreadcrumbText=e.BreadcrumbIcon=e.Breadcrumb=void 0;var t={width:'auto',height:'auto',display:'flex',flexDirection:'row',spacing:'2'},o={direction:'row',wrap:'wrap'};e.Breadcrumb={baseStyle:t,defaultProps:o},e.BreadcrumbText={baseStyle:Object.assign({},t,{_current:{fontWeight:'bold'}}),defaultProps:o},e.BreadcrumbIcon={baseStyle:Object.assign({},t),defaultProps:o}}),1041,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.fadeBaseStyle=e.SlideFade=e.Slide=e.ScaleFade=e.Fade=void 0;var t=e.fadeBaseStyle={initial:{opacity:0},animate:{opacity:1,transition:{duration:500}},exit:{opacity:0,transition:{duration:500}}};e.Fade={baseStyle:t},e.ScaleFade={baseStyle:{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1,transition:500},exit:{opacity:0,scale:.9,transition:500}}},e.Slide={baseStyle:{h:'100%',pointerEvents:'box-none',_overlay:{style:{overflow:'hidden'}}},defaultProps:{duration:500,placement:'bottom',overlay:!0,_overlay:{isOpen:!0}}},e.SlideFade={defaultProps:{duration:500,offsetX:10,offsetY:10}}}),1042,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Spacer=e.Flex=void 0;e.Flex={baseStyle:{display:'flex',flexDirection:'column'}},e.Spacer={baseStyle:{flexGrow:1}}}),1043,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.FormControlLabel=e.FormControlHelperText=e.FormControlErrorMessage=e.FormControl=void 0;e.FormControl={baseStyle:{width:'100%'}},e.FormControlErrorMessage={baseStyle:function(){return{mt:'2',_text:{fontSize:'xs',color:'error.600'},_stack:{space:1,alignItems:'center'},_dark:{_text:{color:'error.500'}}}}},e.FormControlLabel={baseStyle:function(){return{flexDirection:'row',justifyContent:'flex-start',_text:{fontSize:'sm',fontWeight:'medium',color:'text.500'},my:'1',_astrick:{color:'error.600'},_dark:{_text:{color:'text.400'},_astrick:{color:'error.500'}}}}},e.FormControlHelperText={baseStyle:function(){return{mt:'2',_text:{fontSize:'xs',color:'text.500'},_dark:{_text:{color:'text.400'}}}}}}),1044,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Image=void 0;e.Image={baseStyle:{maxWidth:'100%'},sizes:{'2xs':'6',xs:'10',sm:'16',md:'20',lg:'24',xl:'32','2xl':'64',full:'100%'},defaultProps:{}}}),1045,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Input=void 0;var o={outline:function(o){var t=o.theme;return{borderWidth:'1',_focus:{bg:(0,r(d[0]).transparentize)('primary.600',.1)(t)}}},underlined:function(o){var t=o.theme.colors,l=t.primary,n=t.error;return{borderWidth:'0',pl:'0',borderBottomWidth:'1',_focus:{_stack:{style:{outlineWidth:'0',boxShadow:`0 1px 0 0 ${l[600]}`}}},_invalid:{_stack:{style:{outlineWidth:0,boxShadow:`0 1px 0 0 ${n[600]}`}}},_dark:{_focus:{_stack:{style:{outlineWidth:'0',boxShadow:`0 1px 0 0 ${l[500]}`}}},_invalid:{_stack:{style:{outlineWidth:0,boxShadow:`0 1px 0 0 ${n[500]}`}}}},borderRadius:0}},rounded:function(o){var t=o.theme;return{borderRadius:'full',borderWidth:'1',_focus:{bg:(0,r(d[0]).transparentize)('primary.600',.1)(t)}}},filled:function(o){var t=o.theme;return{borderWidth:'1',_focus:{bg:(0,r(d[0]).transparentize)('primary.600',.1)(t)},_hover:{borderWidth:'1',_disabled:{borderWidth:0}},bg:'muted.100',borderColor:'muted.100',_dark:{bg:'muted.800',borderColor:'muted.800'}}},unstyled:function(){return{borderWidth:'0',_focus:{bg:'transparent'},_invalid:{_stack:{style:{outlineWidth:0}}},_stack:{_focus:{style:{outlineWidth:'0'}}}}}};e.Input={baseStyle:function(o){var t=o.theme.colors,l=t.primary,n=t.error;return{fontFamily:'body',py:'2',px:'3',borderRadius:'sm',overflow:'hidden',_disabled:{opacity:'0.4',_web:{disabled:!0,cursor:'not-allowed'}},_web:{outlineWidth:'0',overflow:'auto',lineHeight:'lg',style:{outline:'none'},cursor:'auto'},_input:{bg:'transparent',flex:1,w:'100%',h:'100%'},placeholderTextColor:'text.400',color:'text.900',borderColor:'muted.300',_stack:{flexDirection:'row',alignItems:'center',overflow:'hidden'},_hover:{borderColor:'primary.600'},_invalid:{borderColor:'error.600',_hover:{borderColor:'error.600'},_stack:{style:{outlineWidth:'0',boxShadow:`0 0 0 1px ${n[600]}`}}},_focus:{borderColor:'primary.600',_hover:{borderColor:'primary.600'},_invalid:{borderColor:'error.600',_hover:{borderColor:'error.600'},_stack:{style:{outlineWidth:'0',boxShadow:`0 0 0 1px ${n[600]}`}}},_ios:{selectionColor:'coolGray.800'},_android:{selectionColor:'coolGray.800'},_disabled:{placeholderTextColor:'muted.700',_hover:{borderColor:'muted.300'}},_stack:{style:{outlineWidth:'0',boxShadow:`0 0 0 1px ${l[600]}`}}},_dark:{placeholderTextColor:'text.600',color:'text.50',borderColor:'muted.700',_hover:{borderColor:'primary.500'},_focus:{borderColor:'primary.500',_hover:{borderColor:'primary.500'},_stack:{style:{outlineWidth:'0',boxShadow:`0 0 0 1px ${l[500]}`}}},_invalid:{borderColor:'error.500',_stack:{style:{outlineWidth:'0',boxShadow:`0 0 0 1px ${n[500]}`}},_hover:{borderColor:'error.500'}},_ios:{selectionColor:'warmGray.50'},_android:{selectionColor:'warmGray.50'},_disabled:{placeholderTextColor:'text.50',_hover:{borderColor:'muted.700'}},_stack:{flexDirection:'row',alignItems:'center',overflow:'hidden'}}}},defaultProps:{size:'sm',variant:'outline'},variants:o,sizes:{'2xl':{fontSize:'xl'},xl:{fontSize:'lg'},lg:{fontSize:'md'},md:{fontSize:'sm'},sm:{fontSize:'xs'},xs:{fontSize:'2xs'}}},e.default={}}),1046,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ListItem=e.ListIcon=e.List=void 0;e.List={baseStyle:function(t){return{py:2,borderWidth:1,borderColor:'gray.300',_hover:{bg:(0,r(d[0]).mode)('primary.100','primary.700')(t)}}}},e.ListItem={baseStyle:{py:2,borderColor:'gray.300'},defaultProps:{start:1}},e.ListIcon={baseStyle:{mr:8,size:'md'}}}),1047,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ModalOverlay=e.ModalHeader=e.ModalFooter=e.ModalContent=e.ModalCloseButton=e.ModalBody=e.Modal=void 0;var t=r(d[0]);e.Modal={baseStyle:{width:'100%',height:'100%',justifyContent:'center',alignItems:'center',_web:{pointerEvents:'box-none'},_backdropFade:{exitDuration:150,entryDuration:200},_slide:{overlay:!1,duration:200},_fade:{exitDuration:100,entryDuration:200}},sizes:{xs:{contentSize:{width:'60%',maxWidth:'280'}},sm:{contentSize:{width:'65%',maxWidth:'320'}},md:{contentSize:{width:'75%',maxWidth:'380'}},lg:{contentSize:{width:'80%',maxWidth:'520'}},xl:{contentSize:{width:'90%',maxWidth:'580'}},full:{contentSize:{width:'100%'}}},defaultProps:{size:'md',closeOnOverlayClick:!0}},e.ModalContent={baseStyle:function(){return{shadow:1,rounded:'lg',maxHeight:t.Dimensions.get('window').height-150+"px",overflow:'hidden',bg:'muted.50',_text:{color:'text.900'},_dark:{bg:'muted.800',_text:{color:'text.50'}}}}},e.ModalCloseButton={baseStyle:function(){return{position:'absolute',right:'3',top:'3',zIndex:'1',colorScheme:'coolGray',p:'2',bg:'transparent',borderRadius:'sm',_web:{outlineWidth:0,cursor:'pointer'},_icon:{color:'muted.500',size:'4'},_hover:{bg:'muted.200'},_pressed:{bg:'muted.300'},_dark:{_icon:{color:'muted.400'},_hover:{bg:'muted.700'},_pressed:{bg:'muted.600'}}}}},e.ModalHeader={baseStyle:function(){return{p:'4',borderBottomWidth:'1',_text:{color:'text.900',fontSize:'md',fontWeight:'semibold',lineHeight:'sm'},bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700',_text:{color:'text.50'}}}}},e.ModalBody={baseStyle:function(){return{p:'4',_text:{color:'text.900'},_dark:{_text:{color:'text.50'}}}}},e.ModalFooter={baseStyle:function(){return{p:'4',flexDirection:'row',justifyContent:'flex-end',flexWrap:'wrap',borderTopWidth:1,bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700'}}}},e.ModalOverlay={baseStyle:{position:'absolute',left:'0',top:'0',opacity:'50',right:'0',bottom:'0'}}}),1048,[18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AlertDialogOverlay=e.AlertDialogHeader=e.AlertDialogFooter=e.AlertDialogContent=e.AlertDialogCloseButton=e.AlertDialogBody=e.AlertDialog=void 0;var t=r(d[0]);e.AlertDialog={baseStyle:{width:'100%',height:'100%',justifyContent:'center',alignItems:'center',_web:{pointerEvents:'box-none'},_backdropFade:{exitDuration:150,entryDuration:200},_fade:{exitDuration:100,entryDuration:200},_slide:{duration:200,overlay:!1},_overlay:{unmountOnExit:!0}},sizes:{xs:{contentSize:{width:'60%',maxWidth:'280'}},sm:{contentSize:{width:'65%',maxWidth:'320'}},md:{contentSize:{width:'75%',maxWidth:'380'}},lg:{contentSize:{width:'80%',maxWidth:'520'}},xl:{contentSize:{width:'90%',maxWidth:'580'}},full:{contentSize:{width:'100%'}}},defaultProps:{size:'md',closeOnOverlayClick:!0}},e.AlertDialogContent={baseStyle:function(){return{shadow:1,rounded:'lg',maxHeight:t.Dimensions.get('window').height-150+"px",overflow:'hidden',bg:'muted.50',_text:{color:'text.900'},_dark:{bg:'muted.800',color:'text.50'}}}},e.AlertDialogCloseButton={baseStyle:function(){return{position:'absolute',right:'3',top:'3',zIndex:'1',p:'2',bg:'transparent',borderRadius:'sm',_web:{outlineWidth:0,cursor:'pointer'},_icon:{size:'4',color:'muted.500'},_hover:{bg:'muted.200'},_pressed:{bg:'muted.300'},_dark:{_icon:{color:'muted.400'},_hover:{bg:'muted.700'},_pressed:{bg:'muted.600'}}}}},e.AlertDialogHeader={baseStyle:function(){return{p:'4',borderBottomWidth:'1',_text:{color:'text.900',fontSize:'md',fontWeight:'semibold',lineHeight:'sm'},bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700',_text:{color:'text.50'}}}}},e.AlertDialogBody={baseStyle:function(){return{p:'4',bg:'muted.50',_text:{color:'text.900'},_dark:{bg:'muted.800',_text:{color:'text.50'}}}}},e.AlertDialogFooter={baseStyle:function(){return{p:'4',flexDirection:'row',justifyContent:'flex-end',flexWrap:'wrap',borderTopWidth:'1',bg:'muted.50',borderColor:'muted.300',_dark:{bg:'muted.800',borderColor:'muted.700'}}}},e.AlertDialogOverlay={baseStyle:{position:'absolute',left:'0',top:'0',opacity:'50',right:'0',bottom:'0'}}}),1049,[18]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectItem=e.Select=void 0;e.Select={baseStyle:function(){return{selection:{start:0},_customDropdownIconProps:{color:'muted.500',mr:'3',size:'6',p:'1'},_hover:{borderColor:'primary.600'},_focus:{borderColor:'primary.600'},_disabled:{bg:'muted.100',placeholderTextColor:'muted.700'},_invalid:{borderColor:'error.600'},_dark:{_customDropdownIconProps:{color:'muted.400',mr:'3'},_hover:{borderColor:'primary.500'},_focus:{borderColor:'primary.500'},_disabled:{bg:'muted.800',opacity:'80',placeholderTextColor:'text.50'},_invalid:{borderColor:'error.500'}},_webSelect:{style:{appearance:'none',WebkitAppearance:'none',MozAppearance:'none',position:'absolute',width:'100%',height:'100%',opacity:0,zIndex:1}},_web:{pointerEvents:'none'},_actionSheetBody:{w:'100%'},_actionSheetContent:{}}},defaultProps:{optimized:!0}},e.SelectItem={baseStyle:{p:'1',px:'2',borderRadius:'0',minH:'0'}}}),1050,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SkeletonText=e.Skeleton=void 0;e.Skeleton={baseStyle:function(){return{startColor:'muted.200',_dark:{startColor:'muted.600'},endColor:'transparent',overflow:'hidden',fadeDuration:.1,speed:1,h:'10',w:'100%'}}},e.SkeletonText={baseStyle:function(){return{startColor:'muted.200',_dark:{startColor:'muted.600'},endColor:'transparent',fadeDuration:.1,w:'100%',speed:1,flexDirection:'column',_line:{h:3,rounded:'full'}}},defaultProps:{lines:3,space:3}}}),1051,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SliderTrack=e.SliderThumb=e.SliderFilledTrack=e.Slider=void 0;e.SliderTrack={baseStyle:function(t){var o=t.isVertical,l=t.size;return{bg:'muted.200',borderRadius:'lg',overflow:'hidden',style:{height:o?'100%':l,width:o?l:'100%'},_pressable:{alignItems:'center',justifyContent:'center',height:o?'100%':l,width:o?l:'100%',py:o?void 0:'3',px:o?'3':void 0},_dark:{bg:'muted.700'}}}},e.SliderThumb={baseStyle:function(t){var o=t.colorScheme,l=t.theme.colors.primary;return{borderRadius:'full',zIndex:999,alignItems:'center',justifyContent:'center',scaleOnPressed:1,_interactionBox:{position:'absolute',borderRadius:'full',zIndex:-1},_stack:{direction:'row',alignItems:'center',justifyContent:'center',space:2},bg:`${o}.600`,_hover:{_web:{outlineWidth:'4px',outlineColor:l[300],outlineStyle:'solid'}},_focus:{_web:{outlineWidth:'2px',outlineColor:l[400],outlineStyle:'solid'}},_pressed:{_interactionBox:{borderWidth:'8',borderColor:`${o}.300`}},_dark:{bg:`${o}.500`,_hover:{_web:{outlineWidth:'4px',outlineColor:l[800],outlineStyle:'solid'}},_focus:{_web:{outlineWidth:'2px',outlineColor:l[400],outlineStyle:'solid'}},_pressed:{_interactionBox:{borderWidth:'8',borderColor:`${o}.800`}}},_web:{cursor:'pointer'}}},defaultProps:{colorScheme:'primary'},sizes:{lg:{_interactionBox:'3'},md:{_interactionBox:'2'},sm:{_interactionBox:'2.5'}}},e.SliderFilledTrack={baseStyle:function(t){var o=t.orientation,l=t.isReversed,n=t.sliderTrackPosition,s=t.size,c=t.colorScheme;return{left:'vertical'===o||l?void 0:0,bottom:'vertical'!==o||l?void 0:0,right:'vertical'!==o&&l?0:void 0,top:'vertical'===o&&l?0:void 0,style:'vertical'===o?{height:n,width:s}:{width:n,height:s},bg:`${c}.600`,_dark:{bg:`${c}.500`}}},defaultProps:{colorScheme:'primary'}},e.Slider={baseStyle:function(t){return{alignItems:'center',justifyContent:'center',height:'vertical'===t.orientation?'100%':void 0,width:'vertical'!==t.orientation?'100%':void 0,_disabled:{opacity:.4,_web:{cursor:'not-allowed'}}}},defaultProps:{size:'sm'},sizes:{lg:{thumbSize:6,sliderTrackHeight:6,_interactionBox:{p:'3'}},md:{thumbSize:5,sliderTrackHeight:5,_interactionBox:{p:'2.5'}},sm:{thumbSize:4,sliderTrackHeight:4,_interactionBox:{p:'2'}}}}}),1052,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TextField=void 0;e.TextField={baseStyle:function(o){return{_errorMessageProps:{mt:1,ml:3,fontSize:'xs',color:'error.400'},_helperTextProps:{mt:1,ml:3,fontSize:'xs',color:(0,r(d[0]).mode)('muted.400','muted.500')(o)}}},defaultProps:{component:'input'}}}),1053,[935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=void 0;var t=r(d[0]);e.Toast={baseStyle:function(n){return{bg:(0,r(d[1]).mode)("muted.700","muted.600")(n),p:'2',rounded:'sm',shadow:6,_stack:{margin:'auto',position:'absolute',space:2,alignItems:'center',justifyContent:'center',pointerEvents:'box-none',_web:{position:'fixed'}},_overlay:{},_presenceTransition:{animate:{opacity:1,transition:{easing:t.Easing.ease,duration:250}},exit:{opacity:0,scale:.85,transition:{easing:t.Easing.ease,duration:100}}},_title:{color:'text.50',fontWeight:700},_description:{color:'text.50',fontWeight:400}}},defaultProps:{}}}),1054,[18,935]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeAheadSearchItem=void 0;e.TypeAheadSearchItem={baseStyle:function(o){return{backgroundColor:(0,r(d[0]).mode)('gray.100','gray.600')(o),_focus:{backgroundColor:(0,r(d[0]).mode)('primary.300','primary.700')(o)},_disabled:{backgroundColor:'gray.200'}}}}}),1055,[936]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Wrap=void 0;e.Wrap={}}),1056,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;e.Tooltip={baseStyle:function(){return{py:1,px:2,shadow:6,rounded:'sm',_text:{fontSize:'sm',color:"text.50"},bg:"muted.800",_dark:{bg:"muted.50",_text:{color:"text.900"}}}}}}),1057,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.v33xTheme=_e.themeTools=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var a=l?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}_e.themeTools=o;_e.v33xTheme=Object.assign({},t.default,{components:r.default,config:{useSystemColorMode:!1,initialColorMode:'light',accessibleColors:!1}})}),1058,[2,1059,1069,1072]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.themePropertyMap=e.default=void 0;var s=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),n=t(r(d[5])),u=t(r(d[6])),c=t(r(d[7])),p=t(r(d[8])),h=Object.assign({borderWidths:s.default,breakpoints:o.default,colors:l.default,radii:f.default},c.default,{sizes:u.default,space:r(d[9]).spacing,shadows:n.default,opacity:p.default});e.themePropertyMap={borderRadius:'radii',color:'colors',letterSpacing:'letterSpacings',lineHeight:'lineHeights',fontFamily:'fonts',fontSize:'fontSizes',fontWeight:'fontWeights',size:'sizes',space:'space',border:'borders',shadow:'shadows'},e.default=h}),1059,[2,1060,1061,1062,1063,1064,1065,1067,1068,1066]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={0:0,1:'1px',2:'2px',4:'4px',8:'8px'}}),1060,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={base:0,sm:480,md:768,lg:992,xl:1280,'2xl':1536}}),1061,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f={contrastThreshold:7,white:'#FFFFFF',black:'#000000',lightText:'#FFFFFF',darkText:'#000000',rose:{50:'#fff1f2',100:'#ffe4e6',200:'#fecdd3',300:'#fda4af',400:'#fb7185',500:'#f43f5e',600:'#e11d48',700:'#be123c',800:'#9f1239',900:'#881337'},pink:{50:'#fdf2f8',100:'#fce7f3',200:'#fbcfe8',300:'#f9a8d4',400:'#f472b6',500:'#ec4899',600:'#db2777',700:'#be185d',800:'#9d174d',900:'#831843'},fuchsia:{50:'#fdf4ff',100:'#fae8ff',200:'#f5d0fe',300:'#f0abfc',400:'#e879f9',500:'#d946ef',600:'#c026d3',700:'#a21caf',800:'#86198f',900:'#701a75'},purple:{50:'#faf5ff',100:'#f3e8ff',200:'#e9d5ff',300:'#d8b4fe',400:'#c084fc',500:'#a855f7',600:'#9333ea',700:'#7e22ce',800:'#6b21a8',900:'#581c87'},violet:{50:'#f5f3ff',100:'#ede9fe',200:'#ddd6fe',300:'#c4b5fd',400:'#a78bfa',500:'#8b5cf6',600:'#7c3aed',700:'#6d28d9',800:'#5b21b6',900:'#4c1d95'},indigo:{50:'#eef2ff',100:'#e0e7ff',200:'#c7d2fe',300:'#a5b4fc',400:'#818cf8',500:'#6366f1',600:'#4f46e5',700:'#4338ca',800:'#3730a3',900:'#312e81'},blue:{50:'#eff6ff',100:'#dbeafe',200:'#bfdbfe',300:'#93c5fd',400:'#60a5fa',500:'#3b82f6',600:'#2563eb',700:'#1d4ed8',800:'#1e40af',900:'#1e3a8a'},lightBlue:{50:'#f0f9ff',100:'#e0f2fe',200:'#bae6fd',300:'#7dd3fc',400:'#38bdf8',500:'#0ea5e9',600:'#0284c7',700:'#0369a1',800:'#075985',900:'#0c4a6e'},darkBlue:{50:'#dbf4ff',100:'#addbff',200:'#7cc2ff',300:'#4aa9ff',400:'#1a91ff',500:'#0077e6',600:'#005db4',700:'#004282',800:'#002851',900:'#000e21'},cyan:{50:'#ecfeff',100:'#cffafe',200:'#a5f3fc',300:'#67e8f9',400:'#22d3ee',500:'#06b6d4',600:'#0891b2',700:'#0e7490',800:'#155e75',900:'#164e63'},teal:{50:'#f0fdfa',100:'#ccfbf1',200:'#99f6e4',300:'#5eead4',400:'#2dd4bf',500:'#14b8a6',600:'#0d9488',700:'#0f766e',800:'#115e59',900:'#134e4a'},emerald:{50:'#ecfdf5',100:'#d1fae5',200:'#a7f3d0',300:'#6ee7b7',400:'#34d399',500:'#10b981',600:'#059669',700:'#047857',800:'#065f46',900:'#064e3b'},green:{50:'#f0fdf4',100:'#dcfce7',200:'#bbf7d0',300:'#86efac',400:'#4ade80',500:'#22c55e',600:'#16a34a',700:'#15803d',800:'#166534',900:'#14532d'},lime:{50:'#f7fee7',100:'#ecfccb',200:'#d9f99d',300:'#bef264',400:'#a3e635',500:'#84cc16',600:'#65a30d',700:'#4d7c0f',800:'#3f6212',900:'#365314'},yellow:{50:'#fefce8',100:'#fef9c3',200:'#fef08a',300:'#fde047',400:'#facc15',500:'#eab308',600:'#ca8a04',700:'#a16207',800:'#854d0e',900:'#713f12'},amber:{50:'#fffbeb',100:'#fef3c7',200:'#fde68a',300:'#fcd34d',400:'#fbbf24',500:'#f59e0b',600:'#d97706',700:'#b45309',800:'#92400e',900:'#78350f'},orange:{50:'#fff7ed',100:'#ffedd5',200:'#fed7aa',300:'#fdba74',400:'#fb923c',500:'#f97316',600:'#ea580c',700:'#c2410c',800:'#9a3412',900:'#7c2d12'},red:{50:'#fef2f2',100:'#fee2e2',200:'#fecaca',300:'#fca5a5',400:'#f87171',500:'#ef4444',600:'#dc2626',700:'#b91c1c',800:'#991b1b',900:'#7f1d1d'},warmGray:{50:'#fafaf9',100:'#f5f5f4',200:'#e7e5e4',300:'#d6d3d1',400:'#a8a29e',500:'#78716c',600:'#57534e',700:'#44403c',800:'#292524',900:'#1c1917'},trueGray:{50:'#fafafa',100:'#f5f5f5',200:'#e5e5e5',300:'#d4d4d4',400:'#a3a3a3',500:'#737373',600:'#525252',700:'#404040',800:'#262626',900:'#171717'},gray:{50:'#fafafa',100:'#f4f4f5',200:'#e4e4e7',300:'#d4d4d8',400:'#a1a1aa',500:'#71717a',600:'#52525b',700:'#3f3f46',800:'#27272a',900:'#18181b'},coolGray:{50:'#f9fafb',100:'#f3f4f6',200:'#e5e7eb',300:'#d1d5db',400:'#9ca3af',500:'#6b7280',600:'#4b5563',700:'#374151',800:'#1f2937',900:'#111827'},blueGray:{50:'#f8fafc',100:'#f1f5f9',200:'#e2e8f0',300:'#cbd5e1',400:'#94a3b8',500:'#64748b',600:'#475569',700:'#334155',800:'#1e293b',900:'#0f172a'},dark:{50:'#18181b',100:'#27272a',200:'#3f3f46',300:'#52525b',400:'#71717a',500:'#a1a1aa',600:'#d4d4d8',700:'#e4e4e7',800:'#f4f4f5',900:'#fafafa'},text:{50:'#fafafa',100:'#f5f5f5',200:'#e5e5e5',300:'#d4d4d4',400:'#a3a3a3',500:'#737373',600:'#525252',700:'#404040',800:'#262626',900:'#171717'},danger:{},error:{},success:{},warning:{},muted:{},primary:{},info:{},secondary:{},light:{},tertiary:{}};f.danger=f.red,f.error=f.rose,f.success=f.emerald,f.warning=f.orange,f.muted=f.trueGray,f.primary=f.cyan,f.secondary=f.pink,f.tertiary=f.green,f.info=f.lightBlue,f.light=f.warmGray;e.default=f}),1062,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={none:0,xs:2,sm:4,md:6,lg:8,xl:12,'2xl':16,'3xl':24,full:9999}}),1063,[]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=o(r(d[1])),t={none:{shadowColor:'transparent',shadowOffset:{width:0,height:0},shadowOpacity:0,shadowRadius:0,elevation:0},0:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.18,shadowRadius:1,elevation:1},1:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.2,shadowRadius:1.41,elevation:2},2:{shadowColor:h.default.black,shadowOffset:{width:0,height:1},shadowOpacity:.22,shadowRadius:2.22,elevation:3},3:{shadowColor:h.default.black,shadowOffset:{width:0,height:2},shadowOpacity:.23,shadowRadius:2.62,elevation:4},4:{shadowColor:h.default.black,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:3.84,elevation:5},5:{shadowColor:h.default.black,shadowOffset:{width:0,height:3},shadowOpacity:.27,shadowRadius:4.65,elevation:6},6:{shadowColor:h.default.black,shadowOffset:{width:0,height:3},shadowOpacity:.29,shadowRadius:4.65,elevation:7},7:{shadowColor:h.default.black,shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:4.65,elevation:8},8:{shadowColor:h.default.black,shadowOffset:{width:0,height:4},shadowOpacity:.32,shadowRadius:5.46,elevation:9},9:{shadowColor:h.default.black,shadowOffset:{width:0,height:5},shadowOpacity:.34,shadowRadius:6.27,elevation:10}};e.default=t}),1064,[2,1062]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=Object.assign({},r(d[0]).spacing,{'3xs':224,'2xs':256,xs:320,sm:384,md:448,lg:512,xl:576,'2xl':672},{container:{sm:640,md:768,lg:1024,xl:1280}});e.default=l}),1065,[1066]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.spacing=void 0;e.spacing={px:'1px',0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,12:48,16:64,20:80,24:96,32:128,40:160,48:192,56:224,64:256,72:288,80:320,96:384,'1/2':'50%','1/3':'33.333%','2/3':'66.666%','1/4':'25%','2/4':'50%','3/4':'75%','1/5':'20%','2/5':'40%','3/5':'60%','4/5':'80%','1/6':'16.666%','2/6':'33.333%','3/6':'50%','4/6':'66.666%','5/6':'83.333%',full:'100%'}}),1066,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={letterSpacings:{xs:'-0.05em',sm:'-0.025em',md:0,lg:'0.025em',xl:'0.05em','2xl':'0.1em'},lineHeights:{'2xs':'1em',xs:'1.125em',sm:'1.25em',md:'1.375em',lg:'1.5em',xl:'1.75em','2xl':'2em','3xl':'2.5em','4xl':'3em','5xl':'4em'},fontConfig:{},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900,extraBlack:950},fonts:{heading:void 0,body:void 0,mono:void 0},fontSizes:{'2xs':10,xs:12,sm:14,md:16,lg:18,xl:20,'2xl':24,'3xl':30,'4xl':36,'5xl':48,'6xl':60,'7xl':72,'8xl':96,'9xl':128}};e.default=l}),1067,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={0:0,5:.05,10:.1,20:.2,25:.25,30:.3,40:.4,50:.5,60:.6,70:.7,75:.75,80:.8,90:.9,95:.95,100:1}}),1068,[]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),a=e(_r(d[2])),o=e(_r(d[3])),l=e(_r(d[4])),r=e(_r(d[5])),u=oe(_r(d[6])),n=e(_r(d[7])),i=e(_r(d[8])),c=e(_r(d[9])),f=e(_r(d[10])),p=e(_r(d[11])),A=e(_r(d[12])),s=e(_r(d[13])),S=e(_r(d[14])),I=e(_r(d[15])),b=e(_r(d[16])),C=e(_r(d[17])),F=e(_r(d[18])),M=e(_r(d[19])),B=e(_r(d[20])),T=e(_r(d[21])),y=e(_r(d[22])),D=e(_r(d[23])),h=e(_r(d[24])),k=e(_r(d[25])),v=e(_r(d[26])),x=e(_r(d[27])),O=e(_r(d[28])),L=e(_r(d[29])),P=oe(_r(d[30])),_=oe(_r(d[31])),w=oe(_r(d[32])),G=e(_r(d[33])),H=e(_r(d[34])),j=e(_r(d[35])),W=e(_r(d[36])),R=e(_r(d[37])),V=e(_r(d[38])),N=e(_r(d[39])),E=e(_r(d[40])),K=e(_r(d[41])),q=e(_r(d[42])),Z=e(_r(d[43])),z=e(_r(d[44])),J=e(_r(d[45])),Q=e(_r(d[46])),U=e(_r(d[47])),X=e(_r(d[48])),Y=e(_r(d[49])),$=e(_r(d[50])),ee=e(_r(d[51])),te=e(_r(d[52]));function ae(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(ae=function(e){return e?a:t})(e)}function oe(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=ae(t);if(a&&a.has(e))return a.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&{}.hasOwnProperty.call(e,r)){var u=l?Object.getOwnPropertyDescriptor(e,r):null;u&&(u.get||u.set)?Object.defineProperty(o,r,u):o[r]=e[r]}return o.default=e,a&&a.set(e,o),o}_e.default=Object.assign({FlatList:A.default,KeyboardAvoidingView:s.default,ScrollView:S.default,SectionList:I.default,StatusBar:b.default,Accordion:_r(d[53]).Accordion,AccordionItem:_r(d[53]).AccordionItem,AccordionIcon:_r(d[53]).AccordionIcon,AccordionSummary:_r(d[53]).AccordionSummary,AccordionDetails:_r(d[53]).AccordionDetails,Actionsheet:_r(d[54]).Actionsheet,ActionsheetContent:_r(d[54]).ActionsheetContent,ActionsheetItem:_r(d[54]).ActionsheetItem,Alert:_r(d[55]).Alert,AlertIcon:_r(d[55]).AlertIcon,AspectRatio:t.default,Avatar:a.default,AvatarBadge:o.default,AvatarGroup:l.default,Badge:r.default,Box:p.default,Breadcrumb:_r(d[56]).Breadcrumb,BreadcrumbText:_r(d[56]).BreadcrumbText,BreadcrumbIcon:_r(d[56]).BreadcrumbIcon,Button:u.default,ButtonGroup:u.ButtonGroup,Card:n.default,Center:i.default,Circle:D.default,Checkbox:c.default,CheckboxGroup:f.default,CircularProgress:C.default,Code:F.default,Container:M.default,Divider:y.default,Fade:_r(d[57]).Fade,FAB:$.default,Flex:_r(d[58]).Flex,Spacer:_r(d[58]).Spacer,FormControl:_r(d[59]).FormControl,FormControlLabel:_r(d[59]).FormControlLabel,FormControlHelperText:_r(d[59]).FormControlHelperText,FormControlErrorMessage:_r(d[59]).FormControlErrorMessage,Heading:k.default,HStack:B.default,VStack:T.default,Icon:v.default,IconButton:x.default,Image:_r(d[60]).Image,Input:_r(d[61]).Input,InputLeftAddon:ee.default,InputRightAddon:te.default,Kbd:O.default,Link:L.default,List:_r(d[62]).List,ListItem:_r(d[62]).ListItem,ListIcon:_r(d[62]).ListIcon,Menu:P.default,MenuGroup:P.MenuGroup,MenuItem:P.MenuItem,Modal:_r(d[63]).Modal,ModalContent:_r(d[63]).ModalContent,ModalHeader:_r(d[63]).ModalHeader,ModalBody:_r(d[63]).ModalBody,ModalFooter:_r(d[63]).ModalFooter,ModalOverlay:_r(d[63]).ModalOverlay,ModalCloseButton:_r(d[63]).ModalCloseButton,AlertDialog:_r(d[64]).AlertDialog,AlertDialogContent:_r(d[64]).AlertDialogContent,AlertDialogHeader:_r(d[64]).AlertDialogHeader,AlertDialogBody:_r(d[64]).AlertDialogBody,AlertDialogFooter:_r(d[64]).AlertDialogFooter,AlertDialogOverlay:_r(d[64]).AlertDialogOverlay,AlertDialogCloseButton:_r(d[64]).AlertDialogCloseButton,NumberInput:w.default,NumberInputStepper:w.NumberInputStepper,PinInput:G.default,Pressable:H.default},_,{Progress:j.default,Radio:W.default,RadioGroup:R.default,ScaleFade:_r(d[57]).ScaleFade,Select:_r(d[65]).Select,SelectItem:_r(d[65]).SelectItem,SimpleGrid:h.default,Skeleton:_r(d[66]).Skeleton,SkeletonText:_r(d[66]).SkeletonText,SliderFilledTrack:_r(d[67]).SliderFilledTrack,SliderThumb:_r(d[67]).SliderThumb,SliderTrack:_r(d[67]).SliderTrack,Slider:_r(d[67]).Slider,Slide:_r(d[57]).Slide,SlideFade:_r(d[57]).SlideFade,Spinner:V.default,Square:U.default,Stack:Q.default,Stat:N.default,Switch:E.default,Tabs:K.default,Tag:q.default,Text:Z.default,AppBar:z.default,TextArea:J.default,TextField:_r(d[68]).TextField,Toast:_r(d[69]).Toast,TypeAheadSearchItem:_r(d[70]).TypeAheadSearchItem,View:X.default,Wrap:_r(d[71]).Wrap,ZStack:Y.default,Tooltip:_r(d[72]).Tooltip})}),1069,[2,1070,1071,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={baseStyle:{},defaultProps:{ratio:1.3333333333333333}}}),1070,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),n=["name"];function o(t,l){return{width:t,height:t,_text:{fontSize:l}}}var s={xs:o('6','2xs'),sm:o('8','xs'),md:o('12','md'),lg:o('16','xl'),xl:o('24','3xl'),'2xl':o('32','5xl')};e.default={baseStyle:function(t){var o=t.name,s=(0,l.default)(t,n);return{bg:o?(0,r(d[2]).randomColor)({string:(0,r(d[2]).getRandomString)(5)+o}):'gray.400',borderColor:(0,r(d[2]).mode)('gray.800','white')(s),position:'relative',justifyContent:'center',alignItems:'center',borderRadius:'full',_text:{fontWeight:600},_image:{borderRadius:'full',alt:'--',_alt:{fontWeight:600},style:{height:'100%',width:'100%'}}}},sizes:s,defaultProps:{size:'md'}}}),1071,[2,4,1072]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})),Object.keys(r(d[1])).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}))}),1072,[1073,1074]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isLight=e.isDark=e.getColor=void 0,e.mode=function(t,n){return function(o){return'dark'===o.colorMode?n:t}},e.randomColor=function(t){var n=i.default.random().toHexString();if(!t||(0,o.default)(t))return n;if(t.string&&t.colors)return l(t.string,t.colors);if(t.string&&!t.colors)return c(t.string);if(t.colors&&!t.string)return(u=t.colors)[Math.floor(Math.random()*u.length)];var u;return n},e.transparentize=e.tone=void 0;var n=t(r(d[1])),o=t(r(d[2])),i=t(r(d[3]));e.transparentize=function(t,n){return function(o){var f=u(o,t);return(0,i.default)(f).setAlpha(n).toRgbString()}};var u=e.getColor=function(t,o,u){var f=(0,n.default)(t,`colors.${o}`,o);return(0,i.default)(f).isValid()?f:u},f=e.tone=function(t){return function(n){var o=u(n,t);return(0,i.default)(o).isDark()?'dark':'light'}};e.isDark=function(t){return function(n){return'dark'===f(t)(n)}},e.isLight=function(t){return function(n){return'light'===f(t)(n)}};function l(t,n){var o=0;if(0===t.length)return n[0];for(var i=0;i>8*u&255).toString(16)).substr(-2)}return i}}),1073,[2,921,937,938]); +__d((function(g,r,_i2,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.convertToDp=e.convertRemToAbsolute=e.convertAbsoluteToRem=e.baseFontSize=void 0,e.extractInObject=function(t,o){return[u((0,i.default)(t,o)),u((0,f.default)(t,o))]},e.findLastValidBreakpoint=function(t,o,i){var f,l=Array.isArray(t)?t:Object.keys(o).map((function(o){return t[o]}));return null!=(f=l[i])?f:l.slice(0,i+1).filter((function(t){return!(0,n.default)(t)})).pop()},e.getClosestBreakpoint=function(t,o){for(var n=Object.values(t),i=-1,f={},l=0;lo&&0!==u){i=f[s[u-1]];break}if(parseInt(s[u])=n.minWidth&&t<=n.maxWidth&&u.push(l.StyleSheet.create({rangeStyle:o}).rangeStyle):'number'==typeof n.minWidth?t>=n.minWidth&&u.push(l.StyleSheet.create({minWidthStyle:o}).minWidthStyle):'number'==typeof n.maxWidth&&t<=n.maxWidth&&u.push(l.StyleSheet.create({maxWidthStyle:o}).maxWidthStyle)}})),{styles:u}}return{}}},e.useDimensionsWithEnable=function(t){var o=t.enable,s=u.default.useState((function(){return l.Dimensions.get('window')})),h=(0,n.default)(s,2),f=h[0],y=h[1];return u.default.useEffect((function(){if(o){var t=function(t){var n=t.window;f.width===n.width&&f.height===n.height&&f.scale===n.scale&&f.fontScale===n.fontScale||y(n)};return l.Dimensions.addEventListener('change',t),t({window:l.Dimensions.get('window')}),function(){l.Dimensions.removeEventListener('change',t)}}return function(){}}),[f,o]),f}}),1151,[2,44,18,16]); +__d((function(g,r,i,a,m,e,d){}),1152,[]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getStyledSystemPropsAndRestProps=void 0;e.getStyledSystemPropsAndRestProps=function(t){var o={},s={};for(var n in t)n in r(d[0]).propConfig?o[n]=t[n]:s[n]=t[n];return{styledSystemProps:o,restProps:s}}}),1153,[981]); +__d((function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useSx=void 0;var o=s(r(d[1])),n=r(d[2]),u=s(r(d[3]));e.useSx=function(){var s=(0,r(d[4]).useNativeBaseConfig)('useBreakpointResolvedProps').isSSR,t=(0,r(d[5]).useTheme)();return function(v){var p=(0,u.default)(v),l=(0,n.useMemo)((function(){return(0,r(d[6]).isResponsiveAnyProp)(v,t)}),[p]);s&&l&&console.warn("useSx prop doesn't resolve responsive prop with SSR");var S=(0,r(d[7]).useStyledSystemPropsResolver)(v),f=(0,o.default)(S,3);f[0],f[1];return f[2]}}}),1154,[2,44,16,1147,916,918,935,1146]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useHasResponsiveProps=function(n){return!1}}),1155,[]); +__d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.wrapStringChild=void 0;var t=n(r(d[1])),l=n(r(d[2])),o=r(d[3]);e.wrapStringChild=function(n,u){return t.default.Children.map(n,(function(n){var p,f;return'string'==typeof n||'number'==typeof n||(null==n?void 0:n.type)===t.default.Fragment&&('string'==typeof(null==(p=n.props)?void 0:p.children)||'number'==typeof(null==(f=n.props)?void 0:f.children))?(0,o.jsx)(l.default,Object.assign({},u,{children:n})):n}))}}),1156,[2,16,1157,223]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var n=e(_r(d[1])),t=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u(n);if(t&&t.has(e))return t.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r})(_r(d[2])),r=_r(d[3]),o=_r(d[4]),i=["children"],l=["isTruncated","noOfLines","bold","italic","sub","highlight","underline","strikeThrough","fontFamily","fontWeight","fontStyle","_hover","fontSize","numberOfLines"];function u(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:n})(e)}var f=(0,_r(d[5]).makeStyledComponent)(r.Text),a=t.default.createContext(!1);_e.default=(0,t.memo)((0,t.forwardRef)((function(e,u){var s,c=e.children,h=(0,n.default)(e,i),v=t.default.useContext(a),b=(0,_r(d[6]).usePropsResolution)('Text',h,{},{resolveResponsively:['noOfLines','numberOfLines'],componentTheme:v?{}:void 0}),p=b.isTruncated,y=b.noOfLines,O=b.bold,j=b.italic,_=b.sub,P=b.highlight,x=b.underline,L=b.strikeThrough,S=b.fontFamily,w=b.fontWeight,F=b.fontStyle,R=b._hover,T=b.fontSize,W=b.numberOfLines,k=(0,n.default)(b,l),M=(0,t.useRef)(null),D=(0,_r(d[7]).useHover)({},R?M:null).isHovered,z=S,C=j?'italic':F,H=O?'bold':w;if((s=(0,_r(d[8]).useResolvedFontFamily)({fontFamily:z,fontWeight:null!=H?H:v?void 0:400,fontStyle:null!=C?C:v?void 0:'normal'}))&&(z=s),'web'===r.Platform.OS&&(s&&(z=s.fontFamily),s={fontFamily:z,fontWeight:null!=H?H:v?void 0:400,fontStyle:null!=C?C:v?void 0:'normal'}),(0,_r(d[9]).useHasResponsiveProps)(h))return null;var q=Object.assign({},k,{numberOfLines:W||y?W||y:p?1:void 0},s,{bg:P?'warning.300':k.bg,textDecorationLine:x&&L?'underline line-through':x?'underline':L?'line-through':k.textDecorationLine,fontSize:_?10:T,ref:(0,_r(d[10]).mergeRefs)([u,M])},D&&R);return v?(0,o.jsx)(f,Object.assign({},q,{children:c})):(0,o.jsx)(a.Provider,{value:!0,children:(0,o.jsx)(f,Object.assign({},q,{children:c}))})})))}),1157,[2,4,16,18,223,912,959,1158,1201,1155,1202]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PressEvents",{enumerable:!0,get:function(){return r(d[0]).PressEvents}}),Object.defineProperty(e,"PressHookProps",{enumerable:!0,get:function(){return r(d[0]).PressHookProps}}),Object.defineProperty(e,"PressProps",{enumerable:!0,get:function(){return r(d[0]).PressProps}}),Object.defineProperty(e,"PressResult",{enumerable:!0,get:function(){return r(d[0]).PressResult}}),Object.defineProperty(e,"keyboardDismissHandlerManager",{enumerable:!0,get:function(){return r(d[1]).keyboardDismissHandlerManager}}),Object.defineProperty(e,"useBackHandler",{enumerable:!0,get:function(){return r(d[1]).useBackHandler}}),Object.defineProperty(e,"useHover",{enumerable:!0,get:function(){return r(d[2]).useHover}}),Object.defineProperty(e,"useKeyboardDismissable",{enumerable:!0,get:function(){return r(d[1]).useKeyboardDismissable}}),Object.defineProperty(e,"usePress",{enumerable:!0,get:function(){return r(d[0]).usePress}})}),1158,[1159,1199,1200]); +__d((function(g,r,i,a,m,_e,d){var s=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.usePress=function(s){var t=s.isDisabled,u=s.onPress,f=s.onPressStart,l=s.onPressEnd,c=s.onPressUp,p=s.onPressChange,v=s.isPressed,_=(0,n.default)(s,P),b=o.default.useState(!1),S=(0,e.default)(b,2),h=S[0],C=S[1],D={onPress:function(s){t||u&&u(s)},onPressIn:function(s){t||(f&&f(s),C(!0),p&&p(!0))},onPressOut:function(s){t||(l&&l(s),C(!1),p&&p(!1),c&&c(s))}};return D=(0,r(d[4]).mergeProps)(D,_),{isPressed:v||h,pressProps:D}};var e=s(r(d[1])),n=s(r(d[2])),o=s(r(d[3])),P=["isDisabled","onPress","onPressStart","onPressEnd","onPressUp","onPressChange","isPressed"]}),1159,[2,44,4,16,1160]); +__d((function(g,r,i,a,m,_e,d){function e(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}e(m.exports,"useId",(function(){return r(d[0]).useId})),e(m.exports,"mergeIds",(function(){return r(d[0]).mergeIds})),e(m.exports,"useSlotId",(function(){return r(d[0]).useSlotId})),e(m.exports,"chain",(function(){return r(d[1]).chain})),e(m.exports,"getOwnerDocument",(function(){return r(d[2]).getOwnerDocument})),e(m.exports,"getOwnerWindow",(function(){return r(d[2]).getOwnerWindow})),e(m.exports,"mergeProps",(function(){return r(d[3]).mergeProps})),e(m.exports,"mergeRefs",(function(){return r(d[4]).mergeRefs})),e(m.exports,"filterDOMProps",(function(){return r(d[5]).filterDOMProps})),e(m.exports,"focusWithoutScrolling",(function(){return r(d[6]).focusWithoutScrolling})),e(m.exports,"getOffset",(function(){return r(d[7]).getOffset})),e(m.exports,"openLink",(function(){return r(d[8]).openLink})),e(m.exports,"getSyntheticLinkProps",(function(){return r(d[8]).getSyntheticLinkProps})),e(m.exports,"useSyntheticLinkProps",(function(){return r(d[8]).useSyntheticLinkProps})),e(m.exports,"RouterProvider",(function(){return r(d[8]).RouterProvider})),e(m.exports,"shouldClientNavigate",(function(){return r(d[8]).shouldClientNavigate})),e(m.exports,"useRouter",(function(){return r(d[8]).useRouter})),e(m.exports,"useLinkProps",(function(){return r(d[8]).useLinkProps})),e(m.exports,"runAfterTransition",(function(){return r(d[9]).runAfterTransition})),e(m.exports,"useDrag1D",(function(){return r(d[10]).useDrag1D})),e(m.exports,"useGlobalListeners",(function(){return r(d[11]).useGlobalListeners})),e(m.exports,"useLabels",(function(){return r(d[12]).useLabels})),e(m.exports,"useObjectRef",(function(){return r(d[13]).useObjectRef})),e(m.exports,"useUpdateEffect",(function(){return r(d[14]).useUpdateEffect})),e(m.exports,"useLayoutEffect",(function(){return r(d[15]).useLayoutEffect})),e(m.exports,"useResizeObserver",(function(){return r(d[16]).useResizeObserver})),e(m.exports,"useSyncRef",(function(){return r(d[17]).useSyncRef})),e(m.exports,"getScrollParent",(function(){return r(d[18]).getScrollParent})),e(m.exports,"getScrollParents",(function(){return r(d[19]).getScrollParents})),e(m.exports,"isScrollable",(function(){return r(d[20]).isScrollable})),e(m.exports,"useViewportSize",(function(){return r(d[21]).useViewportSize})),e(m.exports,"useDescription",(function(){return r(d[22]).useDescription})),e(m.exports,"isMac",(function(){return r(d[23]).isMac})),e(m.exports,"isIPhone",(function(){return r(d[23]).isIPhone})),e(m.exports,"isIPad",(function(){return r(d[23]).isIPad})),e(m.exports,"isIOS",(function(){return r(d[23]).isIOS})),e(m.exports,"isAppleDevice",(function(){return r(d[23]).isAppleDevice})),e(m.exports,"isWebKit",(function(){return r(d[23]).isWebKit})),e(m.exports,"isChrome",(function(){return r(d[23]).isChrome})),e(m.exports,"isAndroid",(function(){return r(d[23]).isAndroid})),e(m.exports,"isFirefox",(function(){return r(d[23]).isFirefox})),e(m.exports,"useEvent",(function(){return r(d[24]).useEvent})),e(m.exports,"useValueEffect",(function(){return r(d[25]).useValueEffect})),e(m.exports,"scrollIntoView",(function(){return r(d[26]).scrollIntoView})),e(m.exports,"scrollIntoViewport",(function(){return r(d[26]).scrollIntoViewport})),e(m.exports,"clamp",(function(){return r(d[27]).clamp})),e(m.exports,"snapValueToStep",(function(){return r(d[27]).snapValueToStep})),e(m.exports,"isVirtualClick",(function(){return r(d[28]).isVirtualClick})),e(m.exports,"isVirtualPointerEvent",(function(){return r(d[28]).isVirtualPointerEvent})),e(m.exports,"useEffectEvent",(function(){return r(d[29]).useEffectEvent})),e(m.exports,"useDeepMemo",(function(){return r(d[30]).useDeepMemo})),e(m.exports,"useFormReset",(function(){return r(d[31]).useFormReset})),e(m.exports,"useLoadMore",(function(){return r(d[32]).useLoadMore}))}),1160,[1161,1167,1168,1169,1171,1172,1173,1174,1175,1177,1178,1179,1180,1181,1182,1164,1183,1184,1185,1187,1186,1188,1189,1176,1190,1165,1191,1192,1195,1166,1196,1197,1198]); +__d((function(g,_r,i,a,m,_e,d){var e=_r(d[0]),n=_r(d[1]),t=_r(d[2]);function u(e,n,t,u){Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}u(m.exports,"useId",(function(){return c})),u(m.exports,"mergeIds",(function(){return f})),u(m.exports,"useSlotId",(function(){return l}));var r=Boolean('undefined'!=typeof window&&window.document&&window.document.createElement),o=new Map;function c(u){var c=(0,t.useState)(u),f=n(c,2),l=f[0],s=f[1],v=(0,t.useRef)(null),E=(0,_r(d[3]).useSSRSafeId)(l),w=(0,t.useCallback)((function(e){v.current=e}),[]);return r&&(o.has(E)&&!o.get(E).includes(w)?o.set(E,[].concat(e(o.get(E)),[w])):o.set(E,[w])),(0,_r(d[4]).useLayoutEffect)((function(){var e=E;return function(){o.delete(e)}}),[E]),(0,t.useEffect)((function(){var e=v.current;e&&(v.current=null,s(e))})),E}function f(e,n){if(e===n)return e;var t=o.get(e);if(t)return t.forEach((function(e){return e(n)})),n;var u=o.get(n);return u?(u.forEach((function(n){return n(e)})),e):n}function l(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=c(),o=(0,_r(d[5]).useValueEffect)(r),f=n(o,2),l=f[0],s=f[1],v=(0,t.useCallback)((function(){s((function*(){yield r,yield document.getElementById(r)?r:void 0}))}),[r,s]);return(0,_r(d[4]).useLayoutEffect)(v,[r,v].concat(e(u))),l}}),1161,[22,44,16,1162,1164,1165]); +__d((function(g,r,i,a,m,_e,d){function e(e,n,t,u){Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}e(m.exports,"SSRProvider",(function(){return r(d[0]).SSRProvider})),e(m.exports,"useSSRSafeId",(function(){return r(d[0]).useSSRSafeId})),e(m.exports,"useIsSSR",(function(){return r(d[0]).useIsSSR}))}),1162,[1163]); +__d((function(g,r,i,_a,m,_e,d){var e=r(d[0]),n=r(d[1]);function t(e){return e&&e.__esModule?e.default:e}function u(e,n,t,u){Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}u(m.exports,"SSRProvider",(function(){return l})),u(m.exports,"useIsSSR",(function(){return w})),u(m.exports,"useSSRSafeId",(function(){return x}));var o={prefix:String(Math.round(1e10*Math.random())),current:0},a=t(n).createContext(o),c=t(n).createContext(!1);function f(u){var f=(0,n.useContext)(a),s=p(f===o),l=(0,n.useState)(!0),v=e(l,2),S=v[0],x=v[1],_=(0,n.useMemo)((function(){return{prefix:f===o?'':`${f.prefix}-${s}`,current:0}}),[f,s]);return'undefined'!=typeof document&&(0,n.useLayoutEffect)((function(){x(!1)}),[]),t(n).createElement(a.Provider,{value:_},t(n).createElement(c.Provider,{value:S},u.children))}var s=!1;function l(e){return'function'==typeof t(n).useId?(s||(console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.'),s=!0),t(n).createElement(t(n).Fragment,null,e.children)):t(n).createElement(f,e)}var v=Boolean('undefined'!=typeof window&&window.document&&window.document.createElement),S=new WeakMap;function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],u=(0,n.useContext)(a),o=(0,n.useRef)(null);if(null===o.current&&!e){var c,f,s=null===(f=t(n).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===f||null===(c=f.ReactCurrentOwner)||void 0===c?void 0:c.current;if(s){var l=S.get(s);null==l?S.set(s,{id:u.current,state:s.memoizedState}):s.memoizedState!==l.state&&(u.current=l.id,S.delete(s))}o.current=++u.current}return o.current}var x='function'==typeof t(n).useId?function(u){var a=t(n).useId(),c=(0,n.useState)(w()),f=e(c,1)[0]?'react-aria':`react-aria${o.prefix}`;return u||`${f}-${a}`}:function(e){var t=(0,n.useContext)(a);t!==o||v||console.warn('When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.');var u=p(!!e),c=`react-aria${t.prefix}`;return e||`${c}-${u}`};function _(){return!1}function E(){return!0}function y(e){return function(){}}function w(){return'function'==typeof t(n).useSyncExternalStore?t(n).useSyncExternalStore(y,_,E):(0,n.useContext)(c)}}),1163,[44,16]); +__d((function(g,r,i,_a,m,_e,d){var e,t,u,n,f=r(d[0]);e=m.exports,t="useLayoutEffect",u=function(){return c},Object.defineProperty(e,t,{get:u,set:n,enumerable:!0,configurable:!0});var o,c='undefined'!=typeof document?(o=f,o&&o.__esModule?o.default:o).useLayoutEffect:function(){}}),1164,[16]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,f=r(d[0]),c=r(d[1]);function o(e){var n=(0,c.useState)(e),t=f(n,2),u=t[0],o=t[1],l=(0,c.useRef)(null),s=(0,r(d[2]).useEffectEvent)((function(){if(l.current){var e=l.current.next();e.done?l.current=null:u===e.value?s():o(e.value)}}));(0,r(d[3]).useLayoutEffect)((function(){l.current&&s()}));var v=(0,r(d[2]).useEffectEvent)((function(e){l.current=e(u),s()}));return[u,v]}e=m.exports,n="useValueEffect",t=function(){return o},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1165,[44,16,1166,1164]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,c=r(d[0]);function f(e){var n=(0,c.useRef)(null);return(0,r(d[1]).useLayoutEffect)((function(){n.current=e}),[e]),(0,c.useCallback)((function(){var e=n.current;return null==e?void 0:e.apply(void 0,arguments)}),[])}e=m.exports,n="useEffectEvent",t=function(){return f},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1166,[16,1164]); +__d((function(g,r,i,a,m,_e,d){var n,e,t,o;function f(){for(var n=arguments.length,e=new Array(n),t=0;t=65&&i.charCodeAt(2)<=90?n[i]=(0,r(d[0]).chain)(a,f):'className'!==i&&'UNSAFE_className'!==i||'string'!=typeof a||'string'!=typeof f?'id'===i&&a&&f?n.id=(0,r(d[2]).mergeIds)(a,f):n[i]=void 0!==f?f:a:n[i]=e(r(d[1]))(a,f)}}return n}n=m.exports,t="mergeProps",o=function(){return a},Object.defineProperty(n,t,{get:o,set:i,enumerable:!0,configurable:!0})}),1169,[1167,1170,1161]); +__d((function(g,_r,i,a,m,_e,d){function r(e){var t,n,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.labelable,l=t.isLink,c=t.propNames,p={};for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(o.has(h)||n&&s.has(h)||l&&b.has(h)||(null==c?void 0:c.has(h))||f.test(h))&&(p[h]=e[h]);return p}}),1172,[]); +__d((function(g,r,i,a,m,_e,d){var e,l,o,t;function n(e){if(f())e.focus({preventScroll:!0});else{var l=s(e);e.focus(),u(l)}}e=m.exports,l="focusWithoutScrolling",o=function(){return n},Object.defineProperty(e,l,{get:o,set:t,enumerable:!0,configurable:!0});var c=null;function f(){if(null==c){c=!1;try{document.createElement('div').focus({get preventScroll(){return c=!0,!0}})}catch(e){}}return c}function s(e){for(var l=e.parentNode,o=[],t=document.scrollingElement||document.documentElement;l instanceof HTMLElement&&l!==t;)(l.offsetHeight2&&void 0!==arguments[2]?arguments[2]:'horizontal',o=t.getBoundingClientRect();return e?'horizontal'===n?o.right:o.bottom:'horizontal'===n?o.left:o.top}t=m.exports,e="getOffset",n=function(){return f},Object.defineProperty(t,e,{get:n,set:o,enumerable:!0,configurable:!0})}),1174,[]); +__d((function(g,r,i,_a,m,_e,d){var e=r(d[0]);function t(e,t,n,a){Object.defineProperty(e,t,{get:n,set:a,enumerable:!0,configurable:!0})}t(m.exports,"RouterProvider",(function(){return a})),t(m.exports,"shouldClientNavigate",(function(){return u})),t(m.exports,"openLink",(function(){return l})),t(m.exports,"useRouter",(function(){return o})),t(m.exports,"useSyntheticLinkProps",(function(){return c})),t(m.exports,"getSyntheticLinkProps",(function(){return s})),t(m.exports,"useLinkProps",(function(){return v}));var n=(0,e.createContext)({isNative:!0,open:function(e,t){f(e,(function(e){return l(e,t)}))},useHref:function(e){return e}});function a(t){var a,o=t.children,c=t.navigate,s=t.useHref,v=(0,e.useMemo)((function(){return{isNative:!1,open:function(e,t,n,a){f(e,(function(e){u(e,t)?c(n,a):l(e,t)}))},useHref:s||function(e){return e}}}),[c,s]);return(a=e,a&&a.__esModule?a.default:a).createElement(n.Provider,{value:v},o)}function o(){return(0,e.useContext)(n)}function u(e,t){var n=e.getAttribute('target');return!(n&&'_self'!==n||e.origin!==location.origin||e.hasAttribute('download')||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)}function l(e,t){var n,a,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=t.metaKey,f=t.ctrlKey,c=t.altKey,s=t.shiftKey;(0,r(d[1]).isFirefox)()&&(null===(a=window.event)||void 0===a||null===(n=a.type)||void 0===n?void 0:n.startsWith('key'))&&'_blank'===e.target&&((0,r(d[1]).isMac)()?u=!0:f=!0);var v=(0,r(d[1]).isWebKit)()&&(0,r(d[1]).isMac)()&&!(0,r(d[1]).isIPad)()?new KeyboardEvent('keydown',{keyIdentifier:'Enter',metaKey:u,ctrlKey:f,altKey:c,shiftKey:s}):new MouseEvent('click',{metaKey:u,ctrlKey:f,altKey:c,shiftKey:s,bubbles:!0,cancelable:!0});l.isOpening=o,(0,r(d[2]).focusWithoutScrolling)(e),e.dispatchEvent(v),l.isOpening=!1}function f(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute('data-href')){var n=document.createElement('a');n.href=e.getAttribute('data-href'),e.hasAttribute('data-target')&&(n.target=e.getAttribute('data-target')),e.hasAttribute('data-rel')&&(n.rel=e.getAttribute('data-rel')),e.hasAttribute('data-download')&&(n.download=e.getAttribute('data-download')),e.hasAttribute('data-ping')&&(n.ping=e.getAttribute('data-ping')),e.hasAttribute('data-referrer-policy')&&(n.referrerPolicy=e.getAttribute('data-referrer-policy')),e.appendChild(n),t(n),e.removeChild(n)}}function c(e){var t,n=o().useHref(null!==(t=e.href)&&void 0!==t?t:'');return{'data-href':e.href?n:void 0,'data-target':e.target,'data-rel':e.rel,'data-download':e.download,'data-ping':e.ping,'data-referrer-policy':e.referrerPolicy}}function s(e){return{'data-href':e.href,'data-target':e.target,'data-rel':e.rel,'data-download':e.download,'data-ping':e.ping,'data-referrer-policy':e.referrerPolicy}}function v(e){var t,n=o().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:'');return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}l.isOpening=!1}),1175,[16,1176,1173]); +__d((function(g,r,i,a,m,_e,d){function n(n,t,e,o){Object.defineProperty(n,t,{get:e,set:o,enumerable:!0,configurable:!0})}function t(n){var t;return'undefined'!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((function(t){return n.test(t.brand)})))||n.test(window.navigator.userAgent))}function e(n){var t;return'undefined'!=typeof window&&null!=window.navigator&&n.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(n){var t=null;return function(){return null==t&&(t=n()),t}}n(m.exports,"isMac",(function(){return u})),n(m.exports,"isIPhone",(function(){return f})),n(m.exports,"isIPad",(function(){return c})),n(m.exports,"isIOS",(function(){return s})),n(m.exports,"isAppleDevice",(function(){return l})),n(m.exports,"isWebKit",(function(){return p})),n(m.exports,"isChrome",(function(){return v})),n(m.exports,"isAndroid",(function(){return w})),n(m.exports,"isFirefox",(function(){return x}));var u=o((function(){return e(/^Mac/i)})),f=o((function(){return e(/^iPhone/i)})),c=o((function(){return e(/^iPad/i)||u()&&navigator.maxTouchPoints>1})),s=o((function(){return f()||c()})),l=o((function(){return u()||s()})),p=o((function(){return t(/AppleWebKit/i)&&!v()})),v=o((function(){return t(/Chrome/i)})),w=o((function(){return t(/Android/i)})),x=o((function(){return t(/Firefox/i)}))}),1176,[]); +__d((function(g,r,i,a,m,_e,d){var e,t,n,o;e=m.exports,t="runAfterTransition",n=function(){return s},Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0});var u=new Map,c=new Set;function f(){if('undefined'!=typeof window){var e=function(n){if(t(n)&&n.target){var o=u.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener('transitioncancel',e),u.delete(n.target)),0===u.size)){for(var f of c)f();c.clear()}}};document.body.addEventListener('transitionrun',(function(n){if(t(n)&&n.target){var o=u.get(n.target);o||(o=new Set,u.set(n.target,o),n.target.addEventListener('transitioncancel',e,{once:!0})),o.add(n.propertyName)}})),document.body.addEventListener('transitionend',e)}function t(e){return'propertyName'in e}}function s(e){requestAnimationFrame((function(){0===u.size?e():c.add(e)}))}'undefined'!=typeof document&&('loading'!==document.readyState?f():document.addEventListener('DOMContentLoaded',f))}),1177,[]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,o,u=r(d[0]);e=m.exports,n="useDrag1D",t=function(){return s},Object.defineProperty(e,n,{get:t,set:o,enumerable:!0,configurable:!0});var c=[];function s(e){console.warn('useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html');var n=e.containerRef,t=e.reverse,o=e.orientation,s=e.onHover,f=e.onDrag,v=e.onPositionChange,D=e.onIncrement,l=e.onDecrement,p=e.onIncrementToMax,w=e.onDecrementToMin,h=e.onCollapseToggle,b=function(e){return'horizontal'===o?e.clientX:e.clientY},C=function(e){var u=(0,r(d[1]).getOffset)(n.current,t,o),c=b(e);return t?u-c:c-u},P=(0,u.useRef)(!1),k=(0,u.useRef)(0),E=(0,u.useRef)({onPositionChange:v,onDrag:f});E.current.onDrag=f,E.current.onPositionChange=v;var M=function(e){e.preventDefault();var n=C(e);P.current||(P.current=!0,E.current.onDrag&&E.current.onDrag(!0),E.current.onPositionChange&&E.current.onPositionChange(n)),k.current!==n&&(k.current=n,v&&v(n))},L=function(e){var n=e.target;P.current=!1;var t=C(e);E.current.onDrag&&E.current.onDrag(!1),E.current.onPositionChange&&E.current.onPositionChange(t),c.splice(c.indexOf(n),1),window.removeEventListener('mouseup',L,!1),window.removeEventListener('mousemove',M,!1)};return{onMouseDown:function(e){var n=e.currentTarget;c.some((function(e){return n.contains(e)}))||(c.push(n),window.addEventListener('mousemove',M,!1),window.addEventListener('mouseup',L,!1))},onMouseEnter:function(){s&&s(!0)},onMouseOut:function(){s&&s(!1)},onKeyDown:function(e){switch(e.key){case'Left':case'ArrowLeft':'horizontal'===o&&(e.preventDefault(),l&&!t?l():D&&t&&D());break;case'Up':case'ArrowUp':'vertical'===o&&(e.preventDefault(),l&&!t?l():D&&t&&D());break;case'Right':case'ArrowRight':'horizontal'===o&&(e.preventDefault(),D&&!t?D():l&&t&&l());break;case'Down':case'ArrowDown':'vertical'===o&&(e.preventDefault(),D&&!t?D():l&&t&&l());break;case'Home':e.preventDefault(),w&&w();break;case'End':e.preventDefault(),p&&p();break;case'Enter':e.preventDefault(),h&&h()}}}}}),1178,[16,1174]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,o,u=r(d[0]);function l(){var e=(0,u.useRef)(new Map),n=(0,u.useCallback)((function(n,t,o,u){var l=(null==u?void 0:u.once)?function(){e.current.delete(o),o.apply(void 0,arguments)}:o;e.current.set(o,{type:t,eventTarget:n,fn:l,options:u}),n.addEventListener(t,o,u)}),[]),t=(0,u.useCallback)((function(n,t,o,u){var l,c=(null===(l=e.current.get(o))||void 0===l?void 0:l.fn)||o;n.removeEventListener(t,c,u),e.current.delete(o)}),[]),o=(0,u.useCallback)((function(){e.current.forEach((function(e,n){t(e.eventTarget,e.type,n,e.options)}))}),[t]);return(0,u.useEffect)((function(){return o}),[o]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:o}}e=m.exports,n="useGlobalListeners",t=function(){return l},Object.defineProperty(e,n,{get:t,set:o,enumerable:!0,configurable:!0})}),1179,[16]); +__d((function(g,r,i,a,m,_e,d){var e,l,t,n,b=r(d[0]);function s(e,l){var t=e.id,n=e['aria-label'],s=e['aria-labelledby'];if(t=(0,r(d[1]).useId)(t),s&&n){var o=new Set([t].concat(b(s.trim().split(/\s+/))));s=b(o).join(' ')}else s&&(s=s.trim().split(/\s+/).join(' '));return n||s||!l||(n=l),{id:t,'aria-label':n,'aria-labelledby':s}}e=m.exports,l="useLabels",t=function(){return s},Object.defineProperty(e,l,{get:t,set:n,enumerable:!0,configurable:!0})}),1180,[22,1161]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,c=r(d[0]);function f(e){var n=(0,c.useRef)(null);return(0,c.useMemo)((function(){return{get current(){return n.current},set current(t){n.current=t,'function'==typeof e?e(t):e&&(e.current=t)}}}),[e])}e=m.exports,n="useObjectRef",t=function(){return f},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1181,[16]); +__d((function(g,r,_i,a,m,_e,d){var e,n,t,u,c=r(d[0]);function f(e,n){var t=(0,c.useRef)(!0),u=(0,c.useRef)(null);(0,c.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]),(0,c.useEffect)((function(){t.current?t.current=!1:u.current&&!n.some((function(e,n){return!Object.is(e,u[n])}))||e(),u.current=n}),n)}e=m.exports,n="useUpdateEffect",t=function(){return f},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1182,[16]); +__d((function(g,r,i,a,m,_e,d){var e,n,o,t,s=r(d[0]);function u(e){var n=e.ref,o=e.box,t=e.onResize;(0,s.useEffect)((function(){var e=null==n?void 0:n.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener('resize',t,!1),function(){window.removeEventListener('resize',t,!1)};var s=new window.ResizeObserver((function(e){e.length&&t()}));return s.observe(e,{box:o}),function(){e&&s.unobserve(e)}}}),[t,n,o])}e=m.exports,n="useResizeObserver",o=function(){return u},Object.defineProperty(e,n,{get:o,set:t,enumerable:!0,configurable:!0})}),1183,[16]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u;function f(e,n){(0,r(d[0]).useLayoutEffect)((function(){if(e&&e.ref&&n)return e.ref.current=n.current,function(){e.ref&&(e.ref.current=null)}}))}e=m.exports,n="useSyncRef",t=function(){return f},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1184,[1164]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,l;function o(e,n){var t=e;for((0,r(d[0]).isScrollable)(t,n)&&(t=t.parentElement);t&&!(0,r(d[0]).isScrollable)(t,n);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}e=m.exports,n="getScrollParent",t=function(){return o},Object.defineProperty(e,n,{get:t,set:l,enumerable:!0,configurable:!0})}),1185,[1186]); +__d((function(g,r,i,a,m,_e,d){var e,t,o,l;function n(e,t){var o=window.getComputedStyle(e),l=/(auto|scroll)/.test(o.overflow+o.overflowX+o.overflowY);return l&&t&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}e=m.exports,t="isScrollable",o=function(){return n},Object.defineProperty(e,t,{get:o,set:l,enumerable:!0,configurable:!0})}),1186,[]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,o;function u(e,n){for(var t=[];e&&e!==document.documentElement;)(0,r(d[0]).isScrollable)(e,n)&&t.push(e),e=e.parentElement;return t}e=m.exports,n="getScrollParents",t=function(){return u},Object.defineProperty(e,n,{get:t,set:o,enumerable:!0,configurable:!0})}),1187,[1186]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,o=r(d[0]),h=r(d[1]);e=m.exports,n="useViewportSize",t=function(){return s},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0});var w='undefined'!=typeof document&&window.visualViewport;function s(){var e=(0,r(d[2]).useIsSSR)(),n=(0,h.useState)((function(){return e?{width:0,height:0}:f()})),t=o(n,2),u=t[0],s=t[1];return(0,h.useEffect)((function(){var e=function(){s((function(e){var n=f();return n.width===e.width&&n.height===e.height?e:n}))};return w?w.addEventListener('resize',e):window.addEventListener('resize',e),function(){w?w.removeEventListener('resize',e):window.removeEventListener('resize',e)}}),[]),u}function f(){return{width:w&&(null==w?void 0:w.width)||window.innerWidth,height:w&&(null==w?void 0:w.height)||window.innerHeight}}}),1188,[44,16,1162]); +__d((function(g,r,i,a,m,_e,d){var e,t,n,o,u=r(d[0]),c=r(d[1]);e=m.exports,t="useDescription",n=function(){return l},Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0});var f=0,s=new Map;function l(e){var t=(0,c.useState)(),n=u(t,2),o=n[0],l=n[1];return(0,r(d[2]).useLayoutEffect)((function(){if(e){var t=s.get(e);if(t)l(t.element.id);else{var n="react-aria-description-"+f++;l(n);var o=document.createElement('div');o.id=n,o.style.display='none',o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},s.set(e,t)}return t.refCount++,function(){t&&0==--t.refCount&&(t.element.remove(),s.delete(e))}}}),[e]),{'aria-describedby':e?o:void 0}}}),1189,[44,16,1164]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,f=r(d[0]);function c(e,n,t,u){var c=(0,r(d[1]).useEffectEvent)(t),o=null==t;(0,f.useEffect)((function(){if(!o&&e.current){var t=e.current;return t.addEventListener(n,c,u),function(){t.removeEventListener(n,c,u)}}}),[e,n,u,o,c])}e=m.exports,n="useEvent",t=function(){return c},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1190,[16,1166]); +__d((function(g,r,i,a,m,_e,d){function e(e,t,o,n){Object.defineProperty(e,t,{get:o,set:n,enumerable:!0,configurable:!0})}function t(e,t){var n=o(e,t,'left'),l=o(e,t,'top'),f=t.offsetWidth,c=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,p=getComputedStyle(e),v=p.borderTopWidth,b=p.borderLeftWidth,h=e.scrollLeft+parseInt(b,10),I=e.scrollTop+parseInt(v,10),w=h+e.clientWidth,P=I+e.clientHeight;n<=s?s=n-parseInt(b,10):n+f>w&&(s+=n+f-w),l<=I?u=l-parseInt(v,10):l+c>P&&(u+=l+c-P),e.scrollLeft=s,e.scrollTop=u}function o(e,t,o){for(var n='left'===o?'offsetLeft':'offsetTop',l=0;t.offsetParent&&(l+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){l-=e[n];break}t=t.offsetParent}return l}function n(e,o){if(document.contains(e)){var n=document.scrollingElement||document.documentElement;if('hidden'===window.getComputedStyle(n).overflow){var l=(0,r(d[0]).getScrollParents)(e);for(var f of l)t(f,e)}else{var c,s=e.getBoundingClientRect(),u=s.left,p=s.top;null==e||null===(c=e.scrollIntoView)||void 0===c||c.call(e,{block:'nearest'});var v,b,h,I=e.getBoundingClientRect(),w=I.left,P=I.top;if(Math.abs(u-w)>1||Math.abs(p-P)>1)null==o||null===(b=o.containingElement)||void 0===b||null===(v=b.scrollIntoView)||void 0===v||v.call(b,{block:'center',inline:'center'}),null===(h=e.scrollIntoView)||void 0===h||h.call(e,{block:'nearest'})}}}e(m.exports,"scrollIntoView",(function(){return t})),e(m.exports,"scrollIntoViewport",(function(){return n}))}),1191,[1187]); +__d((function(g,r,i,a,m,_e,d){function e(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}e(m.exports,"useControlledState",(function(){return r(d[0]).useControlledState})),e(m.exports,"clamp",(function(){return r(d[1]).clamp})),e(m.exports,"snapValueToStep",(function(){return r(d[1]).snapValueToStep})),e(m.exports,"toFixedNumber",(function(){return r(d[1]).toFixedNumber}))}),1192,[1193,1194]); +__d((function(g,r,i,a,m,_e,d){var e,n,o,t,c=r(d[0]),u=r(d[1]);function l(e,n,o){var t=(0,u.useState)(e||n),l=c(t,2),f=l[0],s=l[1],p=(0,u.useRef)(void 0!==e),v=void 0!==e;(0,u.useEffect)((function(){var e=p.current;e!==v&&console.warn(`WARN: A component changed from ${e?'controlled':'uncontrolled'} to ${v?'controlled':'uncontrolled'}.`),p.current=v}),[v]);var b=v?e:f,y=(0,u.useCallback)((function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),c=1;c1?n-1:0),c=1;c1?o-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:-1/0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.min(Math.max(t,n),e)}function e(t,n){var e=t,o=n.toString(),u=o.indexOf('.'),f=u>=0?o.length-u:0;if(f>0){var h=Math.pow(10,f);e=Math.round(e*h)/h}return e}function o(t,n,o,u){n=Number(n),o=Number(o);var f=(t-(isNaN(n)?0:n))%u,h=e(2*Math.abs(f)>=u?t+Math.sign(f)*(u-Math.abs(f)):t-f,u);return isNaN(n)?!isNaN(o)&&h>o&&(h=Math.floor(e(o/u,u))*u):ho&&(h=n+Math.floor(e((o-n)/u,u))*u),h=e(h,u)}function u(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=Math.pow(e,n);return Math.round(t*o)/o}t(m.exports,"clamp",(function(){return n})),t(m.exports,"snapValueToStep",(function(){return o})),t(m.exports,"toFixedNumber",(function(){return u}))}),1194,[]); +__d((function(g,r,i,a,m,_e,d){function e(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function t(e){return!(0!==e.mozInputSource||!e.isTrusted)||((0,r(d[0]).isAndroid)()&&e.pointerType?'click'===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function n(e){return!(0,r(d[0]).isAndroid)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&'mouse'===e.pointerType}e(m.exports,"isVirtualClick",(function(){return t})),e(m.exports,"isVirtualPointerEvent",(function(){return n}))}),1195,[1176]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,c=r(d[0]);function o(e,n){var t=(0,c.useRef)(null);return e&&t.current&&n(e,t.current)&&(e=t.current),t.current=e,e}e=m.exports,n="useDeepMemo",t=function(){return o},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1196,[16]); +__d((function(g,r,i,a,m,_e,d){var e,n,t,u,f=r(d[0]);function o(e,n,t){var u=(0,f.useRef)(n),o=(0,r(d[1]).useEffectEvent)((function(){t&&t(u.current)}));(0,f.useEffect)((function(){var n,t=null==e||null===(n=e.current)||void 0===n?void 0:n.form;return null==t||t.addEventListener('reset',o),function(){null==t||t.removeEventListener('reset',o)}}),[e,o])}e=m.exports,n="useFormReset",t=function(){return o},Object.defineProperty(e,n,{get:t,set:u,enumerable:!0,configurable:!0})}),1197,[16,1166]); +__d((function(g,r,i,a,m,_e,d){var e,t,n,u,c=r(d[0]);function o(e,t){var n=e.isLoading,u=e.onLoadMore,o=e.scrollOffset,l=void 0===o?1:o,s=e.items,f=(0,c.useRef)(n),h=(0,c.useRef)(e),v=(0,c.useCallback)((function(){t.current&&!f.current&&u&&(t.current.scrollHeight-t.current.scrollTop-t.current.clientHeight1&&void 0!==arguments[1]?arguments[1]:[];return l.default.Children.toArray(t).reduce((function(t,u,s){return u.type===l.default.Fragment?t.concat(c(u.props.children,n.concat(u.key||s))):(l.default.isValidElement(u)?t.push(l.default.cloneElement(u,{key:n.concat(String(u.key||s)).join('.')})):t.push(u),t)}),[])}e.default=function(t,o,f,h,v){var p=l.default.Children.toArray(c(t));p='reverse'===h?(0,n.default)(p).reverse():p;var y='X'===f?'vertical':'horizontal',j=l.default.useContext(r(d[5]).ResponsiveQueryContext).disableCSSMediaQueries;if(v){var x=Object.assign({},'X'===f?{mx:o}:{my:o});v=l.default.cloneElement(v,Object.assign({orientation:y},x)),p=p.map((function(t,n){var u;return(0,s.jsxs)(l.default.Fragment,{children:[t,n0?(0,n.jsx)(_r(d[5]).G,{children:o.default.Children.map(a,(function(e,r){var o;return(0,n.jsx)(i,Object.assign({element:e},null==e?void 0:e.props),null!=(o=null==e?void 0:e.key)?o:r)}))}):_r(d[8]).questionOutlineIconPath}))})))}),1240,[2,4,16,223,912,1241,913,1155,1356]); +__d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(d[0]).Circle}}),Object.defineProperty(e,"G",{enumerable:!0,get:function(){return r(d[0]).G}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(d[0]).Line}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(d[0]).Path}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(d[0]).Polygon}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d[0]).Rect}}),Object.defineProperty(e,"Svg",{enumerable:!0,get:function(){return r(d[0]).Svg}})}),1241,[1242]); +__d((function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t.default}});var t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&{}.hasOwnProperty.call(e,f)){var a=o?Object.getOwnPropertyDescriptor(e,f):null;a&&(a.get||a.set)?Object.defineProperty(u,f,a):u[f]=e[f]}return u.default=e,n&&n.set(e,u),u})(_r(d[0]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))}))}),1242,[1243]); +__d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0});var t={Shape:!0,camelCase:!0,parse:!0,SvgAst:!0,SvgFromUri:!0,SvgFromXml:!0,SvgUri:!0,SvgXml:!0,fetchText:!0,RNSVGCircle:!0,RNSVGClipPath:!0,RNSVGDefs:!0,RNSVGEllipse:!0,RNSVGFeColorMatrix:!0,RNSVGFeGaussianBlur:!0,RNSVGFeMerge:!0,RNSVGFeOffset:!0,RNSVGFilter:!0,RNSVGForeignObject:!0,RNSVGGroup:!0,RNSVGImage:!0,RNSVGLine:!0,RNSVGLinearGradient:!0,RNSVGMarker:!0,RNSVGMask:!0,RNSVGPath:!0,RNSVGPattern:!0,RNSVGRadialGradient:!0,RNSVGRect:!0,RNSVGSvgAndroid:!0,RNSVGSvgIOS:!0,RNSVGSymbol:!0,RNSVGText:!0,RNSVGTextPath:!0,RNSVGTSpan:!0,RNSVGUse:!0,inlineStyles:!0,loadLocalRawResource:!0,LocalSvg:!0,SvgCss:!0,SvgCssUri:!0,SvgWithCss:!0,SvgWithCssUri:!0,WithLocalSvg:!0};Object.defineProperty(_e,"LocalSvg",{enumerable:!0,get:function(){return _r(d[1]).LocalSvg}}),Object.defineProperty(_e,"RNSVGCircle",{enumerable:!0,get:function(){return _r(d[2]).RNSVGCircle}}),Object.defineProperty(_e,"RNSVGClipPath",{enumerable:!0,get:function(){return _r(d[2]).RNSVGClipPath}}),Object.defineProperty(_e,"RNSVGDefs",{enumerable:!0,get:function(){return _r(d[2]).RNSVGDefs}}),Object.defineProperty(_e,"RNSVGEllipse",{enumerable:!0,get:function(){return _r(d[2]).RNSVGEllipse}}),Object.defineProperty(_e,"RNSVGFeColorMatrix",{enumerable:!0,get:function(){return _r(d[2]).RNSVGFeColorMatrix}}),Object.defineProperty(_e,"RNSVGFeGaussianBlur",{enumerable:!0,get:function(){return _r(d[2]).RNSVGFeGaussianBlur}}),Object.defineProperty(_e,"RNSVGFeMerge",{enumerable:!0,get:function(){return _r(d[2]).RNSVGFeMerge}}),Object.defineProperty(_e,"RNSVGFeOffset",{enumerable:!0,get:function(){return _r(d[2]).RNSVGFeOffset}}),Object.defineProperty(_e,"RNSVGFilter",{enumerable:!0,get:function(){return _r(d[2]).RNSVGFilter}}),Object.defineProperty(_e,"RNSVGForeignObject",{enumerable:!0,get:function(){return _r(d[2]).RNSVGForeignObject}}),Object.defineProperty(_e,"RNSVGGroup",{enumerable:!0,get:function(){return _r(d[2]).RNSVGGroup}}),Object.defineProperty(_e,"RNSVGImage",{enumerable:!0,get:function(){return _r(d[2]).RNSVGImage}}),Object.defineProperty(_e,"RNSVGLine",{enumerable:!0,get:function(){return _r(d[2]).RNSVGLine}}),Object.defineProperty(_e,"RNSVGLinearGradient",{enumerable:!0,get:function(){return _r(d[2]).RNSVGLinearGradient}}),Object.defineProperty(_e,"RNSVGMarker",{enumerable:!0,get:function(){return _r(d[2]).RNSVGMarker}}),Object.defineProperty(_e,"RNSVGMask",{enumerable:!0,get:function(){return _r(d[2]).RNSVGMask}}),Object.defineProperty(_e,"RNSVGPath",{enumerable:!0,get:function(){return _r(d[2]).RNSVGPath}}),Object.defineProperty(_e,"RNSVGPattern",{enumerable:!0,get:function(){return _r(d[2]).RNSVGPattern}}),Object.defineProperty(_e,"RNSVGRadialGradient",{enumerable:!0,get:function(){return _r(d[2]).RNSVGRadialGradient}}),Object.defineProperty(_e,"RNSVGRect",{enumerable:!0,get:function(){return _r(d[2]).RNSVGRect}}),Object.defineProperty(_e,"RNSVGSvgAndroid",{enumerable:!0,get:function(){return _r(d[2]).RNSVGSvgAndroid}}),Object.defineProperty(_e,"RNSVGSvgIOS",{enumerable:!0,get:function(){return _r(d[2]).RNSVGSvgIOS}}),Object.defineProperty(_e,"RNSVGSymbol",{enumerable:!0,get:function(){return _r(d[2]).RNSVGSymbol}}),Object.defineProperty(_e,"RNSVGTSpan",{enumerable:!0,get:function(){return _r(d[2]).RNSVGTSpan}}),Object.defineProperty(_e,"RNSVGText",{enumerable:!0,get:function(){return _r(d[2]).RNSVGText}}),Object.defineProperty(_e,"RNSVGTextPath",{enumerable:!0,get:function(){return _r(d[2]).RNSVGTextPath}}),Object.defineProperty(_e,"RNSVGUse",{enumerable:!0,get:function(){return _r(d[2]).RNSVGUse}}),Object.defineProperty(_e,"Shape",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"SvgAst",{enumerable:!0,get:function(){return _r(d[3]).SvgAst}}),Object.defineProperty(_e,"SvgCss",{enumerable:!0,get:function(){return _r(d[1]).SvgCss}}),Object.defineProperty(_e,"SvgCssUri",{enumerable:!0,get:function(){return _r(d[1]).SvgCssUri}}),Object.defineProperty(_e,"SvgFromUri",{enumerable:!0,get:function(){return _r(d[3]).SvgFromUri}}),Object.defineProperty(_e,"SvgFromXml",{enumerable:!0,get:function(){return _r(d[3]).SvgFromXml}}),Object.defineProperty(_e,"SvgUri",{enumerable:!0,get:function(){return _r(d[3]).SvgUri}}),Object.defineProperty(_e,"SvgWithCss",{enumerable:!0,get:function(){return _r(d[1]).SvgWithCss}}),Object.defineProperty(_e,"SvgWithCssUri",{enumerable:!0,get:function(){return _r(d[1]).SvgWithCssUri}}),Object.defineProperty(_e,"SvgXml",{enumerable:!0,get:function(){return _r(d[3]).SvgXml}}),Object.defineProperty(_e,"WithLocalSvg",{enumerable:!0,get:function(){return _r(d[1]).WithLocalSvg}}),Object.defineProperty(_e,"camelCase",{enumerable:!0,get:function(){return _r(d[3]).camelCase}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"fetchText",{enumerable:!0,get:function(){return _r(d[4]).fetchText}}),Object.defineProperty(_e,"inlineStyles",{enumerable:!0,get:function(){return _r(d[1]).inlineStyles}}),Object.defineProperty(_e,"loadLocalRawResource",{enumerable:!0,get:function(){return _r(d[1]).loadLocalRawResource}}),Object.defineProperty(_e,"parse",{enumerable:!0,get:function(){return _r(d[3]).parse}});var r=e(_r(d[5]));Object.keys(_r(d[6])).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[6])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[6])[e]}}))}));var n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[7]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===n[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return n[e]}}))}))}),1243,[2,1244,1245,1275,1352,1283,1355,1277]); +__d((function(g,r,i,a,m,e,d){function o(o,n){throw Error(`[react-native-svg] You are trying to import a ${n} \`${o}\` that has been moved to a sub-package. Change your import from \`react-native-svg\` to \`react-native-svg/css\`.`)}Object.defineProperty(e,"__esModule",{value:!0}),e.LocalSvg=function(){o('LocalSvg','component')},e.SvgCss=function(){o('SvgCss','component')},e.SvgCssUri=function(){o('SvgCssUri','component')},e.SvgWithCss=function(){o('SvgWithCss','component')},e.SvgWithCssUri=function(){o('SvgWithCssUri','component')},e.WithLocalSvg=function(){o('WithLocalSvg','component')},e.inlineStyles=function(){o('inlineStyles','function')},e.loadLocalRawResource=function(){o('loadLocalRawResource','function')},e.showErrorCSS=o}),1244,[]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RNSVGCircle",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"RNSVGClipPath",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"RNSVGDefs",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"RNSVGEllipse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"RNSVGFeBlend",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"RNSVGFeColorMatrix",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"RNSVGFeFlood",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"RNSVGFeGaussianBlur",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"RNSVGFeMerge",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"RNSVGFeOffset",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"RNSVGFilter",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"RNSVGForeignObject",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"RNSVGGroup",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"RNSVGImage",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"RNSVGLine",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"RNSVGLinearGradient",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"RNSVGMarker",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"RNSVGMask",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"RNSVGPath",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"RNSVGPattern",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"RNSVGRadialGradient",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"RNSVGRect",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"RNSVGSvgAndroid",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"RNSVGSvgIOS",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"RNSVGSymbol",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"RNSVGTSpan",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"RNSVGText",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"RNSVGTextPath",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"RNSVGUse",{enumerable:!0,get:function(){return _.default}});var n=t(r(d[1])),u=t(r(d[2])),f=t(r(d[3])),l=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),b=t(r(d[7])),p=t(r(d[8])),P=t(r(d[9])),S=t(r(d[10])),G=t(r(d[11])),O=t(r(d[12])),j=t(r(d[13])),y=t(r(d[14])),R=t(r(d[15])),N=t(r(d[16])),V=t(r(d[17])),F=t(r(d[18])),s=t(r(d[19])),v=t(r(d[20])),M=t(r(d[21])),_=t(r(d[22])),h=t(r(d[23])),x=t(r(d[24])),C=t(r(d[25])),T=t(r(d[26])),k=t(r(d[27])),B=t(r(d[28])),I=t(r(d[29]))}),1245,[2,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var l=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGCircle',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,cx:!0,cy:!0,r:!0}};e.default=r(d[3]).get('RNSVGCircle',(function(){return l}))}),1246,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGClipPath',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0}};e.default=r(d[3]).get('RNSVGClipPath',(function(){return o}))}),1247,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGDefs',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0}};e.default=r(d[2]).get('RNSVGDefs',(function(){return _}))}),1248,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var l=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGEllipse',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,cx:!0,cy:!0,rx:!0,ry:!0}};e.default=r(d[3]).get('RNSVGEllipse',(function(){return l}))}),1249,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGForeignObject',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,x:!0,y:!0,height:!0,width:!0}};e.default=r(d[3]).get('RNSVGForeignObject',(function(){return o}))}),1250,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGGroup',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0}};e.default=r(d[3]).get('RNSVGGroup',(function(){return o}))}),1251,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGImage',directEventTypes:{topLoad:{registrationName:'onLoad'}},validAttributes:Object.assign({name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,x:!0,y:!0,width:!0,height:!0,src:{process:r(d[3])},align:!0,meetOrSlice:!0},r(d[4]).ConditionallyIgnoredEventHandlers({onLoad:!0}))};e.default=r(d[5]).get('RNSVGImage',(function(){return o}))}),1252,[2,267,190,204,219,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGLinearGradient',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,x1:!0,y1:!0,x2:!0,y2:!0,gradient:!0,gradientUnits:!0,gradientTransform:!0}};e.default=r(d[2]).get('RNSVGLinearGradient',(function(){return n}))}),1253,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGLine',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,x1:!0,y1:!0,x2:!0,y2:!0}};e.default=r(d[3]).get('RNSVGLine',(function(){return o}))}),1254,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGMarker',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,refX:!0,refY:!0,markerHeight:!0,markerWidth:!0,markerUnits:!0,orient:!0,minX:!0,minY:!0,vbWidth:!0,vbHeight:!0,align:!0,meetOrSlice:!0}};e.default=r(d[3]).get('RNSVGMarker',(function(){return o}))}),1255,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var s=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGMask',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,x:!0,y:!0,height:!0,width:!0,maskUnits:!0,maskContentUnits:!0,maskType:!0}};e.default=r(d[3]).get('RNSVGMask',(function(){return s}))}),1256,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGPath',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,d:!0}};e.default=r(d[3]).get('RNSVGPath',(function(){return o}))}),1257,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGPattern',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,x:!0,y:!0,height:!0,width:!0,patternUnits:!0,patternContentUnits:!0,patternTransform:!0,minX:!0,minY:!0,vbWidth:!0,vbHeight:!0,align:!0,meetOrSlice:!0}};e.default=r(d[3]).get('RNSVGPattern',(function(){return n}))}),1258,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGRadialGradient',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,fx:!0,fy:!0,cx:!0,cy:!0,rx:!0,ry:!0,gradient:!0,gradientUnits:!0,gradientTransform:!0}};e.default=r(d[2]).get('RNSVGRadialGradient',(function(){return n}))}),1259,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGRect',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,x:!0,y:!0,height:!0,width:!0,rx:!0,ry:!0}};e.default=r(d[3]).get('RNSVGRect',(function(){return o}))}),1260,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;o(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGSvgViewAndroid',validAttributes:{bbWidth:!0,bbHeight:!0,minX:!0,minY:!0,vbWidth:!0,vbHeight:!0,align:!0,meetOrSlice:!0,color:{process:r(d[2]).default},pointerEvents:!0,hasTVPreferredFocus:!0,borderBottomColor:{process:r(d[2]).default},nextFocusDown:!0,borderRightColor:{process:r(d[2]).default},nextFocusRight:!0,borderLeftColor:{process:r(d[2]).default},borderColor:{process:r(d[2]).default},removeClippedSubviews:!0,nextFocusForward:!0,nextFocusUp:!0,accessible:!0,borderStartColor:{process:r(d[2]).default},borderEndColor:{process:r(d[2]).default},focusable:!0,nativeBackgroundAndroid:!0,nativeForegroundAndroid:!0,backfaceVisibility:!0,borderStyle:!0,needsOffscreenAlphaCompositing:!0,hitSlop:!0,borderTopColor:{process:r(d[2]).default},nextFocusLeft:!0,borderBlockColor:{process:r(d[2]).default},borderBlockEndColor:{process:r(d[2]).default},borderBlockStartColor:{process:r(d[2]).default},borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomRightRadius:!0,borderBottomLeftRadius:!0,borderTopStartRadius:!0,borderTopEndRadius:!0,borderBottomStartRadius:!0,borderBottomEndRadius:!0,borderEndEndRadius:!0,borderEndStartRadius:!0,borderStartEndRadius:!0,borderStartStartRadius:!0}};e.default=r(d[3]).get('RNSVGSvgViewAndroid',(function(){return t}))}),1261,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGSvgView',validAttributes:{bbWidth:!0,bbHeight:!0,minX:!0,minY:!0,vbWidth:!0,vbHeight:!0,align:!0,meetOrSlice:!0,color:{process:r(d[2]).default},pointerEvents:!0,hitSlop:!0}};e.default=r(d[3]).get('RNSVGSvgView',(function(){return _}))}),1262,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGSymbol',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,minX:!0,minY:!0,vbWidth:!0,vbHeight:!0,align:!0,meetOrSlice:!0}};e.default=r(d[3]).get('RNSVGSymbol',(function(){return o}))}),1263,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var l=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGText',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,dx:!0,dy:!0,x:!0,y:!0,rotate:!0,inlineSize:!0,textLength:!0,baselineShift:!0,lengthAdjust:!0,alignmentBaseline:!0,verticalAlign:!0}};e.default=r(d[3]).get('RNSVGText',(function(){return l}))}),1264,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var s=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGTextPath',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,dx:!0,dy:!0,x:!0,y:!0,rotate:!0,inlineSize:!0,textLength:!0,baselineShift:!0,lengthAdjust:!0,alignmentBaseline:!0,verticalAlign:!0,href:!0,side:!0,method:!0,midLine:!0,spacing:!0,startOffset:!0}};e.default=r(d[3]).get('RNSVGTextPath',(function(){return s}))}),1265,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGTSpan',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,fontSize:!0,fontWeight:!0,font:!0,dx:!0,dy:!0,x:!0,y:!0,rotate:!0,inlineSize:!0,textLength:!0,baselineShift:!0,lengthAdjust:!0,alignmentBaseline:!0,verticalAlign:!0,content:!0}};e.default=r(d[3]).get('RNSVGTSpan',(function(){return n}))}),1266,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var s=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGUse',validAttributes:{name:!0,opacity:!0,matrix:!0,mask:!0,markerStart:!0,markerMid:!0,markerEnd:!0,clipPath:!0,clipRule:!0,responsible:!0,display:!0,pointerEvents:!0,color:{process:r(d[2]).default},fill:!0,fillOpacity:!0,fillRule:!0,stroke:!0,strokeOpacity:!0,strokeWidth:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,vectorEffect:!0,propList:!0,filter:!0,href:!0,x:!0,y:!0,height:!0,width:!0}};e.default=r(d[3]).get('RNSVGUse',(function(){return s}))}),1267,[2,267,190,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFilter',validAttributes:{name:!0,x:!0,y:!0,height:!0,width:!0,filterUnits:!0,primitiveUnits:!0}};e.default=r(d[2]).get('RNSVGFilter',(function(){return _}))}),1268,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeBlend',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,in1:!0,in2:!0,mode:!0}};e.default=r(d[2]).get('RNSVGFeBlend',(function(){return _}))}),1269,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeColorMatrix',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,in1:!0,type:!0,values:!0}};e.default=r(d[2]).get('RNSVGFeColorMatrix',(function(){return _}))}),1270,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;o(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeFlood',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,floodColor:!0,floodOpacity:!0}};e.default=r(d[2]).get('RNSVGFeFlood',(function(){return t}))}),1271,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var u=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeGaussianBlur',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,in1:!0,stdDeviationX:!0,stdDeviationY:!0,edgeMode:!0}};e.default=r(d[2]).get('RNSVGFeGaussianBlur',(function(){return u}))}),1272,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeMerge',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,nodes:!0}};e.default=r(d[2]).get('RNSVGFeMerge',(function(){return _}))}),1273,[2,267,186]); +__d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var _=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RNSVGFeOffset',validAttributes:{x:!0,y:!0,width:!0,height:!0,result:!0,in1:!0,dx:!0,dy:!0}};e.default=r(d[2]).get('RNSVGFeOffset',(function(){return _}))}),1274,[2,267,186]); +__d((function(g,_r,_i,_a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.SvgAst=h,_e.SvgFromXml=_e.SvgFromUri=void 0,_e.SvgUri=function(t){var e=t.onError,r=void 0===e?y:e,n=t.uri,a=t.onLoad,u=t.fallback,o=(0,l.useState)(null),s=(0,i.default)(o,2),f=s[0],p=s[1],v=(0,l.useState)(!1),h=(0,i.default)(v,2),b=h[0],j=h[1];if((0,l.useEffect)((function(){n?(0,_r(d[11]).fetchText)(n).then((function(t){p(t),b&&j(!1),null==a||a()})).catch((function(t){r(t),j(!0)})):p(null)}),[r,n,a]),b)return null!=u?u:null;return(0,c.jsx)(x,{xml:f,override:t,fallback:u})},_e.SvgXml=x,_e.astToReact=O,_e.camelCase=void 0,_e.getStyle=k,_e.parse=C,Object.defineProperty(_e,"tags",{enumerable:!0,get:function(){return _r(d[1]).tags}});var e=t(_r(d[2])),r=t(_r(d[3])),n=t(_r(d[4])),a=t(_r(d[5])),u=t(_r(d[6])),o=t(_r(d[7])),i=t(_r(d[8])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=s(e);if(r&&r.has(t))return r.get(t);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var o=a?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(n,u,o):n[u]=t[u]}return n.default=t,r&&r.set(t,n),n})(_r(d[9])),c=_r(d[10]);function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(s=function(t){return t?r:e})(t)}function f(t,e,r){return e=(0,u.default)(e),(0,a.default)(t,p()?Reflect.construct(e,r||[],(0,u.default)(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function v(){return null}function h(t){var e=t.ast,r=t.override;if(!e)return null;var n=e.props,a=e.children,u=_r(d[1]).tags.svg;return(0,c.jsx)(u,Object.assign({},n,r,{children:a}))}var y=console.error.bind(console);function x(t){var e=t.onError,r=void 0===e?y:e,n=t.xml,a=t.override,u=t.fallback;try{var o=(0,l.useMemo)((function(){return null!==n?C(n):null}),[n]);return(0,c.jsx)(h,{ast:o,override:a||t})}catch(t){return r(t),null!=u?u:null}}var b=_e.SvgFromXml=(function(t){function e(){var t;(0,r.default)(this,e);for(var n=arguments.length,a=new Array(n),u=0;u=o))break;a-=o}var i=t.slice(0,e).replace(/^\t+/,E),l=/(^|\n).*$/.exec(i),c=l&&l[0]||'',s=t.slice(e),f=/.*(\n|$)/.exec(s);return{line:u,column:a,snippet:`${c}${f&&f[0]}\n${$(' ',c.length)}^`}}var w=/[a-zA-Z0-9:_-]/,M=/ 0 interactions\n _emitter.emit(InteractionManager.Events.interactionComplete);\n } else if (interactionCount === 0 && nextInteractionCount !== 0) {\n // transition from 0 --> 1+ interactions\n _emitter.emit(InteractionManager.Events.interactionStart);\n }\n\n // process the queue regardless of a transition\n if (nextInteractionCount === 0) {\n while (_taskQueue.hasTasksToProcess()) {\n _taskQueue.processNext();\n if (\n _deadline > 0 &&\n BatchedBridge.getEventLoopRunningTime() >= _deadline\n ) {\n // Hit deadline before processing all tasks, so process more later.\n _scheduleUpdate();\n break;\n }\n }\n }\n _addInteractionSet.clear();\n _deleteInteractionSet.clear();\n}\n\nmodule.exports = InteractionManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst infoLog = require('../Utilities/infoLog');\nconst invariant = require('invariant');\n\ntype SimpleTask = {\n name: string,\n run: () => void,\n};\ntype PromiseTask = {\n name: string,\n gen: () => Promise,\n};\nexport type Task = SimpleTask | PromiseTask | (() => void);\n\nconst DEBUG: false = false;\n\n/**\n * TaskQueue - A system for queueing and executing a mix of simple callbacks and\n * trees of dependent tasks based on Promises. No tasks are executed unless\n * `processNext` is called.\n *\n * `enqueue` takes a Task object with either a simple `run` callback, or a\n * `gen` function that returns a `Promise` and puts it in the queue. If a gen\n * function is supplied, then the promise it returns will block execution of\n * tasks already in the queue until it resolves. This can be used to make sure\n * the first task is fully resolved (including asynchronous dependencies that\n * also schedule more tasks via `enqueue`) before starting on the next task.\n * The `onMoreTasks` constructor argument is used to inform the owner that an\n * async task has resolved and that the queue should be processed again.\n *\n * Note: Tasks are only actually executed with explicit calls to `processNext`.\n */\nclass TaskQueue {\n /**\n * TaskQueue instances are self contained and independent, so multiple tasks\n * of varying semantics and priority can operate together.\n *\n * `onMoreTasks` is invoked when `PromiseTask`s resolve if there are more\n * tasks to process.\n */\n constructor({onMoreTasks}: {onMoreTasks: () => void, ...}) {\n this._onMoreTasks = onMoreTasks;\n this._queueStack = [{tasks: [], popable: false}];\n }\n\n /**\n * Add a task to the queue. It is recommended to name your tasks for easier\n * async debugging. Tasks will not be executed until `processNext` is called\n * explicitly.\n */\n enqueue(task: Task): void {\n this._getCurrentQueue().push(task);\n }\n\n enqueueTasks(tasks: Array): void {\n tasks.forEach(task => this.enqueue(task));\n }\n\n cancelTasks(tasksToCancel: Array): void {\n // search through all tasks and remove them.\n this._queueStack = this._queueStack\n .map(queue => ({\n ...queue,\n tasks: queue.tasks.filter(task => tasksToCancel.indexOf(task) === -1),\n }))\n .filter((queue, idx) => queue.tasks.length > 0 || idx === 0);\n }\n\n /**\n * Check to see if `processNext` should be called.\n *\n * @returns {boolean} Returns true if there are tasks that are ready to be\n * processed with `processNext`, or returns false if there are no more tasks\n * to be processed right now, although there may be tasks in the queue that\n * are blocked by earlier `PromiseTask`s that haven't resolved yet.\n * `onMoreTasks` will be called after each `PromiseTask` resolves if there are\n * tasks ready to run at that point.\n */\n hasTasksToProcess(): boolean {\n return this._getCurrentQueue().length > 0;\n }\n\n /**\n * Executes the next task in the queue.\n */\n processNext(): void {\n const queue = this._getCurrentQueue();\n if (queue.length) {\n const task = queue.shift();\n try {\n if (typeof task === 'object' && task.gen) {\n DEBUG && infoLog('TaskQueue: genPromise for task ' + task.name);\n this._genPromise(task);\n } else if (typeof task === 'object' && task.run) {\n DEBUG && infoLog('TaskQueue: run task ' + task.name);\n task.run();\n } else {\n invariant(\n typeof task === 'function',\n 'Expected Function, SimpleTask, or PromiseTask, but got:\\n' +\n JSON.stringify(task, null, 2),\n );\n DEBUG && infoLog('TaskQueue: run anonymous task');\n task();\n }\n } catch (e) {\n e.message =\n 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message;\n throw e;\n }\n }\n }\n\n _queueStack: Array<{\n tasks: Array,\n popable: boolean,\n ...\n }>;\n _onMoreTasks: () => void;\n\n _getCurrentQueue(): Array {\n const stackIdx = this._queueStack.length - 1;\n const queue = this._queueStack[stackIdx];\n if (\n queue.popable &&\n queue.tasks.length === 0 &&\n this._queueStack.length > 1\n ) {\n this._queueStack.pop();\n DEBUG &&\n infoLog('TaskQueue: popped queue: ', {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n return this._getCurrentQueue();\n } else {\n return queue.tasks;\n }\n }\n\n _genPromise(task: PromiseTask) {\n // Each async task pushes it's own queue onto the queue stack. This\n // effectively defers execution of previously queued tasks until the promise\n // resolves, at which point we allow the new queue to be popped, which\n // happens once it is fully processed.\n this._queueStack.push({tasks: [], popable: false});\n const stackIdx = this._queueStack.length - 1;\n const stackItem = this._queueStack[stackIdx];\n DEBUG && infoLog('TaskQueue: push new queue: ', {stackIdx});\n DEBUG && infoLog('TaskQueue: exec gen task ' + task.name);\n task\n .gen()\n .then(() => {\n DEBUG &&\n infoLog('TaskQueue: onThen for gen task ' + task.name, {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n stackItem.popable = true;\n this.hasTasksToProcess() && this._onMoreTasks();\n })\n .catch(ex => {\n setTimeout(() => {\n ex.message = `TaskQueue: Error resolving Promise in task ${task.name}: ${ex.message}`;\n throw ex;\n }, 0);\n });\n }\n}\n\nmodule.exports = TaskQueue;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n/* eslint no-bitwise: 0 */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type AnimatedNode from './AnimatedNode';\n\nimport normalizeColor from '../../StyleSheet/normalizeColor';\nimport processColor from '../../StyleSheet/processColor';\nimport Easing from '../Easing';\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\nimport AnimatedWithChildren from './AnimatedWithChildren';\nimport invariant from 'invariant';\n\ntype ExtrapolateType = 'extend' | 'identity' | 'clamp';\n\nexport type InterpolationConfigType = $ReadOnly<{\n inputRange: $ReadOnlyArray,\n outputRange: $ReadOnlyArray,\n easing?: (input: number) => number,\n extrapolate?: ExtrapolateType,\n extrapolateLeft?: ExtrapolateType,\n extrapolateRight?: ExtrapolateType,\n}>;\n\n/**\n * Very handy helper to map input ranges to output ranges with an easing\n * function and custom behavior outside of the ranges.\n */\nfunction createNumericInterpolation(\n config: InterpolationConfigType,\n): (input: number) => number {\n const outputRange: $ReadOnlyArray = (config.outputRange: any);\n const inputRange = config.inputRange;\n\n const easing = config.easing || Easing.linear;\n\n let extrapolateLeft: ExtrapolateType = 'extend';\n if (config.extrapolateLeft !== undefined) {\n extrapolateLeft = config.extrapolateLeft;\n } else if (config.extrapolate !== undefined) {\n extrapolateLeft = config.extrapolate;\n }\n\n let extrapolateRight: ExtrapolateType = 'extend';\n if (config.extrapolateRight !== undefined) {\n extrapolateRight = config.extrapolateRight;\n } else if (config.extrapolate !== undefined) {\n extrapolateRight = config.extrapolate;\n }\n\n return input => {\n invariant(\n typeof input === 'number',\n 'Cannot interpolation an input which is not a number',\n );\n\n const range = findRange(input, inputRange);\n return (interpolate(\n input,\n inputRange[range],\n inputRange[range + 1],\n outputRange[range],\n outputRange[range + 1],\n easing,\n extrapolateLeft,\n extrapolateRight,\n ): any);\n };\n}\n\nfunction interpolate(\n input: number,\n inputMin: number,\n inputMax: number,\n outputMin: number,\n outputMax: number,\n easing: (input: number) => number,\n extrapolateLeft: ExtrapolateType,\n extrapolateRight: ExtrapolateType,\n) {\n let result = input;\n\n // Extrapolate\n if (result < inputMin) {\n if (extrapolateLeft === 'identity') {\n return result;\n } else if (extrapolateLeft === 'clamp') {\n result = inputMin;\n } else if (extrapolateLeft === 'extend') {\n // noop\n }\n }\n\n if (result > inputMax) {\n if (extrapolateRight === 'identity') {\n return result;\n } else if (extrapolateRight === 'clamp') {\n result = inputMax;\n } else if (extrapolateRight === 'extend') {\n // noop\n }\n }\n\n if (outputMin === outputMax) {\n return outputMin;\n }\n\n if (inputMin === inputMax) {\n if (input <= inputMin) {\n return outputMin;\n }\n return outputMax;\n }\n\n // Input Range\n if (inputMin === -Infinity) {\n result = -result;\n } else if (inputMax === Infinity) {\n result = result - inputMin;\n } else {\n result = (result - inputMin) / (inputMax - inputMin);\n }\n\n // Easing\n result = easing(result);\n\n // Output Range\n if (outputMin === -Infinity) {\n result = -result;\n } else if (outputMax === Infinity) {\n result = result + outputMin;\n } else {\n result = result * (outputMax - outputMin) + outputMin;\n }\n\n return result;\n}\n\nconst numericComponentRegex = /[+-]?(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?/g;\n\n// Maps string inputs an RGBA color or an array of numeric components\nfunction mapStringToNumericComponents(\n input: string,\n):\n | {isColor: true, components: [number, number, number, number]}\n | {isColor: false, components: $ReadOnlyArray} {\n let normalizedColor = normalizeColor(input);\n invariant(\n normalizedColor == null || typeof normalizedColor !== 'object',\n 'PlatformColors are not supported',\n );\n\n if (typeof normalizedColor === 'number') {\n normalizedColor = normalizedColor || 0;\n const r = (normalizedColor & 0xff000000) >>> 24;\n const g = (normalizedColor & 0x00ff0000) >>> 16;\n const b = (normalizedColor & 0x0000ff00) >>> 8;\n const a = (normalizedColor & 0x000000ff) / 255;\n return {isColor: true, components: [r, g, b, a]};\n } else {\n const components: Array = [];\n let lastMatchEnd = 0;\n let match: RegExp$matchResult;\n while ((match = (numericComponentRegex.exec(input): any)) != null) {\n if (match.index > lastMatchEnd) {\n components.push(input.substring(lastMatchEnd, match.index));\n }\n components.push(parseFloat(match[0]));\n lastMatchEnd = match.index + match[0].length;\n }\n invariant(\n components.length > 0,\n 'outputRange must contain color or value with numeric component',\n );\n if (lastMatchEnd < input.length) {\n components.push(input.substring(lastMatchEnd, input.length));\n }\n return {isColor: false, components};\n }\n}\n\n/**\n * Supports string shapes by extracting numbers so new values can be computed,\n * and recombines those values into new strings of the same shape. Supports\n * things like:\n *\n * rgba(123, 42, 99, 0.36) // colors\n * -45deg // values with units\n */\nfunction createStringInterpolation(\n config: InterpolationConfigType,\n): (input: number) => string {\n invariant(config.outputRange.length >= 2, 'Bad output range');\n const outputRange = config.outputRange.map(mapStringToNumericComponents);\n\n const isColor = outputRange[0].isColor;\n if (__DEV__) {\n invariant(\n outputRange.every(output => output.isColor === isColor),\n 'All elements of output range should either be a color or a string with numeric components',\n );\n const firstOutput = outputRange[0].components;\n invariant(\n outputRange.every(\n output => output.components.length === firstOutput.length,\n ),\n 'All elements of output range should have the same number of components',\n );\n invariant(\n outputRange.every(output =>\n output.components.every(\n (component, i) =>\n // $FlowIgnoreMe[invalid-compare]\n typeof component === 'number' || component === firstOutput[i],\n ),\n ),\n 'All elements of output range should have the same non-numeric components',\n );\n }\n\n const numericComponents: $ReadOnlyArray<$ReadOnlyArray> =\n outputRange.map(output =>\n isColor\n ? // $FlowIgnoreMe[incompatible-call]\n output.components\n : // $FlowIgnoreMe[incompatible-call]\n output.components.filter(c => typeof c === 'number'),\n );\n const interpolations = numericComponents[0].map((_, i) =>\n createNumericInterpolation({\n ...config,\n outputRange: numericComponents.map(components => components[i]),\n }),\n );\n if (!isColor) {\n return input => {\n const values = interpolations.map(interpolation => interpolation(input));\n let i = 0;\n return outputRange[0].components\n .map(c => (typeof c === 'number' ? values[i++] : c))\n .join('');\n };\n } else {\n return input => {\n const result = interpolations.map((interpolation, i) => {\n const value = interpolation(input);\n // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to\n // round the opacity (4th column).\n return i < 3 ? Math.round(value) : Math.round(value * 1000) / 1000;\n });\n return `rgba(${result[0]}, ${result[1]}, ${result[2]}, ${result[3]})`;\n };\n }\n}\n\nfunction findRange(input: number, inputRange: $ReadOnlyArray) {\n let i;\n for (i = 1; i < inputRange.length - 1; ++i) {\n if (inputRange[i] >= input) {\n break;\n }\n }\n return i - 1;\n}\n\nfunction checkValidRanges(\n inputRange: $ReadOnlyArray,\n outputRange: $ReadOnlyArray,\n) {\n checkInfiniteRange('outputRange', outputRange);\n checkInfiniteRange('inputRange', inputRange);\n checkValidInputRange(inputRange);\n\n invariant(\n inputRange.length === outputRange.length,\n 'inputRange (' +\n inputRange.length +\n ') and outputRange (' +\n outputRange.length +\n ') must have the same length',\n );\n}\n\nfunction checkValidInputRange(arr: $ReadOnlyArray) {\n invariant(arr.length >= 2, 'inputRange must have at least 2 elements');\n const message =\n 'inputRange must be monotonically non-decreasing ' + String(arr);\n for (let i = 1; i < arr.length; ++i) {\n invariant(arr[i] >= arr[i - 1], message);\n }\n}\n\nfunction checkInfiniteRange(\n name: string,\n arr: $ReadOnlyArray,\n) {\n invariant(arr.length >= 2, name + ' must have at least 2 elements');\n invariant(\n arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity,\n /* $FlowFixMe[incompatible-type] (>=0.13.0) - In the addition expression\n * below this comment, one or both of the operands may be something that\n * doesn't cleanly convert to a string, like undefined, null, and object,\n * etc. If you really mean this implicit string conversion, you can do\n * something like String(myThing) */\n // $FlowFixMe[unsafe-addition]\n name + 'cannot be ]-infinity;+infinity[ ' + arr,\n );\n}\n\nexport default class AnimatedInterpolation<\n OutputT: number | string,\n> extends AnimatedWithChildren {\n _parent: AnimatedNode;\n _config: InterpolationConfigType;\n _interpolation: ?(input: number) => OutputT;\n\n constructor(parent: AnimatedNode, config: InterpolationConfigType) {\n super();\n this._parent = parent;\n this._config = config;\n\n if (__DEV__) {\n checkValidRanges(config.inputRange, config.outputRange);\n\n // Create interpolation eagerly in dev, so we can signal errors faster\n // even when using the native driver\n this._getInterpolation();\n }\n }\n\n _getInterpolation(): number => OutputT {\n if (!this._interpolation) {\n const config = this._config;\n if (config.outputRange && typeof config.outputRange[0] === 'string') {\n this._interpolation = (createStringInterpolation((config: any)): any);\n } else {\n this._interpolation = (createNumericInterpolation((config: any)): any);\n }\n }\n return this._interpolation;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._parent.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): OutputT {\n const parentValue: number = this._parent.__getValue();\n invariant(\n typeof parentValue === 'number',\n 'Cannot interpolate an input which is not a number.',\n );\n return this._getInterpolation()(parentValue);\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n if (__DEV__) {\n NativeAnimatedHelper.validateInterpolation(this._config);\n }\n\n // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here\n let outputRange = this._config.outputRange;\n let outputType = null;\n if (typeof outputRange[0] === 'string') {\n // $FlowIgnoreMe[incompatible-cast]\n outputRange = ((outputRange: $ReadOnlyArray).map(value => {\n const processedColor = processColor(value);\n if (typeof processedColor === 'number') {\n outputType = 'color';\n return processedColor;\n } else {\n return NativeAnimatedHelper.transformDataType(value);\n }\n }): any);\n }\n\n return {\n inputRange: this._config.inputRange,\n outputRange,\n outputType,\n extrapolateLeft:\n this._config.extrapolateLeft || this._config.extrapolate || 'extend',\n extrapolateRight:\n this._config.extrapolateRight || this._config.extrapolate || 'extend',\n type: 'interpolation',\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nlet ease;\n\n/**\n * The `Easing` module implements common easing functions. This module is used\n * by [Animate.timing()](docs/animate.html#timing) to convey physically\n * believable motion in animations.\n *\n * You can find a visualization of some common easing functions at\n * http://easings.net/\n *\n * ### Predefined animations\n *\n * The `Easing` module provides several predefined animations through the\n * following methods:\n *\n * - [`back`](docs/easing.html#back) provides a simple animation where the\n * object goes slightly back before moving forward\n * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation\n * - [`ease`](docs/easing.html#ease) provides a simple inertial animation\n * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction\n *\n * ### Standard functions\n *\n * Three standard easing functions are provided:\n *\n * - [`linear`](docs/easing.html#linear)\n * - [`quad`](docs/easing.html#quad)\n * - [`cubic`](docs/easing.html#cubic)\n *\n * The [`poly`](docs/easing.html#poly) function can be used to implement\n * quartic, quintic, and other higher power functions.\n *\n * ### Additional functions\n *\n * Additional mathematical functions are provided by the following methods:\n *\n * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve\n * - [`circle`](docs/easing.html#circle) provides a circular function\n * - [`sin`](docs/easing.html#sin) provides a sinusoidal function\n * - [`exp`](docs/easing.html#exp) provides an exponential function\n *\n * The following helpers are used to modify other easing functions.\n *\n * - [`in`](docs/easing.html#in) runs an easing function forwards\n * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical\n * - [`out`](docs/easing.html#out) runs an easing function backwards\n */\nconst Easing = {\n /**\n * A stepping function, returns 1 for any positive value of `n`.\n */\n step0(n: number): number {\n return n > 0 ? 1 : 0;\n },\n\n /**\n * A stepping function, returns 1 if `n` is greater than or equal to 1.\n */\n step1(n: number): number {\n return n >= 1 ? 1 : 0;\n },\n\n /**\n * A linear function, `f(t) = t`. Position correlates to elapsed time one to\n * one.\n *\n * http://cubic-bezier.com/#0,0,1,1\n */\n linear(t: number): number {\n return t;\n },\n\n /**\n * A simple inertial interaction, similar to an object slowly accelerating to\n * speed.\n *\n * http://cubic-bezier.com/#.42,0,1,1\n */\n ease(t: number): number {\n if (!ease) {\n ease = Easing.bezier(0.42, 0, 1, 1);\n }\n return ease(t);\n },\n\n /**\n * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed\n * time.\n *\n * http://easings.net/#easeInQuad\n */\n quad(t: number): number {\n return t * t;\n },\n\n /**\n * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed\n * time.\n *\n * http://easings.net/#easeInCubic\n */\n cubic(t: number): number {\n return t * t * t;\n },\n\n /**\n * A power function. Position is equal to the Nth power of elapsed time.\n *\n * n = 4: http://easings.net/#easeInQuart\n * n = 5: http://easings.net/#easeInQuint\n */\n poly(n: number): (t: number) => number {\n return (t: number) => Math.pow(t, n);\n },\n\n /**\n * A sinusoidal function.\n *\n * http://easings.net/#easeInSine\n */\n sin(t: number): number {\n return 1 - Math.cos((t * Math.PI) / 2);\n },\n\n /**\n * A circular function.\n *\n * http://easings.net/#easeInCirc\n */\n circle(t: number): number {\n return 1 - Math.sqrt(1 - t * t);\n },\n\n /**\n * An exponential function.\n *\n * http://easings.net/#easeInExpo\n */\n exp(t: number): number {\n return Math.pow(2, 10 * (t - 1));\n },\n\n /**\n * A simple elastic interaction, similar to a spring oscillating back and\n * forth.\n *\n * Default bounciness is 1, which overshoots a little bit once. 0 bounciness\n * doesn't overshoot at all, and bounciness of N > 1 will overshoot about N\n * times.\n *\n * http://easings.net/#easeInElastic\n */\n elastic(bounciness: number = 1): (t: number) => number {\n const p = bounciness * Math.PI;\n return t => 1 - Math.pow(Math.cos((t * Math.PI) / 2), 3) * Math.cos(t * p);\n },\n\n /**\n * Use with `Animated.parallel()` to create a simple effect where the object\n * animates back slightly as the animation starts.\n *\n * https://easings.net/#easeInBack\n */\n back(s: number = 1.70158): (t: number) => number {\n return t => t * t * ((s + 1) * t - s);\n },\n\n /**\n * Provides a simple bouncing effect.\n *\n * http://easings.net/#easeInBounce\n */\n bounce(t: number): number {\n if (t < 1 / 2.75) {\n return 7.5625 * t * t;\n }\n\n if (t < 2 / 2.75) {\n const t2 = t - 1.5 / 2.75;\n return 7.5625 * t2 * t2 + 0.75;\n }\n\n if (t < 2.5 / 2.75) {\n const t2 = t - 2.25 / 2.75;\n return 7.5625 * t2 * t2 + 0.9375;\n }\n\n const t2 = t - 2.625 / 2.75;\n return 7.5625 * t2 * t2 + 0.984375;\n },\n\n /**\n * Provides a cubic bezier curve, equivalent to CSS Transitions'\n * `transition-timing-function`.\n *\n * A useful tool to visualize cubic bezier curves can be found at\n * http://cubic-bezier.com/\n */\n bezier(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n ): (t: number) => number {\n const _bezier = require('./bezier').default;\n return _bezier(x1, y1, x2, y2);\n },\n\n /**\n * Runs an easing function forwards.\n */\n in(easing: (t: number) => number): (t: number) => number {\n return easing;\n },\n\n /**\n * Runs an easing function backwards.\n */\n out(easing: (t: number) => number): (t: number) => number {\n return t => 1 - easing(1 - t);\n },\n\n /**\n * Makes any easing function symmetrical. The easing function will run\n * forwards for half of the duration, then backwards for the rest of the\n * duration.\n */\n inOut(easing: (t: number) => number): (t: number) => number {\n return t => {\n if (t < 0.5) {\n return easing(t * 2) / 2;\n }\n return 1 - easing((1 - t) * 2) / 2;\n };\n },\n};\n\nexport default Easing;\n","/**\n * Portions Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n/**\n * BezierEasing - use bezier curve for transition easing function\n * https://github.com/gre/bezier-easing\n * @copyright 2014-2015 Gaëtan Renaudeau. MIT License.\n */\n\n'use strict';\n\n// These values are established by empiricism with tests (tradeoff: performance VS precision)\nconst NEWTON_ITERATIONS = 4;\nconst NEWTON_MIN_SLOPE = 0.001;\nconst SUBDIVISION_PRECISION = 0.0000001;\nconst SUBDIVISION_MAX_ITERATIONS = 10;\n\nconst kSplineTableSize = 11;\nconst kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\nconst float32ArraySupported = typeof Float32Array === 'function';\n\nfunction A(aA1: number, aA2: number) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\nfunction B(aA1: number, aA2: number) {\n return 3.0 * aA2 - 6.0 * aA1;\n}\nfunction C(aA1: number) {\n return 3.0 * aA1;\n}\n\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nfunction calcBezier(aT: number, aA1: number, aA2: number) {\n return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\n}\n\n// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.\nfunction getSlope(aT: number, aA1: number, aA2: number) {\n return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n}\n\nfunction binarySubdivide(\n aX: number,\n _aA: number,\n _aB: number,\n mX1: number,\n mX2: number,\n) {\n let currentX,\n currentT,\n i = 0,\n aA = _aA,\n aB = _aB;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (\n Math.abs(currentX) > SUBDIVISION_PRECISION &&\n ++i < SUBDIVISION_MAX_ITERATIONS\n );\n return currentT;\n}\n\nfunction newtonRaphsonIterate(\n aX: number,\n _aGuessT: number,\n mX1: number,\n mX2: number,\n) {\n let aGuessT = _aGuessT;\n for (let i = 0; i < NEWTON_ITERATIONS; ++i) {\n const currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n const currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n}\n\nexport default function bezier(\n mX1: number,\n mY1: number,\n mX2: number,\n mY2: number,\n): (x: number) => number {\n if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {\n throw new Error('bezier x values must be in [0, 1] range');\n }\n\n // Precompute samples table\n const sampleValues = float32ArraySupported\n ? new Float32Array(kSplineTableSize)\n : new Array(kSplineTableSize);\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (let i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX: number) {\n let intervalStart = 0.0;\n let currentSample = 1;\n const lastSample = kSplineTableSize - 1;\n\n for (\n ;\n currentSample !== lastSample && sampleValues[currentSample] <= aX;\n ++currentSample\n ) {\n intervalStart += kSampleStepSize;\n }\n --currentSample;\n\n // Interpolate to provide an initial guess for t\n const dist =\n (aX - sampleValues[currentSample]) /\n (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n const guessForT = intervalStart + dist * kSampleStepSize;\n\n const initialSlope = getSlope(guessForT, mX1, mX2);\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(\n aX,\n intervalStart,\n intervalStart + kSampleStepSize,\n mX1,\n mX2,\n );\n }\n }\n\n return function BezierEasing(x: number): number {\n if (mX1 === mY1 && mX2 === mY2) {\n return x; // linear\n }\n // Because JavaScript number are imprecise, we should guarantee the extremes are right.\n if (x === 0) {\n return 0;\n }\n if (x === 1) {\n return 1;\n }\n return calcBezier(getTForX(x), mY1, mY2);\n };\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\n\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\nimport invariant from 'invariant';\n\nexport type AnimatedValueXYConfig = $ReadOnly<{\n useNativeDriver: boolean,\n}>;\ntype ValueXYListenerCallback = (value: {x: number, y: number, ...}) => mixed;\n\nlet _uniqueId = 1;\n\n/**\n * 2D Value for driving 2D animations, such as pan gestures. Almost identical\n * API to normal `Animated.Value`, but multiplexed.\n *\n * See https://reactnative.dev/docs/animatedvaluexy\n */\nexport default class AnimatedValueXY extends AnimatedWithChildren {\n x: AnimatedValue;\n y: AnimatedValue;\n _listeners: {\n [key: string]: {\n x: string,\n y: string,\n ...\n },\n ...\n };\n\n constructor(\n valueIn?: ?{\n +x: number | AnimatedValue,\n +y: number | AnimatedValue,\n ...\n },\n config?: ?AnimatedValueXYConfig,\n ) {\n super();\n const value: any = valueIn || {x: 0, y: 0}; // @flowfixme: shouldn't need `: any`\n if (typeof value.x === 'number' && typeof value.y === 'number') {\n this.x = new AnimatedValue(value.x);\n this.y = new AnimatedValue(value.y);\n } else {\n invariant(\n value.x instanceof AnimatedValue && value.y instanceof AnimatedValue,\n 'AnimatedValueXY must be initialized with an object of numbers or ' +\n 'AnimatedValues.',\n );\n this.x = value.x;\n this.y = value.y;\n }\n this._listeners = {};\n if (config && config.useNativeDriver) {\n this.__makeNative();\n }\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#setvalue\n */\n setValue(value: {x: number, y: number, ...}) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether\n * via `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#setoffset\n */\n setOffset(offset: {x: number, y: number, ...}) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#flattenoffset\n */\n flattenOffset(): void {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to\n * zero. The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#extractoffset\n */\n extractOffset(): void {\n this.x.extractOffset();\n this.y.extractOffset();\n }\n\n __getValue(): {\n x: number,\n y: number,\n ...\n } {\n return {\n x: this.x.__getValue(),\n y: this.y.__getValue(),\n };\n }\n\n /**\n * Stops any animation and resets the value to its original.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#resetanimation\n */\n resetAnimation(\n callback?: (value: {x: number, y: number, ...}) => void,\n ): void {\n this.x.resetAnimation();\n this.y.resetAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#stopanimation\n */\n stopAnimation(callback?: (value: {x: number, y: number, ...}) => void): void {\n this.x.stopAnimation();\n this.y.stopAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Adds an asynchronous listener to the value so you can observe updates from\n * animations. This is useful because there is no way to synchronously read\n * the value because it might be driven natively.\n *\n * Returns a string that serves as an identifier for the listener.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#addlistener\n */\n addListener(callback: ValueXYListenerCallback): string {\n const id = String(_uniqueId++);\n const jointCallback = ({value: number}: any) => {\n callback(this.__getValue());\n };\n this._listeners[id] = {\n x: this.x.addListener(jointCallback),\n y: this.y.addListener(jointCallback),\n };\n return id;\n }\n\n /**\n * Unregister a listener. The `id` param shall match the identifier\n * previously returned by `addListener()`.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#removelistener\n */\n removeListener(id: string): void {\n this.x.removeListener(this._listeners[id].x);\n this.y.removeListener(this._listeners[id].y);\n delete this._listeners[id];\n }\n\n /**\n * Remove all registered listeners.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#removealllisteners\n */\n removeAllListeners(): void {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n this._listeners = {};\n }\n\n /**\n * Converts `{x, y}` into `{left, top}` for use in style.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#getlayout\n */\n getLayout(): {[key: string]: AnimatedValue, ...} {\n return {\n left: this.x,\n top: this.y,\n };\n }\n\n /**\n * Converts `{x, y}` into a useable translation transform.\n *\n * See https://reactnative.dev/docs/animatedvaluexy#gettranslatetransform\n */\n getTranslateTransform(): Array<{[key: string]: AnimatedValue, ...}> {\n return [{translateX: this.x}, {translateY: this.y}];\n }\n\n __attach(): void {\n this.x.__addChild(this);\n this.y.__addChild(this);\n super.__attach();\n }\n\n __detach(): void {\n this.x.__removeChild(this);\n this.y.__removeChild(this);\n super.__detach();\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this.x.__makeNative(platformConfig);\n this.y.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type AnimatedInterpolation from '../nodes/AnimatedInterpolation';\nimport type AnimatedValue from '../nodes/AnimatedValue';\nimport type AnimatedValueXY from '../nodes/AnimatedValueXY';\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\nimport AnimatedColor from '../nodes/AnimatedColor';\nimport * as SpringConfig from '../SpringConfig';\nimport Animation from './Animation';\nimport invariant from 'invariant';\n\nexport type SpringAnimationConfig = {\n ...AnimationConfig,\n toValue:\n | number\n | AnimatedValue\n | {\n x: number,\n y: number,\n ...\n }\n | AnimatedValueXY\n | {\n r: number,\n g: number,\n b: number,\n a: number,\n ...\n }\n | AnimatedColor\n | AnimatedInterpolation,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?:\n | number\n | {\n x: number,\n y: number,\n ...\n },\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n};\n\nexport type SpringAnimationConfigSingle = {\n ...AnimationConfig,\n toValue: number,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?: number,\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n};\n\nexport default class SpringAnimation extends Animation {\n _overshootClamping: boolean;\n _restDisplacementThreshold: number;\n _restSpeedThreshold: number;\n _lastVelocity: number;\n _startPosition: number;\n _lastPosition: number;\n _fromValue: number;\n _toValue: number;\n _stiffness: number;\n _damping: number;\n _mass: number;\n _initialVelocity: number;\n _delay: number;\n _timeout: any;\n _startTime: number;\n _lastTime: number;\n _frameTime: number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _useNativeDriver: boolean;\n _platformConfig: ?PlatformConfig;\n\n constructor(config: SpringAnimationConfigSingle) {\n super();\n\n this._overshootClamping = config.overshootClamping ?? false;\n this._restDisplacementThreshold = config.restDisplacementThreshold ?? 0.001;\n this._restSpeedThreshold = config.restSpeedThreshold ?? 0.001;\n this._initialVelocity = config.velocity ?? 0;\n this._lastVelocity = config.velocity ?? 0;\n this._toValue = config.toValue;\n this._delay = config.delay ?? 0;\n this._useNativeDriver = NativeAnimatedHelper.shouldUseNativeDriver(config);\n this._platformConfig = config.platformConfig;\n this.__isInteraction = config.isInteraction ?? !this._useNativeDriver;\n this.__iterations = config.iterations ?? 1;\n\n if (\n config.stiffness !== undefined ||\n config.damping !== undefined ||\n config.mass !== undefined\n ) {\n invariant(\n config.bounciness === undefined &&\n config.speed === undefined &&\n config.tension === undefined &&\n config.friction === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n this._stiffness = config.stiffness ?? 100;\n this._damping = config.damping ?? 10;\n this._mass = config.mass ?? 1;\n } else if (config.bounciness !== undefined || config.speed !== undefined) {\n // Convert the origami bounciness/speed values to stiffness/damping\n // We assume mass is 1.\n invariant(\n config.tension === undefined &&\n config.friction === undefined &&\n config.stiffness === undefined &&\n config.damping === undefined &&\n config.mass === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n const springConfig = SpringConfig.fromBouncinessAndSpeed(\n config.bounciness ?? 8,\n config.speed ?? 12,\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n } else {\n // Convert the origami tension/friction values to stiffness/damping\n // We assume mass is 1.\n const springConfig = SpringConfig.fromOrigamiTensionAndFriction(\n config.tension ?? 40,\n config.friction ?? 7,\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n }\n\n invariant(this._stiffness > 0, 'Stiffness value must be greater than 0');\n invariant(this._damping > 0, 'Damping value must be greater than 0');\n invariant(this._mass > 0, 'Mass value must be greater than 0');\n }\n\n __getNativeAnimationConfig(): {|\n damping: number,\n initialVelocity: number,\n iterations: number,\n mass: number,\n platformConfig: ?PlatformConfig,\n overshootClamping: boolean,\n restDisplacementThreshold: number,\n restSpeedThreshold: number,\n stiffness: number,\n toValue: any,\n type: $TEMPORARY$string<'spring'>,\n |} {\n return {\n type: 'spring',\n overshootClamping: this._overshootClamping,\n restDisplacementThreshold: this._restDisplacementThreshold,\n restSpeedThreshold: this._restSpeedThreshold,\n stiffness: this._stiffness,\n damping: this._damping,\n mass: this._mass,\n initialVelocity: this._initialVelocity ?? this._lastVelocity,\n toValue: this._toValue,\n iterations: this.__iterations,\n platformConfig: this._platformConfig,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._startPosition = fromValue;\n this._lastPosition = this._startPosition;\n\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n this._lastTime = Date.now();\n this._frameTime = 0.0;\n\n if (previousAnimation instanceof SpringAnimation) {\n const internalState = previousAnimation.getInternalState();\n this._lastPosition = internalState.lastPosition;\n this._lastVelocity = internalState.lastVelocity;\n // Set the initial velocity to the last velocity\n this._initialVelocity = this._lastVelocity;\n this._lastTime = internalState.lastTime;\n }\n\n const start = () => {\n if (!this._useNativeDriver && animatedValue.__isNative === true) {\n throw new Error(\n 'Attempting to run JS driven animation on animated node ' +\n 'that has been moved to \"native\" earlier by starting an ' +\n 'animation with `useNativeDriver: true`',\n );\n }\n\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this.onUpdate();\n }\n };\n\n // If this._delay is more than 0, we start after the timeout.\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n getInternalState(): Object {\n return {\n lastPosition: this._lastPosition,\n lastVelocity: this._lastVelocity,\n lastTime: this._lastTime,\n };\n }\n\n /**\n * This spring model is based off of a damped harmonic oscillator\n * (https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator).\n *\n * We use the closed form of the second order differential equation:\n *\n * x'' + (2ζ⍵_0)x' + ⍵^2x = 0\n *\n * where\n * ⍵_0 = √(k / m) (undamped angular frequency of the oscillator),\n * ζ = c / 2√mk (damping ratio),\n * c = damping constant\n * k = stiffness\n * m = mass\n *\n * The derivation of the closed form is described in detail here:\n * http://planetmath.org/sites/default/files/texpdf/39745.pdf\n *\n * This algorithm happens to match the algorithm used by CASpringAnimation,\n * a QuartzCore (iOS) API that creates spring animations.\n */\n onUpdate(): void {\n // If for some reason we lost a lot of frames (e.g. process large payload or\n // stopped in the debugger), we only advance by 4 frames worth of\n // computation and will continue on the next frame. It's better to have it\n // running at faster speed than jumping to the end.\n const MAX_STEPS = 64;\n let now = Date.now();\n if (now > this._lastTime + MAX_STEPS) {\n now = this._lastTime + MAX_STEPS;\n }\n\n const deltaTime = (now - this._lastTime) / 1000;\n this._frameTime += deltaTime;\n\n const c: number = this._damping;\n const m: number = this._mass;\n const k: number = this._stiffness;\n const v0: number = -this._initialVelocity;\n\n const zeta = c / (2 * Math.sqrt(k * m)); // damping ratio\n const omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms)\n const omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); // exponential decay\n const x0 = this._toValue - this._startPosition; // calculate the oscillation from x0 = 1 to x = 0\n\n let position = 0.0;\n let velocity = 0.0;\n const t = this._frameTime;\n if (zeta < 1) {\n // Under damped\n const envelope = Math.exp(-zeta * omega0 * t);\n position =\n this._toValue -\n envelope *\n (((v0 + zeta * omega0 * x0) / omega1) * Math.sin(omega1 * t) +\n x0 * Math.cos(omega1 * t));\n // This looks crazy -- it's actually just the derivative of the\n // oscillation function\n velocity =\n zeta *\n omega0 *\n envelope *\n ((Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0)) / omega1 +\n x0 * Math.cos(omega1 * t)) -\n envelope *\n (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) -\n omega1 * x0 * Math.sin(omega1 * t));\n } else {\n // Critically damped\n const envelope = Math.exp(-omega0 * t);\n position = this._toValue - envelope * (x0 + (v0 + omega0 * x0) * t);\n velocity =\n envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0));\n }\n\n this._lastTime = now;\n this._lastPosition = position;\n this._lastVelocity = velocity;\n\n this._onUpdate(position);\n if (!this.__active) {\n // a listener might have stopped us in _onUpdate\n return;\n }\n\n // Conditions for stopping the spring animation\n let isOvershooting = false;\n if (this._overshootClamping && this._stiffness !== 0) {\n if (this._startPosition < this._toValue) {\n isOvershooting = position > this._toValue;\n } else {\n isOvershooting = position < this._toValue;\n }\n }\n const isVelocity = Math.abs(velocity) <= this._restSpeedThreshold;\n let isDisplacement = true;\n if (this._stiffness !== 0) {\n isDisplacement =\n Math.abs(this._toValue - position) <= this._restDisplacementThreshold;\n }\n\n if (isOvershooting || (isVelocity && isDisplacement)) {\n if (this._stiffness !== 0) {\n // Ensure that we end up with a round value\n this._lastPosition = this._toValue;\n this._lastVelocity = 0;\n this._onUpdate(this._toValue);\n }\n\n this.__debouncedOnEnd({finished: true});\n return;\n }\n // $FlowFixMe[method-unbinding] added when improving typing for this parameters\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {ProcessedColorValue} from '../../StyleSheet/processColor';\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {NativeColorValue} from '../../StyleSheet/StyleSheetTypes';\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\n\nimport normalizeColor from '../../StyleSheet/normalizeColor';\nimport {processColorObject} from '../../StyleSheet/PlatformColorValueTypes';\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\nimport AnimatedValue, {flushValue} from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport type AnimatedColorConfig = $ReadOnly<{\n useNativeDriver: boolean,\n}>;\n\ntype ColorListenerCallback = (value: ColorValue) => mixed;\n\nexport type RgbaValue = {\n +r: number,\n +g: number,\n +b: number,\n +a: number,\n ...\n};\n\ntype RgbaAnimatedValue = {\n +r: AnimatedValue,\n +g: AnimatedValue,\n +b: AnimatedValue,\n +a: AnimatedValue,\n ...\n};\n\nexport type InputValue = ?(RgbaValue | RgbaAnimatedValue | ColorValue);\n\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\n\nconst defaultColor: RgbaValue = {r: 0, g: 0, b: 0, a: 1.0};\n\n/* eslint no-bitwise: 0 */\nfunction processColor(\n color?: ?(ColorValue | RgbaValue),\n): ?(RgbaValue | NativeColorValue) {\n if (color === undefined || color === null) {\n return null;\n }\n\n if (isRgbaValue(color)) {\n // $FlowIgnore[incompatible-cast] - Type is verified above\n return (color: RgbaValue);\n }\n\n let normalizedColor: ?ProcessedColorValue = normalizeColor(\n // $FlowIgnore[incompatible-cast] - Type is verified above\n (color: ColorValue),\n );\n if (normalizedColor === undefined || normalizedColor === null) {\n return null;\n }\n\n if (typeof normalizedColor === 'object') {\n const processedColorObj: ?NativeColorValue =\n processColorObject(normalizedColor);\n if (processedColorObj != null) {\n return processedColorObj;\n }\n } else if (typeof normalizedColor === 'number') {\n const r: number = (normalizedColor & 0xff000000) >>> 24;\n const g: number = (normalizedColor & 0x00ff0000) >>> 16;\n const b: number = (normalizedColor & 0x0000ff00) >>> 8;\n const a: number = (normalizedColor & 0x000000ff) / 255;\n\n return {r, g, b, a};\n }\n\n return null;\n}\n\nfunction isRgbaValue(value: any): boolean {\n return (\n value &&\n typeof value.r === 'number' &&\n typeof value.g === 'number' &&\n typeof value.b === 'number' &&\n typeof value.a === 'number'\n );\n}\n\nfunction isRgbaAnimatedValue(value: any): boolean {\n return (\n value &&\n value.r instanceof AnimatedValue &&\n value.g instanceof AnimatedValue &&\n value.b instanceof AnimatedValue &&\n value.a instanceof AnimatedValue\n );\n}\n\nexport default class AnimatedColor extends AnimatedWithChildren {\n r: AnimatedValue;\n g: AnimatedValue;\n b: AnimatedValue;\n a: AnimatedValue;\n nativeColor: ?NativeColorValue;\n\n _suspendCallbacks: number = 0;\n\n constructor(valueIn?: InputValue, config?: ?AnimatedColorConfig) {\n super();\n\n let value: RgbaValue | RgbaAnimatedValue | ColorValue =\n valueIn ?? defaultColor;\n if (isRgbaAnimatedValue(value)) {\n // $FlowIgnore[incompatible-cast] - Type is verified above\n const rgbaAnimatedValue: RgbaAnimatedValue = (value: RgbaAnimatedValue);\n this.r = rgbaAnimatedValue.r;\n this.g = rgbaAnimatedValue.g;\n this.b = rgbaAnimatedValue.b;\n this.a = rgbaAnimatedValue.a;\n } else {\n const processedColor: RgbaValue | NativeColorValue =\n // $FlowIgnore[incompatible-cast] - Type is verified above\n processColor((value: ColorValue | RgbaValue)) ?? defaultColor;\n let initColor: RgbaValue = defaultColor;\n if (isRgbaValue(processedColor)) {\n // $FlowIgnore[incompatible-cast] - Type is verified above\n initColor = (processedColor: RgbaValue);\n } else {\n // $FlowIgnore[incompatible-cast] - Type is verified above\n this.nativeColor = (processedColor: NativeColorValue);\n }\n\n this.r = new AnimatedValue(initColor.r);\n this.g = new AnimatedValue(initColor.g);\n this.b = new AnimatedValue(initColor.b);\n this.a = new AnimatedValue(initColor.a);\n }\n\n if (config?.useNativeDriver) {\n this.__makeNative();\n }\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n */\n setValue(value: RgbaValue | ColorValue): void {\n let shouldUpdateNodeConfig = false;\n if (this.__isNative) {\n const nativeTag = this.__getNativeTag();\n NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());\n }\n\n const processedColor: RgbaValue | NativeColorValue =\n processColor(value) ?? defaultColor;\n this._withSuspendedCallbacks(() => {\n if (isRgbaValue(processedColor)) {\n // $FlowIgnore[incompatible-type] - Type is verified above\n const rgbaValue: RgbaValue = processedColor;\n this.r.setValue(rgbaValue.r);\n this.g.setValue(rgbaValue.g);\n this.b.setValue(rgbaValue.b);\n this.a.setValue(rgbaValue.a);\n if (this.nativeColor != null) {\n this.nativeColor = null;\n shouldUpdateNodeConfig = true;\n }\n } else {\n // $FlowIgnore[incompatible-type] - Type is verified above\n const nativeColor: NativeColorValue = processedColor;\n if (this.nativeColor !== nativeColor) {\n this.nativeColor = nativeColor;\n shouldUpdateNodeConfig = true;\n }\n }\n });\n\n if (this.__isNative) {\n const nativeTag = this.__getNativeTag();\n if (shouldUpdateNodeConfig) {\n NativeAnimatedAPI.updateAnimatedNodeConfig(\n nativeTag,\n this.__getNativeConfig(),\n );\n }\n NativeAnimatedAPI.unsetWaitingForIdentifier(nativeTag.toString());\n } else {\n flushValue(this);\n }\n\n // $FlowFixMe[incompatible-call]\n this.__callListeners(this.__getValue());\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether\n * via `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n */\n setOffset(offset: RgbaValue): void {\n this.r.setOffset(offset.r);\n this.g.setOffset(offset.g);\n this.b.setOffset(offset.b);\n this.a.setOffset(offset.a);\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n */\n flattenOffset(): void {\n this.r.flattenOffset();\n this.g.flattenOffset();\n this.b.flattenOffset();\n this.a.flattenOffset();\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to\n * zero. The final output of the value is unchanged.\n */\n extractOffset(): void {\n this.r.extractOffset();\n this.g.extractOffset();\n this.b.extractOffset();\n this.a.extractOffset();\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n */\n stopAnimation(callback?: ColorListenerCallback): void {\n this.r.stopAnimation();\n this.g.stopAnimation();\n this.b.stopAnimation();\n this.a.stopAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any animation and resets the value to its original.\n */\n resetAnimation(callback?: ColorListenerCallback): void {\n this.r.resetAnimation();\n this.g.resetAnimation();\n this.b.resetAnimation();\n this.a.resetAnimation();\n callback && callback(this.__getValue());\n }\n\n __getValue(): ColorValue {\n if (this.nativeColor != null) {\n return this.nativeColor;\n } else {\n return `rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`;\n }\n }\n\n __attach(): void {\n this.r.__addChild(this);\n this.g.__addChild(this);\n this.b.__addChild(this);\n this.a.__addChild(this);\n super.__attach();\n }\n\n __detach(): void {\n this.r.__removeChild(this);\n this.g.__removeChild(this);\n this.b.__removeChild(this);\n this.a.__removeChild(this);\n super.__detach();\n }\n\n _withSuspendedCallbacks(callback: () => void) {\n this._suspendCallbacks++;\n callback();\n this._suspendCallbacks--;\n }\n\n __callListeners(value: number): void {\n if (this._suspendCallbacks === 0) {\n super.__callListeners(value);\n }\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this.r.__makeNative(platformConfig);\n this.g.__makeNative(platformConfig);\n this.b.__makeNative(platformConfig);\n this.a.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getNativeConfig(): {...} {\n return {\n type: 'color',\n r: this.r.__getNativeTag(),\n g: this.g.__getNativeTag(),\n b: this.b.__getNativeTag(),\n a: this.a.__getNativeTag(),\n nativeColor: this.nativeColor,\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\ntype SpringConfigType = {\n stiffness: number,\n damping: number,\n ...\n};\n\nfunction stiffnessFromOrigamiValue(oValue: number) {\n return (oValue - 30) * 3.62 + 194;\n}\n\nfunction dampingFromOrigamiValue(oValue: number) {\n return (oValue - 8) * 3 + 25;\n}\n\nexport function fromOrigamiTensionAndFriction(\n tension: number,\n friction: number,\n): SpringConfigType {\n return {\n stiffness: stiffnessFromOrigamiValue(tension),\n damping: dampingFromOrigamiValue(friction),\n };\n}\n\nexport function fromBouncinessAndSpeed(\n bounciness: number,\n speed: number,\n): SpringConfigType {\n function normalize(value: number, startValue: number, endValue: number) {\n return (value - startValue) / (endValue - startValue);\n }\n\n function projectNormal(n: number, start: number, end: number) {\n return start + n * (end - start);\n }\n\n function linearInterpolation(t: number, start: number, end: number) {\n return t * end + (1 - t) * start;\n }\n\n function quadraticOutInterpolation(t: number, start: number, end: number) {\n return linearInterpolation(2 * t - t * t, start, end);\n }\n\n function b3Friction1(x: number) {\n return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28;\n }\n\n function b3Friction2(x: number) {\n return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2;\n }\n\n function b3Friction3(x: number) {\n return (\n 0.00000045 * Math.pow(x, 3) -\n 0.000332 * Math.pow(x, 2) +\n 0.1078 * x +\n 5.84\n );\n }\n\n function b3Nobounce(tension: number) {\n if (tension <= 18) {\n return b3Friction1(tension);\n } else if (tension > 18 && tension <= 44) {\n return b3Friction2(tension);\n } else {\n return b3Friction3(tension);\n }\n }\n\n let b = normalize(bounciness / 1.7, 0, 20);\n b = projectNormal(b, 0, 0.8);\n const s = normalize(speed / 1.7, 0, 20);\n const bouncyTension = projectNormal(s, 0.5, 200);\n const bouncyFriction = quadraticOutInterpolation(\n b,\n b3Nobounce(bouncyTension),\n 0.01,\n );\n\n return {\n stiffness: stiffnessFromOrigamiValue(bouncyTension),\n damping: dampingFromOrigamiValue(bouncyFriction),\n };\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {RgbaValue} from '../nodes/AnimatedColor';\nimport type AnimatedInterpolation from '../nodes/AnimatedInterpolation';\nimport type AnimatedValue from '../nodes/AnimatedValue';\nimport type AnimatedValueXY from '../nodes/AnimatedValueXY';\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\nimport AnimatedColor from '../nodes/AnimatedColor';\nimport Animation from './Animation';\n\nexport type TimingAnimationConfig = $ReadOnly<{\n ...AnimationConfig,\n toValue:\n | number\n | AnimatedValue\n | {\n x: number,\n y: number,\n ...\n }\n | AnimatedValueXY\n | RgbaValue\n | AnimatedColor\n | AnimatedInterpolation,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n}>;\n\nexport type TimingAnimationConfigSingle = $ReadOnly<{\n ...AnimationConfig,\n toValue: number,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n}>;\n\nlet _easeInOut;\nfunction easeInOut() {\n if (!_easeInOut) {\n const Easing = require('../Easing').default;\n _easeInOut = Easing.inOut(Easing.ease);\n }\n return _easeInOut;\n}\n\nexport default class TimingAnimation extends Animation {\n _startTime: number;\n _fromValue: number;\n _toValue: number;\n _duration: number;\n _delay: number;\n _easing: (value: number) => number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _timeout: any;\n _useNativeDriver: boolean;\n _platformConfig: ?PlatformConfig;\n\n constructor(config: TimingAnimationConfigSingle) {\n super();\n this._toValue = config.toValue;\n this._easing = config.easing ?? easeInOut();\n this._duration = config.duration ?? 500;\n this._delay = config.delay ?? 0;\n this.__iterations = config.iterations ?? 1;\n this._useNativeDriver = NativeAnimatedHelper.shouldUseNativeDriver(config);\n this._platformConfig = config.platformConfig;\n this.__isInteraction = config.isInteraction ?? !this._useNativeDriver;\n }\n\n __getNativeAnimationConfig(): any {\n const frameDuration = 1000.0 / 60.0;\n const frames = [];\n const numFrames = Math.round(this._duration / frameDuration);\n for (let frame = 0; frame < numFrames; frame++) {\n frames.push(this._easing(frame / numFrames));\n }\n frames.push(this._easing(1));\n return {\n type: 'frames',\n frames,\n toValue: this._toValue,\n iterations: this.__iterations,\n platformConfig: this._platformConfig,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._fromValue = fromValue;\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n\n const start = () => {\n if (!this._useNativeDriver && animatedValue.__isNative === true) {\n throw new Error(\n 'Attempting to run JS driven animation on animated node ' +\n 'that has been moved to \"native\" earlier by starting an ' +\n 'animation with `useNativeDriver: true`',\n );\n }\n\n // Animations that sometimes have 0 duration and sometimes do not\n // still need to use the native driver when duration is 0 so as to\n // not cause intermixed JS and native animations.\n if (this._duration === 0 && !this._useNativeDriver) {\n this._onUpdate(this._toValue);\n this.__debouncedOnEnd({finished: true});\n } else {\n this._startTime = Date.now();\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this._animationFrame = requestAnimationFrame(\n // $FlowFixMe[method-unbinding] added when improving typing for this parameters\n this.onUpdate.bind(this),\n );\n }\n }\n };\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n onUpdate(): void {\n const now = Date.now();\n if (now >= this._startTime + this._duration) {\n if (this._duration === 0) {\n this._onUpdate(this._toValue);\n } else {\n this._onUpdate(\n this._fromValue + this._easing(1) * (this._toValue - this._fromValue),\n );\n }\n this.__debouncedOnEnd({finished: true});\n return;\n }\n\n this._onUpdate(\n this._fromValue +\n this._easing((now - this._startTime) / this._duration) *\n (this._toValue - this._fromValue),\n );\n if (this.__active) {\n // $FlowFixMe[method-unbinding] added when improving typing for this parameters\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport composeStyles from '../../src/private/core/composeStyles';\nimport View from '../Components/View/View';\nimport useMergeRefs from '../Utilities/useMergeRefs';\nimport useAnimatedProps from './useAnimatedProps';\nimport * as React from 'react';\nimport {useMemo} from 'react';\n\n// $FlowFixMe[deprecated-type]\nexport type AnimatedProps = $ObjMap<\n Props &\n $ReadOnly<{\n passthroughAnimatedPropExplicitValues?: React.ElementConfig,\n }>,\n () => any,\n>;\n\nexport type AnimatedComponentType<\n Props: {...},\n +Instance = mixed,\n> = React.AbstractComponent, Instance>;\n\nexport default function createAnimatedComponent(\n Component: React.AbstractComponent,\n): AnimatedComponentType {\n const AnimatedComponent = React.forwardRef, TInstance>(\n (props, forwardedRef) => {\n const [reducedProps, callbackRef] = useAnimatedProps(\n // $FlowFixMe[incompatible-call]\n props,\n );\n const ref = useMergeRefs(callbackRef, forwardedRef);\n\n // Some components require explicit passthrough values for animation\n // to work properly. For example, if an animated component is\n // transformed and Pressable, onPress will not work after transform\n // without these passthrough values.\n // $FlowFixMe[prop-missing]\n const {passthroughAnimatedPropExplicitValues, style} = reducedProps;\n const passthroughStyle = passthroughAnimatedPropExplicitValues?.style;\n const mergedStyle = useMemo(\n () => composeStyles(style, passthroughStyle),\n [passthroughStyle, style],\n );\n\n // NOTE: It is important that `passthroughAnimatedPropExplicitValues` is\n // spread after `reducedProps` but before `style`.\n return (\n \n );\n },\n );\n\n AnimatedComponent.displayName = `Animated(${\n Component.displayName || 'Anonymous'\n })`;\n\n return AnimatedComponent;\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport * as React from 'react';\nimport {useCallback} from 'react';\n\n/**\n * Constructs a new ref that forwards new values to each of the given refs. The\n * given refs will always be invoked in the order that they are supplied.\n *\n * WARNING: A known problem of merging refs using this approach is that if any\n * of the given refs change, the returned callback ref will also be changed. If\n * the returned callback ref is supplied as a `ref` to a React element, this may\n * lead to problems with the given refs being invoked more times than desired.\n */\nexport default function useMergeRefs(\n ...refs: $ReadOnlyArray>\n): (Instance | null) => void {\n return useCallback(\n (current: Instance | null) => {\n for (const ref of refs) {\n if (ref != null) {\n if (typeof ref === 'function') {\n ref(current);\n } else {\n ref.current = current;\n }\n }\n }\n },\n [...refs], // eslint-disable-line react-hooks/exhaustive-deps\n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';\nimport {isPublicInstance as isFabricPublicInstance} from '../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';\nimport useRefEffect from '../Utilities/useRefEffect';\nimport {AnimatedEvent} from './AnimatedEvent';\nimport NativeAnimatedHelper from './NativeAnimatedHelper';\nimport AnimatedProps from './nodes/AnimatedProps';\nimport {\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useReducer,\n useRef,\n} from 'react';\n\ntype ReducedProps = {\n ...TProps,\n collapsable: boolean,\n ...\n};\ntype CallbackRef = T => mixed;\n\nexport default function useAnimatedProps(\n props: TProps,\n): [ReducedProps, CallbackRef] {\n const [, scheduleUpdate] = useReducer(count => count + 1, 0);\n const onUpdateRef = useRef void>(null);\n const timerRef = useRef(null);\n\n // TODO: Only invalidate `node` if animated props or `style` change. In the\n // previous implementation, we permitted `style` to override props with the\n // same name property name as styles, so we can probably continue doing that.\n // The ordering of other props *should* not matter.\n const node = useMemo(\n () => new AnimatedProps(props, () => onUpdateRef.current?.()),\n [props],\n );\n const useNativePropsInFabric =\n ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();\n useAnimatedPropsLifecycle(node);\n\n // TODO: This \"effect\" does three things:\n //\n // 1) Call `setNativeView`.\n // 2) Update `onUpdateRef`.\n // 3) Update listeners for `AnimatedEvent` props.\n //\n // Ideally, each of these would be separate \"effects\" so that they are not\n // unnecessarily re-run when irrelevant dependencies change. For example, we\n // should be able to hoist all `AnimatedEvent` props and only do #3 if either\n // the `AnimatedEvent` props change or `instance` changes.\n //\n // But there is no way to transparently compose three separate callback refs,\n // so we just combine them all into one for now.\n const refEffect = useCallback(\n (instance: TInstance) => {\n // NOTE: This may be called more often than necessary (e.g. when `props`\n // changes), but `setNativeView` already optimizes for that.\n node.setNativeView(instance);\n\n // NOTE: When using the JS animation driver, this callback is called on\n // every animation frame. When using the native driver, this callback is\n // called when the animation completes.\n onUpdateRef.current = () => {\n if (process.env.NODE_ENV === 'test') {\n // Check 1: this is a test.\n // call `scheduleUpdate` to bypass use of setNativeProps.\n return scheduleUpdate();\n }\n\n const isFabricNode = isFabricInstance(instance);\n if (node.__isNative) {\n // Check 2: this is an animation driven by native.\n // In native driven animations, this callback is only called once the animation completes.\n if (isFabricNode) {\n // Call `scheduleUpdate` to synchronise Fiber and Shadow tree.\n // Must not be called in Paper.\n scheduleUpdate();\n }\n return;\n }\n\n if (\n typeof instance !== 'object' ||\n typeof instance?.setNativeProps !== 'function'\n ) {\n // Check 3: the instance does not support setNativeProps. Call `scheduleUpdate`.\n return scheduleUpdate();\n }\n\n if (!isFabricNode) {\n // Check 4: this is a paper instance, call setNativeProps.\n // $FlowIgnore[not-a-function] - Assume it's still a function.\n // $FlowFixMe[incompatible-use]\n return instance.setNativeProps(node.__getAnimatedValue());\n }\n\n if (!useNativePropsInFabric) {\n // Check 5: setNativeProps are disabled.\n return scheduleUpdate();\n }\n\n // This is a Fabric instance and setNativeProps is supported.\n\n // $FlowIgnore[not-a-function] - Assume it's still a function.\n // $FlowFixMe[incompatible-use]\n instance.setNativeProps(node.__getAnimatedValue());\n\n // Keeping state of Fiber tree and Shadow tree in sync.\n //\n // This is done by calling `scheduleUpdate` which will trigger a commit.\n // However, React commit is not fast enough to drive animations.\n // This is where setNativeProps comes in handy but the state between\n // Fiber tree and Shadow tree needs to be kept in sync.\n // The goal is to call `scheduleUpdate` as little as possible to maintain\n // performance but frequently enough to keep state in sync.\n // Debounce is set to 48ms, which is 3 * the duration of a frame.\n // 3 frames was the highest value where flickering state was not observed.\n if (timerRef.current != null) {\n clearTimeout(timerRef.current);\n }\n timerRef.current = setTimeout(() => {\n timerRef.current = null;\n scheduleUpdate();\n }, 48);\n };\n\n const target = getEventTarget(instance);\n const events = [];\n\n for (const propName in props) {\n // $FlowFixMe[invalid-computed-prop]\n const propValue = props[propName];\n if (propValue instanceof AnimatedEvent && propValue.__isNative) {\n propValue.__attach(target, propName);\n events.push([propName, propValue]);\n }\n }\n\n return () => {\n onUpdateRef.current = null;\n\n for (const [propName, propValue] of events) {\n propValue.__detach(target, propName);\n }\n };\n },\n [props, node, useNativePropsInFabric],\n );\n const callbackRef = useRefEffect(refEffect);\n\n return [reduceAnimatedProps(node), callbackRef];\n}\n\nfunction reduceAnimatedProps(\n node: AnimatedProps,\n): ReducedProps {\n // Force `collapsable` to be false so that the native view is not flattened.\n // Flattened views cannot be accurately referenced by the native driver.\n return {\n ...node.__getValue(),\n collapsable: false,\n };\n}\n\n/**\n * Manages the lifecycle of the supplied `AnimatedProps` by invoking `__attach`\n * and `__detach`. However, this is more complicated because `AnimatedProps`\n * uses reference counting to determine when to recursively detach its children\n * nodes. So in order to optimize this, we avoid detaching until the next attach\n * unless we are unmounting.\n */\nfunction useAnimatedPropsLifecycle(node: AnimatedProps): void {\n const prevNodeRef = useRef(null);\n const isUnmountingRef = useRef(false);\n\n useEffect(() => {\n // It is ok for multiple components to call `flushQueue` because it noops\n // if the queue is empty. When multiple animated components are mounted at\n // the same time. Only first component flushes the queue and the others will noop.\n NativeAnimatedHelper.API.flushQueue();\n });\n\n useLayoutEffect(() => {\n isUnmountingRef.current = false;\n return () => {\n isUnmountingRef.current = true;\n };\n }, []);\n\n useLayoutEffect(() => {\n node.__attach();\n if (prevNodeRef.current != null) {\n const prevNode = prevNodeRef.current;\n // TODO: Stop restoring default values (unless `reset` is called).\n prevNode.__restoreDefaultValues();\n prevNode.__detach();\n prevNodeRef.current = null;\n }\n return () => {\n if (isUnmountingRef.current) {\n // NOTE: Do not restore default values on unmount, see D18197735.\n node.__detach();\n } else {\n prevNodeRef.current = node;\n }\n };\n }, [node]);\n}\n\nfunction getEventTarget(instance: TInstance): TInstance {\n return typeof instance === 'object' &&\n typeof instance?.getScrollableNode === 'function'\n ? // $FlowFixMe[incompatible-use] - Legacy instance assumptions.\n instance.getScrollableNode()\n : instance;\n}\n\n// $FlowFixMe[unclear-type] - Legacy instance assumptions.\nfunction isFabricInstance(instance: any): boolean {\n return (\n isFabricPublicInstance(instance) ||\n // Some components have a setNativeProps function but aren't a host component\n // such as lists like FlatList and SectionList. These should also use\n // forceUpdate in Fabric since setNativeProps doesn't exist on the underlying\n // host component. This crazy hack is essentially special casing those lists and\n // ScrollView itself to use forceUpdate in Fabric.\n // If these components end up using forwardRef then these hacks can go away\n // as instance would actually be the underlying host component and the above check\n // would be sufficient.\n isFabricPublicInstance(instance?.getNativeScrollRef?.()) ||\n isFabricPublicInstance(\n instance?.getScrollResponder?.()?.getNativeScrollRef?.(),\n )\n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport {useCallback, useRef} from 'react';\n\ntype CallbackRef = T => mixed;\n\n/**\n * Constructs a callback ref that provides similar semantics as `useEffect`. The\n * supplied `effect` callback will be called with non-null component instances.\n * The `effect` callback can also optionally return a cleanup function.\n *\n * When a component is updated or unmounted, the cleanup function is called. The\n * `effect` callback will then be called again, if applicable.\n *\n * When a new `effect` callback is supplied, the previously returned cleanup\n * function will be called before the new `effect` callback is called with the\n * same instance.\n *\n * WARNING: The `effect` callback should be stable (e.g. using `useCallback`).\n */\nexport default function useRefEffect(\n effect: TInstance => (() => void) | void,\n): CallbackRef {\n const cleanupRef = useRef<(() => void) | void>(undefined);\n return useCallback(\n (instance: null | TInstance) => {\n if (cleanupRef.current) {\n cleanupRef.current();\n cleanupRef.current = undefined;\n }\n if (instance != null) {\n cleanupRef.current = effect(instance);\n }\n },\n [effect],\n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n/**\n * IMPORTANT!!\n *\n * This module cannot import `ReactFabric` (directly or indirectly)\n * because it can be used by apps only using the legacy renderer.\n * In that case `nativeFabricUIManager` isn't defined and `ReactFabric` throws.\n */\n\nexport function isPublicInstance(maybeInstance: mixed): boolean {\n return (\n maybeInstance != null &&\n // TODO: implement a better check when the instance is defined in the React Native repository.\n (maybeInstance.__nativeTag != null ||\n // TODO: remove this check when syncing the new version of the renderer from React to React Native.\n isLegacyFabricInstance(maybeInstance))\n );\n}\n\nfunction isLegacyFabricInstance(maybeInstance: mixed): boolean {\n /* eslint-disable dot-notation */\n return (\n maybeInstance != null &&\n // $FlowExpectedError[incompatible-use]\n maybeInstance['_internalInstanceHandle'] != null &&\n maybeInstance['_internalInstanceHandle'].stateNode != null &&\n maybeInstance['_internalInstanceHandle'].stateNode.canonical != null\n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedNode from './AnimatedNode';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedAddition extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n this._b.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): number {\n return this._a.__getValue() + this._b.__getValue();\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'addition',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedNode from './AnimatedNode';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedDiffClamp extends AnimatedWithChildren {\n _a: AnimatedNode;\n _min: number;\n _max: number;\n _value: number;\n _lastValue: number;\n\n constructor(a: AnimatedNode, min: number, max: number) {\n super();\n\n this._a = a;\n this._min = min;\n this._max = max;\n this._value = this._lastValue = this._a.__getValue();\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __getValue(): number {\n const value = this._a.__getValue();\n const diff = value - this._lastValue;\n this._lastValue = value;\n this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n return this._value;\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max,\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedNode from './AnimatedNode';\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedDivision extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n _warnedAboutDivideByZero: boolean = false;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n if (b === 0 || (b instanceof AnimatedNode && b.__getValue() === 0)) {\n console.error('Detected potential division by zero in AnimatedDivision');\n }\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n this._b.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): number {\n const a = this._a.__getValue();\n const b = this._b.__getValue();\n if (b === 0) {\n // Prevent spamming the console/LogBox\n if (!this._warnedAboutDivideByZero) {\n console.error('Detected division by zero in AnimatedDivision');\n this._warnedAboutDivideByZero = true;\n }\n // Passing infinity/NaN to Fabric will cause a native crash\n return 0;\n }\n this._warnedAboutDivideByZero = false;\n return a / b;\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'division',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedNode from './AnimatedNode';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedModulo extends AnimatedWithChildren {\n _a: AnimatedNode;\n _modulus: number;\n\n constructor(a: AnimatedNode, modulus: number) {\n super();\n this._a = a;\n this._modulus = modulus;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): number {\n return (\n ((this._a.__getValue() % this._modulus) + this._modulus) % this._modulus\n );\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'modulus',\n input: this._a.__getNativeTag(),\n modulus: this._modulus,\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedNode from './AnimatedNode';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedMultiplication extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n this._b.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): number {\n return this._a.__getValue() * this._b.__getValue();\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'multiplication',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedNode from './AnimatedNode';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedValue from './AnimatedValue';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nexport default class AnimatedSubtraction extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this._a.__makeNative(platformConfig);\n this._b.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n\n __getValue(): number {\n return this._a.__getValue() - this._b.__getValue();\n }\n\n interpolate(\n config: InterpolationConfigType,\n ): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'subtraction',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PlatformConfig} from '../AnimatedPlatformConfig';\nimport type {EndCallback} from '../animations/Animation';\nimport type AnimatedValue from './AnimatedValue';\n\nimport NativeAnimatedHelper from '../NativeAnimatedHelper';\nimport AnimatedNode from './AnimatedNode';\n\nexport default class AnimatedTracking extends AnimatedNode {\n _value: AnimatedValue;\n _parent: AnimatedNode;\n _callback: ?EndCallback;\n _animationConfig: Object;\n _animationClass: any;\n _useNativeDriver: boolean;\n\n constructor(\n value: AnimatedValue,\n parent: AnimatedNode,\n animationClass: any,\n animationConfig: Object,\n callback?: ?EndCallback,\n ) {\n super();\n this._value = value;\n this._parent = parent;\n this._animationClass = animationClass;\n this._animationConfig = animationConfig;\n this._useNativeDriver =\n NativeAnimatedHelper.shouldUseNativeDriver(animationConfig);\n this._callback = callback;\n this.__attach();\n }\n\n __makeNative(platformConfig: ?PlatformConfig) {\n this.__isNative = true;\n this._parent.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n this._value.__makeNative(platformConfig);\n }\n\n __getValue(): Object {\n return this._parent.__getValue();\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n if (this._useNativeDriver) {\n // when the tracking starts we need to convert this node to a \"native node\"\n // so that the parent node will be made \"native\" too. This is necessary as\n // if we don't do this `update` method will get called. At that point it\n // may be too late as it would mean the JS driver has already started\n // updating node values\n let {platformConfig} = this._animationConfig;\n this.__makeNative(platformConfig);\n }\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n update(): void {\n this._value.animate(\n new this._animationClass({\n ...this._animationConfig,\n toValue: (this._animationConfig.toValue: any).__getValue(),\n }),\n this._callback,\n );\n }\n\n __getNativeConfig(): any {\n const animation = new this._animationClass({\n ...this._animationConfig,\n // remove toValue from the config as it's a ref to Animated.Value\n toValue: undefined,\n });\n const animationConfig = animation.__getNativeAnimationConfig();\n return {\n type: 'tracking',\n animationId: NativeAnimatedHelper.generateNewAnimationId(),\n animationConfig,\n toValue: this._parent.__getNativeTag(),\n value: this._value.__getNativeTag(),\n };\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {Numeric as AnimatedNumeric} from './AnimatedImplementation';\nimport type {EndResult} from './animations/Animation';\nimport type {EndCallback} from './animations/Animation';\nimport type {DecayAnimationConfig} from './animations/DecayAnimation';\nimport type {SpringAnimationConfig} from './animations/SpringAnimation';\nimport type {TimingAnimationConfig} from './animations/TimingAnimation';\n\nimport {AnimatedEvent, attachNativeEvent} from './AnimatedEvent';\nimport AnimatedImplementation from './AnimatedImplementation';\nimport createAnimatedComponent from './createAnimatedComponent';\nimport AnimatedColor from './nodes/AnimatedColor';\nimport AnimatedInterpolation from './nodes/AnimatedInterpolation';\nimport AnimatedNode from './nodes/AnimatedNode';\nimport AnimatedValue from './nodes/AnimatedValue';\nimport AnimatedValueXY from './nodes/AnimatedValueXY';\n\n/**\n * Animations are a source of flakiness in snapshot testing. This mock replaces\n * animation functions from AnimatedImplementation with empty animations for\n * predictability in tests. When possible the animation will run immediately\n * to the final state.\n */\n\n// Prevent any callback invocation from recursively triggering another\n// callback, which may trigger another animation\nlet inAnimationCallback = false;\nfunction mockAnimationStart(\n start: (callback?: ?EndCallback) => void,\n): (callback?: ?EndCallback) => void {\n return callback => {\n const guardedCallback =\n callback == null\n ? callback\n : (...args: Array) => {\n if (inAnimationCallback) {\n console.warn(\n 'Ignoring recursive animation callback when running mock animations',\n );\n return;\n }\n inAnimationCallback = true;\n try {\n callback(...args);\n } finally {\n inAnimationCallback = false;\n }\n };\n start(guardedCallback);\n };\n}\n\nexport type CompositeAnimation = {\n start: (callback?: ?EndCallback) => void,\n stop: () => void,\n reset: () => void,\n _startNativeLoop: (iterations?: number) => void,\n _isUsingNativeDriver: () => boolean,\n ...\n};\n\nconst emptyAnimation = {\n start: () => {},\n stop: () => {},\n reset: () => {},\n _startNativeLoop: () => {},\n _isUsingNativeDriver: () => {\n return false;\n },\n};\n\nconst mockCompositeAnimation = (\n animations: Array,\n): CompositeAnimation => ({\n ...emptyAnimation,\n start: mockAnimationStart((callback?: ?EndCallback): void => {\n animations.forEach(animation => animation.start());\n callback?.({finished: true});\n }),\n});\n\nconst spring = function (\n value: AnimatedValue | AnimatedValueXY | AnimatedColor,\n config: SpringAnimationConfig,\n): CompositeAnimation {\n const anyValue: any = value;\n return {\n ...emptyAnimation,\n start: mockAnimationStart((callback?: ?EndCallback): void => {\n anyValue.setValue(config.toValue);\n callback?.({finished: true});\n }),\n };\n};\n\nconst timing = function (\n value: AnimatedValue | AnimatedValueXY | AnimatedColor,\n config: TimingAnimationConfig,\n): CompositeAnimation {\n const anyValue: any = value;\n return {\n ...emptyAnimation,\n start: mockAnimationStart((callback?: ?EndCallback): void => {\n anyValue.setValue(config.toValue);\n callback?.({finished: true});\n }),\n };\n};\n\nconst decay = function (\n value: AnimatedValue | AnimatedValueXY | AnimatedColor,\n config: DecayAnimationConfig,\n): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst sequence = function (\n animations: Array,\n): CompositeAnimation {\n return mockCompositeAnimation(animations);\n};\n\ntype ParallelConfig = {stopTogether?: boolean, ...};\nconst parallel = function (\n animations: Array,\n config?: ?ParallelConfig,\n): CompositeAnimation {\n return mockCompositeAnimation(animations);\n};\n\nconst delay = function (time: number): CompositeAnimation {\n return emptyAnimation;\n};\n\nconst stagger = function (\n time: number,\n animations: Array,\n): CompositeAnimation {\n return mockCompositeAnimation(animations);\n};\n\ntype LoopAnimationConfig = {\n iterations: number,\n resetBeforeIteration?: boolean,\n ...\n};\n\nconst loop = function (\n animation: CompositeAnimation,\n // $FlowFixMe[prop-missing]\n {iterations = -1}: LoopAnimationConfig = {},\n): CompositeAnimation {\n return emptyAnimation;\n};\n\nexport type {AnimatedNumeric as Numeric};\n\nexport default {\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n Color: AnimatedColor,\n Interpolation: AnimatedInterpolation,\n Node: AnimatedNode,\n decay,\n timing,\n spring,\n add: AnimatedImplementation.add,\n subtract: AnimatedImplementation.subtract,\n divide: AnimatedImplementation.divide,\n multiply: AnimatedImplementation.multiply,\n modulo: AnimatedImplementation.modulo,\n diffClamp: AnimatedImplementation.diffClamp,\n delay,\n sequence,\n parallel,\n stagger,\n loop,\n event: AnimatedImplementation.event,\n createAnimatedComponent,\n attachNativeEvent,\n forkEvent: AnimatedImplementation.forkEvent,\n unforkEvent: AnimatedImplementation.unforkEvent,\n Event: AnimatedEvent,\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport FlatList from '../../Lists/FlatList';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport * as React from 'react';\n\nexport default (createAnimatedComponent(FlatList): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport typeof ScrollViewNativeComponent from '../Components/ScrollView/ScrollViewNativeComponent';\nimport type {ViewStyleProp} from '../StyleSheet/StyleSheet';\nimport type {\n RenderItemProps,\n RenderItemType,\n ViewabilityConfigCallbackPair,\n ViewToken,\n} from '@react-native/virtualized-lists';\n\nimport * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';\nimport {type ScrollResponderType} from '../Components/ScrollView/ScrollView';\nimport {\n VirtualizedList,\n keyExtractor as defaultKeyExtractor,\n} from '@react-native/virtualized-lists';\nimport memoizeOne from 'memoize-one';\n\nconst View = require('../Components/View/View');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst deepDiffer = require('../Utilities/differ/deepDiffer');\nconst Platform = require('../Utilities/Platform');\nconst invariant = require('invariant');\nconst React = require('react');\n\ntype RequiredProps = {|\n /**\n * An array (or array-like list) of items to render. Other data types can be\n * used by targeting VirtualizedList directly.\n */\n data: ?$ReadOnly<$ArrayLike>,\n|};\ntype OptionalProps = {|\n /**\n * Takes an item from `data` and renders it into the list. Example usage:\n *\n * (\n * \n * )}\n * data={[{title: 'Title Text', key: 'item1'}]}\n * renderItem={({item, separators}) => (\n * this._onPress(item)}\n * onShowUnderlay={separators.highlight}\n * onHideUnderlay={separators.unhighlight}>\n * \n * {item.title}\n * \n * \n * )}\n * />\n *\n * Provides additional metadata like `index` if you need it, as well as a more generic\n * `separators.updateProps` function which let's you set whatever props you want to change the\n * rendering of either the leading separator or trailing separator in case the more common\n * `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for\n * your use-case.\n */\n renderItem?: ?RenderItemType,\n\n /**\n * Optional custom style for multi-item rows generated when numColumns > 1.\n */\n columnWrapperStyle?: ViewStyleProp,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * `getItemLayout` is an optional optimizations that let us skip measurement of dynamic content if\n * you know the height of items a priori. `getItemLayout` is the most efficient, and is easy to\n * use if you have fixed height items, for example:\n *\n * getItemLayout={(data, index) => (\n * {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index}\n * )}\n *\n * Adding `getItemLayout` can be a great performance boost for lists of several hundred items.\n * Remember to include separator length (height or width) in your offset calculation if you\n * specify `ItemSeparatorComponent`.\n */\n getItemLayout?: (\n data: ?$ReadOnly<$ArrayLike>,\n index: number,\n ) => {\n length: number,\n offset: number,\n index: number,\n ...\n },\n /**\n * If true, renders items next to each other horizontally instead of stacked vertically.\n */\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender?: ?number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks `item.key`, then\n * falls back to using the index, like React does.\n */\n keyExtractor?: ?(item: ItemT, index: number) => string,\n /**\n * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a\n * `flexWrap` layout. Items should all be the same height - masonry layouts are not supported.\n *\n * The default value is 1.\n */\n numColumns?: number,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n *\n * The default value is true for Android.\n */\n removeClippedSubviews?: boolean,\n /**\n * See `ScrollView` for flow type and further documentation.\n */\n fadingEdgeLength?: ?number,\n /**\n * Enable an optimization to memoize the item renderer to prevent unnecessary rerenders.\n */\n strictMode?: boolean,\n|};\n\n/**\n * Default Props Helper Functions\n * Use the following helper functions for default values\n */\n\n// removeClippedSubviewsOrDefault(this.props.removeClippedSubviews)\nfunction removeClippedSubviewsOrDefault(removeClippedSubviews: ?boolean) {\n if (ReactNativeFeatureFlags.shouldUseRemoveClippedSubviewsAsDefaultOnIOS()) {\n return removeClippedSubviews ?? true;\n } else {\n return removeClippedSubviews ?? Platform.OS === 'android';\n }\n}\n\n// numColumnsOrDefault(this.props.numColumns)\nfunction numColumnsOrDefault(numColumns: ?number) {\n return numColumns ?? 1;\n}\n\nfunction isArrayLike(data: mixed): boolean {\n // $FlowExpectedError[incompatible-use]\n return typeof Object(data).length === 'number';\n}\n\ntype FlatListProps = {|\n ...RequiredProps,\n ...OptionalProps,\n|};\n\ntype VirtualizedListProps = React.ElementConfig;\n\nexport type Props = {\n ...$Diff<\n VirtualizedListProps,\n {\n getItem: $PropertyType,\n getItemCount: $PropertyType,\n getItemLayout: $PropertyType,\n renderItem: $PropertyType,\n keyExtractor: $PropertyType,\n ...\n },\n >,\n ...FlatListProps,\n ...\n};\n\n/**\n * A performant interface for rendering simple, flat lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Optional horizontal mode.\n * - Configurable viewability callbacks.\n * - Header support.\n * - Footer support.\n * - Separator support.\n * - Pull to Refresh.\n * - Scroll loading.\n * - ScrollToIndex support.\n *\n * If you need section support, use [``](docs/sectionlist.html).\n *\n * Minimal Example:\n *\n * {item.key}}\n * />\n *\n * More complex, multi-select example demonstrating `PureComponent` usage for perf optimization and avoiding bugs.\n *\n * - By binding the `onPressItem` handler, the props will remain `===` and `PureComponent` will\n * prevent wasteful re-renders unless the actual `id`, `selected`, or `title` props change, even\n * if the components rendered in `MyListItem` did not have such optimizations.\n * - By passing `extraData={this.state}` to `FlatList` we make sure `FlatList` itself will re-render\n * when the `state.selected` changes. Without setting this prop, `FlatList` would not know it\n * needs to re-render any items because it is also a `PureComponent` and the prop comparison will\n * not show any changes.\n * - `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property.\n *\n *\n * class MyListItem extends React.PureComponent {\n * _onPress = () => {\n * this.props.onPressItem(this.props.id);\n * };\n *\n * render() {\n * const textColor = this.props.selected ? \"red\" : \"black\";\n * return (\n * \n * \n * \n * {this.props.title}\n * \n * \n * \n * );\n * }\n * }\n *\n * class MultiSelectList extends React.PureComponent {\n * state = {selected: (new Map(): Map)};\n *\n * _keyExtractor = (item, index) => item.id;\n *\n * _onPressItem = (id: string) => {\n * // updater functions are preferred for transactional updates\n * this.setState((state) => {\n * // copy the map rather than modifying state.\n * const selected = new Map(state.selected);\n * selected.set(id, !selected.get(id)); // toggle\n * return {selected};\n * });\n * };\n *\n * _renderItem = ({item}) => (\n * \n * );\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * This is a convenience wrapper around [``](docs/virtualizedlist.html),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n * Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.\n */\nclass FlatList extends React.PureComponent, void> {\n /**\n * Scrolls to the end of the content. May be janky without `getItemLayout` prop.\n */\n scrollToEnd(params?: ?{animated?: ?boolean, ...}) {\n if (this._listRef) {\n this._listRef.scrollToEnd(params);\n }\n }\n\n /**\n * Scrolls to the item at the specified index such that it is positioned in the viewable area\n * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the\n * middle. `viewOffset` is a fixed number of pixels to offset the final target position.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }) {\n if (this._listRef) {\n this._listRef.scrollToIndex(params);\n }\n }\n\n /**\n * Requires linear scan through data - use `scrollToIndex` instead if possible.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToItem(params: {\n animated?: ?boolean,\n item: ItemT,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }) {\n if (this._listRef) {\n this._listRef.scrollToItem(params);\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number, ...}) {\n if (this._listRef) {\n this._listRef.scrollToOffset(params);\n }\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n if (this._listRef) {\n this._listRef.recordInteraction();\n }\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n if (this._listRef) {\n this._listRef.flashScrollIndicators();\n }\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder(): ?ScrollResponderType {\n if (this._listRef) {\n return this._listRef.getScrollResponder();\n }\n }\n\n /**\n * Provides a reference to the underlying host component\n */\n getNativeScrollRef():\n | ?React.ElementRef\n | ?React.ElementRef {\n if (this._listRef) {\n /* $FlowFixMe[incompatible-return] Suppresses errors found when fixing\n * TextInput typing */\n return this._listRef.getScrollRef();\n }\n }\n\n getScrollableNode(): any {\n if (this._listRef) {\n return this._listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: {[string]: mixed, ...}) {\n if (this._listRef) {\n this._listRef.setNativeProps(props);\n }\n }\n\n constructor(props: Props) {\n super(props);\n this._checkProps(this.props);\n if (this.props.viewabilityConfigCallbackPairs) {\n this._virtualizedListPairs =\n this.props.viewabilityConfigCallbackPairs.map(pair => ({\n viewabilityConfig: pair.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n pair.onViewableItemsChanged,\n ),\n }));\n } else if (this.props.onViewableItemsChanged) {\n this._virtualizedListPairs.push({\n /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This\n * comment suppresses an error found when Flow v0.63 was deployed. To\n * see the error delete this comment and run Flow. */\n viewabilityConfig: this.props.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n // NOTE: we use a wrapper function to allow the actual callback to change\n // while still keeping the function provided to native to be stable\n (...args) => {\n invariant(\n this.props.onViewableItemsChanged,\n 'Changing the nullability of onViewableItemsChanged is not supported. ' +\n 'Once a function or null is supplied that cannot be changed.',\n );\n return this.props.onViewableItemsChanged(...args);\n },\n ),\n });\n }\n }\n\n // $FlowFixMe[missing-local-annot]\n componentDidUpdate(prevProps: Props) {\n invariant(\n prevProps.numColumns === this.props.numColumns,\n 'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' +\n 'changing the number of columns to force a fresh render of the component.',\n );\n invariant(\n (prevProps.onViewableItemsChanged == null) ===\n (this.props.onViewableItemsChanged == null),\n 'Changing onViewableItemsChanged nullability on the fly is not supported',\n );\n invariant(\n !deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig),\n 'Changing viewabilityConfig on the fly is not supported',\n );\n invariant(\n prevProps.viewabilityConfigCallbackPairs ===\n this.props.viewabilityConfigCallbackPairs,\n 'Changing viewabilityConfigCallbackPairs on the fly is not supported',\n );\n\n this._checkProps(this.props);\n }\n\n _listRef: ?React.ElementRef;\n _virtualizedListPairs: Array = [];\n\n _captureRef = (ref: ?React.ElementRef) => {\n this._listRef = ref;\n };\n\n // $FlowFixMe[missing-local-annot]\n _checkProps(props: Props) {\n const {\n // $FlowFixMe[prop-missing] this prop doesn't exist, is only used for an invariant\n getItem,\n // $FlowFixMe[prop-missing] this prop doesn't exist, is only used for an invariant\n getItemCount,\n horizontal,\n columnWrapperStyle,\n onViewableItemsChanged,\n viewabilityConfigCallbackPairs,\n } = props;\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n invariant(\n !getItem && !getItemCount,\n 'FlatList does not support custom data formats.',\n );\n if (numColumns > 1) {\n invariant(!horizontal, 'numColumns does not support horizontal.');\n } else {\n invariant(\n !columnWrapperStyle,\n 'columnWrapperStyle not supported for single column lists',\n );\n }\n invariant(\n !(onViewableItemsChanged && viewabilityConfigCallbackPairs),\n 'FlatList does not support setting both onViewableItemsChanged and ' +\n 'viewabilityConfigCallbackPairs.',\n );\n }\n\n _getItem = (\n data: $ArrayLike,\n index: number,\n ): ?(ItemT | $ReadOnlyArray) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (numColumns > 1) {\n const ret = [];\n for (let kk = 0; kk < numColumns; kk++) {\n const itemIndex = index * numColumns + kk;\n if (itemIndex < data.length) {\n const item = data[itemIndex];\n ret.push(item);\n }\n }\n return ret;\n } else {\n return data[index];\n }\n };\n\n _getItemCount = (data: ?$ArrayLike): number => {\n // Legacy behavior of FlatList was to forward \"undefined\" length if invalid\n // data like a non-arraylike object is passed. VirtualizedList would then\n // coerce this, and the math would work out to no-op. For compatibility, if\n // invalid data is passed, we tell VirtualizedList there are zero items\n // available to prevent it from trying to read from the invalid data\n // (without propagating invalidly typed data).\n if (data != null && isArrayLike(data)) {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;\n } else {\n return 0;\n }\n };\n\n _keyExtractor = (items: ItemT | Array, index: number): string => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n\n if (numColumns > 1) {\n invariant(\n Array.isArray(items),\n 'FlatList: Encountered internal consistency error, expected each item to consist of an ' +\n 'array with 1-%s columns; instead, received a single item.',\n numColumns,\n );\n return items\n .map((item, kk) =>\n keyExtractor(((item: $FlowFixMe): ItemT), index * numColumns + kk),\n )\n .join(':');\n }\n\n // $FlowFixMe[incompatible-call] Can't call keyExtractor with an array\n return keyExtractor(items, index);\n };\n\n _pushMultiColumnViewable(arr: Array, v: ViewToken): void {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n v.item.forEach((item, ii) => {\n invariant(v.index != null, 'Missing index!');\n const index = v.index * numColumns + ii;\n arr.push({...v, item, key: keyExtractor(item, index), index});\n });\n }\n\n _createOnViewableItemsChanged(\n onViewableItemsChanged: ?(info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n // $FlowFixMe[missing-local-annot]\n ) {\n return (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (onViewableItemsChanged) {\n if (numColumns > 1) {\n const changed: Array = [];\n const viewableItems: Array = [];\n info.viewableItems.forEach(v =>\n this._pushMultiColumnViewable(viewableItems, v),\n );\n info.changed.forEach(v => this._pushMultiColumnViewable(changed, v));\n onViewableItemsChanged({viewableItems, changed});\n } else {\n onViewableItemsChanged(info);\n }\n }\n };\n }\n\n _renderer = (\n ListItemComponent: ?(React.ComponentType | React.Element),\n renderItem: ?RenderItemType,\n columnWrapperStyle: ?ViewStyleProp,\n numColumns: ?number,\n extraData: ?any,\n // $FlowFixMe[missing-local-annot]\n ) => {\n const cols = numColumnsOrDefault(numColumns);\n\n const render = (props: RenderItemProps): React.Node => {\n if (ListItemComponent) {\n // $FlowFixMe[not-a-component] Component isn't valid\n // $FlowFixMe[incompatible-type-arg] Component isn't valid\n // $FlowFixMe[incompatible-return] Component isn't valid\n return ;\n } else if (renderItem) {\n // $FlowFixMe[incompatible-call]\n return renderItem(props);\n } else {\n return null;\n }\n };\n\n const renderProp = (info: RenderItemProps) => {\n if (cols > 1) {\n const {item, index} = info;\n invariant(\n Array.isArray(item),\n 'Expected array of items with numColumns > 1',\n );\n return (\n \n {item.map((it, kk) => {\n const element = render({\n // $FlowFixMe[incompatible-call]\n item: it,\n index: index * cols + kk,\n separators: info.separators,\n });\n return element != null ? (\n {element}\n ) : null;\n })}\n \n );\n } else {\n return render(info);\n }\n };\n\n return ListItemComponent\n ? {ListItemComponent: renderProp}\n : {renderItem: renderProp};\n };\n\n // $FlowFixMe[missing-local-annot]\n _memoizedRenderer = memoizeOne(this._renderer);\n\n render(): React.Node {\n const {\n numColumns,\n columnWrapperStyle,\n removeClippedSubviews: _removeClippedSubviews,\n strictMode = false,\n ...restProps\n } = this.props;\n\n const renderer = strictMode ? this._memoizedRenderer : this._renderer;\n\n return (\n // $FlowFixMe[incompatible-exact] - `restProps` (`Props`) is inexact.\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n row: {flexDirection: 'row'},\n});\n\nmodule.exports = FlatList;\n","'use strict';\n\nvar safeIsNaN = Number.isNaN ||\n function ponyfill(value) {\n return typeof value === 'number' && value !== value;\n };\nfunction isEqual(first, second) {\n if (first === second) {\n return true;\n }\n if (safeIsNaN(first) && safeIsNaN(second)) {\n return true;\n }\n return false;\n}\nfunction areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n for (var i = 0; i < newInputs.length; i++) {\n if (!isEqual(newInputs[i], lastInputs[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n if (isEqual === void 0) { isEqual = areInputsEqual; }\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n function memoized() {\n var newArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n newArgs[_i] = arguments[_i];\n }\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n }\n return memoized;\n}\n\nmodule.exports = memoizeOne;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport typeof FillRateHelper from './Lists/FillRateHelper';\nimport typeof ViewabilityHelper from './Lists/ViewabilityHelper';\nimport typeof VirtualizedList from './Lists/VirtualizedList';\nimport typeof VirtualizedSectionList from './Lists/VirtualizedSectionList';\n\nimport {typeof VirtualizedListContextResetter} from './Lists/VirtualizedListContext';\nimport {keyExtractor} from './Lists/VirtualizeUtils';\n\nexport type {\n ViewToken,\n ViewabilityConfig,\n ViewabilityConfigCallbackPair,\n} from './Lists/ViewabilityHelper';\nexport type {\n CellRendererProps,\n RenderItemProps,\n RenderItemType,\n Separators,\n} from './Lists/VirtualizedListProps';\nexport type {\n Props as VirtualizedSectionListProps,\n ScrollToLocationParamsType,\n SectionBase,\n} from './Lists/VirtualizedSectionList';\nexport type {FillRateInfo} from './Lists/FillRateHelper';\n\nmodule.exports = {\n keyExtractor,\n\n get VirtualizedList(): VirtualizedList {\n return require('./Lists/VirtualizedList');\n },\n get VirtualizedSectionList(): VirtualizedSectionList {\n return require('./Lists/VirtualizedSectionList');\n },\n get VirtualizedListContextResetter(): VirtualizedListContextResetter {\n const VirtualizedListContext = require('./Lists/VirtualizedListContext');\n return VirtualizedListContext.VirtualizedListContextResetter;\n },\n get ViewabilityHelper(): ViewabilityHelper {\n return require('./Lists/ViewabilityHelper');\n },\n get FillRateHelper(): FillRateHelper {\n return require('./Lists/FillRateHelper');\n },\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type ListMetricsAggregator, {\n CellMetricProps,\n} from './ListMetricsAggregator';\n\n/**\n * Used to find the indices of the frames that overlap the given offsets. Useful for finding the\n * items that bound different windows of content, such as the visible area or the buffered overscan\n * area.\n */\nexport function elementsThatOverlapOffsets(\n offsets: Array,\n props: CellMetricProps,\n listMetrics: ListMetricsAggregator,\n zoomScale: number = 1,\n): Array {\n const itemCount = props.getItemCount(props.data);\n const result = [];\n for (let offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {\n const currentOffset = offsets[offsetIndex];\n let left = 0;\n let right = itemCount - 1;\n\n while (left <= right) {\n const mid = left + Math.floor((right - left) / 2);\n const frame = listMetrics.getCellMetricsApprox(mid, props);\n const scaledOffsetStart = frame.offset * zoomScale;\n const scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;\n\n // We want the first frame that contains the offset, with inclusive bounds. Thus, for the\n // first frame the scaledOffsetStart is inclusive, while for other frames it is exclusive.\n if (\n (mid === 0 && currentOffset < scaledOffsetStart) ||\n (mid !== 0 && currentOffset <= scaledOffsetStart)\n ) {\n right = mid - 1;\n } else if (currentOffset > scaledOffsetEnd) {\n left = mid + 1;\n } else {\n result[offsetIndex] = mid;\n break;\n }\n }\n }\n\n return result;\n}\n\n/**\n * Computes the number of elements in the `next` range that are new compared to the `prev` range.\n * Handy for calculating how many new items will be rendered when the render window changes so we\n * can restrict the number of new items render at once so that content can appear on the screen\n * faster.\n */\nexport function newRangeCount(\n prev: {\n first: number,\n last: number,\n ...\n },\n next: {\n first: number,\n last: number,\n ...\n },\n): number {\n return (\n next.last -\n next.first +\n 1 -\n Math.max(\n 0,\n 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first),\n )\n );\n}\n\n/**\n * Custom logic for determining which items should be rendered given the current frame and scroll\n * metrics, as well as the previous render state. The algorithm may evolve over time, but generally\n * prioritizes the visible area first, then expands that with overscan regions ahead and behind,\n * biased in the direction of scroll.\n */\nexport function computeWindowedRenderLimits(\n props: CellMetricProps,\n maxToRenderPerBatch: number,\n windowSize: number,\n prev: {\n first: number,\n last: number,\n },\n listMetrics: ListMetricsAggregator,\n scrollMetrics: {\n dt: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n zoomScale: number,\n ...\n },\n): {\n first: number,\n last: number,\n} {\n const itemCount = props.getItemCount(props.data);\n if (itemCount === 0) {\n return {first: 0, last: -1};\n }\n const {offset, velocity, visibleLength, zoomScale = 1} = scrollMetrics;\n\n // Start with visible area, then compute maximum overscan region by expanding from there, biased\n // in the direction of scroll. Total overscan area is capped, which should cap memory consumption\n // too.\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n\n // Considering velocity seems to introduce more churn than it's worth.\n const leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5));\n\n const fillPreference =\n velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none';\n\n const overscanBegin = Math.max(\n 0,\n visibleBegin - (1 - leadFactor) * overscanLength,\n );\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n\n const lastItemOffset =\n listMetrics.getCellMetricsApprox(itemCount - 1, props).offset * zoomScale;\n if (lastItemOffset < overscanBegin) {\n // Entire list is before our overscan window\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1,\n };\n }\n\n // Find the indices that correspond to the items at the render boundaries we're targeting.\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props,\n listMetrics,\n zoomScale,\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last =\n last == null\n ? Math.min(overscanLast, first + maxToRenderPerBatch - 1)\n : last;\n const visible = {first, last};\n\n // We want to limit the number of new cells we're rendering per batch so that we can fill the\n // content on the screen quickly. If we rendered the entire overscan window at once, the user\n // could be staring at white space for a long time waiting for a bunch of offscreen content to\n // render.\n let newCellCount = newRangeCount(prev, visible);\n\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n // If we fill the entire overscan range, we're done.\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement =\n first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement =\n last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n // We only want to stop if we've hit maxNewCells AND we cannot increment first or last\n // without rendering new items. This let's us preserve as many already rendered items as\n // possible, reducing render churn and keeping the rendered overscan range as large as\n // possible.\n break;\n }\n if (\n firstShouldIncrement &&\n !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)\n ) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (\n lastShouldIncrement &&\n !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)\n ) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (\n !(\n last >= first &&\n first >= 0 &&\n last < itemCount &&\n first >= overscanFirst &&\n last <= overscanLast &&\n first <= visible.first &&\n last >= visible.last\n )\n ) {\n throw new Error(\n 'Bad window calculation ' +\n JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible,\n }),\n );\n }\n return {first, last};\n}\n\nexport function keyExtractor(item: any, index: number): string {\n if (typeof item === 'object' && item?.key != null) {\n return item.key;\n }\n if (typeof item === 'object' && item?.id != null) {\n return item.id;\n }\n return String(index);\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {CellMetricProps, ListOrientation} from './ListMetricsAggregator';\nimport type {ViewToken} from './ViewabilityHelper';\nimport type {\n Item,\n Props,\n RenderItemProps,\n RenderItemType,\n Separators,\n} from './VirtualizedListProps';\nimport type {ScrollResponderType} from 'react-native/Libraries/Components/ScrollView/ScrollView';\nimport type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';\nimport type {\n LayoutEvent,\n ScrollEvent,\n} from 'react-native/Libraries/Types/CoreEventTypes';\n\nimport Batchinator from '../Interaction/Batchinator';\nimport clamp from '../Utilities/clamp';\nimport infoLog from '../Utilities/infoLog';\nimport {CellRenderMask} from './CellRenderMask';\nimport ChildListCollection from './ChildListCollection';\nimport FillRateHelper from './FillRateHelper';\nimport ListMetricsAggregator from './ListMetricsAggregator';\nimport StateSafePureComponent from './StateSafePureComponent';\nimport ViewabilityHelper from './ViewabilityHelper';\nimport CellRenderer from './VirtualizedListCellRenderer';\nimport {\n VirtualizedListCellContextProvider,\n VirtualizedListContext,\n VirtualizedListContextProvider,\n} from './VirtualizedListContext.js';\nimport {\n horizontalOrDefault,\n initialNumToRenderOrDefault,\n maxToRenderPerBatchOrDefault,\n onEndReachedThresholdOrDefault,\n onStartReachedThresholdOrDefault,\n windowSizeOrDefault,\n} from './VirtualizedListProps';\nimport {\n computeWindowedRenderLimits,\n keyExtractor as defaultKeyExtractor,\n} from './VirtualizeUtils';\nimport invariant from 'invariant';\nimport nullthrows from 'nullthrows';\nimport * as React from 'react';\nimport {\n I18nManager,\n Platform,\n RefreshControl,\n ScrollView,\n StyleSheet,\n View,\n findNodeHandle,\n} from 'react-native';\n\nexport type {RenderItemProps, RenderItemType, Separators};\n\nconst ON_EDGE_REACHED_EPSILON = 0.001;\n\nlet _usedIndexForKey = false;\nlet _keylessItemComponentName: string = '';\n\ntype ViewabilityHelperCallbackTuple = {\n viewabilityHelper: ViewabilityHelper,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n ...\n};\n\ntype State = {\n renderMask: CellRenderMask,\n cellsAroundViewport: {first: number, last: number},\n // Used to track items added at the start of the list for maintainVisibleContentPosition.\n firstVisibleItemKey: ?string,\n // When > 0 the scroll position available in JS is considered stale and should not be used.\n pendingScrollUpdateCount: number,\n};\n\nfunction getScrollingThreshold(threshold: number, visibleLength: number) {\n return (threshold * visibleLength) / 2;\n}\n\n/**\n * Base implementation for the more convenient [``](https://reactnative.dev/docs/flatlist)\n * and [``](https://reactnative.dev/docs/sectionlist) components, which are also better\n * documented. In general, this should only really be used if you need more flexibility than\n * `FlatList` provides, e.g. for use with immutable data instead of plain arrays.\n *\n * Virtualization massively improves memory consumption and performance of large lists by\n * maintaining a finite render window of active items and replacing all items outside of the render\n * window with appropriately sized blank space. The window adapts to scrolling behavior, and items\n * are rendered incrementally with low-pri (after any running interactions) if they are far from the\n * visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.\n *\n * Some caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` or `id` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n * - As an effort to remove defaultProps, use helper functions when referencing certain props\n *\n */\nclass VirtualizedList extends StateSafePureComponent {\n static contextType: typeof VirtualizedListContext = VirtualizedListContext;\n\n // scrollToEnd may be janky without getItemLayout prop\n scrollToEnd(params?: ?{animated?: ?boolean, ...}) {\n const animated = params ? params.animated : true;\n const veryLast = this.props.getItemCount(this.props.data) - 1;\n if (veryLast < 0) {\n return;\n }\n const frame = this._listMetrics.getCellMetricsApprox(veryLast, this.props);\n const offset = Math.max(\n 0,\n frame.offset +\n frame.length +\n this._footerLength -\n this._scrollMetrics.visibleLength,\n );\n\n // TODO: consider using `ref.scrollToEnd` directly\n this.scrollToOffset({animated, offset});\n }\n\n // scrollToIndex may be janky without getItemLayout prop\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }): $FlowFixMe {\n const {data, getItemCount, getItemLayout, onScrollToIndexFailed} =\n this.props;\n const {animated, index, viewOffset, viewPosition} = params;\n invariant(\n index >= 0,\n `scrollToIndex out of range: requested index ${index} but minimum is 0`,\n );\n invariant(\n getItemCount(data) >= 1,\n `scrollToIndex out of range: item length ${getItemCount(\n data,\n )} but minimum is 1`,\n );\n invariant(\n index < getItemCount(data),\n `scrollToIndex out of range: requested index ${index} is out of 0 to ${\n getItemCount(data) - 1\n }`,\n );\n if (\n !getItemLayout &&\n index > this._listMetrics.getHighestMeasuredCellIndex()\n ) {\n invariant(\n !!onScrollToIndexFailed,\n 'scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, ' +\n 'otherwise there is no way to know the location of offscreen indices or handle failures.',\n );\n onScrollToIndexFailed({\n averageItemLength: this._listMetrics.getAverageCellLength(),\n highestMeasuredFrameIndex:\n this._listMetrics.getHighestMeasuredCellIndex(),\n index,\n });\n return;\n }\n const frame = this._listMetrics.getCellMetricsApprox(\n Math.floor(index),\n this.props,\n );\n const offset =\n Math.max(\n 0,\n this._listMetrics.getCellOffsetApprox(index, this.props) -\n (viewPosition || 0) *\n (this._scrollMetrics.visibleLength - frame.length),\n ) - (viewOffset || 0);\n\n this.scrollToOffset({offset, animated});\n }\n\n // scrollToItem may be janky without getItemLayout prop. Required linear scan through items -\n // use scrollToIndex instead if possible.\n scrollToItem(params: {\n animated?: ?boolean,\n item: Item,\n viewOffset?: number,\n viewPosition?: number,\n ...\n }) {\n const {item} = params;\n const {data, getItem, getItemCount} = this.props;\n const itemCount = getItemCount(data);\n for (let index = 0; index < itemCount; index++) {\n if (getItem(data, index) === item) {\n this.scrollToIndex({...params, index});\n break;\n }\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Param `offset` expects the offset to scroll to.\n * In case of `horizontal` is true, the offset is the x-value,\n * in any other case the offset is the y-value.\n *\n * Param `animated` (`true` by default) defines whether the list\n * should do an animation while scrolling.\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number, ...}) {\n const {animated, offset} = params;\n const scrollRef = this._scrollRef;\n\n if (scrollRef == null) {\n return;\n }\n\n if (scrollRef.scrollTo == null) {\n console.warn(\n 'No scrollTo method provided. This may be because you have two nested ' +\n 'VirtualizedLists with the same orientation, or because you are ' +\n 'using a custom component that does not implement scrollTo.',\n );\n return;\n }\n\n const {horizontal, rtl} = this._orientation();\n if (horizontal && rtl && !this._listMetrics.hasContentLength()) {\n console.warn(\n 'scrollToOffset may not be called in RTL before content is laid out',\n );\n return;\n }\n\n scrollRef.scrollTo({\n animated,\n ...this._scrollToParamsFromOffset(offset),\n });\n }\n\n _scrollToParamsFromOffset(offset: number): {x?: number, y?: number} {\n const {horizontal, rtl} = this._orientation();\n if (horizontal && rtl) {\n // Add the visible length of the scrollview so that the offset is right-aligned\n const cartOffset = this._listMetrics.cartesianOffset(\n offset + this._scrollMetrics.visibleLength,\n );\n return horizontal ? {x: cartOffset} : {y: cartOffset};\n } else {\n return horizontal ? {x: offset} : {y: offset};\n }\n }\n\n recordInteraction() {\n this._nestedChildLists.forEach(childList => {\n childList.recordInteraction();\n });\n this._viewabilityTuples.forEach(t => {\n t.viewabilityHelper.recordInteraction();\n });\n this._updateViewableItems(this.props, this.state.cellsAroundViewport);\n }\n\n flashScrollIndicators() {\n if (this._scrollRef == null) {\n return;\n }\n\n this._scrollRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n * Note that `this._scrollRef` might not be a `ScrollView`, so we\n * need to check that it responds to `getScrollResponder` before calling it.\n */\n getScrollResponder(): ?ScrollResponderType {\n if (this._scrollRef && this._scrollRef.getScrollResponder) {\n return this._scrollRef.getScrollResponder();\n }\n }\n\n getScrollableNode(): ?number {\n if (this._scrollRef && this._scrollRef.getScrollableNode) {\n return this._scrollRef.getScrollableNode();\n } else {\n return findNodeHandle(this._scrollRef);\n }\n }\n\n getScrollRef():\n | ?React.ElementRef\n | ?React.ElementRef {\n if (this._scrollRef && this._scrollRef.getScrollRef) {\n return this._scrollRef.getScrollRef();\n } else {\n return this._scrollRef;\n }\n }\n\n setNativeProps(props: Object) {\n if (this._scrollRef) {\n this._scrollRef.setNativeProps(props);\n }\n }\n\n _getCellKey(): string {\n return this.context?.cellKey || 'rootList';\n }\n\n // $FlowFixMe[missing-local-annot]\n _getScrollMetrics = () => {\n return this._scrollMetrics;\n };\n\n hasMore(): boolean {\n return this._hasMore;\n }\n\n // $FlowFixMe[missing-local-annot]\n _getOutermostParentListRef = () => {\n if (this._isNestedWithSameOrientation()) {\n return this.context.getOutermostParentListRef();\n } else {\n return this;\n }\n };\n\n _registerAsNestedChild = (childList: {\n cellKey: string,\n ref: React.ElementRef,\n }): void => {\n this._nestedChildLists.add(childList.ref, childList.cellKey);\n if (this._hasInteracted) {\n childList.ref.recordInteraction();\n }\n };\n\n _unregisterAsNestedChild = (childList: {\n ref: React.ElementRef,\n }): void => {\n this._nestedChildLists.remove(childList.ref);\n };\n\n state: State;\n\n constructor(props: Props) {\n super(props);\n this._checkProps(props);\n\n this._fillRateHelper = new FillRateHelper(this._listMetrics);\n this._updateCellsToRenderBatcher = new Batchinator(\n this._updateCellsToRender,\n this.props.updateCellsBatchingPeriod ?? 50,\n );\n\n if (this.props.viewabilityConfigCallbackPairs) {\n this._viewabilityTuples = this.props.viewabilityConfigCallbackPairs.map(\n pair => ({\n viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig),\n onViewableItemsChanged: pair.onViewableItemsChanged,\n }),\n );\n } else {\n const {onViewableItemsChanged, viewabilityConfig} = this.props;\n if (onViewableItemsChanged) {\n this._viewabilityTuples.push({\n viewabilityHelper: new ViewabilityHelper(viewabilityConfig),\n onViewableItemsChanged: onViewableItemsChanged,\n });\n }\n }\n\n const initialRenderRegion = VirtualizedList._initialRenderRegion(props);\n\n const minIndexForVisible =\n this.props.maintainVisibleContentPosition?.minIndexForVisible ?? 0;\n\n this.state = {\n cellsAroundViewport: initialRenderRegion,\n renderMask: VirtualizedList._createRenderMask(props, initialRenderRegion),\n firstVisibleItemKey:\n this.props.getItemCount(this.props.data) > minIndexForVisible\n ? VirtualizedList._getItemKey(this.props, minIndexForVisible)\n : null,\n // When we have a non-zero initialScrollIndex, we will receive a\n // scroll event later so this will prevent the window from updating\n // until we get a valid offset.\n pendingScrollUpdateCount:\n this.props.initialScrollIndex != null &&\n this.props.initialScrollIndex > 0\n ? 1\n : 0,\n };\n }\n\n _checkProps(props: Props) {\n const {onScroll, windowSize, getItemCount, data, initialScrollIndex} =\n props;\n\n invariant(\n // $FlowFixMe[prop-missing]\n !onScroll || !onScroll.__isNative,\n 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' +\n 'to support native onScroll events with useNativeDriver',\n );\n invariant(\n windowSizeOrDefault(windowSize) > 0,\n 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.',\n );\n\n invariant(\n getItemCount,\n 'VirtualizedList: The \"getItemCount\" prop must be provided',\n );\n\n const itemCount = getItemCount(data);\n\n if (\n initialScrollIndex != null &&\n !this._hasTriggeredInitialScrollToIndex &&\n (initialScrollIndex < 0 ||\n (itemCount > 0 && initialScrollIndex >= itemCount)) &&\n !this._hasWarned.initialScrollIndex\n ) {\n console.warn(\n `initialScrollIndex \"${initialScrollIndex}\" is not valid (list has ${itemCount} items)`,\n );\n this._hasWarned.initialScrollIndex = true;\n }\n\n if (__DEV__ && !this._hasWarned.flexWrap) {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n const flatStyles = StyleSheet.flatten(this.props.contentContainerStyle);\n if (flatStyles != null && flatStyles.flexWrap === 'wrap') {\n console.warn(\n '`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' +\n 'Consider using `numColumns` with `FlatList` instead.',\n );\n this._hasWarned.flexWrap = true;\n }\n }\n }\n\n static _findItemIndexWithKey(\n props: Props,\n key: string,\n hint: ?number,\n ): ?number {\n const itemCount = props.getItemCount(props.data);\n if (hint != null && hint >= 0 && hint < itemCount) {\n const curKey = VirtualizedList._getItemKey(props, hint);\n if (curKey === key) {\n return hint;\n }\n }\n for (let ii = 0; ii < itemCount; ii++) {\n const curKey = VirtualizedList._getItemKey(props, ii);\n if (curKey === key) {\n return ii;\n }\n }\n return null;\n }\n\n static _getItemKey(\n props: {\n data: Props['data'],\n getItem: Props['getItem'],\n keyExtractor: Props['keyExtractor'],\n ...\n },\n index: number,\n ): string {\n const item = props.getItem(props.data, index);\n return VirtualizedList._keyExtractor(item, index, props);\n }\n\n static _createRenderMask(\n props: Props,\n cellsAroundViewport: {first: number, last: number},\n additionalRegions?: ?$ReadOnlyArray<{first: number, last: number}>,\n ): CellRenderMask {\n const itemCount = props.getItemCount(props.data);\n\n invariant(\n cellsAroundViewport.first >= 0 &&\n cellsAroundViewport.last >= cellsAroundViewport.first - 1 &&\n cellsAroundViewport.last < itemCount,\n `Invalid cells around viewport \"[${cellsAroundViewport.first}, ${cellsAroundViewport.last}]\" was passed to VirtualizedList._createRenderMask`,\n );\n\n const renderMask = new CellRenderMask(itemCount);\n\n if (itemCount > 0) {\n const allRegions = [cellsAroundViewport, ...(additionalRegions ?? [])];\n for (const region of allRegions) {\n renderMask.addCells(region);\n }\n\n // The initially rendered cells are retained as part of the\n // \"scroll-to-top\" optimization\n if (props.initialScrollIndex == null || props.initialScrollIndex <= 0) {\n const initialRegion = VirtualizedList._initialRenderRegion(props);\n renderMask.addCells(initialRegion);\n }\n\n // The layout coordinates of sticker headers may be off-screen while the\n // actual header is on-screen. Keep the most recent before the viewport\n // rendered, even if its layout coordinates are not in viewport.\n const stickyIndicesSet = new Set(props.stickyHeaderIndices);\n VirtualizedList._ensureClosestStickyHeader(\n props,\n stickyIndicesSet,\n renderMask,\n cellsAroundViewport.first,\n );\n }\n\n return renderMask;\n }\n\n static _initialRenderRegion(props: Props): {first: number, last: number} {\n const itemCount = props.getItemCount(props.data);\n\n const firstCellIndex = Math.max(\n 0,\n Math.min(itemCount - 1, Math.floor(props.initialScrollIndex ?? 0)),\n );\n\n const lastCellIndex =\n Math.min(\n itemCount,\n firstCellIndex + initialNumToRenderOrDefault(props.initialNumToRender),\n ) - 1;\n\n return {\n first: firstCellIndex,\n last: lastCellIndex,\n };\n }\n\n static _ensureClosestStickyHeader(\n props: Props,\n stickyIndicesSet: Set,\n renderMask: CellRenderMask,\n cellIdx: number,\n ) {\n const stickyOffset = props.ListHeaderComponent ? 1 : 0;\n\n for (let itemIdx = cellIdx - 1; itemIdx >= 0; itemIdx--) {\n if (stickyIndicesSet.has(itemIdx + stickyOffset)) {\n renderMask.addCells({first: itemIdx, last: itemIdx});\n break;\n }\n }\n }\n\n _adjustCellsAroundViewport(\n props: Props,\n cellsAroundViewport: {first: number, last: number},\n pendingScrollUpdateCount: number,\n ): {first: number, last: number} {\n const {data, getItemCount} = props;\n const onEndReachedThreshold = onEndReachedThresholdOrDefault(\n props.onEndReachedThreshold,\n );\n const {offset, visibleLength} = this._scrollMetrics;\n const contentLength = this._listMetrics.getContentLength();\n const distanceFromEnd = contentLength - visibleLength - offset;\n\n // Wait until the scroll view metrics have been set up. And until then,\n // we will trust the initialNumToRender suggestion\n if (visibleLength <= 0 || contentLength <= 0) {\n return cellsAroundViewport.last >= getItemCount(data)\n ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props)\n : cellsAroundViewport;\n }\n\n let newCellsAroundViewport: {first: number, last: number};\n if (props.disableVirtualization) {\n const renderAhead =\n distanceFromEnd < onEndReachedThreshold * visibleLength\n ? maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch)\n : 0;\n\n newCellsAroundViewport = {\n first: 0,\n last: Math.min(\n cellsAroundViewport.last + renderAhead,\n getItemCount(data) - 1,\n ),\n };\n } else {\n // If we have a pending scroll update, we should not adjust the render window as it\n // might override the correct window.\n if (pendingScrollUpdateCount > 0) {\n return cellsAroundViewport.last >= getItemCount(data)\n ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props)\n : cellsAroundViewport;\n }\n\n newCellsAroundViewport = computeWindowedRenderLimits(\n props,\n maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch),\n windowSizeOrDefault(props.windowSize),\n cellsAroundViewport,\n this._listMetrics,\n this._scrollMetrics,\n );\n invariant(\n newCellsAroundViewport.last < getItemCount(data),\n 'computeWindowedRenderLimits() should return range in-bounds',\n );\n }\n\n if (this._nestedChildLists.size() > 0) {\n // If some cell in the new state has a child list in it, we should only render\n // up through that item, so that we give that list a chance to render.\n // Otherwise there's churn from multiple child lists mounting and un-mounting\n // their items.\n\n // Will this prevent rendering if the nested list doesn't realize the end?\n const childIdx = this._findFirstChildWithMore(\n newCellsAroundViewport.first,\n newCellsAroundViewport.last,\n );\n\n newCellsAroundViewport.last = childIdx ?? newCellsAroundViewport.last;\n }\n\n return newCellsAroundViewport;\n }\n\n _findFirstChildWithMore(first: number, last: number): number | null {\n for (let ii = first; ii <= last; ii++) {\n const cellKeyForIndex = this._indicesToKeys.get(ii);\n if (\n cellKeyForIndex != null &&\n this._nestedChildLists.anyInCell(cellKeyForIndex, childList =>\n childList.hasMore(),\n )\n ) {\n return ii;\n }\n }\n\n return null;\n }\n\n componentDidMount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.registerAsNestedChild({\n ref: this,\n cellKey: this.context.cellKey,\n });\n }\n }\n\n componentWillUnmount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.unregisterAsNestedChild({ref: this});\n }\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.dispose();\n });\n this._fillRateHelper.deactivateAndFlush();\n }\n\n static getDerivedStateFromProps(newProps: Props, prevState: State): State {\n // first and last could be stale (e.g. if a new, shorter items props is passed in), so we make\n // sure we're rendering a reasonable range here.\n const itemCount = newProps.getItemCount(newProps.data);\n if (itemCount === prevState.renderMask.numCells()) {\n return prevState;\n }\n\n let maintainVisibleContentPositionAdjustment: ?number = null;\n const prevFirstVisibleItemKey = prevState.firstVisibleItemKey;\n const minIndexForVisible =\n newProps.maintainVisibleContentPosition?.minIndexForVisible ?? 0;\n const newFirstVisibleItemKey =\n newProps.getItemCount(newProps.data) > minIndexForVisible\n ? VirtualizedList._getItemKey(newProps, minIndexForVisible)\n : null;\n if (\n newProps.maintainVisibleContentPosition != null &&\n prevFirstVisibleItemKey != null &&\n newFirstVisibleItemKey != null\n ) {\n if (newFirstVisibleItemKey !== prevFirstVisibleItemKey) {\n // Fast path if items were added at the start of the list.\n const hint =\n itemCount - prevState.renderMask.numCells() + minIndexForVisible;\n const firstVisibleItemIndex = VirtualizedList._findItemIndexWithKey(\n newProps,\n prevFirstVisibleItemKey,\n hint,\n );\n maintainVisibleContentPositionAdjustment =\n firstVisibleItemIndex != null\n ? firstVisibleItemIndex - minIndexForVisible\n : null;\n } else {\n maintainVisibleContentPositionAdjustment = null;\n }\n }\n\n const constrainedCells = VirtualizedList._constrainToItemCount(\n maintainVisibleContentPositionAdjustment != null\n ? {\n first:\n prevState.cellsAroundViewport.first +\n maintainVisibleContentPositionAdjustment,\n last:\n prevState.cellsAroundViewport.last +\n maintainVisibleContentPositionAdjustment,\n }\n : prevState.cellsAroundViewport,\n newProps,\n );\n\n return {\n cellsAroundViewport: constrainedCells,\n renderMask: VirtualizedList._createRenderMask(newProps, constrainedCells),\n firstVisibleItemKey: newFirstVisibleItemKey,\n pendingScrollUpdateCount:\n maintainVisibleContentPositionAdjustment != null\n ? prevState.pendingScrollUpdateCount + 1\n : prevState.pendingScrollUpdateCount,\n };\n }\n\n _pushCells(\n cells: Array,\n stickyHeaderIndices: Array,\n stickyIndicesFromProps: Set,\n first: number,\n last: number,\n inversionStyle: ViewStyleProp,\n ) {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n ListHeaderComponent,\n ListItemComponent,\n data,\n debug,\n getItem,\n getItemCount,\n getItemLayout,\n horizontal,\n renderItem,\n } = this.props;\n const stickyOffset = ListHeaderComponent ? 1 : 0;\n const end = getItemCount(data) - 1;\n let prevCellKey;\n last = Math.min(end, last);\n\n for (let ii = first; ii <= last; ii++) {\n const item = getItem(data, ii);\n const key = VirtualizedList._keyExtractor(item, ii, this.props);\n\n this._indicesToKeys.set(ii, key);\n if (stickyIndicesFromProps.has(ii + stickyOffset)) {\n stickyHeaderIndices.push(cells.length);\n }\n\n const shouldListenForLayout =\n getItemLayout == null || debug || this._fillRateHelper.enabled();\n\n cells.push(\n {\n this._cellRefs[key] = ref;\n }}\n renderItem={renderItem}\n {...(shouldListenForLayout && {\n onCellLayout: this._onCellLayout,\n })}\n />,\n );\n prevCellKey = key;\n }\n }\n\n static _constrainToItemCount(\n cells: {first: number, last: number},\n props: Props,\n ): {first: number, last: number} {\n const itemCount = props.getItemCount(props.data);\n const lastPossibleCellIndex = itemCount - 1;\n\n // Constraining `last` may significantly shrink the window. Adjust `first`\n // to expand the window if the new `last` results in a new window smaller\n // than the number of cells rendered per batch.\n const maxToRenderPerBatch = maxToRenderPerBatchOrDefault(\n props.maxToRenderPerBatch,\n );\n const maxFirst = Math.max(0, lastPossibleCellIndex - maxToRenderPerBatch);\n\n return {\n first: clamp(0, cells.first, maxFirst),\n last: Math.min(lastPossibleCellIndex, cells.last),\n };\n }\n\n _onUpdateSeparators = (keys: Array, newProps: Object) => {\n keys.forEach(key => {\n const ref = key != null && this._cellRefs[key];\n ref && ref.updateSeparatorProps(newProps);\n });\n };\n\n _isNestedWithSameOrientation(): boolean {\n const nestedContext = this.context;\n return !!(\n nestedContext &&\n !!nestedContext.horizontal === horizontalOrDefault(this.props.horizontal)\n );\n }\n\n _getSpacerKey = (isVertical: boolean): string =>\n isVertical ? 'height' : 'width';\n\n static _keyExtractor(\n item: Item,\n index: number,\n props: {\n keyExtractor?: ?(item: Item, index: number) => string,\n ...\n },\n ): string {\n if (props.keyExtractor != null) {\n return props.keyExtractor(item, index);\n }\n\n const key = defaultKeyExtractor(item, index);\n if (key === String(index)) {\n _usedIndexForKey = true;\n if (item.type && item.type.displayName) {\n _keylessItemComponentName = item.type.displayName;\n }\n }\n return key;\n }\n\n render(): React.Node {\n this._checkProps(this.props);\n const {ListEmptyComponent, ListFooterComponent, ListHeaderComponent} =\n this.props;\n const {data, horizontal} = this.props;\n const inversionStyle = this.props.inverted\n ? horizontalOrDefault(this.props.horizontal)\n ? styles.horizontallyInverted\n : styles.verticallyInverted\n : null;\n const cells: Array = [];\n const stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);\n const stickyHeaderIndices = [];\n\n // 1. Add cell for ListHeaderComponent\n if (ListHeaderComponent) {\n if (stickyIndicesFromProps.has(0)) {\n stickyHeaderIndices.push(0);\n }\n const element = React.isValidElement(ListHeaderComponent) ? (\n ListHeaderComponent\n ) : (\n // $FlowFixMe[not-a-component]\n // $FlowFixMe[incompatible-type-arg]\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n\n // 2a. Add a cell for ListEmptyComponent if applicable\n const itemCount = this.props.getItemCount(data);\n if (itemCount === 0 && ListEmptyComponent) {\n const element: React.Element = ((React.isValidElement(\n ListEmptyComponent,\n ) ? (\n ListEmptyComponent\n ) : (\n // $FlowFixMe[not-a-component]\n // $FlowFixMe[incompatible-type-arg]\n \n )): any);\n cells.push(\n \n {React.cloneElement(element, {\n onLayout: (event: LayoutEvent) => {\n this._onLayoutEmpty(event);\n // $FlowFixMe[prop-missing] React.Element internal inspection\n if (element.props.onLayout) {\n element.props.onLayout(event);\n }\n },\n // $FlowFixMe[prop-missing] React.Element internal inspection\n style: StyleSheet.compose(inversionStyle, element.props.style),\n })}\n ,\n );\n }\n\n // 2b. Add cells and spacers for each item\n if (itemCount > 0) {\n _usedIndexForKey = false;\n _keylessItemComponentName = '';\n const spacerKey = this._getSpacerKey(!horizontal);\n\n const renderRegions = this.state.renderMask.enumerateRegions();\n const lastRegion = renderRegions[renderRegions.length - 1];\n const lastSpacer = lastRegion?.isSpacer ? lastRegion : null;\n\n for (const section of renderRegions) {\n if (section.isSpacer) {\n // Legacy behavior is to avoid spacers when virtualization is\n // disabled (including head spacers on initial render).\n if (this.props.disableVirtualization) {\n continue;\n }\n\n // Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to\n // prevent the user for hyperscrolling into un-measured area because otherwise content will\n // likely jump around as it renders in above the viewport.\n const isLastSpacer = section === lastSpacer;\n const constrainToMeasured = isLastSpacer && !this.props.getItemLayout;\n const last = constrainToMeasured\n ? clamp(\n section.first - 1,\n section.last,\n this._listMetrics.getHighestMeasuredCellIndex(),\n )\n : section.last;\n\n const firstMetrics = this._listMetrics.getCellMetricsApprox(\n section.first,\n this.props,\n );\n const lastMetrics = this._listMetrics.getCellMetricsApprox(\n last,\n this.props,\n );\n const spacerSize =\n lastMetrics.offset + lastMetrics.length - firstMetrics.offset;\n cells.push(\n ,\n );\n } else {\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n section.first,\n section.last,\n inversionStyle,\n );\n }\n }\n\n if (!this._hasWarned.keys && _usedIndexForKey) {\n console.warn(\n 'VirtualizedList: missing keys for items, make sure to specify a key or id property on each ' +\n 'item or provide a custom keyExtractor.',\n _keylessItemComponentName,\n );\n this._hasWarned.keys = true;\n }\n }\n\n // 3. Add cell for ListFooterComponent\n if (ListFooterComponent) {\n const element = React.isValidElement(ListFooterComponent) ? (\n ListFooterComponent\n ) : (\n // $FlowFixMe[not-a-component]\n // $FlowFixMe[incompatible-type-arg]\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe[incompatible-type] - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n\n // 4. Render the ScrollView\n const scrollProps = {\n ...this.props,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n onScroll: this._onScroll,\n onScrollBeginDrag: this._onScrollBeginDrag,\n onScrollEndDrag: this._onScrollEndDrag,\n onMomentumScrollBegin: this._onMomentumScrollBegin,\n onMomentumScrollEnd: this._onMomentumScrollEnd,\n // iOS/macOS requires a non-zero scrollEventThrottle to fire more than a\n // single notification while scrolling. This will otherwise no-op.\n scrollEventThrottle: this.props.scrollEventThrottle ?? 0.0001,\n invertStickyHeaders:\n this.props.invertStickyHeaders !== undefined\n ? this.props.invertStickyHeaders\n : this.props.inverted,\n stickyHeaderIndices,\n style: inversionStyle\n ? [inversionStyle, this.props.style]\n : this.props.style,\n isInvertedVirtualizedList: this.props.inverted,\n maintainVisibleContentPosition:\n this.props.maintainVisibleContentPosition != null\n ? {\n ...this.props.maintainVisibleContentPosition,\n // Adjust index to account for ListHeaderComponent.\n minIndexForVisible:\n this.props.maintainVisibleContentPosition.minIndexForVisible +\n (this.props.ListHeaderComponent ? 1 : 0),\n }\n : undefined,\n };\n\n this._hasMore = this.state.cellsAroundViewport.last < itemCount - 1;\n\n const innerRet = (\n \n {React.cloneElement(\n (\n this.props.renderScrollComponent ||\n this._defaultRenderScrollComponent\n )(scrollProps),\n {\n ref: this._captureScrollRef,\n },\n cells,\n )}\n \n );\n let ret: React.Node = innerRet;\n if (__DEV__) {\n ret = (\n \n {scrollContext => {\n if (\n scrollContext != null &&\n !scrollContext.horizontal ===\n !horizontalOrDefault(this.props.horizontal) &&\n !this._hasWarned.nesting &&\n this.context == null &&\n this.props.scrollEnabled !== false\n ) {\n console.error(\n 'VirtualizedLists should never be nested inside plain ScrollViews with the same ' +\n 'orientation because it can break windowing and other functionality - use another ' +\n 'VirtualizedList-backed container instead.',\n );\n this._hasWarned.nesting = true;\n }\n return innerRet;\n }}\n \n );\n }\n if (this.props.debug) {\n return (\n \n {ret}\n {this._renderDebugOverlay()}\n \n );\n } else {\n return ret;\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n const {data, extraData} = this.props;\n if (data !== prevProps.data || extraData !== prevProps.extraData) {\n // clear the viewableIndices cache to also trigger\n // the onViewableItemsChanged callback with the new data\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.resetViewableIndices();\n });\n }\n // The `this._hiPriInProgress` is guaranteeing a hiPri cell update will only happen\n // once per fiber update. The `_scheduleCellsToRenderUpdate` will set it to true\n // if a hiPri update needs to perform. If `componentDidUpdate` is triggered with\n // `this._hiPriInProgress=true`, means it's triggered by the hiPri update. The\n // `_scheduleCellsToRenderUpdate` will check this condition and not perform\n // another hiPri update.\n const hiPriInProgress = this._hiPriInProgress;\n this._scheduleCellsToRenderUpdate();\n // Make sure setting `this._hiPriInProgress` back to false after `componentDidUpdate`\n // is triggered with `this._hiPriInProgress = true`\n if (hiPriInProgress) {\n this._hiPriInProgress = false;\n }\n }\n\n _cellRefs: {[string]: null | CellRenderer} = {};\n _fillRateHelper: FillRateHelper;\n _listMetrics: ListMetricsAggregator = new ListMetricsAggregator();\n _footerLength = 0;\n // Used for preventing scrollToIndex from being called multiple times for initialScrollIndex\n _hasTriggeredInitialScrollToIndex = false;\n _hasInteracted = false;\n _hasMore = false;\n _hasWarned: {[string]: boolean} = {};\n _headerLength = 0;\n _hiPriInProgress: boolean = false; // flag to prevent infinite hiPri cell limit update\n _indicesToKeys: Map = new Map();\n _lastFocusedCellKey: ?string = null;\n _nestedChildLists: ChildListCollection =\n new ChildListCollection();\n _offsetFromParentVirtualizedList: number = 0;\n _pendingViewabilityUpdate: boolean = false;\n _prevParentOffset: number = 0;\n _scrollMetrics: {\n dOffset: number,\n dt: number,\n offset: number,\n timestamp: number,\n velocity: number,\n visibleLength: number,\n zoomScale: number,\n } = {\n dOffset: 0,\n dt: 10,\n offset: 0,\n timestamp: 0,\n velocity: 0,\n visibleLength: 0,\n zoomScale: 1,\n };\n _scrollRef: ?React.ElementRef = null;\n _sentStartForContentLength = 0;\n _sentEndForContentLength = 0;\n _updateCellsToRenderBatcher: Batchinator;\n _viewabilityTuples: Array = [];\n\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n _captureScrollRef = ref => {\n this._scrollRef = ref;\n };\n\n _computeBlankness() {\n this._fillRateHelper.computeBlankness(\n this.props,\n this.state.cellsAroundViewport,\n this._scrollMetrics,\n );\n }\n\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n _defaultRenderScrollComponent = props => {\n const onRefresh = props.onRefresh;\n if (this._isNestedWithSameOrientation()) {\n // Prevent VirtualizedList._onContentSizeChange from being triggered by a bubbling onContentSizeChange event.\n // This could lead to internal inconsistencies within VirtualizedList.\n const {onContentSizeChange, ...otherProps} = props;\n return ;\n } else if (onRefresh) {\n invariant(\n typeof props.refreshing === 'boolean',\n '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' +\n JSON.stringify(props.refreshing ?? 'undefined') +\n '`',\n );\n return (\n // $FlowFixMe[prop-missing] Invalid prop usage\n // $FlowFixMe[incompatible-use]\n \n ) : (\n props.refreshControl\n )\n }\n />\n );\n } else {\n // $FlowFixMe[prop-missing] Invalid prop usage\n // $FlowFixMe[incompatible-use]\n return ;\n }\n };\n\n _onCellLayout = (\n e: LayoutEvent,\n cellKey: string,\n cellIndex: number,\n ): void => {\n const layoutHasChanged = this._listMetrics.notifyCellLayout({\n cellIndex,\n cellKey,\n layout: e.nativeEvent.layout,\n orientation: this._orientation(),\n });\n\n if (layoutHasChanged) {\n this._scheduleCellsToRenderUpdate();\n }\n\n this._triggerRemeasureForChildListsInCell(cellKey);\n this._computeBlankness();\n this._updateViewableItems(this.props, this.state.cellsAroundViewport);\n };\n\n _onCellFocusCapture = (cellKey: string) => {\n this._lastFocusedCellKey = cellKey;\n this._updateCellsToRender();\n };\n\n _onCellUnmount = (cellKey: string) => {\n delete this._cellRefs[cellKey];\n this._listMetrics.notifyCellUnmounted(cellKey);\n };\n\n _triggerRemeasureForChildListsInCell(cellKey: string): void {\n this._nestedChildLists.forEachInCell(cellKey, childList => {\n childList.measureLayoutRelativeToContainingList();\n });\n }\n\n measureLayoutRelativeToContainingList(): void {\n // TODO (T35574538): findNodeHandle sometimes crashes with \"Unable to find\n // node on an unmounted component\" during scrolling\n try {\n if (!this._scrollRef) {\n return;\n }\n // We are assuming that getOutermostParentListRef().getScrollRef()\n // is a non-null reference to a ScrollView\n this._scrollRef.measureLayout(\n this.context.getOutermostParentListRef().getScrollRef(),\n (x, y, width, height) => {\n this._offsetFromParentVirtualizedList = this._selectOffset({x, y});\n this._listMetrics.notifyListContentLayout({\n layout: {width, height},\n orientation: this._orientation(),\n });\n const scrollMetrics = this._convertParentScrollMetrics(\n this.context.getScrollMetrics(),\n );\n\n const metricsChanged =\n this._scrollMetrics.visibleLength !== scrollMetrics.visibleLength ||\n this._scrollMetrics.offset !== scrollMetrics.offset;\n\n if (metricsChanged) {\n this._scrollMetrics.visibleLength = scrollMetrics.visibleLength;\n this._scrollMetrics.offset = scrollMetrics.offset;\n\n // If metrics of the scrollView changed, then we triggered remeasure for child list\n // to ensure VirtualizedList has the right information.\n this._nestedChildLists.forEach(childList => {\n childList.measureLayoutRelativeToContainingList();\n });\n }\n },\n error => {\n console.warn(\n \"VirtualizedList: Encountered an error while measuring a list's\" +\n ' offset from its containing VirtualizedList.',\n );\n },\n );\n } catch (error) {\n console.warn(\n 'measureLayoutRelativeToContainingList threw an error',\n error.stack,\n );\n }\n }\n\n _onLayout = (e: LayoutEvent) => {\n if (this._isNestedWithSameOrientation()) {\n // Need to adjust our scroll metrics to be relative to our containing\n // VirtualizedList before we can make claims about list item viewability\n this.measureLayoutRelativeToContainingList();\n } else {\n this._scrollMetrics.visibleLength = this._selectLength(\n e.nativeEvent.layout,\n );\n }\n this.props.onLayout && this.props.onLayout(e);\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEdgeReached();\n };\n\n _onLayoutEmpty = (e: LayoutEvent) => {\n this.props.onLayout && this.props.onLayout(e);\n };\n\n _getFooterCellKey(): string {\n return this._getCellKey() + '-footer';\n }\n\n _onLayoutFooter = (e: LayoutEvent) => {\n this._triggerRemeasureForChildListsInCell(this._getFooterCellKey());\n this._footerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n _onLayoutHeader = (e: LayoutEvent) => {\n this._headerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n // $FlowFixMe[missing-local-annot]\n _renderDebugOverlay() {\n const normalize =\n this._scrollMetrics.visibleLength /\n (this._listMetrics.getContentLength() || 1);\n const framesInLayout = [];\n const itemCount = this.props.getItemCount(this.props.data);\n for (let ii = 0; ii < itemCount; ii++) {\n const frame = this._listMetrics.getCellMetricsApprox(ii, this.props);\n if (frame.isMounted) {\n framesInLayout.push(frame);\n }\n }\n const windowTop = this._listMetrics.getCellMetricsApprox(\n this.state.cellsAroundViewport.first,\n this.props,\n ).offset;\n const frameLast = this._listMetrics.getCellMetricsApprox(\n this.state.cellsAroundViewport.last,\n this.props,\n );\n const windowLen = frameLast.offset + frameLast.length - windowTop;\n const visTop = this._scrollMetrics.offset;\n const visLen = this._scrollMetrics.visibleLength;\n\n return (\n \n {framesInLayout.map((f, ii) => (\n \n ))}\n \n \n \n );\n }\n\n _selectLength(\n metrics: $ReadOnly<{\n height: number,\n width: number,\n ...\n }>,\n ): number {\n return !horizontalOrDefault(this.props.horizontal)\n ? metrics.height\n : metrics.width;\n }\n\n _selectOffset({x, y}: $ReadOnly<{x: number, y: number, ...}>): number {\n return this._orientation().horizontal ? x : y;\n }\n\n _orientation(): ListOrientation {\n return {\n horizontal: horizontalOrDefault(this.props.horizontal),\n rtl: I18nManager.isRTL,\n };\n }\n\n _maybeCallOnEdgeReached() {\n const {\n data,\n getItemCount,\n onStartReached,\n onStartReachedThreshold,\n onEndReached,\n onEndReachedThreshold,\n } = this.props;\n // If we have any pending scroll updates it means that the scroll metrics\n // are out of date and we should not call any of the edge reached callbacks.\n if (this.state.pendingScrollUpdateCount > 0) {\n return;\n }\n\n const {visibleLength, offset} = this._scrollMetrics;\n let distanceFromStart = offset;\n let distanceFromEnd =\n this._listMetrics.getContentLength() - visibleLength - offset;\n\n // Especially when oERT is zero it's necessary to 'floor' very small distance values to be 0\n // since debouncing causes us to not fire this event for every single \"pixel\" we scroll and can thus\n // be at the edge of the list with a distance approximating 0 but not quite there.\n if (distanceFromStart < ON_EDGE_REACHED_EPSILON) {\n distanceFromStart = 0;\n }\n if (distanceFromEnd < ON_EDGE_REACHED_EPSILON) {\n distanceFromEnd = 0;\n }\n\n // TODO: T121172172 Look into why we're \"defaulting\" to a threshold of 2px\n // when oERT is not present (different from 2 viewports used elsewhere)\n const DEFAULT_THRESHOLD_PX = 2;\n\n const startThreshold =\n onStartReachedThreshold != null\n ? onStartReachedThreshold * visibleLength\n : DEFAULT_THRESHOLD_PX;\n const endThreshold =\n onEndReachedThreshold != null\n ? onEndReachedThreshold * visibleLength\n : DEFAULT_THRESHOLD_PX;\n const isWithinStartThreshold = distanceFromStart <= startThreshold;\n const isWithinEndThreshold = distanceFromEnd <= endThreshold;\n\n // First check if the user just scrolled within the end threshold\n // and call onEndReached only once for a given content length,\n // and only if onStartReached is not being executed\n if (\n onEndReached &&\n this.state.cellsAroundViewport.last === getItemCount(data) - 1 &&\n isWithinEndThreshold &&\n this._listMetrics.getContentLength() !== this._sentEndForContentLength\n ) {\n this._sentEndForContentLength = this._listMetrics.getContentLength();\n onEndReached({distanceFromEnd});\n }\n\n // Next check if the user just scrolled within the start threshold\n // and call onStartReached only once for a given content length,\n // and only if onEndReached is not being executed\n if (\n onStartReached != null &&\n this.state.cellsAroundViewport.first === 0 &&\n isWithinStartThreshold &&\n this._listMetrics.getContentLength() !== this._sentStartForContentLength\n ) {\n this._sentStartForContentLength = this._listMetrics.getContentLength();\n onStartReached({distanceFromStart});\n }\n\n // If the user scrolls away from the start or end and back again,\n // cause onStartReached or onEndReached to be triggered again\n if (!isWithinStartThreshold) {\n this._sentStartForContentLength = 0;\n }\n if (!isWithinEndThreshold) {\n this._sentEndForContentLength = 0;\n }\n }\n\n _onContentSizeChange = (width: number, height: number) => {\n this._listMetrics.notifyListContentLayout({\n layout: {width, height},\n orientation: this._orientation(),\n });\n\n this._maybeScrollToInitialScrollIndex(width, height);\n\n if (this.props.onContentSizeChange) {\n this.props.onContentSizeChange(width, height);\n }\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEdgeReached();\n };\n\n /**\n * Scroll to a specified `initialScrollIndex` prop after the ScrollView\n * content has been laid out, if it is still valid. Only a single scroll is\n * triggered throughout the lifetime of the list.\n */\n _maybeScrollToInitialScrollIndex(\n contentWidth: number,\n contentHeight: number,\n ) {\n if (\n contentWidth > 0 &&\n contentHeight > 0 &&\n this.props.initialScrollIndex != null &&\n this.props.initialScrollIndex > 0 &&\n !this._hasTriggeredInitialScrollToIndex\n ) {\n if (this.props.contentOffset == null) {\n if (\n this.props.initialScrollIndex <\n this.props.getItemCount(this.props.data)\n ) {\n this.scrollToIndex({\n animated: false,\n index: nullthrows(this.props.initialScrollIndex),\n });\n } else {\n this.scrollToEnd({animated: false});\n }\n }\n this._hasTriggeredInitialScrollToIndex = true;\n }\n }\n\n /* Translates metrics from a scroll event in a parent VirtualizedList into\n * coordinates relative to the child list.\n */\n _convertParentScrollMetrics = (metrics: {\n visibleLength: number,\n offset: number,\n ...\n }): $FlowFixMe => {\n // Offset of the top of the nested list relative to the top of its parent's viewport\n const offset = metrics.offset - this._offsetFromParentVirtualizedList;\n // Child's visible length is the same as its parent's\n const visibleLength = metrics.visibleLength;\n const dOffset = offset - this._scrollMetrics.offset;\n const contentLength = this._listMetrics.getContentLength();\n\n return {\n visibleLength,\n contentLength,\n offset,\n dOffset,\n };\n };\n\n _onScroll = (e: Object) => {\n this._nestedChildLists.forEach(childList => {\n childList._onScroll(e);\n });\n if (this.props.onScroll) {\n this.props.onScroll(e);\n }\n const timestamp = e.timeStamp;\n let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement);\n let contentLength = this._selectLength(e.nativeEvent.contentSize);\n let offset = this._offsetFromScrollEvent(e);\n let dOffset = offset - this._scrollMetrics.offset;\n\n if (this._isNestedWithSameOrientation()) {\n if (this._listMetrics.getContentLength() === 0) {\n // Ignore scroll events until onLayout has been called and we\n // know our offset from our offset from our parent\n return;\n }\n ({visibleLength, contentLength, offset, dOffset} =\n this._convertParentScrollMetrics({\n visibleLength,\n offset,\n }));\n }\n\n const dt = this._scrollMetrics.timestamp\n ? Math.max(1, timestamp - this._scrollMetrics.timestamp)\n : 1;\n const velocity = dOffset / dt;\n\n if (\n dt > 500 &&\n this._scrollMetrics.dt > 500 &&\n contentLength > 5 * visibleLength &&\n !this._hasWarned.perf\n ) {\n infoLog(\n 'VirtualizedList: You have a large list that is slow to update - make sure your ' +\n 'renderItem function renders components that follow React performance best practices ' +\n 'like PureComponent, shouldComponentUpdate, etc.',\n {dt, prevDt: this._scrollMetrics.dt, contentLength},\n );\n this._hasWarned.perf = true;\n }\n\n // For invalid negative values (w/ RTL), set this to 1.\n const zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale;\n this._scrollMetrics = {\n dt,\n dOffset,\n offset,\n timestamp,\n velocity,\n visibleLength,\n zoomScale,\n };\n if (this.state.pendingScrollUpdateCount > 0) {\n this.setState(state => ({\n pendingScrollUpdateCount: state.pendingScrollUpdateCount - 1,\n }));\n }\n this._updateViewableItems(this.props, this.state.cellsAroundViewport);\n if (!this.props) {\n return;\n }\n this._maybeCallOnEdgeReached();\n if (velocity !== 0) {\n this._fillRateHelper.activate();\n }\n this._computeBlankness();\n this._scheduleCellsToRenderUpdate();\n };\n\n _offsetFromScrollEvent(e: ScrollEvent): number {\n const {contentOffset, contentSize, layoutMeasurement} = e.nativeEvent;\n const {horizontal, rtl} = this._orientation();\n if (horizontal && rtl) {\n return (\n this._selectLength(contentSize) -\n (this._selectOffset(contentOffset) +\n this._selectLength(layoutMeasurement))\n );\n } else {\n return this._selectOffset(contentOffset);\n }\n }\n\n _scheduleCellsToRenderUpdate() {\n // Only trigger high-priority updates if we've actually rendered cells,\n // and with that size estimate, accurately compute how many cells we should render.\n // Otherwise, it would just render as many cells as it can (of zero dimension),\n // each time through attempting to render more (limited by maxToRenderPerBatch),\n // starving the renderer from actually laying out the objects and computing _averageCellLength.\n // If this is triggered in an `componentDidUpdate` followed by a hiPri cellToRenderUpdate\n // We shouldn't do another hipri cellToRenderUpdate\n if (\n (this._listMetrics.getAverageCellLength() > 0 ||\n this.props.getItemLayout != null) &&\n this._shouldRenderWithPriority() &&\n !this._hiPriInProgress\n ) {\n this._hiPriInProgress = true;\n // Don't worry about interactions when scrolling quickly; focus on filling content as fast\n // as possible.\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._updateCellsToRender();\n return;\n } else {\n this._updateCellsToRenderBatcher.schedule();\n }\n }\n\n _shouldRenderWithPriority(): boolean {\n const {first, last} = this.state.cellsAroundViewport;\n const {offset, visibleLength, velocity} = this._scrollMetrics;\n const itemCount = this.props.getItemCount(this.props.data);\n let hiPri = false;\n const onStartReachedThreshold = onStartReachedThresholdOrDefault(\n this.props.onStartReachedThreshold,\n );\n const onEndReachedThreshold = onEndReachedThresholdOrDefault(\n this.props.onEndReachedThreshold,\n );\n // Mark as high priority if we're close to the start of the first item\n // But only if there are items before the first rendered item\n if (first > 0) {\n const distTop =\n offset -\n this._listMetrics.getCellMetricsApprox(first, this.props).offset;\n hiPri =\n distTop < 0 ||\n (velocity < -2 &&\n distTop <\n getScrollingThreshold(onStartReachedThreshold, visibleLength));\n }\n // Mark as high priority if we're close to the end of the last item\n // But only if there are items after the last rendered item\n if (!hiPri && last >= 0 && last < itemCount - 1) {\n const distBottom =\n this._listMetrics.getCellMetricsApprox(last, this.props).offset -\n (offset + visibleLength);\n hiPri =\n distBottom < 0 ||\n (velocity > 2 &&\n distBottom <\n getScrollingThreshold(onEndReachedThreshold, visibleLength));\n }\n\n return hiPri;\n }\n\n _onScrollBeginDrag = (e: ScrollEvent): void => {\n this._nestedChildLists.forEach(childList => {\n childList._onScrollBeginDrag(e);\n });\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.recordInteraction();\n });\n this._hasInteracted = true;\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n };\n\n _onScrollEndDrag = (e: ScrollEvent): void => {\n this._nestedChildLists.forEach(childList => {\n childList._onScrollEndDrag(e);\n });\n const {velocity} = e.nativeEvent;\n if (velocity) {\n this._scrollMetrics.velocity = this._selectOffset(velocity);\n }\n this._computeBlankness();\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n };\n\n _onMomentumScrollBegin = (e: ScrollEvent): void => {\n this._nestedChildLists.forEach(childList => {\n childList._onMomentumScrollBegin(e);\n });\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n };\n\n _onMomentumScrollEnd = (e: ScrollEvent): void => {\n this._nestedChildLists.forEach(childList => {\n childList._onMomentumScrollEnd(e);\n });\n this._scrollMetrics.velocity = 0;\n this._computeBlankness();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n };\n\n _updateCellsToRender = () => {\n this._updateViewableItems(this.props, this.state.cellsAroundViewport);\n\n this.setState((state, props) => {\n const cellsAroundViewport = this._adjustCellsAroundViewport(\n props,\n state.cellsAroundViewport,\n state.pendingScrollUpdateCount,\n );\n const renderMask = VirtualizedList._createRenderMask(\n props,\n cellsAroundViewport,\n this._getNonViewportRenderRegions(props),\n );\n\n if (\n cellsAroundViewport.first === state.cellsAroundViewport.first &&\n cellsAroundViewport.last === state.cellsAroundViewport.last &&\n renderMask.equals(state.renderMask)\n ) {\n return null;\n }\n\n return {cellsAroundViewport, renderMask};\n });\n };\n\n _createViewToken = (\n index: number,\n isViewable: boolean,\n props: CellMetricProps,\n // $FlowFixMe[missing-local-annot]\n ) => {\n const {data, getItem} = props;\n const item = getItem(data, index);\n return {\n index,\n item,\n key: VirtualizedList._keyExtractor(item, index, props),\n isViewable,\n };\n };\n\n __getListMetrics(): ListMetricsAggregator {\n return this._listMetrics;\n }\n\n _getNonViewportRenderRegions = (\n props: CellMetricProps,\n ): $ReadOnlyArray<{\n first: number,\n last: number,\n }> => {\n // Keep a viewport's worth of content around the last focused cell to allow\n // random navigation around it without any blanking. E.g. tabbing from one\n // focused item out of viewport to another.\n if (\n !(this._lastFocusedCellKey && this._cellRefs[this._lastFocusedCellKey])\n ) {\n return [];\n }\n\n const lastFocusedCellRenderer = this._cellRefs[this._lastFocusedCellKey];\n const focusedCellIndex = lastFocusedCellRenderer.props.index;\n const itemCount = props.getItemCount(props.data);\n\n // The last cell we rendered may be at a new index. Bail if we don't know\n // where it is.\n if (\n focusedCellIndex >= itemCount ||\n VirtualizedList._getItemKey(props, focusedCellIndex) !==\n this._lastFocusedCellKey\n ) {\n return [];\n }\n\n let first = focusedCellIndex;\n let heightOfCellsBeforeFocused = 0;\n for (\n let i = first - 1;\n i >= 0 && heightOfCellsBeforeFocused < this._scrollMetrics.visibleLength;\n i--\n ) {\n first--;\n heightOfCellsBeforeFocused += this._listMetrics.getCellMetricsApprox(\n i,\n props,\n ).length;\n }\n\n let last = focusedCellIndex;\n let heightOfCellsAfterFocused = 0;\n for (\n let i = last + 1;\n i < itemCount &&\n heightOfCellsAfterFocused < this._scrollMetrics.visibleLength;\n i++\n ) {\n last++;\n heightOfCellsAfterFocused += this._listMetrics.getCellMetricsApprox(\n i,\n props,\n ).length;\n }\n\n return [{first, last}];\n };\n\n _updateViewableItems(\n props: CellMetricProps,\n cellsAroundViewport: {first: number, last: number},\n ) {\n // If we have any pending scroll updates it means that the scroll metrics\n // are out of date and we should not call any of the visibility callbacks.\n if (this.state.pendingScrollUpdateCount > 0) {\n return;\n }\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.onUpdate(\n props,\n this._scrollMetrics.offset,\n this._scrollMetrics.visibleLength,\n this._listMetrics,\n this._createViewToken,\n tuple.onViewableItemsChanged,\n cellsAroundViewport,\n );\n });\n }\n}\n\nconst styles = StyleSheet.create({\n verticallyInverted:\n Platform.OS === 'android'\n ? {transform: [{scale: -1}]}\n : {transform: [{scaleY: -1}]},\n horizontallyInverted: {\n transform: [{scaleX: -1}],\n },\n debug: {\n flex: 1,\n },\n debugOverlayBase: {\n position: 'absolute',\n top: 0,\n right: 0,\n },\n debugOverlay: {\n bottom: 0,\n width: 20,\n borderColor: 'blue',\n borderWidth: 1,\n },\n debugOverlayFrame: {\n left: 0,\n backgroundColor: 'orange',\n },\n debugOverlayFrameLast: {\n left: 0,\n borderColor: 'green',\n borderWidth: 2,\n },\n debugOverlayFrameVis: {\n left: 0,\n borderColor: 'red',\n borderWidth: 2,\n },\n});\n\nmodule.exports = VirtualizedList;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst {InteractionManager} = require('react-native');\n\n/**\n * A simple class for batching up invocations of a low-pri callback. A timeout is set to run the\n * callback once after a delay, no matter how many times it's scheduled. Once the delay is reached,\n * InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri\n * interactions are done running.\n *\n * Make sure to cleanup with dispose(). Example:\n *\n * class Widget extends React.Component {\n * _batchedSave: new Batchinator(() => this._saveState, 1000);\n * _saveSate() {\n * // save this.state to disk\n * }\n * componentDidUpdate() {\n * this._batchedSave.schedule();\n * }\n * componentWillUnmount() {\n * this._batchedSave.dispose();\n * }\n * ...\n * }\n */\nclass Batchinator {\n _callback: () => void;\n _delay: number;\n _taskHandle: ?{cancel: () => void, ...};\n constructor(callback: () => void, delayMS: number) {\n this._delay = delayMS;\n this._callback = callback;\n }\n /*\n * Cleanup any pending tasks.\n *\n * By default, if there is a pending task the callback is run immediately. Set the option abort to\n * true to not call the callback if it was pending.\n */\n dispose(options: {abort: boolean, ...} = {abort: false}) {\n if (this._taskHandle) {\n this._taskHandle.cancel();\n if (!options.abort) {\n this._callback();\n }\n this._taskHandle = null;\n }\n }\n schedule() {\n if (this._taskHandle) {\n return;\n }\n const timeoutHandle = setTimeout(() => {\n this._taskHandle = InteractionManager.runAfterInteractions(() => {\n // Note that we clear the handle before invoking the callback so that if the callback calls\n // schedule again, it will actually schedule another task.\n this._taskHandle = null;\n this._callback();\n });\n }, this._delay);\n this._taskHandle = {cancel: () => clearTimeout(timeoutHandle)};\n }\n}\n\nmodule.exports = Batchinator;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nfunction clamp(min: number, value: number, max: number): number {\n if (value < min) {\n return min;\n }\n if (value > max) {\n return max;\n }\n return value;\n}\n\nmodule.exports = clamp;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/**\n * Intentional info-level logging for clear separation from ad-hoc console debug logging.\n */\nfunction infoLog(...args: Array): void {\n return console.log(...args);\n}\n\nmodule.exports = infoLog;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport invariant from 'invariant';\n\nexport default class ChildListCollection {\n _cellKeyToChildren: Map> = new Map();\n _childrenToCellKey: Map = new Map();\n\n add(list: TList, cellKey: string): void {\n invariant(\n !this._childrenToCellKey.has(list),\n 'Trying to add already present child list',\n );\n\n const cellLists = this._cellKeyToChildren.get(cellKey) ?? new Set();\n cellLists.add(list);\n this._cellKeyToChildren.set(cellKey, cellLists);\n\n this._childrenToCellKey.set(list, cellKey);\n }\n\n remove(list: TList): void {\n const cellKey = this._childrenToCellKey.get(list);\n invariant(cellKey != null, 'Trying to remove non-present child list');\n this._childrenToCellKey.delete(list);\n\n const cellLists = this._cellKeyToChildren.get(cellKey);\n invariant(cellLists, '_cellKeyToChildren should contain cellKey');\n cellLists.delete(list);\n\n if (cellLists.size === 0) {\n this._cellKeyToChildren.delete(cellKey);\n }\n }\n\n forEach(fn: TList => void): void {\n for (const listSet of this._cellKeyToChildren.values()) {\n for (const list of listSet) {\n fn(list);\n }\n }\n }\n\n forEachInCell(cellKey: string, fn: TList => void): void {\n const listSet = this._cellKeyToChildren.get(cellKey) ?? [];\n for (const list of listSet) {\n fn(list);\n }\n }\n\n anyInCell(cellKey: string, fn: TList => boolean): boolean {\n const listSet = this._cellKeyToChildren.get(cellKey) ?? [];\n for (const list of listSet) {\n if (fn(list)) {\n return true;\n }\n }\n return false;\n }\n\n size(): number {\n return this._childrenToCellKey.size;\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {CellMetricProps} from './ListMetricsAggregator';\n\nimport ListMetricsAggregator from './ListMetricsAggregator';\n\nexport type FillRateInfo = Info;\n\nclass Info {\n any_blank_count: number = 0;\n any_blank_ms: number = 0;\n any_blank_speed_sum: number = 0;\n mostly_blank_count: number = 0;\n mostly_blank_ms: number = 0;\n pixels_blank: number = 0;\n pixels_sampled: number = 0;\n pixels_scrolled: number = 0;\n total_time_spent: number = 0;\n sample_count: number = 0;\n}\n\nconst DEBUG = false;\n\nlet _listeners: Array<(Info) => void> = [];\nlet _minSampleCount = 10;\nlet _sampleRate = DEBUG ? 1 : null;\n\n/**\n * A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded.\n * By default the sampling rate is set to zero and this will do nothing. If you want to collect\n * samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`.\n *\n * Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with\n * `SceneTracker.getActiveScene` to determine the context of the events.\n */\nclass FillRateHelper {\n _anyBlankStartTime: ?number = null;\n _enabled = false;\n _listMetrics: ListMetricsAggregator;\n _info: Info = new Info();\n _mostlyBlankStartTime: ?number = null;\n _samplesStartTime: ?number = null;\n\n static addListener(callback: FillRateInfo => void): {\n remove: () => void,\n ...\n } {\n if (_sampleRate === null) {\n console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.');\n }\n _listeners.push(callback);\n return {\n remove: () => {\n _listeners = _listeners.filter(listener => callback !== listener);\n },\n };\n }\n\n static setSampleRate(sampleRate: number) {\n _sampleRate = sampleRate;\n }\n\n static setMinSampleCount(minSampleCount: number) {\n _minSampleCount = minSampleCount;\n }\n\n constructor(listMetrics: ListMetricsAggregator) {\n this._listMetrics = listMetrics;\n this._enabled = (_sampleRate || 0) > Math.random();\n this._resetData();\n }\n\n activate() {\n if (this._enabled && this._samplesStartTime == null) {\n DEBUG && console.debug('FillRateHelper: activate');\n this._samplesStartTime = global.performance.now();\n }\n }\n\n deactivateAndFlush() {\n if (!this._enabled) {\n return;\n }\n const start = this._samplesStartTime; // const for flow\n if (start == null) {\n DEBUG &&\n console.debug('FillRateHelper: bail on deactivate with no start time');\n return;\n }\n if (this._info.sample_count < _minSampleCount) {\n // Don't bother with under-sampled events.\n this._resetData();\n return;\n }\n const total_time_spent = global.performance.now() - start;\n const info: any = {\n ...this._info,\n total_time_spent,\n };\n if (DEBUG) {\n const derived = {\n avg_blankness: this._info.pixels_blank / this._info.pixels_sampled,\n avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000),\n avg_speed_when_any_blank:\n this._info.any_blank_speed_sum / this._info.any_blank_count,\n any_blank_per_min:\n this._info.any_blank_count / (total_time_spent / 1000 / 60),\n any_blank_time_frac: this._info.any_blank_ms / total_time_spent,\n mostly_blank_per_min:\n this._info.mostly_blank_count / (total_time_spent / 1000 / 60),\n mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent,\n };\n for (const key in derived) {\n // $FlowFixMe[prop-missing]\n // $FlowFixMe[invalid-computed-prop]\n derived[key] = Math.round(1000 * derived[key]) / 1000;\n }\n console.debug('FillRateHelper deactivateAndFlush: ', {derived, info});\n }\n _listeners.forEach(listener => listener(info));\n this._resetData();\n }\n\n computeBlankness(\n props: {\n ...CellMetricProps,\n initialNumToRender?: ?number,\n ...\n },\n cellsAroundViewport: {\n first: number,\n last: number,\n ...\n },\n scrollMetrics: {\n dOffset: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n ...\n },\n ): number {\n if (\n !this._enabled ||\n props.getItemCount(props.data) === 0 ||\n cellsAroundViewport.last < cellsAroundViewport.first ||\n this._samplesStartTime == null\n ) {\n return 0;\n }\n const {dOffset, offset, velocity, visibleLength} = scrollMetrics;\n\n // Denominator metrics that we track for all events - most of the time there is no blankness and\n // we want to capture that.\n this._info.sample_count++;\n this._info.pixels_sampled += Math.round(visibleLength);\n this._info.pixels_scrolled += Math.round(Math.abs(dOffset));\n const scrollSpeed = Math.round(Math.abs(velocity) * 1000); // px / sec\n\n // Whether blank now or not, record the elapsed time blank if we were blank last time.\n const now = global.performance.now();\n if (this._anyBlankStartTime != null) {\n this._info.any_blank_ms += now - this._anyBlankStartTime;\n }\n this._anyBlankStartTime = null;\n if (this._mostlyBlankStartTime != null) {\n this._info.mostly_blank_ms += now - this._mostlyBlankStartTime;\n }\n this._mostlyBlankStartTime = null;\n\n let blankTop = 0;\n let first = cellsAroundViewport.first;\n let firstFrame = this._listMetrics.getCellMetrics(first, props);\n while (\n first <= cellsAroundViewport.last &&\n (!firstFrame || !firstFrame.isMounted)\n ) {\n firstFrame = this._listMetrics.getCellMetrics(first, props);\n first++;\n }\n // Only count blankTop if we aren't rendering the first item, otherwise we will count the header\n // as blank.\n if (firstFrame && first > 0) {\n blankTop = Math.min(\n visibleLength,\n Math.max(0, firstFrame.offset - offset),\n );\n }\n let blankBottom = 0;\n let last = cellsAroundViewport.last;\n let lastFrame = this._listMetrics.getCellMetrics(last, props);\n while (\n last >= cellsAroundViewport.first &&\n (!lastFrame || !lastFrame.isMounted)\n ) {\n lastFrame = this._listMetrics.getCellMetrics(last, props);\n last--;\n }\n // Only count blankBottom if we aren't rendering the last item, otherwise we will count the\n // footer as blank.\n if (lastFrame && last < props.getItemCount(props.data) - 1) {\n const bottomEdge = lastFrame.offset + lastFrame.length;\n blankBottom = Math.min(\n visibleLength,\n Math.max(0, offset + visibleLength - bottomEdge),\n );\n }\n const pixels_blank = Math.round(blankTop + blankBottom);\n const blankness = pixels_blank / visibleLength;\n if (blankness > 0) {\n this._anyBlankStartTime = now;\n this._info.any_blank_speed_sum += scrollSpeed;\n this._info.any_blank_count++;\n this._info.pixels_blank += pixels_blank;\n if (blankness > 0.5) {\n this._mostlyBlankStartTime = now;\n this._info.mostly_blank_count++;\n }\n } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) {\n this.deactivateAndFlush();\n }\n return blankness;\n }\n\n enabled(): boolean {\n return this._enabled;\n }\n\n _resetData() {\n this._anyBlankStartTime = null;\n this._info = new Info();\n this._mostlyBlankStartTime = null;\n this._samplesStartTime = null;\n }\n}\n\nmodule.exports = FillRateHelper;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {Props as VirtualizedListProps} from './VirtualizedListProps';\nimport type {Layout} from 'react-native/Libraries/Types/CoreEventTypes';\n\nimport {keyExtractor as defaultKeyExtractor} from './VirtualizeUtils';\nimport invariant from 'invariant';\n\nexport type CellMetrics = {\n /**\n * Index of the item in the list\n */\n index: number,\n /**\n * Length of the cell along the scrolling axis\n */\n length: number,\n /**\n * Distance between this cell and the start of the list along the scrolling\n * axis\n */\n offset: number,\n /**\n * Whether the cell is last known to be mounted\n */\n isMounted: boolean,\n};\n\n// TODO: `inverted` can be incorporated here if it is moved to an order\n// based implementation instead of transform.\nexport type ListOrientation = {\n horizontal: boolean,\n rtl: boolean,\n};\n\n/**\n * Subset of VirtualizedList props needed to calculate cell metrics\n */\nexport type CellMetricProps = {\n data: VirtualizedListProps['data'],\n getItemCount: VirtualizedListProps['getItemCount'],\n getItem: VirtualizedListProps['getItem'],\n getItemLayout?: VirtualizedListProps['getItemLayout'],\n keyExtractor?: VirtualizedListProps['keyExtractor'],\n ...\n};\n\n/**\n * Provides an interface to query information about the metrics of a list and its cells.\n */\nexport default class ListMetricsAggregator {\n _averageCellLength = 0;\n _cellMetrics: Map = new Map();\n _contentLength: ?number;\n _highestMeasuredCellIndex = 0;\n _measuredCellsLength = 0;\n _measuredCellsCount = 0;\n _orientation: ListOrientation = {\n horizontal: false,\n rtl: false,\n };\n\n /**\n * Notify the ListMetricsAggregator that a cell has been laid out.\n *\n * @returns whether the cell layout has changed since last notification\n */\n notifyCellLayout({\n cellIndex,\n cellKey,\n orientation,\n layout,\n }: {\n cellIndex: number,\n cellKey: string,\n orientation: ListOrientation,\n layout: Layout,\n }): boolean {\n this._invalidateIfOrientationChanged(orientation);\n\n const next: CellMetrics = {\n index: cellIndex,\n length: this._selectLength(layout),\n isMounted: true,\n offset: this.flowRelativeOffset(layout),\n };\n const curr = this._cellMetrics.get(cellKey);\n\n if (!curr || next.offset !== curr.offset || next.length !== curr.length) {\n if (curr) {\n const dLength = next.length - curr.length;\n this._measuredCellsLength += dLength;\n } else {\n this._measuredCellsLength += next.length;\n this._measuredCellsCount += 1;\n }\n\n this._averageCellLength =\n this._measuredCellsLength / this._measuredCellsCount;\n this._cellMetrics.set(cellKey, next);\n this._highestMeasuredCellIndex = Math.max(\n this._highestMeasuredCellIndex,\n cellIndex,\n );\n return true;\n } else {\n curr.isMounted = true;\n return false;\n }\n }\n\n /**\n * Notify ListMetricsAggregator that a cell has been unmounted.\n */\n notifyCellUnmounted(cellKey: string): void {\n const curr = this._cellMetrics.get(cellKey);\n if (curr) {\n curr.isMounted = false;\n }\n }\n\n /**\n * Notify ListMetricsAggregator that the lists content container has been laid out.\n */\n notifyListContentLayout({\n orientation,\n layout,\n }: {\n orientation: ListOrientation,\n layout: $ReadOnly<{width: number, height: number}>,\n }): void {\n this._invalidateIfOrientationChanged(orientation);\n this._contentLength = this._selectLength(layout);\n }\n\n /**\n * Return the average length of the cells which have been measured\n */\n getAverageCellLength(): number {\n return this._averageCellLength;\n }\n\n /**\n * Return the highest measured cell index (or 0 if nothing has been measured\n * yet)\n */\n getHighestMeasuredCellIndex(): number {\n return this._highestMeasuredCellIndex;\n }\n\n /**\n * Returns the exact metrics of a cell if it has already been laid out,\n * otherwise an estimate based on the average length of previously measured\n * cells\n */\n getCellMetricsApprox(index: number, props: CellMetricProps): CellMetrics {\n const frame = this.getCellMetrics(index, props);\n if (frame && frame.index === index) {\n // check for invalid frames due to row re-ordering\n return frame;\n } else {\n const {data, getItemCount} = props;\n invariant(\n index >= 0 && index < getItemCount(data),\n 'Tried to get frame for out of range index ' + index,\n );\n return {\n length: this._averageCellLength,\n offset: this._averageCellLength * index,\n index,\n isMounted: false,\n };\n }\n }\n\n /**\n * Returns the exact metrics of a cell if it has already been laid out\n */\n getCellMetrics(index: number, props: CellMetricProps): ?CellMetrics {\n const {data, getItem, getItemCount, getItemLayout} = props;\n invariant(\n index >= 0 && index < getItemCount(data),\n 'Tried to get metrics for out of range cell index ' + index,\n );\n const keyExtractor = props.keyExtractor ?? defaultKeyExtractor;\n const frame = this._cellMetrics.get(\n keyExtractor(getItem(data, index), index),\n );\n if (frame && frame.index === index) {\n return frame;\n }\n\n if (getItemLayout) {\n const {length, offset} = getItemLayout(data, index);\n // TODO: `isMounted` is used for both \"is exact layout\" and \"has been\n // unmounted\". Should be refactored.\n return {index, length, offset, isMounted: true};\n }\n\n return null;\n }\n\n /**\n * Gets an approximate offset to an item at a given index. Supports\n * fractional indices.\n */\n getCellOffsetApprox(index: number, props: CellMetricProps): number {\n if (Number.isInteger(index)) {\n return this.getCellMetricsApprox(index, props).offset;\n } else {\n const frameMetrics = this.getCellMetricsApprox(Math.floor(index), props);\n const remainder = index - Math.floor(index);\n return frameMetrics.offset + remainder * frameMetrics.length;\n }\n }\n\n /**\n * Returns the length of all ScrollView content along the scrolling axis.\n */\n getContentLength(): number {\n return this._contentLength ?? 0;\n }\n\n /**\n * Whether a content length has been observed\n */\n hasContentLength(): boolean {\n return this._contentLength != null;\n }\n\n /**\n * Finds the flow-relative offset (e.g. starting from the left in LTR, but\n * right in RTL) from a layout box.\n */\n flowRelativeOffset(layout: Layout, referenceContentLength?: ?number): number {\n const {horizontal, rtl} = this._orientation;\n\n if (horizontal && rtl) {\n const contentLength = referenceContentLength ?? this._contentLength;\n invariant(\n contentLength != null,\n 'ListMetricsAggregator must be notified of list content layout before resolving offsets',\n );\n return (\n contentLength -\n (this._selectOffset(layout) + this._selectLength(layout))\n );\n } else {\n return this._selectOffset(layout);\n }\n }\n\n /**\n * Converts a flow-relative offset to a cartesian offset\n */\n cartesianOffset(flowRelativeOffset: number): number {\n const {horizontal, rtl} = this._orientation;\n\n if (horizontal && rtl) {\n invariant(\n this._contentLength != null,\n 'ListMetricsAggregator must be notified of list content layout before resolving offsets',\n );\n return this._contentLength - flowRelativeOffset;\n } else {\n return flowRelativeOffset;\n }\n }\n\n _invalidateIfOrientationChanged(orientation: ListOrientation): void {\n if (orientation.rtl !== this._orientation.rtl) {\n this._cellMetrics.clear();\n }\n\n if (orientation.horizontal !== this._orientation.horizontal) {\n this._averageCellLength = 0;\n this._highestMeasuredCellIndex = 0;\n this._measuredCellsLength = 0;\n this._measuredCellsCount = 0;\n }\n\n this._orientation = orientation;\n }\n\n _selectLength({\n width,\n height,\n }: $ReadOnly<{width: number, height: number, ...}>): number {\n return this._orientation.horizontal ? width : height;\n }\n\n _selectOffset({x, y}: $ReadOnly<{x: number, y: number, ...}>): number {\n return this._orientation.horizontal ? x : y;\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport invariant from 'invariant';\nimport * as React from 'react';\n\n/**\n * `setState` is called asynchronously, and should not rely on the value of\n * `this.props` or `this.state`:\n * https://react.dev/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous\n *\n * SafePureComponent adds runtime enforcement, to catch cases where these\n * variables are read in a state updater function, instead of the ones passed\n * in.\n */\nexport default class StateSafePureComponent<\n Props,\n State: interface {},\n> extends React.PureComponent {\n _inAsyncStateUpdate = false;\n\n constructor(props: Props) {\n super(props);\n this._installSetStateHooks();\n }\n\n setState(\n partialState: ?(Partial | ((State, Props) => ?Partial)),\n callback?: () => mixed,\n ): void {\n if (typeof partialState === 'function') {\n super.setState((state, props) => {\n this._inAsyncStateUpdate = true;\n let ret;\n try {\n ret = partialState(state, props);\n } catch (err) {\n throw err;\n } finally {\n this._inAsyncStateUpdate = false;\n }\n return ret;\n }, callback);\n } else {\n super.setState(partialState, callback);\n }\n }\n\n _installSetStateHooks() {\n const that = this;\n let {props, state} = this;\n\n Object.defineProperty(this, 'props', {\n get() {\n invariant(\n !that._inAsyncStateUpdate,\n '\"this.props\" should not be accessed during state updates',\n );\n return props;\n },\n set(newProps: Props) {\n props = newProps;\n },\n });\n Object.defineProperty(this, 'state', {\n get() {\n invariant(\n !that._inAsyncStateUpdate,\n '\"this.state\" should not be acceessed during state updates',\n );\n return state;\n },\n set(newState: State) {\n state = newState;\n },\n });\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {CellMetricProps} from './ListMetricsAggregator';\n\nimport ListMetricsAggregator from './ListMetricsAggregator';\n\nconst invariant = require('invariant');\n\nexport type ViewToken = {\n item: any,\n key: string,\n index: ?number,\n isViewable: boolean,\n section?: any,\n ...\n};\n\nexport type ViewabilityConfigCallbackPair = {\n viewabilityConfig: ViewabilityConfig,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n ...\n};\n\nexport type ViewabilityConfig = {|\n /**\n * Minimum amount of time (in milliseconds) that an item must be physically viewable before the\n * viewability callback will be fired. A high number means that scrolling through content without\n * stopping will not mark the content as viewable.\n */\n minimumViewTime?: number,\n\n /**\n * Percent of viewport that must be covered for a partially occluded item to count as\n * \"viewable\", 0-100. Fully visible items are always considered viewable. A value of 0 means\n * that a single pixel in the viewport makes the item viewable, and a value of 100 means that\n * an item must be either entirely visible or cover the entire viewport to count as viewable.\n */\n viewAreaCoveragePercentThreshold?: number,\n\n /**\n * Similar to `viewAreaPercentThreshold`, but considers the percent of the item that is visible,\n * rather than the fraction of the viewable area it covers.\n */\n itemVisiblePercentThreshold?: number,\n\n /**\n * Nothing is considered viewable until the user scrolls or `recordInteraction` is called after\n * render.\n */\n waitForInteraction?: boolean,\n|};\n\n/**\n * A Utility class for calculating viewable items based on current metrics like scroll position and\n * layout.\n *\n * An item is said to be in a \"viewable\" state when any of the following\n * is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`\n * is true):\n *\n * - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item\n * visible in the view area >= `itemVisiblePercentThreshold`.\n * - Entirely visible on screen\n */\nclass ViewabilityHelper {\n _config: ViewabilityConfig;\n _hasInteracted: boolean = false;\n _timers: Set = new Set();\n _viewableIndices: Array = [];\n _viewableItems: Map = new Map();\n\n constructor(\n config: ViewabilityConfig = {viewAreaCoveragePercentThreshold: 0},\n ) {\n this._config = config;\n }\n\n /**\n * Cleanup, e.g. on unmount. Clears any pending timers.\n */\n dispose() {\n /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This\n * comment suppresses an error found when Flow v0.63 was deployed. To see\n * the error delete this comment and run Flow. */\n this._timers.forEach(clearTimeout);\n }\n\n /**\n * Determines which items are viewable based on the current metrics and config.\n */\n computeViewableItems(\n props: CellMetricProps,\n scrollOffset: number,\n viewportHeight: number,\n listMetrics: ListMetricsAggregator,\n // Optional optimization to reduce the scan size\n renderRange?: {\n first: number,\n last: number,\n ...\n },\n ): Array {\n const itemCount = props.getItemCount(props.data);\n const {itemVisiblePercentThreshold, viewAreaCoveragePercentThreshold} =\n this._config;\n const viewAreaMode = viewAreaCoveragePercentThreshold != null;\n const viewablePercentThreshold = viewAreaMode\n ? viewAreaCoveragePercentThreshold\n : itemVisiblePercentThreshold;\n invariant(\n viewablePercentThreshold != null &&\n (itemVisiblePercentThreshold != null) !==\n (viewAreaCoveragePercentThreshold != null),\n 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold',\n );\n const viewableIndices = [];\n if (itemCount === 0) {\n return viewableIndices;\n }\n let firstVisible = -1;\n const {first, last} = renderRange || {first: 0, last: itemCount - 1};\n if (last >= itemCount) {\n console.warn(\n 'Invalid render range computing viewability ' +\n JSON.stringify({renderRange, itemCount}),\n );\n return [];\n }\n for (let idx = first; idx <= last; idx++) {\n const metrics = listMetrics.getCellMetrics(idx, props);\n if (!metrics) {\n continue;\n }\n const top = Math.floor(metrics.offset - scrollOffset);\n const bottom = Math.floor(top + metrics.length);\n\n if (top < viewportHeight && bottom > 0) {\n firstVisible = idx;\n if (\n _isViewable(\n viewAreaMode,\n viewablePercentThreshold,\n top,\n bottom,\n viewportHeight,\n metrics.length,\n )\n ) {\n viewableIndices.push(idx);\n }\n } else if (firstVisible >= 0) {\n break;\n }\n }\n return viewableIndices;\n }\n\n /**\n * Figures out which items are viewable and how that has changed from before and calls\n * `onViewableItemsChanged` as appropriate.\n */\n onUpdate(\n props: CellMetricProps,\n scrollOffset: number,\n viewportHeight: number,\n listMetrics: ListMetricsAggregator,\n createViewToken: (\n index: number,\n isViewable: boolean,\n props: CellMetricProps,\n ) => ViewToken,\n onViewableItemsChanged: ({\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n // Optional optimization to reduce the scan size\n renderRange?: {\n first: number,\n last: number,\n ...\n },\n ): void {\n const itemCount = props.getItemCount(props.data);\n if (\n (this._config.waitForInteraction && !this._hasInteracted) ||\n itemCount === 0 ||\n !listMetrics.getCellMetrics(0, props)\n ) {\n return;\n }\n let viewableIndices: Array = [];\n if (itemCount) {\n viewableIndices = this.computeViewableItems(\n props,\n scrollOffset,\n viewportHeight,\n listMetrics,\n renderRange,\n );\n }\n if (\n this._viewableIndices.length === viewableIndices.length &&\n this._viewableIndices.every((v, ii) => v === viewableIndices[ii])\n ) {\n // We might get a lot of scroll events where visibility doesn't change and we don't want to do\n // extra work in those cases.\n return;\n }\n this._viewableIndices = viewableIndices;\n if (this._config.minimumViewTime) {\n const handle: TimeoutID = setTimeout(() => {\n /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This\n * comment suppresses an error found when Flow v0.63 was deployed. To\n * see the error delete this comment and run Flow. */\n this._timers.delete(handle);\n this._onUpdateSync(\n props,\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }, this._config.minimumViewTime);\n /* $FlowFixMe[incompatible-call] (>=0.63.0 site=react_native_fb) This\n * comment suppresses an error found when Flow v0.63 was deployed. To see\n * the error delete this comment and run Flow. */\n this._timers.add(handle);\n } else {\n this._onUpdateSync(\n props,\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }\n }\n\n /**\n * clean-up cached _viewableIndices to evaluate changed items on next update\n */\n resetViewableIndices() {\n this._viewableIndices = [];\n }\n\n /**\n * Records that an interaction has happened even if there has been no scroll.\n */\n recordInteraction() {\n this._hasInteracted = true;\n }\n\n _onUpdateSync(\n props: CellMetricProps,\n viewableIndicesToCheck: Array,\n onViewableItemsChanged: ({\n changed: Array,\n viewableItems: Array,\n ...\n }) => void,\n createViewToken: (\n index: number,\n isViewable: boolean,\n props: CellMetricProps,\n ) => ViewToken,\n ) {\n // Filter out indices that have gone out of view since this call was scheduled.\n viewableIndicesToCheck = viewableIndicesToCheck.filter(ii =>\n this._viewableIndices.includes(ii),\n );\n const prevItems = this._viewableItems;\n const nextItems = new Map(\n viewableIndicesToCheck.map(ii => {\n const viewable = createViewToken(ii, true, props);\n return [viewable.key, viewable];\n }),\n );\n\n const changed = [];\n for (const [key, viewable] of nextItems) {\n if (!prevItems.has(key)) {\n changed.push(viewable);\n }\n }\n for (const [key, viewable] of prevItems) {\n if (!nextItems.has(key)) {\n changed.push({...viewable, isViewable: false});\n }\n }\n if (changed.length > 0) {\n this._viewableItems = nextItems;\n onViewableItemsChanged({\n viewableItems: Array.from(nextItems.values()),\n changed,\n viewabilityConfig: this._config,\n });\n }\n }\n}\n\nfunction _isViewable(\n viewAreaMode: boolean,\n viewablePercentThreshold: number,\n top: number,\n bottom: number,\n viewportHeight: number,\n itemLength: number,\n): boolean {\n if (_isEntirelyVisible(top, bottom, viewportHeight)) {\n return true;\n } else {\n const pixels = _getPixelsVisible(top, bottom, viewportHeight);\n const percent =\n 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength);\n return percent >= viewablePercentThreshold;\n }\n}\n\nfunction _getPixelsVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): number {\n const visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0);\n return Math.max(0, visibleHeight);\n}\n\nfunction _isEntirelyVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): boolean {\n return top >= 0 && bottom <= viewportHeight && bottom > top;\n}\n\nmodule.exports = ViewabilityHelper;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {CellRendererProps, RenderItemType} from './VirtualizedListProps';\nimport type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';\nimport type {\n FocusEvent,\n LayoutEvent,\n} from 'react-native/Libraries/Types/CoreEventTypes';\n\nimport {VirtualizedListCellContextProvider} from './VirtualizedListContext.js';\nimport invariant from 'invariant';\nimport * as React from 'react';\nimport {StyleSheet, View} from 'react-native';\n\nexport type Props = {\n CellRendererComponent?: ?React.ComponentType>,\n ItemSeparatorComponent: ?React.ComponentType<\n any | {highlighted: boolean, leadingItem: ?ItemT},\n >,\n ListItemComponent?: ?(React.ComponentType | React.Element),\n cellKey: string,\n horizontal: ?boolean,\n index: number,\n inversionStyle: ViewStyleProp,\n item: ItemT,\n onCellLayout?: (event: LayoutEvent, cellKey: string, index: number) => void,\n onCellFocusCapture?: (cellKey: string) => void,\n onUnmount: (cellKey: string) => void,\n onUpdateSeparators: (\n cellKeys: Array,\n props: Partial>,\n ) => void,\n prevCellKey: ?string,\n renderItem?: ?RenderItemType,\n ...\n};\n\ntype SeparatorProps = $ReadOnly<{|\n highlighted: boolean,\n leadingItem: ?ItemT,\n|}>;\n\ntype State = {\n separatorProps: SeparatorProps,\n ...\n};\n\nexport default class CellRenderer extends React.Component<\n Props,\n State,\n> {\n state: State = {\n separatorProps: {\n highlighted: false,\n leadingItem: this.props.item,\n },\n };\n\n static getDerivedStateFromProps(\n props: Props,\n prevState: State,\n ): ?State {\n return {\n separatorProps: {\n ...prevState.separatorProps,\n leadingItem: props.item,\n },\n };\n }\n\n // TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not\n // reused by SectionList and we can keep VirtualizedList simpler.\n // $FlowFixMe[missing-local-annot]\n _separators = {\n highlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: true,\n });\n },\n unhighlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: false,\n });\n },\n updateProps: (\n select: 'leading' | 'trailing',\n newProps: SeparatorProps,\n ) => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators(\n [select === 'leading' ? prevCellKey : cellKey],\n newProps,\n );\n },\n };\n\n updateSeparatorProps(newProps: SeparatorProps) {\n this.setState(state => ({\n separatorProps: {...state.separatorProps, ...newProps},\n }));\n }\n\n componentWillUnmount() {\n this.props.onUnmount(this.props.cellKey);\n }\n\n _onLayout = (nativeEvent: LayoutEvent): void => {\n this.props.onCellLayout?.(\n nativeEvent,\n this.props.cellKey,\n this.props.index,\n );\n };\n\n _onCellFocusCapture = (e: FocusEvent): void => {\n this.props.onCellFocusCapture?.(this.props.cellKey);\n };\n\n _renderElement(\n renderItem: ?RenderItemType,\n ListItemComponent: any,\n item: ItemT,\n index: number,\n ): React.Node {\n if (renderItem && ListItemComponent) {\n console.warn(\n 'VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take' +\n ' precedence over renderItem.',\n );\n }\n\n if (ListItemComponent) {\n return (\n \n );\n }\n\n if (renderItem) {\n return renderItem({\n item,\n index,\n separators: this._separators,\n });\n }\n\n invariant(\n false,\n 'VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.',\n );\n }\n\n render(): React.Node {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n ListItemComponent,\n cellKey,\n horizontal,\n item,\n index,\n inversionStyle,\n onCellLayout,\n renderItem,\n } = this.props;\n const element = this._renderElement(\n renderItem,\n ListItemComponent,\n item,\n index,\n );\n\n // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and\n // called explicitly by `ScrollViewStickyHeader`.\n const itemSeparator: React.Node = React.isValidElement(\n ItemSeparatorComponent,\n )\n ? // $FlowFixMe[incompatible-type]\n ItemSeparatorComponent\n : // $FlowFixMe[incompatible-type]\n ItemSeparatorComponent && (\n \n );\n const cellStyle = inversionStyle\n ? horizontal\n ? [styles.rowReverse, inversionStyle]\n : [styles.columnReverse, inversionStyle]\n : horizontal\n ? [styles.row, inversionStyle]\n : inversionStyle;\n const result = !CellRendererComponent ? (\n \n {element}\n {itemSeparator}\n \n ) : (\n \n {element}\n {itemSeparator}\n \n );\n\n return (\n \n {result}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n row: {\n flexDirection: 'row',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n});\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport typeof VirtualizedList from './VirtualizedList';\n\nimport * as React from 'react';\nimport {useContext, useMemo} from 'react';\n\ntype Context = $ReadOnly<{\n cellKey: ?string,\n getScrollMetrics: () => {\n contentLength: number,\n dOffset: number,\n dt: number,\n offset: number,\n timestamp: number,\n velocity: number,\n visibleLength: number,\n zoomScale: number,\n },\n horizontal: ?boolean,\n getOutermostParentListRef: () => React.ElementRef,\n registerAsNestedChild: ({\n cellKey: string,\n ref: React.ElementRef,\n }) => void,\n unregisterAsNestedChild: ({ref: React.ElementRef}) => void,\n}>;\n\nexport const VirtualizedListContext: React.Context =\n React.createContext(null);\nif (__DEV__) {\n VirtualizedListContext.displayName = 'VirtualizedListContext';\n}\n\n/**\n * Resets the context. Intended for use by portal-like components (e.g. Modal).\n */\nexport function VirtualizedListContextResetter({\n children,\n}: {\n children: React.Node,\n}): React.Node {\n return (\n \n {children}\n \n );\n}\n\n/**\n * Sets the context with memoization. Intended to be used by `VirtualizedList`.\n */\nexport function VirtualizedListContextProvider({\n children,\n value,\n}: {\n children: React.Node,\n value: Context,\n}): React.Node {\n // Avoid setting a newly created context object if the values are identical.\n const context = useMemo(\n () => ({\n cellKey: null,\n getScrollMetrics: value.getScrollMetrics,\n horizontal: value.horizontal,\n getOutermostParentListRef: value.getOutermostParentListRef,\n registerAsNestedChild: value.registerAsNestedChild,\n unregisterAsNestedChild: value.unregisterAsNestedChild,\n }),\n [\n value.getScrollMetrics,\n value.horizontal,\n value.getOutermostParentListRef,\n value.registerAsNestedChild,\n value.unregisterAsNestedChild,\n ],\n );\n return (\n \n {children}\n \n );\n}\n\n/**\n * Sets the `cellKey`. Intended to be used by `VirtualizedList` for each cell.\n */\nexport function VirtualizedListCellContextProvider({\n cellKey,\n children,\n}: {\n cellKey: string,\n children: React.Node,\n}): React.Node {\n // Avoid setting a newly created context object if the values are identical.\n const currContext = useContext(VirtualizedListContext);\n const context = useMemo(\n () => (currContext == null ? null : {...currContext, cellKey}),\n [currContext, cellKey],\n );\n return (\n \n {children}\n \n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {\n ViewabilityConfig,\n ViewabilityConfigCallbackPair,\n ViewToken,\n} from './ViewabilityHelper';\nimport type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';\nimport type {\n FocusEvent,\n LayoutEvent,\n} from 'react-native/Libraries/Types/CoreEventTypes';\n\nimport * as React from 'react';\nimport {typeof ScrollView} from 'react-native';\n\nexport type Item = any;\n\nexport type Separators = {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n};\n\nexport type RenderItemProps = {\n item: ItemT,\n index: number,\n separators: Separators,\n ...\n};\n\nexport type CellRendererProps = $ReadOnly<{\n cellKey: string,\n children: React.Node,\n index: number,\n item: ItemT,\n onFocusCapture?: (event: FocusEvent) => void,\n onLayout?: (event: LayoutEvent) => void,\n style: ViewStyleProp,\n}>;\n\nexport type RenderItemType = (\n info: RenderItemProps,\n) => React.Node;\n\ntype RequiredProps = {|\n /**\n * The default accessor functions assume this is an Array<{key: string} | {id: string}> but you can override\n * getItem, getItemCount, and keyExtractor to handle any type of index-based data.\n */\n data?: any,\n /**\n * A generic accessor for extracting an item from any sort of data blob.\n */\n getItem: (data: any, index: number) => ?Item,\n /**\n * Determines how many items are in the data blob.\n */\n getItemCount: (data: any) => number,\n|};\ntype OptionalProps = {|\n renderItem?: ?RenderItemType,\n /**\n * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and\n * implementation, but with a significant perf hit.\n */\n debug?: ?boolean,\n /**\n * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully\n * unmounts react instances that are outside of the render window. You should only need to disable\n * this for debugging purposes. Defaults to false.\n */\n disableVirtualization?: ?boolean,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n // e.g. height, y\n getItemLayout?: (\n data: any,\n index: number,\n ) => {\n length: number,\n offset: number,\n index: number,\n ...\n },\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender?: ?number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n keyExtractor?: ?(item: Item, index: number) => string,\n /**\n * CellRendererComponent allows customizing how cells rendered by\n * `renderItem`/`ListItemComponent` are wrapped when placed into the\n * underlying ScrollView. This component must accept event handlers which\n * notify VirtualizedList of changes within the cell.\n */\n CellRendererComponent?: ?React.ComponentType>,\n /**\n * Rendered in between each item, but not at the top or bottom. By default, `highlighted` and\n * `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight`\n * which will update the `highlighted` prop, but you can also add custom props with\n * `separators.updateProps`.\n */\n ItemSeparatorComponent?: ?React.ComponentType,\n /**\n * Takes an item from `data` and renders it into the list. Example usage:\n *\n * (\n * \n * )}\n * data={[{title: 'Title Text', key: 'item1'}]}\n * ListItemComponent={({item, separators}) => (\n * this._onPress(item)}\n * onShowUnderlay={separators.highlight}\n * onHideUnderlay={separators.unhighlight}>\n * \n * {item.title}\n * \n * \n * )}\n * />\n *\n * Provides additional metadata like `index` if you need it, as well as a more generic\n * `separators.updateProps` function which let's you set whatever props you want to change the\n * rendering of either the leading separator or trailing separator in case the more common\n * `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for\n * your use-case.\n */\n ListItemComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered when the list is empty. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListEmptyComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the bottom of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListFooterComponent\n */\n ListFooterComponentStyle?: ViewStyleProp,\n /**\n * Rendered at the top of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListHeaderComponent\n */\n ListHeaderComponentStyle?: ViewStyleProp,\n /**\n * The maximum number of items to render in each incremental render batch. The more rendered at\n * once, the better the fill rate, but responsiveness may suffer because rendering content may\n * interfere with responding to button taps or other interactions.\n */\n maxToRenderPerBatch?: ?number,\n /**\n * Called once when the scroll position gets within within `onEndReachedThreshold`\n * from the logical end of the list.\n */\n onEndReached?: ?(info: {distanceFromEnd: number, ...}) => void,\n /**\n * How far from the end (in units of visible length of the list) the trailing edge of the\n * list must be from the end of the content to trigger the `onEndReached` callback.\n * Thus, a value of 0.5 will trigger `onEndReached` when the end of the content is\n * within half the visible length of the list.\n */\n onEndReachedThreshold?: ?number,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?() => void,\n /**\n * Used to handle failures when scrolling to an index that has not been measured yet. Recommended\n * action is to either compute your own offset and `scrollTo` it, or scroll as far as possible and\n * then try again after more items have been rendered.\n */\n onScrollToIndexFailed?: ?(info: {\n index: number,\n highestMeasuredFrameIndex: number,\n averageItemLength: number,\n ...\n }) => void,\n /**\n * Called once when the scroll position gets within within `onStartReachedThreshold`\n * from the logical start of the list.\n */\n onStartReached?: ?(info: {distanceFromStart: number, ...}) => void,\n /**\n * How far from the start (in units of visible length of the list) the leading edge of the\n * list must be from the start of the content to trigger the `onStartReached` callback.\n * Thus, a value of 0.5 will trigger `onStartReached` when the start of the content is\n * within half the visible length of the list.\n */\n onStartReachedThreshold?: ?number,\n /**\n * Called when the viewability of rows changes, as defined by the\n * `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?(info: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => void,\n persistentScrollbar?: ?boolean,\n /**\n * Set this when offset is needed for the loading indicator to show correctly.\n */\n progressViewOffset?: number,\n /**\n * A custom refresh control element. When set, it overrides the default\n * component built internally. The onRefresh and refreshing\n * props are also ignored. Only works for vertical VirtualizedList.\n */\n refreshControl?: ?React.Element,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n /**\n * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.\n */\n renderScrollComponent?: (props: Object) => React.Element,\n /**\n * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off\n * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.\n */\n updateCellsBatchingPeriod?: ?number,\n /**\n * See `ViewabilityHelper` for flow type and further documentation.\n */\n viewabilityConfig?: ViewabilityConfig,\n /**\n * List of ViewabilityConfig/onViewableItemsChanged pairs. A specific onViewableItemsChanged\n * will be called when its corresponding ViewabilityConfig's conditions are met.\n */\n viewabilityConfigCallbackPairs?: Array,\n /**\n * Determines the maximum number of items rendered outside of the visible area, in units of\n * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will\n * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing\n * this number will reduce memory consumption and may improve performance, but will increase the\n * chance that fast scrolling may reveal momentary blank areas of unrendered content.\n */\n windowSize?: ?number,\n /**\n * The legacy implementation is no longer supported.\n */\n legacyImplementation?: empty,\n|};\n\nexport type Props = {|\n ...React.ElementConfig,\n ...RequiredProps,\n ...OptionalProps,\n|};\n\n/**\n * Default Props Helper Functions\n * Use the following helper functions for default values\n */\n\n// horizontalOrDefault(this.props.horizontal)\nexport function horizontalOrDefault(horizontal: ?boolean): boolean {\n return horizontal ?? false;\n}\n\n// initialNumToRenderOrDefault(this.props.initialNumToRender)\nexport function initialNumToRenderOrDefault(\n initialNumToRender: ?number,\n): number {\n return initialNumToRender ?? 10;\n}\n\n// maxToRenderPerBatchOrDefault(this.props.maxToRenderPerBatch)\nexport function maxToRenderPerBatchOrDefault(\n maxToRenderPerBatch: ?number,\n): number {\n return maxToRenderPerBatch ?? 10;\n}\n\n// onStartReachedThresholdOrDefault(this.props.onStartReachedThreshold)\nexport function onStartReachedThresholdOrDefault(\n onStartReachedThreshold: ?number,\n): number {\n return onStartReachedThreshold ?? 2;\n}\n\n// onEndReachedThresholdOrDefault(this.props.onEndReachedThreshold)\nexport function onEndReachedThresholdOrDefault(\n onEndReachedThreshold: ?number,\n): number {\n return onEndReachedThreshold ?? 2;\n}\n\n// windowSizeOrDefault(this.props.windowSize)\nexport function windowSizeOrDefault(windowSize: ?number): number {\n return windowSize ?? 21;\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport invariant from 'invariant';\n\nexport type CellRegion = {\n first: number,\n last: number,\n isSpacer: boolean,\n};\n\nexport class CellRenderMask {\n _numCells: number;\n _regions: Array;\n\n constructor(numCells: number) {\n invariant(\n numCells >= 0,\n 'CellRenderMask must contain a non-negative number os cells',\n );\n\n this._numCells = numCells;\n\n if (numCells === 0) {\n this._regions = [];\n } else {\n this._regions = [\n {\n first: 0,\n last: numCells - 1,\n isSpacer: true,\n },\n ];\n }\n }\n\n enumerateRegions(): $ReadOnlyArray {\n return this._regions;\n }\n\n addCells(cells: {first: number, last: number}): void {\n invariant(\n cells.first >= 0 &&\n cells.first < this._numCells &&\n cells.last >= -1 &&\n cells.last < this._numCells &&\n cells.last >= cells.first - 1,\n 'CellRenderMask.addCells called with invalid cell range',\n );\n\n // VirtualizedList uses inclusive ranges, where zero-count states are\n // possible. E.g. [0, -1] for no cells, starting at 0.\n if (cells.last < cells.first) {\n return;\n }\n\n const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);\n const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);\n\n // Fast-path if the cells to add are already all present in the mask. We\n // will otherwise need to do some mutation.\n if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {\n return;\n }\n\n // We need to replace the existing covered regions with 1-3 new regions\n // depending whether we need to split spacers out of overlapping regions.\n const newLeadRegion: Array = [];\n const newTailRegion: Array = [];\n const newMainRegion: CellRegion = {\n ...cells,\n isSpacer: false,\n };\n\n if (firstIntersect.first < newMainRegion.first) {\n if (firstIntersect.isSpacer) {\n newLeadRegion.push({\n first: firstIntersect.first,\n last: newMainRegion.first - 1,\n isSpacer: true,\n });\n } else {\n newMainRegion.first = firstIntersect.first;\n }\n }\n\n if (lastIntersect.last > newMainRegion.last) {\n if (lastIntersect.isSpacer) {\n newTailRegion.push({\n first: newMainRegion.last + 1,\n last: lastIntersect.last,\n isSpacer: true,\n });\n } else {\n newMainRegion.last = lastIntersect.last;\n }\n }\n\n const replacementRegions: Array = [\n ...newLeadRegion,\n newMainRegion,\n ...newTailRegion,\n ];\n const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;\n this._regions.splice(\n firstIntersectIdx,\n numRegionsToDelete,\n ...replacementRegions,\n );\n }\n\n numCells(): number {\n return this._numCells;\n }\n\n equals(other: CellRenderMask): boolean {\n return (\n this._numCells === other._numCells &&\n this._regions.length === other._regions.length &&\n this._regions.every(\n (region, i) =>\n region.first === other._regions[i].first &&\n region.last === other._regions[i].last &&\n region.isSpacer === other._regions[i].isSpacer,\n )\n );\n }\n\n _findRegion(cellIdx: number): [CellRegion, number] {\n let firstIdx = 0;\n let lastIdx = this._regions.length - 1;\n\n while (firstIdx <= lastIdx) {\n const middleIdx = Math.floor((firstIdx + lastIdx) / 2);\n const middleRegion = this._regions[middleIdx];\n\n if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {\n return [middleRegion, middleIdx];\n } else if (cellIdx < middleRegion.first) {\n lastIdx = middleIdx - 1;\n } else if (cellIdx > middleRegion.last) {\n firstIdx = middleIdx + 1;\n }\n }\n\n invariant(false, `A region was not found containing cellIdx ${cellIdx}`);\n }\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {ViewToken} from './ViewabilityHelper';\n\nimport VirtualizedList from './VirtualizedList';\nimport {keyExtractor as defaultKeyExtractor} from './VirtualizeUtils';\nimport invariant from 'invariant';\nimport * as React from 'react';\ntype Item = any;\n\nexport type SectionBase = {\n /**\n * The data for rendering items in this section.\n */\n data: $ReadOnlyArray,\n /**\n * Optional key to keep track of section re-ordering. If you don't plan on re-ordering sections,\n * the array index will be used by default.\n */\n key?: string,\n // Optional props will override list-wide props just for this section.\n renderItem?: ?(info: {\n item: SectionItemT,\n index: number,\n section: SectionBase,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n ItemSeparatorComponent?: ?React.ComponentType,\n keyExtractor?: (item: SectionItemT, index?: ?number) => string,\n ...\n};\n\ntype RequiredProps> = {|\n sections: $ReadOnlyArray,\n|};\n\ntype OptionalProps> = {|\n /**\n * Default renderer for every item in every section.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n /**\n * Rendered at the top of each section. These stick to the top of the `ScrollView` by default on\n * iOS. See `stickySectionHeadersEnabled`.\n */\n renderSectionHeader?: ?(info: {\n section: SectionT,\n ...\n }) => null | React.Element,\n /**\n * Rendered at the bottom of each section.\n */\n renderSectionFooter?: ?(info: {\n section: SectionT,\n ...\n }) => null | React.Element,\n /**\n * Rendered at the top and bottom of each section (note this is different from\n * `ItemSeparatorComponent` which is only rendered between items). These are intended to separate\n * sections from the headers above and below and typically have the same highlight response as\n * `ItemSeparatorComponent`. Also receives `highlighted`, `[leading/trailing][Item/Separator]`,\n * and any custom props from `separators.updateProps`.\n */\n SectionSeparatorComponent?: ?React.ComponentType,\n /**\n * Makes section headers stick to the top of the screen until the next one pushes it off. Only\n * enabled by default on iOS because that is the platform standard there.\n */\n stickySectionHeadersEnabled?: boolean,\n onEndReached?: ?({distanceFromEnd: number, ...}) => void,\n|};\n\ntype VirtualizedListProps = React.ElementConfig;\n\nexport type Props = {|\n ...RequiredProps,\n ...OptionalProps,\n ...$Diff<\n VirtualizedListProps,\n {\n renderItem: $PropertyType,\n data: $PropertyType,\n ...\n },\n >,\n|};\nexport type ScrollToLocationParamsType = {|\n animated?: ?boolean,\n itemIndex: number,\n sectionIndex: number,\n viewOffset?: number,\n viewPosition?: number,\n|};\n\ntype State = {childProps: VirtualizedListProps, ...};\n\n/**\n * Right now this just flattens everything into one list and uses VirtualizedList under the\n * hood. The only operation that might not scale well is concatting the data arrays of all the\n * sections when new props are received, which should be plenty fast for up to ~10,000 items.\n */\nclass VirtualizedSectionList<\n SectionT: SectionBase,\n> extends React.PureComponent, State> {\n scrollToLocation(params: ScrollToLocationParamsType) {\n let index = params.itemIndex;\n for (let i = 0; i < params.sectionIndex; i++) {\n index += this.props.getItemCount(this.props.sections[i].data) + 2;\n }\n let viewOffset = params.viewOffset || 0;\n if (this._listRef == null) {\n return;\n }\n const listRef = this._listRef;\n if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {\n const frame = listRef\n .__getListMetrics()\n .getCellMetricsApprox(index - params.itemIndex, listRef.props);\n viewOffset += frame.length;\n }\n const toIndexParams = {\n ...params,\n viewOffset,\n index,\n };\n // $FlowFixMe[incompatible-use]\n this._listRef.scrollToIndex(toIndexParams);\n }\n\n getListRef(): ?React.ElementRef {\n return this._listRef;\n }\n\n render(): React.Node {\n const {\n ItemSeparatorComponent, // don't pass through, rendered with renderItem\n SectionSeparatorComponent,\n renderItem: _renderItem,\n renderSectionFooter,\n renderSectionHeader,\n sections: _sections,\n stickySectionHeadersEnabled,\n ...passThroughProps\n } = this.props;\n\n const listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0;\n\n const stickyHeaderIndices = this.props.stickySectionHeadersEnabled\n ? ([]: Array)\n : undefined;\n\n let itemCount = 0;\n for (const section of this.props.sections) {\n // Track the section header indices\n if (stickyHeaderIndices != null) {\n stickyHeaderIndices.push(itemCount + listHeaderOffset);\n }\n\n // Add two for the section header and footer.\n itemCount += 2;\n itemCount += this.props.getItemCount(section.data);\n }\n const renderItem = this._renderItem(itemCount);\n\n return (\n \n this._getItem(this.props, sections, index)\n }\n getItemCount={() => itemCount}\n onViewableItemsChanged={\n this.props.onViewableItemsChanged\n ? this._onViewableItemsChanged\n : undefined\n }\n ref={this._captureRef}\n />\n );\n }\n\n _getItem(\n props: Props,\n sections: ?$ReadOnlyArray,\n index: number,\n ): ?Item {\n if (!sections) {\n return null;\n }\n let itemIdx = index - 1;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const itemCount = props.getItemCount(sectionData);\n if (itemIdx === -1 || itemIdx === itemCount) {\n // We intend for there to be overflow by one on both ends of the list.\n // This will be for headers and footers. When returning a header or footer\n // item the section itself is the item.\n return section;\n } else if (itemIdx < itemCount) {\n // If we are in the bounds of the list's data then return the item.\n return props.getItem(sectionData, itemIdx);\n } else {\n itemIdx -= itemCount + 2; // Add two for the header and footer\n }\n }\n return null;\n }\n\n // $FlowFixMe[missing-local-annot]\n _keyExtractor = (item: Item, index: number) => {\n const info = this._subExtractor(index);\n return (info && info.key) || String(index);\n };\n\n _subExtractor(index: number): ?{\n section: SectionT,\n // Key of the section or combined key for section + item\n key: string,\n // Relative index within the section\n index: ?number,\n // True if this is the section header\n header?: ?boolean,\n leadingItem?: ?Item,\n leadingSection?: ?SectionT,\n trailingItem?: ?Item,\n trailingSection?: ?SectionT,\n ...\n } {\n let itemIndex = index;\n const {getItem, getItemCount, keyExtractor, sections} = this.props;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const key = section.key || String(i);\n itemIndex -= 1; // The section adds an item for the header\n if (itemIndex >= getItemCount(sectionData) + 1) {\n itemIndex -= getItemCount(sectionData) + 1; // The section adds an item for the footer.\n } else if (itemIndex === -1) {\n return {\n section,\n key: key + ':header',\n index: null,\n header: true,\n trailingSection: sections[i + 1],\n };\n } else if (itemIndex === getItemCount(sectionData)) {\n return {\n section,\n key: key + ':footer',\n index: null,\n header: false,\n trailingSection: sections[i + 1],\n };\n } else {\n const extractor =\n section.keyExtractor || keyExtractor || defaultKeyExtractor;\n return {\n section,\n key:\n key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex),\n index: itemIndex,\n leadingItem: getItem(sectionData, itemIndex - 1),\n leadingSection: sections[i - 1],\n trailingItem: getItem(sectionData, itemIndex + 1),\n trailingSection: sections[i + 1],\n };\n }\n }\n }\n\n _convertViewable = (viewable: ViewToken): ?ViewToken => {\n invariant(viewable.index != null, 'Received a broken ViewToken');\n const info = this._subExtractor(viewable.index);\n if (!info) {\n return null;\n }\n const keyExtractorWithNullableIndex = info.section.keyExtractor;\n const keyExtractorWithNonNullableIndex =\n this.props.keyExtractor || defaultKeyExtractor;\n const key =\n keyExtractorWithNullableIndex != null\n ? keyExtractorWithNullableIndex(viewable.item, info.index)\n : keyExtractorWithNonNullableIndex(viewable.item, info.index ?? 0);\n\n return {\n ...viewable,\n index: info.index,\n key,\n section: info.section,\n };\n };\n\n _onViewableItemsChanged = ({\n viewableItems,\n changed,\n }: {\n viewableItems: Array,\n changed: Array,\n ...\n }) => {\n const onViewableItemsChanged = this.props.onViewableItemsChanged;\n if (onViewableItemsChanged != null) {\n onViewableItemsChanged({\n viewableItems: viewableItems\n .map(this._convertViewable, this)\n .filter(Boolean),\n changed: changed.map(this._convertViewable, this).filter(Boolean),\n });\n }\n };\n\n _renderItem =\n (listItemCount: number): $FlowFixMe =>\n // eslint-disable-next-line react/no-unstable-nested-components\n ({item, index}: {item: Item, index: number, ...}) => {\n const info = this._subExtractor(index);\n if (!info) {\n return null;\n }\n const infoIndex = info.index;\n if (infoIndex == null) {\n const {section} = info;\n if (info.header === true) {\n const {renderSectionHeader} = this.props;\n return renderSectionHeader ? renderSectionHeader({section}) : null;\n } else {\n const {renderSectionFooter} = this.props;\n return renderSectionFooter ? renderSectionFooter({section}) : null;\n }\n } else {\n const renderItem = info.section.renderItem || this.props.renderItem;\n const SeparatorComponent = this._getSeparatorComponent(\n index,\n info,\n listItemCount,\n );\n invariant(renderItem, 'no renderItem!');\n return (\n \n );\n }\n };\n\n _updatePropsFor = (cellKey: string, value: any) => {\n const updateProps = this._updatePropsMap[cellKey];\n if (updateProps != null) {\n updateProps(value);\n }\n };\n\n _updateHighlightFor = (cellKey: string, value: boolean) => {\n const updateHighlight = this._updateHighlightMap[cellKey];\n if (updateHighlight != null) {\n updateHighlight(value);\n }\n };\n\n _setUpdateHighlightFor = (\n cellKey: string,\n updateHighlightFn: ?(boolean) => void,\n ) => {\n if (updateHighlightFn != null) {\n this._updateHighlightMap[cellKey] = updateHighlightFn;\n } else {\n // $FlowFixMe[prop-missing]\n delete this._updateHighlightFor[cellKey];\n }\n };\n\n _setUpdatePropsFor = (cellKey: string, updatePropsFn: ?(boolean) => void) => {\n if (updatePropsFn != null) {\n this._updatePropsMap[cellKey] = updatePropsFn;\n } else {\n delete this._updatePropsMap[cellKey];\n }\n };\n\n _getSeparatorComponent(\n index: number,\n info?: ?Object,\n listItemCount: number,\n ): ?React.ComponentType {\n info = info || this._subExtractor(index);\n if (!info) {\n return null;\n }\n const ItemSeparatorComponent =\n info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent;\n const {SectionSeparatorComponent} = this.props;\n const isLastItemInList = index === listItemCount - 1;\n const isLastItemInSection =\n info.index === this.props.getItemCount(info.section.data) - 1;\n if (SectionSeparatorComponent && isLastItemInSection) {\n return SectionSeparatorComponent;\n }\n if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) {\n return ItemSeparatorComponent;\n }\n return null;\n }\n\n _updateHighlightMap: {[string]: (boolean) => void} = {};\n _updatePropsMap: {[string]: void | (boolean => void)} = {};\n _listRef: ?React.ElementRef;\n _captureRef = (ref: null | React$ElementRef>) => {\n this._listRef = ref;\n };\n}\n\ntype ItemWithSeparatorCommonProps = $ReadOnly<{|\n leadingItem: ?Item,\n leadingSection: ?Object,\n section: Object,\n trailingItem: ?Item,\n trailingSection: ?Object,\n|}>;\n\ntype ItemWithSeparatorProps = $ReadOnly<{|\n ...ItemWithSeparatorCommonProps,\n LeadingSeparatorComponent: ?React.ComponentType,\n SeparatorComponent: ?React.ComponentType,\n cellKey: string,\n index: number,\n item: Item,\n setSelfHighlightCallback: (\n cellKey: string,\n updateFn: ?(boolean) => void,\n ) => void,\n setSelfUpdatePropsCallback: (\n cellKey: string,\n updateFn: ?(boolean) => void,\n ) => void,\n prevCellKey?: ?string,\n updateHighlightFor: (prevCellKey: string, value: boolean) => void,\n updatePropsFor: (prevCellKey: string, value: Object) => void,\n renderItem: Function,\n inverted: boolean,\n|}>;\n\nfunction ItemWithSeparator(props: ItemWithSeparatorProps): React.Node {\n const {\n LeadingSeparatorComponent,\n // this is the trailing separator and is associated with this item\n SeparatorComponent,\n cellKey,\n prevCellKey,\n setSelfHighlightCallback,\n updateHighlightFor,\n setSelfUpdatePropsCallback,\n updatePropsFor,\n item,\n index,\n section,\n inverted,\n } = props;\n\n const [leadingSeparatorHiglighted, setLeadingSeparatorHighlighted] =\n React.useState(false);\n\n const [separatorHighlighted, setSeparatorHighlighted] = React.useState(false);\n\n const [leadingSeparatorProps, setLeadingSeparatorProps] = React.useState({\n leadingItem: props.leadingItem,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.item,\n trailingSection: props.trailingSection,\n });\n const [separatorProps, setSeparatorProps] = React.useState({\n leadingItem: props.item,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.trailingItem,\n trailingSection: props.trailingSection,\n });\n\n React.useEffect(() => {\n setSelfHighlightCallback(cellKey, setSeparatorHighlighted);\n // $FlowFixMe[incompatible-call]\n setSelfUpdatePropsCallback(cellKey, setSeparatorProps);\n\n return () => {\n setSelfUpdatePropsCallback(cellKey, null);\n setSelfHighlightCallback(cellKey, null);\n };\n }, [\n cellKey,\n setSelfHighlightCallback,\n setSeparatorProps,\n setSelfUpdatePropsCallback,\n ]);\n\n const separators = {\n highlight: () => {\n setLeadingSeparatorHighlighted(true);\n setSeparatorHighlighted(true);\n if (prevCellKey != null) {\n updateHighlightFor(prevCellKey, true);\n }\n },\n unhighlight: () => {\n setLeadingSeparatorHighlighted(false);\n setSeparatorHighlighted(false);\n if (prevCellKey != null) {\n updateHighlightFor(prevCellKey, false);\n }\n },\n updateProps: (\n select: 'leading' | 'trailing',\n newProps: Partial,\n ) => {\n if (select === 'leading') {\n if (LeadingSeparatorComponent != null) {\n setLeadingSeparatorProps({...leadingSeparatorProps, ...newProps});\n } else if (prevCellKey != null) {\n // update the previous item's separator\n updatePropsFor(prevCellKey, {...leadingSeparatorProps, ...newProps});\n }\n } else if (select === 'trailing' && SeparatorComponent != null) {\n setSeparatorProps({...separatorProps, ...newProps});\n }\n },\n };\n const element = props.renderItem({\n item,\n index,\n section,\n separators,\n });\n const leadingSeparator = LeadingSeparatorComponent != null && (\n \n );\n const separator = SeparatorComponent != null && (\n \n );\n const RenderSeparator = leadingSeparator || separator;\n const firstSeparator = inverted === false ? leadingSeparator : separator;\n const secondSeparator = inverted === false ? separator : leadingSeparator;\n\n return (\n <>\n {RenderSeparator ? firstSeparator : null}\n {element}\n {RenderSeparator ? secondSeparator : null}\n \n );\n}\n\n/* $FlowFixMe[class-object-subtyping] added when improving typing for this\n * parameters */\n// $FlowFixMe[method-unbinding]\nmodule.exports = (VirtualizedSectionList: React.AbstractComponent<\n React.ElementConfig,\n $ReadOnly<{\n getListRef: () => ?React.ElementRef,\n scrollToLocation: (params: ScrollToLocationParamsType) => void,\n ...\n }>,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport Image from '../../Image/Image';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport * as React from 'react';\n\nexport default (createAnimatedComponent(\n (Image: $FlowFixMe),\n): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ImageStyleProp} from '../StyleSheet/StyleSheet';\nimport type {RootTag} from '../Types/RootTagTypes';\nimport type {AbstractImageAndroid, ImageAndroid} from './ImageTypes.flow';\n\nimport flattenStyle from '../StyleSheet/flattenStyle';\nimport StyleSheet from '../StyleSheet/StyleSheet';\nimport TextAncestor from '../Text/TextAncestor';\nimport ImageAnalyticsTagContext from './ImageAnalyticsTagContext';\nimport {\n unstable_getImageComponentDecorator,\n useWrapRefWithImageAttachedCallbacks,\n} from './ImageInjection';\nimport {getImageSourcesFromImageProps} from './ImageSourceUtils';\nimport {convertObjectFitToResizeMode} from './ImageUtils';\nimport ImageViewNativeComponent from './ImageViewNativeComponent';\nimport NativeImageLoaderAndroid, {\n type ImageSize,\n} from './NativeImageLoaderAndroid';\nimport resolveAssetSource from './resolveAssetSource';\nimport TextInlineImageNativeComponent from './TextInlineImageNativeComponent';\nimport * as React from 'react';\n\nlet _requestId = 1;\nfunction generateRequestId() {\n return _requestId++;\n}\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n *\n * See https://reactnative.dev/docs/image#getsize\n */\nfunction getSize(\n url: string,\n success?: (width: number, height: number) => void,\n failure?: (error: mixed) => void,\n): void | Promise {\n const promise = NativeImageLoaderAndroid.getSize(url);\n if (typeof success !== 'function') {\n return promise;\n }\n promise\n .then(sizes => success(sizes.width, sizes.height))\n .catch(\n failure ||\n function () {\n console.warn('Failed to get size for image: ' + url);\n },\n );\n}\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n * with the ability to provide the headers for the request\n *\n * See https://reactnative.dev/docs/image#getsizewithheaders\n */\nfunction getSizeWithHeaders(\n url: string,\n headers: {[string]: string, ...},\n success?: (width: number, height: number) => void,\n failure?: (error: mixed) => void,\n): void | Promise {\n const promise = NativeImageLoaderAndroid.getSizeWithHeaders(url, headers);\n if (typeof success !== 'function') {\n return promise;\n }\n promise\n .then(sizes => success(sizes.width, sizes.height))\n .catch(\n failure ||\n function () {\n console.warn('Failed to get size for image: ' + url);\n },\n );\n}\n\nfunction prefetchWithMetadata(\n url: string,\n queryRootName: string,\n rootTag?: ?RootTag,\n callback: ?(requestId: number) => void,\n): Promise {\n // TODO: T79192300 Log queryRootName and rootTag\n return prefetch(url, callback);\n}\n\nfunction prefetch(\n url: string,\n callback: ?(requestId: number) => void,\n): Promise {\n const requestId = generateRequestId();\n callback && callback(requestId);\n return NativeImageLoaderAndroid.prefetchImage(url, requestId);\n}\n\nfunction abortPrefetch(requestId: number): void {\n NativeImageLoaderAndroid.abortRequest(requestId);\n}\n\n/**\n * Perform cache interrogation.\n *\n * See https://reactnative.dev/docs/image#querycache\n */\nasync function queryCache(\n urls: Array,\n): Promise<{[string]: 'memory' | 'disk' | 'disk/memory', ...}> {\n return NativeImageLoaderAndroid.queryCache(urls);\n}\n\n/**\n * A React component for displaying different types of images,\n * including network images, static resources, temporary local images, and\n * images from local disk, such as the camera roll.\n *\n * See https://reactnative.dev/docs/image\n */\nlet BaseImage: AbstractImageAndroid = React.forwardRef(\n (props, forwardedRef) => {\n let source = getImageSourcesFromImageProps(props) || {\n uri: undefined,\n width: undefined,\n height: undefined,\n };\n const defaultSource = resolveAssetSource(props.defaultSource);\n const loadingIndicatorSource = resolveAssetSource(\n props.loadingIndicatorSource,\n );\n\n if (props.children) {\n throw new Error(\n 'The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.',\n );\n }\n\n if (props.defaultSource != null && props.loadingIndicatorSource != null) {\n throw new Error(\n 'The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.',\n );\n }\n\n let style;\n let sources;\n if (Array.isArray(source)) {\n style = flattenStyle([styles.base, props.style]);\n sources = source;\n } else {\n const {uri} = source;\n const width = source.width ?? props.width;\n const height = source.height ?? props.height;\n style = flattenStyle([\n {width, height},\n styles.base,\n props.style,\n ]);\n sources = [source];\n if (uri === '') {\n console.warn('source.uri should not be an empty string');\n }\n }\n\n const {height, width, ...restProps} = props;\n\n const {onLoadStart, onLoad, onLoadEnd, onError} = props;\n const nativeProps = {\n ...restProps,\n style,\n shouldNotifyLoadEvents: !!(onLoadStart || onLoad || onLoadEnd || onError),\n // Both iOS and C++ sides expect to have \"source\" prop, whereas on Android it's \"src\"\n // (for historical reasons). So in the latter case we populate both \"src\" and \"source\",\n // in order to have a better alignment between platforms in the future.\n src: sources,\n source: sources,\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n headers: (source?.[0]?.headers || source?.headers: ?{[string]: string}),\n defaultSrc: defaultSource ? defaultSource.uri : null,\n loadingIndicatorSrc: loadingIndicatorSource\n ? loadingIndicatorSource.uri\n : null,\n accessibilityLabel:\n props['aria-label'] ?? props.accessibilityLabel ?? props.alt,\n accessibilityLabelledBy:\n props?.['aria-labelledby'] ?? props?.accessibilityLabelledBy,\n accessible: props.alt !== undefined ? true : props.accessible,\n accessibilityState: {\n busy: props['aria-busy'] ?? props.accessibilityState?.busy,\n checked: props['aria-checked'] ?? props.accessibilityState?.checked,\n disabled: props['aria-disabled'] ?? props.accessibilityState?.disabled,\n expanded: props['aria-expanded'] ?? props.accessibilityState?.expanded,\n selected: props['aria-selected'] ?? props.accessibilityState?.selected,\n },\n };\n\n const objectFit = style?.objectFit\n ? convertObjectFitToResizeMode(style.objectFit)\n : null;\n const resizeMode =\n objectFit || props.resizeMode || style?.resizeMode || 'cover';\n\n const actualRef = useWrapRefWithImageAttachedCallbacks(forwardedRef);\n\n return (\n \n {analyticTag => {\n const nativePropsWithAnalytics =\n analyticTag !== null\n ? {\n ...nativeProps,\n internal_analyticTag: analyticTag,\n }\n : nativeProps;\n return (\n \n {hasTextAncestor => {\n if (hasTextAncestor) {\n return (\n \n );\n }\n\n return (\n \n );\n }}\n \n );\n }}\n \n );\n },\n);\n\nconst imageComponentDecorator = unstable_getImageComponentDecorator();\nif (imageComponentDecorator != null) {\n BaseImage = imageComponentDecorator(BaseImage);\n}\n\n// $FlowExpectedError[incompatible-type] Eventually we need to move these functions from statics of the component to exports in the module.\nconst Image: ImageAndroid = BaseImage;\n\nImage.displayName = 'Image';\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n *\n * See https://reactnative.dev/docs/image#getsize\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.getSize = getSize;\n\n/**\n * Retrieve the width and height (in pixels) of an image prior to displaying it\n * with the ability to provide the headers for the request\n *\n * See https://reactnative.dev/docs/image#getsizewithheaders\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.getSizeWithHeaders = getSizeWithHeaders;\n\n/**\n * Prefetches a remote image for later use by downloading it to the disk\n * cache\n *\n * See https://reactnative.dev/docs/image#prefetch\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.prefetch = prefetch;\n\n/**\n * Prefetches a remote image for later use by downloading it to the disk\n * cache, and adds metadata for queryRootName and rootTag.\n *\n * See https://reactnative.dev/docs/image#prefetch\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.prefetchWithMetadata = prefetchWithMetadata;\n\n/**\n * Abort prefetch request.\n *\n * See https://reactnative.dev/docs/image#abortprefetch\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.abortPrefetch = abortPrefetch;\n\n/**\n * Perform cache interrogation.\n *\n * See https://reactnative.dev/docs/image#querycache\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.queryCache = queryCache;\n\n/**\n * Resolves an asset reference into an object.\n *\n * See https://reactnative.dev/docs/image#resolveassetsource\n */\n// $FlowFixMe[incompatible-use] This property isn't writable but we're actually defining it here for the first time.\nImage.resolveAssetSource = resolveAssetSource;\n\nconst styles = StyleSheet.create({\n base: {\n overflow: 'hidden',\n },\n});\n\nmodule.exports = Image;\n","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport * as React from 'react';\n\ntype ContextType = ?string;\n\nconst Context: React.Context =\n React.createContext(null);\n\nif (__DEV__) {\n Context.displayName = 'ImageAnalyticsTagContext';\n}\n\nexport default Context;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../Renderer/shims/ReactNativeTypes';\nimport type {\n ColorValue,\n DangerouslyImpreciseStyle,\n ImageStyleProp,\n} from '../StyleSheet/StyleSheet';\nimport type {ResolvedAssetSource} from './AssetSourceResolver';\nimport type {ImageProps} from './ImageProps';\nimport type {ElementRef} from 'react';\n\nimport * as NativeComponentRegistry from '../NativeComponent/NativeComponentRegistry';\nimport {ConditionallyIgnoredEventHandlers} from '../NativeComponent/ViewConfigIgnore';\nimport codegenNativeCommands from '../Utilities/codegenNativeCommands';\nimport Platform from '../Utilities/Platform';\n\ntype Props = $ReadOnly<{\n ...ImageProps,\n ...ViewProps,\n\n style?: ImageStyleProp | DangerouslyImpreciseStyle,\n\n // iOS native props\n tintColor?: ColorValue,\n\n // Android native props\n shouldNotifyLoadEvents?: boolean,\n src?:\n | ?ResolvedAssetSource\n | ?$ReadOnlyArray>,\n headers?: ?{[string]: string},\n defaultSrc?: ?string,\n loadingIndicatorSrc?: ?string,\n}>;\n\ninterface NativeCommands {\n +setIsVisible_EXPERIMENTAL: (\n viewRef: ElementRef>,\n isVisible: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setIsVisible_EXPERIMENTAL'],\n});\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig =\n Platform.OS === 'android'\n ? {\n uiViewClassName: 'RCTImageView',\n bubblingEventTypes: {},\n directEventTypes: {\n topLoadStart: {\n registrationName: 'onLoadStart',\n },\n topProgress: {\n registrationName: 'onProgress',\n },\n topError: {\n registrationName: 'onError',\n },\n topLoad: {\n registrationName: 'onLoad',\n },\n topLoadEnd: {\n registrationName: 'onLoadEnd',\n },\n },\n validAttributes: {\n blurRadius: true,\n internal_analyticTag: true,\n resizeMethod: true,\n resizeMode: true,\n resizeMultiplier: true,\n tintColor: {\n process: require('../StyleSheet/processColor').default,\n },\n borderBottomLeftRadius: true,\n borderTopLeftRadius: true,\n src: true,\n // NOTE: New Architecture expects this to be called `source`,\n // regardless of the platform, therefore propagate it as well.\n // For the backwards compatibility reasons, we keep both `src`\n // and `source`, which will be identical at this stage.\n source: true,\n borderRadius: true,\n headers: true,\n shouldNotifyLoadEvents: true,\n defaultSrc: true,\n overlayColor: {\n process: require('../StyleSheet/processColor').default,\n },\n borderColor: {\n process: require('../StyleSheet/processColor').default,\n },\n accessible: true,\n progressiveRenderingEnabled: true,\n fadeDuration: true,\n borderBottomRightRadius: true,\n borderTopRightRadius: true,\n loadingIndicatorSrc: true,\n },\n }\n : {\n uiViewClassName: 'RCTImageView',\n bubblingEventTypes: {},\n directEventTypes: {\n topLoadStart: {\n registrationName: 'onLoadStart',\n },\n topProgress: {\n registrationName: 'onProgress',\n },\n topError: {\n registrationName: 'onError',\n },\n topPartialLoad: {\n registrationName: 'onPartialLoad',\n },\n topLoad: {\n registrationName: 'onLoad',\n },\n topLoadEnd: {\n registrationName: 'onLoadEnd',\n },\n },\n validAttributes: {\n blurRadius: true,\n capInsets: {\n diff: require('../Utilities/differ/insetsDiffer'),\n },\n defaultSource: {\n process: require('./resolveAssetSource'),\n },\n internal_analyticTag: true,\n resizeMode: true,\n source: true,\n tintColor: {\n process: require('../StyleSheet/processColor').default,\n },\n ...ConditionallyIgnoredEventHandlers({\n onLoadStart: true,\n onLoad: true,\n onLoadEnd: true,\n onProgress: true,\n onError: true,\n onPartialLoad: true,\n }),\n },\n };\n\nconst ImageViewNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'RCTImageView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\nexport default ImageViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeImageLoaderAndroid';\nimport NativeImageLoaderAndroid from '../../src/private/specs/modules/NativeImageLoaderAndroid';\nexport default NativeImageLoaderAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport type ImageSize = {\n width: number,\n height: number,\n ...\n};\n\nexport interface Spec extends TurboModule {\n +abortRequest: (requestId: number) => void;\n +getConstants: () => {||};\n +getSize: (uri: string) => Promise;\n +getSizeWithHeaders: (uri: string, headers: Object) => Promise;\n +prefetchImage: (uri: string, requestId: number) => Promise;\n +queryCache: (uris: Array) => Promise;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('ImageLoader'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../StyleSheet/StyleSheet';\nimport type {ImageResizeMode} from './ImageResizeMode';\n\nimport * as NativeComponentRegistry from '../NativeComponent/NativeComponentRegistry';\n\ntype NativeProps = $ReadOnly<{\n ...ViewProps,\n resizeMode?: ?ImageResizeMode,\n src?: ?$ReadOnlyArray>,\n tintColor?: ?ColorValue,\n headers?: ?{[string]: string},\n}>;\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {\n uiViewClassName: 'RCTTextInlineImage',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {\n resizeMode: true,\n src: true,\n tintColor: {\n process: require('../StyleSheet/processColor').default,\n },\n headers: true,\n },\n};\n\nconst TextInlineImage: HostComponent =\n NativeComponentRegistry.get(\n 'RCTTextInlineImage',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\nexport default TextInlineImage;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {ResolvedAssetSource} from './AssetSourceResolver';\nimport type {ImageProps} from './ImageProps';\n\nimport resolveAssetSource from './resolveAssetSource';\n\n/**\n * A function which returns the appropriate value for image source\n * by resolving the `source`, `src` and `srcSet` props.\n */\nexport function getImageSourcesFromImageProps(\n imageProps: ImageProps,\n): ?ResolvedAssetSource | $ReadOnlyArray<{uri: string, ...}> {\n let source = resolveAssetSource(imageProps.source);\n\n let sources;\n\n const {crossOrigin, referrerPolicy, src, srcSet, width, height} = imageProps;\n\n const headers: {[string]: string} = {};\n if (crossOrigin === 'use-credentials') {\n headers['Access-Control-Allow-Credentials'] = 'true';\n }\n if (referrerPolicy != null) {\n headers['Referrer-Policy'] = referrerPolicy;\n }\n if (srcSet != null) {\n const sourceList = [];\n const srcSetList = srcSet.split(', ');\n // `src` prop should be used with default scale if `srcSet` does not have 1x scale.\n let shouldUseSrcForDefaultScale = true;\n srcSetList.forEach(imageSrc => {\n const [uri, xScale = '1x'] = imageSrc.split(' ');\n if (!xScale.endsWith('x')) {\n console.warn(\n 'The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.',\n );\n } else {\n const scale = parseInt(xScale.split('x')[0], 10);\n if (!isNaN(scale)) {\n // 1x scale is provided in `srcSet` prop so ignore the `src` prop if provided.\n shouldUseSrcForDefaultScale =\n scale === 1 ? false : shouldUseSrcForDefaultScale;\n sourceList.push({headers: headers, scale, uri, width, height});\n }\n }\n });\n\n if (shouldUseSrcForDefaultScale && src != null) {\n sourceList.push({\n headers: headers,\n scale: 1,\n uri: src,\n width,\n height,\n });\n }\n if (sourceList.length === 0) {\n console.warn('The provided value for srcSet is not valid.');\n }\n\n sources = sourceList;\n } else if (src != null) {\n sources = [{uri: src, headers: headers, width, height}];\n } else {\n sources = source;\n }\n return sources;\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\ntype ResizeMode = 'cover' | 'contain' | 'stretch' | 'repeat' | 'center';\n\nexport function convertObjectFitToResizeMode(objectFit: string): ResizeMode {\n const objectFitMap = {\n contain: 'contain',\n cover: 'cover',\n fill: 'stretch',\n 'scale-down': 'contain',\n };\n // $FlowFixMe[invalid-computed-prop]\n return objectFitMap[objectFit];\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {\n AbstractImageAndroid,\n AbstractImageIOS,\n Image as ImageComponent,\n} from './ImageTypes.flow';\n\nimport useMergeRefs from '../Utilities/useMergeRefs';\nimport * as React from 'react';\nimport {useRef} from 'react';\n\ntype ImageComponentDecorator = (AbstractImageAndroid => AbstractImageAndroid) &\n (AbstractImageIOS => AbstractImageIOS);\n\nlet injectedImageComponentDecorator: ?ImageComponentDecorator;\n\nexport function unstable_setImageComponentDecorator(\n imageComponentDecorator: ?ImageComponentDecorator,\n): void {\n injectedImageComponentDecorator = imageComponentDecorator;\n}\n\nexport function unstable_getImageComponentDecorator(): ?ImageComponentDecorator {\n return injectedImageComponentDecorator;\n}\n\ntype ImageInstance = React.ElementRef;\n\ntype ImageAttachedCallback = (\n imageInstance: ImageInstance,\n) => void | (() => void);\n\nconst imageAttachedCallbacks = new Set();\n\nexport function unstable_registerImageAttachedCallback(\n callback: ImageAttachedCallback,\n): void {\n imageAttachedCallbacks.add(callback);\n}\n\nexport function unstable_unregisterImageAttachedCallback(\n callback: ImageAttachedCallback,\n): void {\n imageAttachedCallbacks.delete(callback);\n}\n\nexport function useWrapRefWithImageAttachedCallbacks(\n forwardedRef: React.RefSetter,\n): React.RefSetter {\n const pendingCleanupCallbacks = useRef void>>([]);\n\n const imageAttachedCallbacksRef =\n useRef void>(null);\n\n if (imageAttachedCallbacksRef.current == null) {\n imageAttachedCallbacksRef.current = (node: ImageInstance | null): void => {\n if (node == null) {\n if (pendingCleanupCallbacks.current.length > 0) {\n pendingCleanupCallbacks.current.forEach(cb => cb());\n pendingCleanupCallbacks.current = [];\n }\n } else {\n imageAttachedCallbacks.forEach(imageAttachedCallback => {\n const maybeCleanupCallback = imageAttachedCallback(node);\n if (maybeCleanupCallback != null) {\n pendingCleanupCallbacks.current.push(maybeCleanupCallback);\n }\n });\n }\n };\n }\n\n // `useMergeRefs` returns a stable ref if its arguments don't change.\n return useMergeRefs(\n forwardedRef,\n imageAttachedCallbacksRef.current,\n );\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {____ViewStyle_Internal} from '../../StyleSheet/StyleSheetTypes';\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport RefreshControl from '../../Components/RefreshControl/RefreshControl';\nimport ScrollView from '../../Components/ScrollView/ScrollView';\nimport flattenStyle from '../../StyleSheet/flattenStyle';\nimport splitLayoutProps from '../../StyleSheet/splitLayoutProps';\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport useMergeRefs from '../../Utilities/useMergeRefs';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport useAnimatedProps from '../useAnimatedProps';\nimport * as React from 'react';\nimport {useMemo} from 'react';\n\ntype Props = React.ElementConfig;\ntype Instance = React.ElementRef;\n\n/**\n * @see https://github.com/facebook/react-native/commit/b8c8562\n */\nconst AnimatedScrollView: AnimatedComponentType =\n React.forwardRef(\n function AnimatedScrollViewWithOrWithoutInvertedRefreshControl(\n props,\n forwardedRef,\n ) {\n // (Android only) When a ScrollView has a RefreshControl and\n // any `style` property set with an Animated.Value, the CSS\n // gets incorrectly applied twice. This is because ScrollView\n // swaps the parent/child relationship of itself and the\n // RefreshControl component (see ScrollView.js for more details).\n if (\n Platform.OS === 'android' &&\n props.refreshControl != null &&\n props.style != null\n ) {\n return (\n \n );\n } else {\n return (\n \n );\n }\n },\n );\n\nconst AnimatedScrollViewWithInvertedRefreshControl = React.forwardRef(\n // $FlowFixMe[incompatible-call]\n function AnimatedScrollViewWithInvertedRefreshControl(\n props: {\n ...React.ElementConfig,\n // $FlowFixMe[unclear-type] Same Flow type as `refreshControl` in ScrollView\n refreshControl: React.Element,\n },\n forwardedRef:\n | {current: Instance | null, ...}\n | ((Instance | null) => mixed),\n ) {\n // Split `props` into the animate-able props for the parent (RefreshControl)\n // and child (ScrollView).\n const {intermediatePropsForRefreshControl, intermediatePropsForScrollView} =\n useMemo(() => {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n // $FlowFixMe[incompatible-call]\n const {outer, inner} = splitLayoutProps(flattenStyle(props.style));\n return {\n intermediatePropsForRefreshControl: {style: outer},\n intermediatePropsForScrollView: {...props, style: inner},\n };\n }, [props]);\n\n // Handle animated props on `refreshControl`.\n const [refreshControlAnimatedProps, refreshControlRef] = useAnimatedProps<\n {style: ?____ViewStyle_Internal},\n $FlowFixMe,\n >(intermediatePropsForRefreshControl);\n // NOTE: Assumes that refreshControl.ref` and `refreshControl.style` can be\n // safely clobbered.\n const refreshControl: React.Element =\n React.cloneElement(props.refreshControl, {\n ...refreshControlAnimatedProps,\n ref: refreshControlRef,\n });\n\n // Handle animated props on `NativeDirectionalScrollView`.\n const [scrollViewAnimatedProps, scrollViewRef] = useAnimatedProps<\n Props,\n Instance,\n >(intermediatePropsForScrollView);\n const ref = useMergeRefs(scrollViewRef, forwardedRef);\n\n return (\n // $FlowFixMe[incompatible-use] Investigate useAnimatedProps return value\n \n );\n },\n);\n\nconst AnimatedScrollViewWithoutInvertedRefreshControl =\n createAnimatedComponent(ScrollView);\n\nexport default AnimatedScrollView;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nimport AndroidSwipeRefreshLayoutNativeComponent, {\n Commands as AndroidSwipeRefreshLayoutCommands,\n} from './AndroidSwipeRefreshLayoutNativeComponent';\nimport PullToRefreshViewNativeComponent, {\n Commands as PullToRefreshCommands,\n} from './PullToRefreshViewNativeComponent';\n\nconst Platform = require('../../Utilities/Platform');\nconst React = require('react');\n\ntype IOSProps = $ReadOnly<{|\n /**\n * The color of the refresh indicator.\n */\n tintColor?: ?ColorValue,\n /**\n * Title color.\n */\n titleColor?: ?ColorValue,\n /**\n * The title displayed under the refresh indicator.\n */\n title?: ?string,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Whether the pull to refresh functionality is enabled.\n */\n enabled?: ?boolean,\n /**\n * The colors (at least one) that will be used to draw the refresh indicator.\n */\n colors?: ?$ReadOnlyArray,\n /**\n * The background color of the refresh indicator.\n */\n progressBackgroundColor?: ?ColorValue,\n /**\n * Size of the refresh indicator.\n */\n size?: ?('default' | 'large'),\n|}>;\n\nexport type RefreshControlProps = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?() => void | Promise,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n\n /**\n * Progress view top offset\n */\n progressViewOffset?: ?number,\n|}>;\n\n/**\n * This component is used inside a ScrollView or ListView to add pull to refresh\n * functionality. When the ScrollView is at `scrollY: 0`, swiping down\n * triggers an `onRefresh` event.\n *\n * ### Usage example\n *\n * ``` js\n * class RefreshableList extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * refreshing: false,\n * };\n * }\n *\n * _onRefresh() {\n * this.setState({refreshing: true});\n * fetchData().then(() => {\n * this.setState({refreshing: false});\n * });\n * }\n *\n * render() {\n * return (\n * \n * }\n * ...\n * >\n * ...\n * \n * );\n * }\n * ...\n * }\n * ```\n *\n * __Note:__ `refreshing` is a controlled prop, this is why it needs to be set to true\n * in the `onRefresh` function otherwise the refresh indicator will stop immediately.\n */\nclass RefreshControl extends React.Component {\n _nativeRef: ?React.ElementRef<\n | typeof PullToRefreshViewNativeComponent\n | typeof AndroidSwipeRefreshLayoutNativeComponent,\n >;\n _lastNativeRefreshing = false;\n\n componentDidMount() {\n this._lastNativeRefreshing = this.props.refreshing;\n }\n\n componentDidUpdate(prevProps: RefreshControlProps) {\n // RefreshControl is a controlled component so if the native refreshing\n // value doesn't match the current js refreshing prop update it to\n // the js value.\n if (this.props.refreshing !== prevProps.refreshing) {\n this._lastNativeRefreshing = this.props.refreshing;\n } else if (\n this.props.refreshing !== this._lastNativeRefreshing &&\n this._nativeRef\n ) {\n if (Platform.OS === 'android') {\n AndroidSwipeRefreshLayoutCommands.setNativeRefreshing(\n this._nativeRef,\n this.props.refreshing,\n );\n } else {\n PullToRefreshCommands.setNativeRefreshing(\n this._nativeRef,\n this.props.refreshing,\n );\n }\n this._lastNativeRefreshing = this.props.refreshing;\n }\n }\n\n render(): React.Node {\n if (Platform.OS === 'ios') {\n const {enabled, colors, progressBackgroundColor, size, ...props} =\n this.props;\n return (\n \n );\n } else {\n const {tintColor, titleColor, title, ...props} = this.props;\n return (\n \n );\n }\n }\n\n _onRefresh = () => {\n this._lastNativeRefreshing = true;\n\n // $FlowFixMe[unused-promise]\n this.props.onRefresh && this.props.onRefresh();\n\n // The native component will start refreshing so force an update to\n // make sure it stays in sync with the js component.\n this.forceUpdate();\n };\n\n _setNativeRef = (\n ref: ?React.ElementRef<\n | typeof PullToRefreshViewNativeComponent\n | typeof AndroidSwipeRefreshLayoutNativeComponent,\n >,\n ) => {\n this._nativeRef = ref;\n };\n}\n\nmodule.exports = RefreshControl;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/AndroidSwipeRefreshLayoutNativeComponent';\nimport AndroidSwipeRefreshLayoutNativeComponent from '../../../src/private/specs/components/AndroidSwipeRefreshLayoutNativeComponent';\nexport default AndroidSwipeRefreshLayoutNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\nimport type {\n DirectEventHandler,\n Float,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\nimport * as React from 'react';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Whether the pull to refresh functionality is enabled.\n */\n enabled?: WithDefault,\n /**\n * The colors (at least one) that will be used to draw the refresh indicator.\n */\n colors?: ?$ReadOnlyArray,\n /**\n * The background color of the refresh indicator.\n */\n progressBackgroundColor?: ?ColorValue,\n /**\n * Size of the refresh indicator.\n */\n size?: WithDefault<'default' | 'large', 'default'>,\n /**\n * Progress view top offset\n */\n progressViewOffset?: WithDefault,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?DirectEventHandler,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeRefreshing: (\n viewRef: React.ElementRef,\n value: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeRefreshing'],\n});\n\nexport default (codegenNativeComponent(\n 'AndroidSwipeRefreshLayout',\n): NativeType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/PullToRefreshViewNativeComponent';\nimport PullToRefreshViewNativeComponent from '../../../src/private/specs/components/PullToRefreshViewNativeComponent';\nexport default PullToRefreshViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\nimport type {\n DirectEventHandler,\n Float,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\nimport * as React from 'react';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The color of the refresh indicator.\n */\n tintColor?: ?ColorValue,\n /**\n * Title color.\n */\n titleColor?: ?ColorValue,\n /**\n * The title displayed under the refresh indicator.\n */\n title?: WithDefault,\n /**\n * Progress view top offset\n */\n progressViewOffset?: WithDefault,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?DirectEventHandler,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +setNativeRefreshing: (\n viewRef: React.ElementRef,\n refreshing: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeRefreshing'],\n});\n\nexport default (codegenNativeComponent('PullToRefreshView', {\n paperComponentName: 'RCTRefreshControl',\n excludedPlatforms: ['android'],\n}): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {PointProp} from '../../StyleSheet/PointPropType';\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {\n LayoutEvent,\n PressEvent,\n ScrollEvent,\n} from '../../Types/CoreEventTypes';\nimport type {EventSubscription} from '../../vendor/emitter/EventEmitter';\nimport type {KeyboardEvent, KeyboardMetrics} from '../Keyboard/Keyboard';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {Props as ScrollViewStickyHeaderProps} from './ScrollViewStickyHeader';\n\nimport AnimatedImplementation from '../../Animated/AnimatedImplementation';\nimport FrameRateLogger from '../../Interaction/FrameRateLogger';\nimport {findNodeHandle} from '../../ReactNative/RendererProxy';\nimport UIManager from '../../ReactNative/UIManager';\nimport flattenStyle from '../../StyleSheet/flattenStyle';\nimport splitLayoutProps from '../../StyleSheet/splitLayoutProps';\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport Dimensions from '../../Utilities/Dimensions';\nimport dismissKeyboard from '../../Utilities/dismissKeyboard';\nimport Platform from '../../Utilities/Platform';\nimport EventEmitter from '../../vendor/emitter/EventEmitter';\nimport Keyboard from '../Keyboard/Keyboard';\nimport TextInputState from '../TextInput/TextInputState';\nimport View from '../View/View';\nimport AndroidHorizontalScrollContentViewNativeComponent from './AndroidHorizontalScrollContentViewNativeComponent';\nimport AndroidHorizontalScrollViewNativeComponent from './AndroidHorizontalScrollViewNativeComponent';\nimport processDecelerationRate from './processDecelerationRate';\nimport ScrollContentViewNativeComponent from './ScrollContentViewNativeComponent';\nimport Commands from './ScrollViewCommands';\nimport ScrollViewContext, {HORIZONTAL, VERTICAL} from './ScrollViewContext';\nimport ScrollViewNativeComponent from './ScrollViewNativeComponent';\nimport ScrollViewStickyHeader from './ScrollViewStickyHeader';\nimport invariant from 'invariant';\nimport memoize from 'memoize-one';\nimport nullthrows from 'nullthrows';\nimport * as React from 'react';\n\nif (Platform.OS === 'ios') {\n require('../../Renderer/shims/ReactNative'); // Force side effects to prevent T55744311\n}\n\nconst {NativeHorizontalScrollViewTuple, NativeVerticalScrollViewTuple} =\n Platform.OS === 'android'\n ? {\n NativeHorizontalScrollViewTuple: [\n AndroidHorizontalScrollViewNativeComponent,\n AndroidHorizontalScrollContentViewNativeComponent,\n ],\n NativeVerticalScrollViewTuple: [ScrollViewNativeComponent, View],\n }\n : {\n NativeHorizontalScrollViewTuple: [\n ScrollViewNativeComponent,\n ScrollContentViewNativeComponent,\n ],\n NativeVerticalScrollViewTuple: [\n ScrollViewNativeComponent,\n ScrollContentViewNativeComponent,\n ],\n };\n\n/*\n * iOS scroll event timing nuances:\n * ===============================\n *\n *\n * Scrolling without bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... physical touch starts ...\n * 2. `onTouchStartCapture` (when you press down to stop the scroll)\n * 3. `onTouchStart` (same, but bubble phase)\n * 4. `onResponderRelease` (when lifting up - you could pause forever before * lifting)\n * 5. `onMomentumScrollEnd`\n *\n *\n * Scrolling with bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... bounce begins ...\n * ... some time elapses ...\n * ... physical touch during bounce ...\n * 2. `onMomentumScrollEnd` (Makes no sense why this occurs first during bounce)\n * 3. `onTouchStartCapture` (immediately after `onMomentumScrollEnd`)\n * 4. `onTouchStart` (same, but bubble phase)\n * 5. `onTouchEnd` (You could hold the touch start for a long time)\n * 6. `onMomentumScrollBegin` (When releasing the view starts bouncing back)\n *\n * So when we receive an `onTouchStart`, how can we tell if we are touching\n * *during* an animation (which then causes the animation to stop)? The only way\n * to tell is if the `touchStart` occurred immediately after the\n * `onMomentumScrollEnd`.\n *\n * This is abstracted out for you, so you can just call this.scrollResponderIsAnimating() if\n * necessary\n *\n * `ScrollView` also includes logic for blurring a currently focused input\n * if one is focused while scrolling. This is a natural place\n * to put this logic since it can support not dismissing the keyboard while\n * scrolling, unless a recognized \"tap\"-like gesture has occurred.\n *\n * The public lifecycle API includes events for keyboard interaction, responder\n * interaction, and scrolling (among others). The keyboard callbacks\n * `onKeyboardWill/Did/*` are *global* events, but are invoked on scroll\n * responder's props so that you can guarantee that the scroll responder's\n * internal state has been updated accordingly (and deterministically) by\n * the time the props callbacks are invoke. Otherwise, you would always wonder\n * if the scroll responder is currently in a state where it recognizes new\n * keyboard positions etc. If coordinating scrolling with keyboard movement,\n * *always* use these hooks instead of listening to your own global keyboard\n * events.\n *\n * Public keyboard lifecycle API: (props callbacks)\n *\n * Standard Keyboard Appearance Sequence:\n *\n * this.props.onKeyboardWillShow\n * this.props.onKeyboardDidShow\n *\n * `onScrollResponderKeyboardDismissed` will be invoked if an appropriate\n * tap inside the scroll responder's scrollable region was responsible\n * for the dismissal of the keyboard. There are other reasons why the\n * keyboard could be dismissed.\n *\n * this.props.onScrollResponderKeyboardDismissed\n *\n * Standard Keyboard Hide Sequence:\n *\n * this.props.onKeyboardWillHide\n * this.props.onKeyboardDidHide\n */\n\n// Public methods for ScrollView\nexport type ScrollViewImperativeMethods = $ReadOnly<{|\n getScrollResponder: $PropertyType,\n getScrollableNode: $PropertyType,\n getInnerViewNode: $PropertyType,\n getInnerViewRef: $PropertyType,\n getNativeScrollRef: $PropertyType,\n scrollTo: $PropertyType,\n scrollToEnd: $PropertyType,\n flashScrollIndicators: $PropertyType,\n scrollResponderZoomTo: $PropertyType,\n scrollResponderScrollNativeHandleToKeyboard: $PropertyType<\n ScrollView,\n 'scrollResponderScrollNativeHandleToKeyboard',\n >,\n|}>;\n\nexport type DecelerationRateType = 'fast' | 'normal' | number;\nexport type ScrollResponderType = ScrollViewImperativeMethods;\n\ntype NativeScrollViewInstance = React.ElementRef>;\ntype PublicScrollViewInstance = $ReadOnly<{|\n ...$Exact,\n ...ScrollViewImperativeMethods,\n|}>;\n\ntype InnerViewInstance = React.ElementRef;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Controls whether iOS should automatically adjust the content inset\n * for scroll views that are placed behind a navigation bar or\n * tab bar/ toolbar. The default value is true.\n * @platform ios\n */\n automaticallyAdjustContentInsets?: ?boolean,\n /**\n * Controls whether the ScrollView should automatically adjust its `contentInset`\n * and `scrollViewInsets` when the Keyboard changes its size. The default value is false.\n * @platform ios\n */\n automaticallyAdjustKeyboardInsets?: ?boolean,\n /**\n * Controls whether iOS should automatically adjust the scroll indicator\n * insets. The default value is true. Available on iOS 13 and later.\n * @platform ios\n */\n automaticallyAdjustsScrollIndicatorInsets?: ?boolean,\n /**\n * The amount by which the scroll view content is inset from the edges\n * of the scroll view. Defaults to `{top: 0, left: 0, bottom: 0, right: 0}`.\n * @platform ios\n */\n contentInset?: ?EdgeInsetsProp,\n /**\n * When true, the scroll view bounces when it reaches the end of the\n * content if the content is larger then the scroll view along the axis of\n * the scroll direction. When false, it disables all bouncing even if\n * the `alwaysBounce*` props are true. The default value is true.\n * @platform ios\n */\n bounces?: ?boolean,\n /**\n * By default, ScrollView has an active pan responder that hijacks panresponders\n * deeper in the render tree in order to prevent accidental touches while scrolling.\n * However, in certain occasions (such as when using snapToInterval) in a vertical scrollview\n * You may want to disable this behavior in order to prevent the ScrollView from blocking touches\n */\n disableScrollViewPanResponder?: ?boolean,\n /**\n * When true, gestures can drive zoom past min/max and the zoom will animate\n * to the min/max value at gesture end, otherwise the zoom will not exceed\n * the limits.\n * @platform ios\n */\n bouncesZoom?: ?boolean,\n /**\n * When true, the scroll view bounces horizontally when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is true when `horizontal={true}` and false otherwise.\n * @platform ios\n */\n alwaysBounceHorizontal?: ?boolean,\n /**\n * When true, the scroll view bounces vertically when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is false when `horizontal={true}` and true otherwise.\n * @platform ios\n */\n alwaysBounceVertical?: ?boolean,\n /**\n * When true, the scroll view automatically centers the content when the\n * content is smaller than the scroll view bounds; when the content is\n * larger than the scroll view, this property has no effect. The default\n * value is false.\n * @platform ios\n */\n centerContent?: ?boolean,\n /**\n * The style of the scroll indicators.\n *\n * - `'default'` (the default), same as `black`.\n * - `'black'`, scroll indicator is black. This style is good against a light background.\n * - `'white'`, scroll indicator is white. This style is good against a dark background.\n *\n * @platform ios\n */\n indicatorStyle?: ?('default' | 'black' | 'white'),\n /**\n * When true, the ScrollView will try to lock to only vertical or horizontal\n * scrolling while dragging. The default value is false.\n * @platform ios\n */\n directionalLockEnabled?: ?boolean,\n /**\n * When false, once tracking starts, won't try to drag if the touch moves.\n * The default value is true.\n * @platform ios\n */\n canCancelContentTouches?: ?boolean,\n /**\n * The maximum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n maximumZoomScale?: ?number,\n /**\n * The minimum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n minimumZoomScale?: ?number,\n /**\n * When true, ScrollView allows use of pinch gestures to zoom in and out.\n * The default value is true.\n * @platform ios\n */\n pinchGestureEnabled?: ?boolean,\n /**\n * The amount by which the scroll view indicators are inset from the edges\n * of the scroll view. This should normally be set to the same value as\n * the `contentInset`. Defaults to `{0, 0, 0, 0}`.\n * @platform ios\n */\n scrollIndicatorInsets?: ?EdgeInsetsProp,\n /**\n * When true, the scroll view can be programmatically scrolled beyond its\n * content size. The default value is false.\n * @platform ios\n */\n scrollToOverflowEnabled?: ?boolean,\n /**\n * When true, the scroll view scrolls to top when the status bar is tapped.\n * The default value is true.\n * @platform ios\n */\n scrollsToTop?: ?boolean,\n /**\n * Fires when the scroll view scrolls to top after the status bar has been tapped\n * @platform ios\n */\n onScrollToTop?: (event: ScrollEvent) => void,\n /**\n * When true, shows a horizontal scroll indicator.\n * The default value is true.\n */\n showsHorizontalScrollIndicator?: ?boolean,\n /**\n * The current scale of the scroll view content. The default value is 1.0.\n * @platform ios\n */\n zoomScale?: ?number,\n /**\n * This property specifies how the safe area insets are used to modify the\n * content area of the scroll view. The default value of this property is\n * \"never\". Available on iOS 11 and later.\n * @platform ios\n */\n contentInsetAdjustmentBehavior?: ?(\n | 'automatic'\n | 'scrollableAxes'\n | 'never'\n | 'always'\n ),\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Enables nested scrolling for Android API level 21+.\n * Nested scrolling is supported by default on iOS\n * @platform android\n */\n nestedScrollEnabled?: ?boolean,\n /**\n * Sometimes a scrollview takes up more space than its content fills. When this is\n * the case, this prop will fill the rest of the scrollview with a color to avoid setting\n * a background and creating unnecessary overdraw. This is an advanced optimization\n * that is not needed in the general case.\n * @platform android\n */\n endFillColor?: ?ColorValue,\n /**\n * Tag used to log scroll performance on this scroll view. Will force\n * momentum events to be turned on (see sendMomentumEvents). This doesn't do\n * anything out of the box and you need to implement a custom native\n * FpsListener for it to be useful.\n * @platform android\n */\n scrollPerfTag?: ?string,\n /**\n * Used to override default value of overScroll mode.\n *\n * Possible values:\n *\n * - `'auto'` - Default value, allow a user to over-scroll\n * this view only if the content is large enough to meaningfully scroll.\n * - `'always'` - Always allow a user to over-scroll this view.\n * - `'never'` - Never allow a user to over-scroll this view.\n *\n * @platform android\n */\n overScrollMode?: ?('auto' | 'always' | 'never'),\n /**\n * Causes the scrollbars not to turn transparent when they are not in use.\n * The default value is false.\n *\n * @platform android\n */\n persistentScrollbar?: ?boolean,\n /**\n * Fades out the edges of the scroll content.\n *\n * If the value is greater than 0, the fading edges will be set accordingly\n * to the current scroll direction and position,\n * indicating if there is more content to show.\n *\n * The default value is 0.\n *\n * @platform android\n */\n fadingEdgeLength?: ?number,\n|}>;\n\ntype StickyHeaderComponentType = React.AbstractComponent<\n ScrollViewStickyHeaderProps,\n $ReadOnly void}>,\n>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * These styles will be applied to the scroll view content container which\n * wraps all of the child views. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ...\n * const styles = StyleSheet.create({\n * contentContainer: {\n * paddingVertical: 20\n * }\n * });\n * ```\n */\n contentContainerStyle?: ?ViewStyleProp,\n /**\n * Used to manually set the starting scroll offset.\n * The default value is `{x: 0, y: 0}`.\n */\n contentOffset?: ?PointProp,\n /**\n * When true, the scroll view stops on the next index (in relation to scroll\n * position at release) regardless of how fast the gesture is. This can be\n * used for pagination when the page is less than the width of the\n * horizontal ScrollView or the height of the vertical ScrollView. The default value is false.\n */\n disableIntervalMomentum?: ?boolean,\n /**\n * A floating-point number that determines how quickly the scroll view\n * decelerates after the user lifts their finger. You may also use string\n * shortcuts `\"normal\"` and `\"fast\"` which match the underlying iOS settings\n * for `UIScrollViewDecelerationRateNormal` and\n * `UIScrollViewDecelerationRateFast` respectively.\n *\n * - `'normal'`: 0.998 on iOS, 0.985 on Android (the default)\n * - `'fast'`: 0.99 on iOS, 0.9 on Android\n */\n decelerationRate?: ?DecelerationRateType,\n\n /**\n * *Experimental, iOS Only*. The API is experimental and will change in future releases.\n *\n * Controls how much distance is travelled after user stops scrolling.\n * Value greater than 1 will increase the distance travelled.\n * Value less than 1 will decrease the distance travelled.\n *\n * @deprecated\n *\n * The default value is 1.\n */\n experimental_endDraggingSensitivityMultiplier?: ?number,\n\n /**\n * When true, the scroll view's children are arranged horizontally in a row\n * instead of vertically in a column. The default value is false.\n */\n horizontal?: ?boolean,\n /**\n * If sticky headers should stick at the bottom instead of the top of the\n * ScrollView. This is usually used with inverted ScrollViews.\n */\n invertStickyHeaders?: ?boolean,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n *\n * *Cross platform*\n *\n * - `'none'` (the default), drags do not dismiss the keyboard.\n * - `'on-drag'`, the keyboard is dismissed when a drag begins.\n *\n * *iOS Only*\n *\n * - `'interactive'`, the keyboard is dismissed interactively with the drag and moves in\n * synchrony with the touch; dragging upwards cancels the dismissal.\n * On android this is not supported and it will have the same behavior as 'none'.\n */\n keyboardDismissMode?: ?// default\n // cross-platform\n ('none' | 'on-drag' | 'interactive'), // ios only\n /**\n * Determines when the keyboard should stay visible after a tap.\n *\n * - `'never'` (the default), tapping outside of the focused text input when the keyboard\n * is up dismisses the keyboard. When this happens, children won't receive the tap.\n * - `'always'`, the keyboard will not dismiss automatically, and the scroll view will not\n * catch taps, but children of the scroll view can catch taps.\n * - `'handled'`, the keyboard will not dismiss automatically when the tap was handled by\n * a children, (or captured by an ancestor).\n * - `false`, deprecated, use 'never' instead\n * - `true`, deprecated, use 'always' instead\n */\n keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | true | false),\n /**\n * When set, the scroll view will adjust the scroll position so that the first child that is\n * partially or fully visible and at or beyond `minIndexForVisible` will not change position.\n * This is useful for lists that are loading content in both directions, e.g. a chat thread,\n * where new messages coming in might otherwise cause the scroll position to jump. A value of 0\n * is common, but other values such as 1 can be used to skip loading spinners or other content\n * that should not maintain position.\n *\n * The optional `autoscrollToTopThreshold` can be used to make the content automatically scroll\n * to the top after making the adjustment if the user was within the threshold of the top before\n * the adjustment was made. This is also useful for chat-like applications where you want to see\n * new messages scroll into place, but not if the user has scrolled up a ways and it would be\n * disruptive to scroll a bunch.\n *\n * Caveat 1: Reordering elements in the scrollview with this enabled will probably cause\n * jumpiness and jank. It can be fixed, but there are currently no plans to do so. For now,\n * don't re-order the content of any ScrollViews or Lists that use this feature.\n *\n * Caveat 2: This simply uses `contentOffset` and `frame.origin` in native code to compute\n * visibility. Occlusion, transforms, and other complexity won't be taken into account as to\n * whether content is \"visible\" or not.\n *\n */\n maintainVisibleContentPosition?: ?$ReadOnly<{|\n minIndexForVisible: number,\n autoscrollToTopThreshold?: ?number,\n |}>,\n /**\n * Called when the momentum scroll starts (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollBegin?: ?(event: ScrollEvent) => void,\n /**\n * Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollEnd?: ?(event: ScrollEvent) => void,\n\n /**\n * Fires at most once per frame during scrolling.\n */\n onScroll?: ?(event: ScrollEvent) => void,\n /**\n * Called when the user begins to drag the scroll view.\n */\n onScrollBeginDrag?: ?(event: ScrollEvent) => void,\n /**\n * Called when the user stops dragging the scroll view and it either stops\n * or begins to glide.\n */\n onScrollEndDrag?: ?(event: ScrollEvent) => void,\n /**\n * Called when scrollable content view of the ScrollView changes.\n *\n * Handler function is passed the content width and content height as parameters:\n * `(contentWidth, contentHeight)`\n *\n * It's implemented using onLayout handler attached to the content container\n * which this ScrollView renders.\n */\n onContentSizeChange?: (contentWidth: number, contentHeight: number) => void,\n onKeyboardDidShow?: (event: KeyboardEvent) => void,\n onKeyboardDidHide?: (event: KeyboardEvent) => void,\n onKeyboardWillShow?: (event: KeyboardEvent) => void,\n onKeyboardWillHide?: (event: KeyboardEvent) => void,\n /**\n * When true, the scroll view stops on multiples of the scroll view's size\n * when scrolling. This can be used for horizontal pagination. The default\n * value is false.\n */\n pagingEnabled?: ?boolean,\n /**\n * When false, the view cannot be scrolled via touch interaction.\n * The default value is true.\n *\n * Note that the view can always be scrolled by calling `scrollTo`.\n */\n scrollEnabled?: ?boolean,\n /**\n * Limits how often scroll events will be fired while scrolling, specified as\n * a time interval in ms. This may be useful when expensive work is performed\n * in response to scrolling. Values <= `16` will disable throttling,\n * regardless of the refresh rate of the device.\n */\n scrollEventThrottle?: ?number,\n /**\n * When true, shows a vertical scroll indicator.\n * The default value is true.\n */\n showsVerticalScrollIndicator?: ?boolean,\n /**\n * When true, Sticky header is hidden when scrolling down, and dock at the top\n * when scrolling up\n */\n stickyHeaderHiddenOnScroll?: ?boolean,\n /**\n * An array of child indices determining which children get docked to the\n * top of the screen when scrolling. For example, passing\n * `stickyHeaderIndices={[0]}` will cause the first child to be fixed to the\n * top of the scroll view. This property is not supported in conjunction\n * with `horizontal={true}`.\n */\n stickyHeaderIndices?: ?$ReadOnlyArray,\n /**\n * A React Component that will be used to render sticky headers.\n * To be used together with `stickyHeaderIndices` or with `SectionList`, defaults to `ScrollViewStickyHeader`.\n * You may need to set this if your sticky header uses custom transforms (eg. translation),\n * for example when you want your list to have an animated hidable header.\n */\n StickyHeaderComponent?: StickyHeaderComponentType,\n /**\n * When `snapToInterval` is set, `snapToAlignment` will define the relationship\n * of the snapping to the scroll view.\n *\n * - `'start'` (the default) will align the snap at the left (horizontal) or top (vertical)\n * - `'center'` will align the snap in the center\n * - `'end'` will align the snap at the right (horizontal) or bottom (vertical)\n */\n snapToAlignment?: ?('start' | 'center' | 'end'),\n /**\n * When set, causes the scroll view to stop at multiples of the value of\n * `snapToInterval`. This can be used for paginating through children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `snapToAlignment` and `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` prop.\n */\n snapToInterval?: ?number,\n /**\n * When set, causes the scroll view to stop at the defined offsets.\n * This can be used for paginating through variously sized children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` and `snapToInterval` props.\n */\n snapToOffsets?: ?$ReadOnlyArray,\n /**\n * Use in conjunction with `snapToOffsets`. By default, the beginning\n * of the list counts as a snap offset. Set `snapToStart` to false to disable\n * this behavior and allow the list to scroll freely between its start and\n * the first `snapToOffsets` offset.\n * The default value is true.\n */\n snapToStart?: ?boolean,\n /**\n * Use in conjunction with `snapToOffsets`. By default, the end\n * of the list counts as a snap offset. Set `snapToEnd` to false to disable\n * this behavior and allow the list to scroll freely between its end and\n * the last `snapToOffsets` offset.\n * The default value is true.\n */\n snapToEnd?: ?boolean,\n /**\n * Experimental: When true, offscreen child views (whose `overflow` value is\n * `hidden`) are removed from their native backing superview when offscreen.\n * This can improve scrolling performance on long lists. The default value is\n * true.\n */\n removeClippedSubviews?: ?boolean,\n /**\n * A RefreshControl component, used to provide pull-to-refresh\n * functionality for the ScrollView. Only works for vertical ScrollViews\n * (`horizontal` prop must be `false`).\n *\n * See [RefreshControl](docs/refreshcontrol.html).\n */\n /* $FlowFixMe[unclear-type] - how to handle generic type without existential\n * operator? */\n refreshControl?: ?React.Element,\n children?: React.Node,\n /**\n * A ref to the inner View element of the ScrollView. This should be used\n * instead of calling `getInnerViewRef`.\n */\n innerViewRef?: ForwardedRef,\n /**\n * A ref to the Native ScrollView component. This ref can be used to call\n * all of ScrollView's public methods, in addition to native methods like\n * measure, measureLayout, etc.\n */\n scrollViewRef?: ForwardedRef,\n|}>;\n\ntype State = {|\n layoutHeight: ?number,\n onScrollEmitter: ?EventEmitter<{\n scroll: [{x: number, y: number}],\n }>,\n|};\n\nconst IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;\n\nexport type ScrollViewComponentStatics = $ReadOnly<{|\n Context: typeof ScrollViewContext,\n|}>;\n\n/**\n * Component that wraps platform ScrollView while providing\n * integration with touch locking \"responder\" system.\n *\n * Keep in mind that ScrollViews must have a bounded height in order to work,\n * since they contain unbounded-height children into a bounded container (via\n * a scroll interaction). In order to bound the height of a ScrollView, either\n * set the height of the view directly (discouraged) or make sure all parent\n * views have bounded height. Forgetting to transfer `{flex: 1}` down the\n * view stack can lead to errors here, which the element inspector makes\n * easy to debug.\n *\n * Doesn't yet support other contained responders from blocking this scroll\n * view from becoming the responder.\n *\n *\n * `` vs [``](https://reactnative.dev/docs/flatlist) - which one to use?\n *\n * `ScrollView` simply renders all its react child components at once. That\n * makes it very easy to understand and use.\n *\n * On the other hand, this has a performance downside. Imagine you have a very\n * long list of items you want to display, maybe several screens worth of\n * content. Creating JS components and native views for everything all at once,\n * much of which may not even be shown, will contribute to slow rendering and\n * increased memory usage.\n *\n * This is where `FlatList` comes into play. `FlatList` renders items lazily,\n * just when they are about to appear, and removes items that scroll way off\n * screen to save memory and processing time.\n *\n * `FlatList` is also handy if you want to render separators between your items,\n * multiple columns, infinite scroll loading, or any number of other features it\n * supports out of the box.\n */\nclass ScrollView extends React.Component {\n static Context: typeof ScrollViewContext = ScrollViewContext;\n\n constructor(props: Props) {\n super(props);\n\n this._scrollAnimatedValue = new AnimatedImplementation.Value(\n this.props.contentOffset?.y ?? 0,\n );\n this._scrollAnimatedValue.setOffset(this.props.contentInset?.top ?? 0);\n }\n\n _scrollAnimatedValue: AnimatedImplementation.Value;\n _scrollAnimatedValueAttachment: ?{detach: () => void, ...} = null;\n _stickyHeaderRefs: Map> =\n new Map();\n _headerLayoutYs: Map = new Map();\n\n _keyboardMetrics: ?KeyboardMetrics = null;\n _additionalScrollOffset: number = 0;\n _isTouching: boolean = false;\n _lastMomentumScrollBeginTime: number = 0;\n _lastMomentumScrollEndTime: number = 0;\n\n // Reset to false every time becomes responder. This is used to:\n // - Determine if the scroll view has been scrolled and therefore should\n // refuse to give up its responder lock.\n // - Determine if releasing should dismiss the keyboard when we are in\n // tap-to-dismiss mode (this.props.keyboardShouldPersistTaps !== 'always').\n _observedScrollSinceBecomingResponder: boolean = false;\n _becameResponderWhileAnimating: boolean = false;\n _preventNegativeScrollOffset: ?boolean = null;\n\n _animated: ?boolean = null;\n\n _subscriptionKeyboardWillShow: ?EventSubscription = null;\n _subscriptionKeyboardWillHide: ?EventSubscription = null;\n _subscriptionKeyboardDidShow: ?EventSubscription = null;\n _subscriptionKeyboardDidHide: ?EventSubscription = null;\n\n state: State = {\n layoutHeight: null,\n onScrollEmitter: null,\n };\n\n componentDidMount() {\n if (typeof this.props.keyboardShouldPersistTaps === 'boolean') {\n console.warn(\n `'keyboardShouldPersistTaps={${\n this.props.keyboardShouldPersistTaps === true ? 'true' : 'false'\n }}' is deprecated. ` +\n `Use 'keyboardShouldPersistTaps=\"${\n this.props.keyboardShouldPersistTaps ? 'always' : 'never'\n }\"' instead`,\n );\n }\n\n this._keyboardMetrics = Keyboard.metrics();\n this._additionalScrollOffset = 0;\n\n this._subscriptionKeyboardWillShow = Keyboard.addListener(\n 'keyboardWillShow',\n this.scrollResponderKeyboardWillShow,\n );\n this._subscriptionKeyboardWillHide = Keyboard.addListener(\n 'keyboardWillHide',\n this.scrollResponderKeyboardWillHide,\n );\n this._subscriptionKeyboardDidShow = Keyboard.addListener(\n 'keyboardDidShow',\n this.scrollResponderKeyboardDidShow,\n );\n this._subscriptionKeyboardDidHide = Keyboard.addListener(\n 'keyboardDidHide',\n this.scrollResponderKeyboardDidHide,\n );\n\n this._updateAnimatedNodeAttachment();\n }\n\n componentDidUpdate(prevProps: Props) {\n const prevContentInsetTop = prevProps.contentInset\n ? prevProps.contentInset.top\n : 0;\n const newContentInsetTop = this.props.contentInset\n ? this.props.contentInset.top\n : 0;\n if (prevContentInsetTop !== newContentInsetTop) {\n this._scrollAnimatedValue.setOffset(newContentInsetTop || 0);\n }\n\n this._updateAnimatedNodeAttachment();\n }\n\n componentWillUnmount() {\n if (this._subscriptionKeyboardWillShow != null) {\n this._subscriptionKeyboardWillShow.remove();\n }\n if (this._subscriptionKeyboardWillHide != null) {\n this._subscriptionKeyboardWillHide.remove();\n }\n if (this._subscriptionKeyboardDidShow != null) {\n this._subscriptionKeyboardDidShow.remove();\n }\n if (this._subscriptionKeyboardDidHide != null) {\n this._subscriptionKeyboardDidHide.remove();\n }\n\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n\n this.state.onScrollEmitter?.removeAllListeners();\n }\n\n /**\n * Returns a reference to the underlying scroll responder, which supports\n * operations like `scrollTo`. All ScrollView-like components should\n * implement this method so that they can be composed while providing access\n * to the underlying scroll responder's methods.\n */\n getScrollResponder: () => ScrollResponderType = () => {\n // $FlowFixMe[unclear-type]\n return ((this: any): ScrollResponderType);\n };\n\n getScrollableNode: () => ?number = () => {\n return findNodeHandle(this._scrollView.nativeInstance);\n };\n\n getInnerViewNode: () => ?number = () => {\n return findNodeHandle(this._innerView.nativeInstance);\n };\n\n getInnerViewRef: () => InnerViewInstance | null = () => {\n return this._innerView.nativeInstance;\n };\n\n getNativeScrollRef: () => NativeScrollViewInstance | null = () => {\n return this._scrollView.nativeInstance;\n };\n\n /**\n * Scrolls to a given x, y offset, either immediately or with a smooth animation.\n *\n * Example:\n *\n * `scrollTo({x: 0, y: 0, animated: true})`\n *\n * Note: The weird function signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as an alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollTo: (\n options?:\n | {\n x?: number,\n y?: number,\n animated?: boolean,\n ...\n }\n | number,\n deprecatedX?: number,\n deprecatedAnimated?: boolean,\n ) => void = (\n options?:\n | {\n x?: number,\n y?: number,\n animated?: boolean,\n ...\n }\n | number,\n deprecatedX?: number,\n deprecatedAnimated?: boolean,\n ) => {\n let x, y, animated;\n if (typeof options === 'number') {\n console.warn(\n '`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' +\n 'animated: true})` instead.',\n );\n y = options;\n x = deprecatedX;\n animated = deprecatedAnimated;\n } else if (options) {\n y = options.y;\n x = options.x;\n animated = options.animated;\n }\n if (this._scrollView.nativeInstance == null) {\n return;\n }\n Commands.scrollTo(\n this._scrollView.nativeInstance,\n x || 0,\n y || 0,\n animated !== false,\n );\n };\n\n /**\n * If this is a vertical ScrollView scrolls to the bottom.\n * If this is a horizontal ScrollView scrolls to the right.\n *\n * Use `scrollToEnd({animated: true})` for smooth animated scrolling,\n * `scrollToEnd({animated: false})` for immediate scrolling.\n * If no options are passed, `animated` defaults to true.\n */\n scrollToEnd: (options?: ?{animated?: boolean, ...}) => void = (\n options?: ?{animated?: boolean, ...},\n ) => {\n // Default to true\n const animated = (options && options.animated) !== false;\n if (this._scrollView.nativeInstance == null) {\n return;\n }\n Commands.scrollToEnd(this._scrollView.nativeInstance, animated);\n };\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators: () => void = () => {\n if (this._scrollView.nativeInstance == null) {\n return;\n }\n Commands.flashScrollIndicators(this._scrollView.nativeInstance);\n };\n\n _subscribeToOnScroll: (\n callback: ({x: number, y: number}) => void,\n ) => EventSubscription = callback => {\n // An undefined value means the listener has not been added, yet.\n // A null value means the listener has been removed.\n let subscription: ?EventSubscription;\n\n this.setState(\n ({onScrollEmitter}) => {\n if (onScrollEmitter) {\n return null;\n } else {\n return {onScrollEmitter: new EventEmitter()};\n }\n },\n () => {\n // If `subscription` is null, that means it was removed before we got\n // here so do nothing.\n if (subscription !== null) {\n subscription = nullthrows(this.state.onScrollEmitter).addListener(\n 'scroll',\n callback,\n );\n }\n },\n );\n\n return {\n remove() {\n // If `subscription` was created before this invocation, remove it.\n subscription?.remove();\n // Record this invocation by setting `subscription` to null, in case it\n // ends up being created after this invocation.\n subscription = null;\n },\n };\n };\n\n /**\n * This method should be used as the callback to onFocus in a TextInputs'\n * parent view. Note that any module using this mixin needs to return\n * the parent view's ref in getScrollViewRef() in order to use this method.\n * @param {number} nodeHandle The TextInput node handle\n * @param {number} additionalOffset The scroll view's bottom \"contentInset\".\n * Default is 0.\n * @param {bool} preventNegativeScrolling Whether to allow pulling the content\n * down to make it meet the keyboard's top. Default is false.\n */\n scrollResponderScrollNativeHandleToKeyboard: (\n nodeHandle: number | React.ElementRef>,\n additionalOffset?: number,\n preventNegativeScrollOffset?: boolean,\n ) => void = (\n nodeHandle: number | React.ElementRef>,\n additionalOffset?: number,\n preventNegativeScrollOffset?: boolean,\n ) => {\n this._additionalScrollOffset = additionalOffset || 0;\n this._preventNegativeScrollOffset = !!preventNegativeScrollOffset;\n\n if (this._innerView.nativeInstance == null) {\n return;\n }\n\n if (typeof nodeHandle === 'number') {\n UIManager.measureLayout(\n nodeHandle,\n nullthrows(findNodeHandle(this)),\n // $FlowFixMe[method-unbinding] added when improving typing for this parameters\n this._textInputFocusError,\n this._inputMeasureAndScrollToKeyboard,\n );\n } else {\n nodeHandle.measureLayout(\n this._innerView.nativeInstance,\n this._inputMeasureAndScrollToKeyboard,\n // $FlowFixMe[method-unbinding] added when improving typing for this parameters\n this._textInputFocusError,\n );\n }\n };\n\n /**\n * A helper function to zoom to a specific rect in the scrollview. The argument has the shape\n * {x: number; y: number; width: number; height: number; animated: boolean = true}\n *\n * @platform ios\n */\n scrollResponderZoomTo: (\n rect: {|\n x: number,\n y: number,\n width: number,\n height: number,\n animated?: boolean,\n |},\n animated?: boolean, // deprecated, put this inside the rect argument instead\n ) => void = (\n rect: {|\n x: number,\n y: number,\n width: number,\n height: number,\n animated?: boolean,\n |},\n animated?: boolean, // deprecated, put this inside the rect argument instead\n ) => {\n invariant(Platform.OS === 'ios', 'zoomToRect is not implemented');\n if ('animated' in rect) {\n this._animated = rect.animated;\n delete rect.animated;\n } else if (typeof animated !== 'undefined') {\n console.warn(\n '`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead',\n );\n }\n\n if (this._scrollView.nativeInstance == null) {\n return;\n }\n Commands.zoomToRect(\n this._scrollView.nativeInstance,\n rect,\n animated !== false,\n );\n };\n\n _textInputFocusError() {\n console.warn('Error measuring text field.');\n }\n\n /**\n * The calculations performed here assume the scroll view takes up the entire\n * screen - even if has some content inset. We then measure the offsets of the\n * keyboard, and compensate both for the scroll view's \"contentInset\".\n *\n * @param {number} left Position of input w.r.t. table view.\n * @param {number} top Position of input w.r.t. table view.\n * @param {number} width Width of the text input.\n * @param {number} height Height of the text input.\n */\n _inputMeasureAndScrollToKeyboard: (\n left: number,\n top: number,\n width: number,\n height: number,\n ) => void = (left: number, top: number, width: number, height: number) => {\n let keyboardScreenY = Dimensions.get('window').height;\n\n const scrollTextInputIntoVisibleRect = () => {\n if (this._keyboardMetrics != null) {\n keyboardScreenY = this._keyboardMetrics.screenY;\n }\n let scrollOffsetY =\n top - keyboardScreenY + height + this._additionalScrollOffset;\n\n // By default, this can scroll with negative offset, pulling the content\n // down so that the target component's bottom meets the keyboard's top.\n // If requested otherwise, cap the offset at 0 minimum to avoid content\n // shifting down.\n if (this._preventNegativeScrollOffset === true) {\n scrollOffsetY = Math.max(0, scrollOffsetY);\n }\n this.scrollTo({x: 0, y: scrollOffsetY, animated: true});\n\n this._additionalScrollOffset = 0;\n this._preventNegativeScrollOffset = false;\n };\n\n if (this._keyboardMetrics == null) {\n // `_keyboardMetrics` is set inside `scrollResponderKeyboardWillShow` which\n // is not guaranteed to be called before `_inputMeasureAndScrollToKeyboard` but native has already scheduled it.\n // In case it was not called before `_inputMeasureAndScrollToKeyboard`, we postpone scrolling to\n // text input.\n setTimeout(() => {\n scrollTextInputIntoVisibleRect();\n }, 0);\n } else {\n scrollTextInputIntoVisibleRect();\n }\n };\n\n _getKeyForIndex(index: $FlowFixMe, childArray: $FlowFixMe): $FlowFixMe {\n const child = childArray[index];\n return child && child.key;\n }\n\n _updateAnimatedNodeAttachment() {\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n if (\n this.props.stickyHeaderIndices &&\n this.props.stickyHeaderIndices.length > 0\n ) {\n this._scrollAnimatedValueAttachment =\n AnimatedImplementation.attachNativeEvent(\n this._scrollView.nativeInstance,\n 'onScroll',\n [{nativeEvent: {contentOffset: {y: this._scrollAnimatedValue}}}],\n );\n }\n }\n\n _setStickyHeaderRef(\n key: string,\n ref: ?React.ElementRef,\n ) {\n if (ref) {\n this._stickyHeaderRefs.set(key, ref);\n } else {\n this._stickyHeaderRefs.delete(key);\n }\n }\n\n _onStickyHeaderLayout(index: $FlowFixMe, event: $FlowFixMe, key: $FlowFixMe) {\n const {stickyHeaderIndices} = this.props;\n if (!stickyHeaderIndices) {\n return;\n }\n const childArray = React.Children.toArray<$FlowFixMe>(this.props.children);\n if (key !== this._getKeyForIndex(index, childArray)) {\n // ignore stale layout update\n return;\n }\n\n const layoutY = event.nativeEvent.layout.y;\n this._headerLayoutYs.set(key, layoutY);\n\n const indexOfIndex = stickyHeaderIndices.indexOf(index);\n const previousHeaderIndex = stickyHeaderIndices[indexOfIndex - 1];\n if (previousHeaderIndex != null) {\n const previousHeader = this._stickyHeaderRefs.get(\n this._getKeyForIndex(previousHeaderIndex, childArray),\n );\n previousHeader &&\n previousHeader.setNextHeaderY &&\n previousHeader.setNextHeaderY(layoutY);\n }\n }\n\n _handleScroll = (e: ScrollEvent) => {\n this._observedScrollSinceBecomingResponder = true;\n this.props.onScroll && this.props.onScroll(e);\n\n this.state.onScrollEmitter?.emit('scroll', {\n x: e.nativeEvent.contentOffset.x,\n y: e.nativeEvent.contentOffset.y,\n });\n };\n\n _handleLayout = (e: LayoutEvent) => {\n if (this.props.invertStickyHeaders === true) {\n this.setState({layoutHeight: e.nativeEvent.layout.height});\n }\n if (this.props.onLayout) {\n this.props.onLayout(e);\n }\n };\n\n _handleContentOnLayout = (e: LayoutEvent) => {\n const {width, height} = e.nativeEvent.layout;\n this.props.onContentSizeChange &&\n this.props.onContentSizeChange(width, height);\n };\n\n _innerView: RefForwarder =\n createRefForwarder(\n (instance: InnerViewInstance): InnerViewInstance => instance,\n );\n\n _scrollView: RefForwarder<\n NativeScrollViewInstance,\n PublicScrollViewInstance,\n > = createRefForwarder(\n (nativeInstance: NativeScrollViewInstance): PublicScrollViewInstance => {\n // This is a hack. Ideally we would forwardRef to the underlying\n // host component. However, since ScrollView has it's own methods that can be\n // called as well, if we used the standard forwardRef then these\n // methods wouldn't be accessible and thus be a breaking change.\n //\n // Therefore we edit ref to include ScrollView's public methods so that\n // they are callable from the ref.\n\n // $FlowFixMe[prop-missing] - Known issue with appending custom methods.\n const publicInstance: PublicScrollViewInstance = Object.assign(\n nativeInstance,\n {\n getScrollResponder: this.getScrollResponder,\n getScrollableNode: this.getScrollableNode,\n getInnerViewNode: this.getInnerViewNode,\n getInnerViewRef: this.getInnerViewRef,\n getNativeScrollRef: this.getNativeScrollRef,\n scrollTo: this.scrollTo,\n scrollToEnd: this.scrollToEnd,\n flashScrollIndicators: this.flashScrollIndicators,\n scrollResponderZoomTo: this.scrollResponderZoomTo,\n // TODO: Replace unstable_subscribeToOnScroll once scrollView.addEventListener('scroll', (e: ScrollEvent) => {}, {passive: false});\n unstable_subscribeToOnScroll: this._subscribeToOnScroll,\n scrollResponderScrollNativeHandleToKeyboard:\n this.scrollResponderScrollNativeHandleToKeyboard,\n },\n );\n\n return publicInstance;\n },\n );\n\n /**\n * Warning, this may be called several times for a single keyboard opening.\n * It's best to store the information in this method and then take any action\n * at a later point (either in `keyboardDidShow` or other).\n *\n * Here's the order that events occur in:\n * - focus\n * - willShow {startCoordinates, endCoordinates} several times\n * - didShow several times\n * - blur\n * - willHide {startCoordinates, endCoordinates} several times\n * - didHide several times\n *\n * The `ScrollResponder` module callbacks for each of these events.\n * Even though any user could have easily listened to keyboard events\n * themselves, using these `props` callbacks ensures that ordering of events\n * is consistent - and not dependent on the order that the keyboard events are\n * subscribed to. This matters when telling the scroll view to scroll to where\n * the keyboard is headed - the scroll responder better have been notified of\n * the keyboard destination before being instructed to scroll to where the\n * keyboard will be. Stick to the `ScrollResponder` callbacks, and everything\n * will work.\n *\n * WARNING: These callbacks will fire even if a keyboard is displayed in a\n * different navigation pane. Filter out the events to determine if they are\n * relevant to you. (For example, only if you receive these callbacks after\n * you had explicitly focused a node etc).\n */\n\n scrollResponderKeyboardWillShow: (e: KeyboardEvent) => void = (\n e: KeyboardEvent,\n ) => {\n this._keyboardMetrics = e.endCoordinates;\n this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);\n };\n\n scrollResponderKeyboardWillHide: (e: KeyboardEvent) => void = (\n e: KeyboardEvent,\n ) => {\n this._keyboardMetrics = null;\n this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);\n };\n\n scrollResponderKeyboardDidShow: (e: KeyboardEvent) => void = (\n e: KeyboardEvent,\n ) => {\n this._keyboardMetrics = e.endCoordinates;\n this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);\n };\n\n scrollResponderKeyboardDidHide: (e: KeyboardEvent) => void = (\n e: KeyboardEvent,\n ) => {\n this._keyboardMetrics = null;\n this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);\n };\n\n /**\n * Invoke this from an `onMomentumScrollBegin` event.\n */\n _handleMomentumScrollBegin: (e: ScrollEvent) => void = (e: ScrollEvent) => {\n this._lastMomentumScrollBeginTime = global.performance.now();\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n };\n\n /**\n * Invoke this from an `onMomentumScrollEnd` event.\n */\n _handleMomentumScrollEnd: (e: ScrollEvent) => void = (e: ScrollEvent) => {\n FrameRateLogger.endScroll();\n this._lastMomentumScrollEndTime = global.performance.now();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n };\n\n /**\n * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll\n * animation, and there's not an easy way to distinguish a drag vs. stopping\n * momentum.\n *\n * Invoke this from an `onScrollBeginDrag` event.\n */\n _handleScrollBeginDrag: (e: ScrollEvent) => void = (e: ScrollEvent) => {\n FrameRateLogger.beginScroll(); // TODO: track all scrolls after implementing onScrollEndAnimation\n\n if (\n Platform.OS === 'android' &&\n this.props.keyboardDismissMode === 'on-drag'\n ) {\n dismissKeyboard();\n }\n\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n };\n\n /**\n * Invoke this from an `onScrollEndDrag` event.\n */\n _handleScrollEndDrag: (e: ScrollEvent) => void = (e: ScrollEvent) => {\n const {velocity} = e.nativeEvent;\n // - If we are animating, then this is a \"drag\" that is stopping the scrollview and momentum end\n // will fire.\n // - If velocity is non-zero, then the interaction will stop when momentum scroll ends or\n // another drag starts and ends.\n // - If we don't get velocity, better to stop the interaction twice than not stop it.\n if (\n !this._isAnimating() &&\n (!velocity || (velocity.x === 0 && velocity.y === 0))\n ) {\n FrameRateLogger.endScroll();\n }\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n };\n\n /**\n * A helper function for this class that lets us quickly determine if the\n * view is currently animating. This is particularly useful to know when\n * a touch has just started or ended.\n */\n _isAnimating: () => boolean = () => {\n const now = global.performance.now();\n const timeSinceLastMomentumScrollEnd =\n now - this._lastMomentumScrollEndTime;\n const isAnimating =\n timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS ||\n this._lastMomentumScrollEndTime < this._lastMomentumScrollBeginTime;\n return isAnimating;\n };\n\n /**\n * Invoke this from an `onResponderGrant` event.\n */\n _handleResponderGrant: (e: PressEvent) => void = (e: PressEvent) => {\n this._observedScrollSinceBecomingResponder = false;\n this.props.onResponderGrant && this.props.onResponderGrant(e);\n this._becameResponderWhileAnimating = this._isAnimating();\n };\n\n /**\n * Invoke this from an `onResponderReject` event.\n *\n * Some other element is not yielding its role as responder. Normally, we'd\n * just disable the `UIScrollView`, but a touch has already began on it, the\n * `UIScrollView` will not accept being disabled after that. The easiest\n * solution for now is to accept the limitation of disallowing this\n * altogether. To improve this, find a way to disable the `UIScrollView` after\n * a touch has already started.\n */\n _handleResponderReject: () => void = () => {};\n\n /**\n * Invoke this from an `onResponderRelease` event.\n */\n _handleResponderRelease: (e: PressEvent) => void = (e: PressEvent) => {\n this._isTouching = e.nativeEvent.touches.length !== 0;\n this.props.onResponderRelease && this.props.onResponderRelease(e);\n\n if (typeof e.target === 'number') {\n if (__DEV__) {\n console.error(\n 'Did not expect event target to be a number. Should have been a native component',\n );\n }\n\n return;\n }\n\n // By default scroll views will unfocus a textField\n // if another touch occurs outside of it\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedInput();\n if (\n currentlyFocusedTextInput != null &&\n this.props.keyboardShouldPersistTaps !== true &&\n this.props.keyboardShouldPersistTaps !== 'always' &&\n this._keyboardIsDismissible() &&\n e.target !== currentlyFocusedTextInput &&\n !this._observedScrollSinceBecomingResponder &&\n !this._becameResponderWhileAnimating\n ) {\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n };\n\n /**\n * We will allow the scroll view to give up its lock iff it acquired the lock\n * during an animation. This is a very useful default that happens to satisfy\n * many common user experiences.\n *\n * - Stop a scroll on the left edge, then turn that into an outer view's\n * backswipe.\n * - Stop a scroll mid-bounce at the top, continue pulling to have the outer\n * view dismiss.\n * - However, without catching the scroll view mid-bounce (while it is\n * motionless), if you drag far enough for the scroll view to become\n * responder (and therefore drag the scroll view a bit), any backswipe\n * navigation of a swipe gesture higher in the view hierarchy, should be\n * rejected.\n */\n _handleResponderTerminationRequest: () => boolean = () => {\n return !this._observedScrollSinceBecomingResponder;\n };\n\n /**\n * Invoke this from an `onScroll` event.\n */\n _handleScrollShouldSetResponder: () => boolean = () => {\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n return this._isTouching;\n };\n\n /**\n * Merely touch starting is not sufficient for a scroll view to become the\n * responder. Being the \"responder\" means that the very next touch move/end\n * event will result in an action/movement.\n *\n * Invoke this from an `onStartShouldSetResponder` event.\n *\n * `onStartShouldSetResponder` is used when the next move/end will trigger\n * some UI movement/action, but when you want to yield priority to views\n * nested inside of the view.\n *\n * There may be some cases where scroll views actually should return `true`\n * from `onStartShouldSetResponder`: Any time we are detecting a standard tap\n * that gives priority to nested views.\n *\n * - If a single tap on the scroll view triggers an action such as\n * recentering a map style view yet wants to give priority to interaction\n * views inside (such as dropped pins or labels), then we would return true\n * from this method when there is a single touch.\n *\n * - Similar to the previous case, if a two finger \"tap\" should trigger a\n * zoom, we would check the `touches` count, and if `>= 2`, we would return\n * true.\n *\n */\n _handleStartShouldSetResponder: (e: PressEvent) => boolean = (\n e: PressEvent,\n ) => {\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n\n const currentlyFocusedInput = TextInputState.currentlyFocusedInput();\n if (\n this.props.keyboardShouldPersistTaps === 'handled' &&\n this._keyboardIsDismissible() &&\n e.target !== currentlyFocusedInput\n ) {\n return true;\n }\n return false;\n };\n\n /**\n * There are times when the scroll view wants to become the responder\n * (meaning respond to the next immediate `touchStart/touchEnd`), in a way\n * that *doesn't* give priority to nested views (hence the capture phase):\n *\n * - Currently animating.\n * - Tapping anywhere that is not a text input, while the keyboard is\n * up (which should dismiss the keyboard).\n *\n * Invoke this from an `onStartShouldSetResponderCapture` event.\n */\n _handleStartShouldSetResponderCapture: (e: PressEvent) => boolean = (\n e: PressEvent,\n ) => {\n // The scroll view should receive taps instead of its descendants if:\n // * it is already animating/decelerating\n if (this._isAnimating()) {\n return true;\n }\n\n // Allow any event touch pass through if the default pan responder is disabled\n if (this.props.disableScrollViewPanResponder === true) {\n return false;\n }\n\n // * the keyboard is up, keyboardShouldPersistTaps is 'never' (the default),\n // and a new touch starts with a non-textinput target (in which case the\n // first tap should be sent to the scroll view and dismiss the keyboard,\n // then the second tap goes to the actual interior view)\n const {keyboardShouldPersistTaps} = this.props;\n const keyboardNeverPersistTaps =\n !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never';\n\n if (typeof e.target === 'number') {\n if (__DEV__) {\n console.error(\n 'Did not expect event target to be a number. Should have been a native component',\n );\n }\n\n return false;\n }\n\n // Let presses through if the soft keyboard is detached from the viewport\n if (this._softKeyboardIsDetached()) {\n return false;\n }\n\n if (\n keyboardNeverPersistTaps &&\n this._keyboardIsDismissible() &&\n e.target != null &&\n // $FlowFixMe[incompatible-call]\n !TextInputState.isTextInput(e.target)\n ) {\n return true;\n }\n\n return false;\n };\n\n /**\n * Do we consider there to be a dismissible soft-keyboard open?\n */\n _keyboardIsDismissible: () => boolean = () => {\n const currentlyFocusedInput = TextInputState.currentlyFocusedInput();\n\n // We cannot dismiss the keyboard without an input to blur, even if a soft\n // keyboard is open (e.g. when keyboard is open due to a native component\n // not participating in TextInputState). It's also possible that the\n // currently focused input isn't a TextInput (such as by calling ref.focus\n // on a non-TextInput).\n const hasFocusedTextInput =\n currentlyFocusedInput != null &&\n TextInputState.isTextInput(currentlyFocusedInput);\n\n // Even if an input is focused, we may not have a keyboard to dismiss. E.g\n // when using a physical keyboard. Ensure we have an event for an opened\n // keyboard.\n const softKeyboardMayBeOpen =\n this._keyboardMetrics != null || this._keyboardEventsAreUnreliable();\n\n return hasFocusedTextInput && softKeyboardMayBeOpen;\n };\n\n /**\n * Whether an open soft keyboard is present which does not overlap the\n * viewport. E.g. for a VR soft-keyboard which is detached from the app\n * viewport.\n */\n _softKeyboardIsDetached: () => boolean = () => {\n return this._keyboardMetrics != null && this._keyboardMetrics.height === 0;\n };\n\n _keyboardEventsAreUnreliable: () => boolean = () => {\n // Android versions prior to API 30 rely on observing layout changes when\n // `android:windowSoftInputMode` is set to `adjustResize` or `adjustPan`.\n return Platform.OS === 'android' && Platform.Version < 30;\n };\n\n /**\n * Invoke this from an `onTouchEnd` event.\n *\n * @param {PressEvent} e Event.\n */\n _handleTouchEnd: (e: PressEvent) => void = (e: PressEvent) => {\n const nativeEvent = e.nativeEvent;\n this._isTouching = nativeEvent.touches.length !== 0;\n\n const {keyboardShouldPersistTaps} = this.props;\n const keyboardNeverPersistsTaps =\n !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never';\n\n // Dismiss the keyboard now if we didn't become responder in capture phase\n // to eat presses, but still want to dismiss on interaction.\n // Don't do anything if the target of the touch event is the current input.\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedInput();\n if (\n currentlyFocusedTextInput != null &&\n e.target !== currentlyFocusedTextInput &&\n this._softKeyboardIsDetached() &&\n this._keyboardIsDismissible() &&\n keyboardNeverPersistsTaps\n ) {\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n\n this.props.onTouchEnd && this.props.onTouchEnd(e);\n };\n\n /**\n * Invoke this from an `onTouchCancel` event.\n *\n * @param {PressEvent} e Event.\n */\n _handleTouchCancel: (e: PressEvent) => void = (e: PressEvent) => {\n this._isTouching = false;\n this.props.onTouchCancel && this.props.onTouchCancel(e);\n };\n\n /**\n * Invoke this from an `onTouchStart` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {PressEvent} e Touch Start event.\n */\n _handleTouchStart: (e: PressEvent) => void = (e: PressEvent) => {\n this._isTouching = true;\n this.props.onTouchStart && this.props.onTouchStart(e);\n };\n\n /**\n * Invoke this from an `onTouchMove` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {PressEvent} e Touch Start event.\n */\n _handleTouchMove: (e: PressEvent) => void = (e: PressEvent) => {\n this.props.onTouchMove && this.props.onTouchMove(e);\n };\n\n render(): React.Node | React.Element {\n const [NativeDirectionalScrollView, NativeDirectionalScrollContentView] =\n this.props.horizontal === true\n ? NativeHorizontalScrollViewTuple\n : NativeVerticalScrollViewTuple;\n\n const contentContainerStyle = [\n this.props.horizontal === true && styles.contentContainerHorizontal,\n this.props.contentContainerStyle,\n ];\n if (__DEV__ && this.props.style !== undefined) {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n const style = flattenStyle(this.props.style);\n const childLayoutProps = ['alignItems', 'justifyContent'].filter(\n // $FlowFixMe[incompatible-use]\n prop => style && style[prop] !== undefined,\n );\n invariant(\n childLayoutProps.length === 0,\n 'ScrollView child layout (' +\n JSON.stringify(childLayoutProps) +\n ') must be applied through the contentContainerStyle prop.',\n );\n }\n\n const contentSizeChangeProps =\n this.props.onContentSizeChange == null\n ? null\n : {\n onLayout: this._handleContentOnLayout,\n };\n\n const {stickyHeaderIndices} = this.props;\n let children = this.props.children;\n /**\n * This function can cause unnecessary remount when nested in conditionals as it causes remap of children keys.\n * https://react.dev/reference/react/Children#children-toarray-caveats\n */\n children = React.Children.toArray<$FlowFixMe>(children);\n\n if (stickyHeaderIndices != null && stickyHeaderIndices.length > 0) {\n children = children.map((child, index) => {\n const indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1;\n if (indexOfIndex > -1) {\n const key = child.key;\n const nextIndex = stickyHeaderIndices[indexOfIndex + 1];\n const StickyHeaderComponent =\n this.props.StickyHeaderComponent || ScrollViewStickyHeader;\n return (\n this._setStickyHeaderRef(key, ref)}\n nextHeaderLayoutY={this._headerLayoutYs.get(\n this._getKeyForIndex(nextIndex, children),\n )}\n onLayout={event => this._onStickyHeaderLayout(index, event, key)}\n scrollAnimatedValue={this._scrollAnimatedValue}\n inverted={this.props.invertStickyHeaders}\n hiddenOnScroll={this.props.stickyHeaderHiddenOnScroll}\n scrollViewHeight={this.state.layoutHeight}>\n {child}\n \n );\n } else {\n return child;\n }\n });\n }\n children = (\n \n {children}\n \n );\n\n const hasStickyHeaders =\n Array.isArray(stickyHeaderIndices) && stickyHeaderIndices.length > 0;\n\n // Some ScrollView native component behaviors rely on using the metrics\n // of mounted views for anchoring. Make sure not to flatten children if\n // this is the case.\n const preserveChildren =\n this.props.maintainVisibleContentPosition != null ||\n (Platform.OS === 'android' && this.props.snapToAlignment != null);\n\n const contentContainer = (\n \n {children}\n \n );\n\n const alwaysBounceHorizontal =\n this.props.alwaysBounceHorizontal !== undefined\n ? this.props.alwaysBounceHorizontal\n : this.props.horizontal;\n\n const alwaysBounceVertical =\n this.props.alwaysBounceVertical !== undefined\n ? this.props.alwaysBounceVertical\n : !this.props.horizontal;\n\n const baseStyle =\n this.props.horizontal === true\n ? styles.baseHorizontal\n : styles.baseVertical;\n\n const {experimental_endDraggingSensitivityMultiplier, ...otherProps} =\n this.props;\n const props = {\n ...otherProps,\n alwaysBounceHorizontal,\n alwaysBounceVertical,\n style: StyleSheet.compose(baseStyle, this.props.style),\n // Override the onContentSizeChange from props, since this event can\n // bubble up from TextInputs\n onContentSizeChange: null,\n onLayout: this._handleLayout,\n onMomentumScrollBegin: this._handleMomentumScrollBegin,\n onMomentumScrollEnd: this._handleMomentumScrollEnd,\n onResponderGrant: this._handleResponderGrant,\n onResponderReject: this._handleResponderReject,\n onResponderRelease: this._handleResponderRelease,\n onResponderTerminationRequest: this._handleResponderTerminationRequest,\n onScrollBeginDrag: this._handleScrollBeginDrag,\n onScrollEndDrag: this._handleScrollEndDrag,\n onScrollShouldSetResponder: this._handleScrollShouldSetResponder,\n onStartShouldSetResponder: this._handleStartShouldSetResponder,\n onStartShouldSetResponderCapture:\n this._handleStartShouldSetResponderCapture,\n onTouchEnd: this._handleTouchEnd,\n onTouchMove: this._handleTouchMove,\n onTouchStart: this._handleTouchStart,\n onTouchCancel: this._handleTouchCancel,\n onScroll: this._handleScroll,\n endDraggingSensitivityMultiplier:\n experimental_endDraggingSensitivityMultiplier,\n enableSyncOnScroll: this.state.onScrollEmitter ? true : undefined,\n scrollEventThrottle: hasStickyHeaders\n ? 1\n : this.props.scrollEventThrottle,\n sendMomentumEvents:\n this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd\n ? true\n : false,\n // default to true\n snapToStart: this.props.snapToStart !== false,\n // default to true\n snapToEnd: this.props.snapToEnd !== false,\n // pagingEnabled is overridden by snapToInterval / snapToOffsets\n pagingEnabled: Platform.select({\n // on iOS, pagingEnabled must be set to false to have snapToInterval / snapToOffsets work\n ios:\n this.props.pagingEnabled === true &&\n this.props.snapToInterval == null &&\n this.props.snapToOffsets == null,\n // on Android, pagingEnabled must be set to true to have snapToInterval / snapToOffsets work\n android:\n this.props.pagingEnabled === true ||\n this.props.snapToInterval != null ||\n this.props.snapToOffsets != null,\n }),\n };\n\n const {decelerationRate} = this.props;\n if (decelerationRate != null) {\n props.decelerationRate = processDecelerationRate(decelerationRate);\n }\n\n const refreshControl = this.props.refreshControl;\n const scrollViewRef = this._scrollView.getForwardingRef(\n this.props.scrollViewRef,\n );\n\n if (refreshControl) {\n if (Platform.OS === 'ios') {\n // On iOS the RefreshControl is a child of the ScrollView.\n return (\n \n {refreshControl}\n {contentContainer}\n \n );\n } else if (Platform.OS === 'android') {\n // On Android wrap the ScrollView with a AndroidSwipeRefreshLayout.\n // Since the ScrollView is wrapped add the style props to the\n // AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.\n // Note: we should split props.style on the inner and outer props\n // however, the ScrollView still needs the baseStyle to be scrollable\n // $FlowFixMe[underconstrained-implicit-instantiation]\n // $FlowFixMe[incompatible-call]\n const {outer, inner} = splitLayoutProps(flattenStyle(props.style));\n return React.cloneElement(\n refreshControl,\n {style: StyleSheet.compose(baseStyle, outer)},\n \n {contentContainer}\n ,\n );\n }\n }\n return (\n \n {contentContainer}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n baseVertical: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'column',\n overflow: 'scroll',\n },\n baseHorizontal: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'row',\n overflow: 'scroll',\n },\n contentContainerHorizontal: {\n flexDirection: 'row',\n },\n});\n\ntype ForwardedRef = {current: null | T, ...} | ((null | T) => mixed);\n\ntype RefForwarder = {\n getForwardingRef: (\n ?ForwardedRef,\n ) => (TNativeInstance | null) => void,\n nativeInstance: TNativeInstance | null,\n publicInstance: TPublicInstance | null,\n};\n\n/**\n * Helper function that should be replaced with `useCallback` and `useMergeRefs`\n * once `ScrollView` is reimplemented as a functional component.\n */\nfunction createRefForwarder(\n mutator: TNativeInstance => TPublicInstance,\n): RefForwarder {\n const state: RefForwarder = {\n getForwardingRef: memoize(forwardedRef => {\n return (nativeInstance: TNativeInstance | null): void => {\n const publicInstance =\n nativeInstance == null ? null : mutator(nativeInstance);\n\n state.nativeInstance = nativeInstance;\n state.publicInstance = publicInstance;\n\n if (forwardedRef != null) {\n if (typeof forwardedRef === 'function') {\n forwardedRef(publicInstance);\n } else {\n forwardedRef.current = publicInstance;\n }\n }\n };\n }),\n nativeInstance: null,\n publicInstance: null,\n };\n\n return state;\n}\n\n/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\nfunction Wrapper(props, ref: (mixed => mixed) | {current: mixed, ...}) {\n return ;\n}\nWrapper.displayName = 'ScrollView';\n// $FlowFixMe[incompatible-call]\nconst ForwardedScrollView = React.forwardRef(Wrapper);\n\n// $FlowFixMe[prop-missing] Add static context to ForwardedScrollView\nForwardedScrollView.Context = ScrollViewContext;\n\nForwardedScrollView.displayName = 'ScrollView';\n\nmodule.exports = ((ForwardedScrollView: $FlowFixMe): React.AbstractComponent<\n React.ElementConfig,\n PublicScrollViewInstance,\n> &\n ScrollViewComponentStatics);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport NativeFrameRateLogger from './NativeFrameRateLogger';\n\nconst invariant = require('invariant');\n\n/**\n * Flow API for native FrameRateLogger module. If the native module is not installed, function calls\n * are just no-ops.\n *\n * Typical behavior is that `setContext` is called when a new screen is loaded (e.g. via a\n * navigation integration), and then `beginScroll` is called by `ScrollResponder` at which point the\n * native module then begins tracking frame drops. When `ScrollResponder` calls `endScroll`, the\n * native module gathers up all it's frame drop data and reports it via an analytics pipeline for\n * analysis.\n *\n * Note that `beginScroll` may be called multiple times by `ScrollResponder` - unclear if that's a\n * bug, but the native module should be robust to that.\n *\n * In the future we may add support for tracking frame drops in other types of interactions beyond\n * scrolling.\n */\nconst FrameRateLogger = {\n /**\n * Enable `debug` to see local logs of what's going on.\n */\n setGlobalOptions: function (options: {debug?: boolean, ...}) {\n if (options.debug !== undefined) {\n invariant(\n NativeFrameRateLogger,\n 'Trying to debug FrameRateLogger without the native module!',\n );\n }\n NativeFrameRateLogger?.setGlobalOptions({\n debug: !!options.debug,\n });\n },\n\n /**\n * Must call `setContext` before any events can be properly tracked, which is done automatically\n * in `AppRegistry`, but navigation is also a common place to hook in.\n */\n setContext: function (context: string) {\n NativeFrameRateLogger?.setContext(context);\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n beginScroll() {\n NativeFrameRateLogger?.beginScroll();\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n endScroll() {\n NativeFrameRateLogger?.endScroll();\n },\n};\n\nmodule.exports = FrameRateLogger;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeFrameRateLogger';\nimport NativeFrameRateLogger from '../../src/private/specs/modules/NativeFrameRateLogger';\nexport default NativeFrameRateLogger;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +setGlobalOptions: (options: {|+debug?: ?boolean|}) => void;\n +setContext: (context: string) => void;\n +beginScroll: () => void;\n +endScroll: () => void;\n}\n\nexport default (TurboModuleRegistry.get('FrameRateLogger'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {____ViewStyle_Internal} from './StyleSheetTypes';\n\nexport default function splitLayoutProps(props: ?____ViewStyle_Internal): {\n outer: ?____ViewStyle_Internal,\n inner: ?____ViewStyle_Internal,\n} {\n let outer: ?____ViewStyle_Internal = null;\n let inner: ?____ViewStyle_Internal = null;\n\n if (props != null) {\n // $FlowIgnore[incompatible-exact] Will contain a subset of keys from `props`.\n outer = {};\n // $FlowIgnore[incompatible-exact] Will contain a subset of keys from `props`.\n inner = {};\n\n for (const prop of Object.keys(props)) {\n switch (prop) {\n case 'margin':\n case 'marginHorizontal':\n case 'marginVertical':\n case 'marginBottom':\n case 'marginTop':\n case 'marginLeft':\n case 'marginRight':\n case 'flex':\n case 'flexGrow':\n case 'flexShrink':\n case 'flexBasis':\n case 'alignSelf':\n case 'height':\n case 'minHeight':\n case 'maxHeight':\n case 'width':\n case 'minWidth':\n case 'maxWidth':\n case 'position':\n case 'left':\n case 'right':\n case 'bottom':\n case 'top':\n case 'transform':\n case 'transformOrigin':\n case 'rowGap':\n case 'columnGap':\n case 'gap':\n // $FlowFixMe[cannot-write]\n // $FlowFixMe[incompatible-use]\n // $FlowFixMe[prop-missing]\n outer[prop] = props[prop];\n break;\n default:\n // $FlowFixMe[cannot-write]\n // $FlowFixMe[incompatible-use]\n // $FlowFixMe[prop-missing]\n inner[prop] = props[prop];\n break;\n }\n }\n }\n\n return {outer, inner};\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n// This function dismisses the currently-open keyboard, if any.\n\n'use strict';\n\nconst TextInputState = require('../Components/TextInput/TextInputState');\n\nfunction dismissKeyboard() {\n TextInputState.blurTextInput(TextInputState.currentlyFocusedInput());\n}\n\nmodule.exports = dismissKeyboard;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {EventSubscription} from '../../vendor/emitter/EventEmitter';\n\nimport NativeEventEmitter from '../../EventEmitter/NativeEventEmitter';\nimport LayoutAnimation from '../../LayoutAnimation/LayoutAnimation';\nimport dismissKeyboard from '../../Utilities/dismissKeyboard';\nimport Platform from '../../Utilities/Platform';\nimport NativeKeyboardObserver from './NativeKeyboardObserver';\n\nexport type KeyboardEventName = $Keys;\n\nexport type KeyboardEventEasing =\n | 'easeIn'\n | 'easeInEaseOut'\n | 'easeOut'\n | 'linear'\n | 'keyboard';\n\nexport type KeyboardMetrics = $ReadOnly<{|\n screenX: number,\n screenY: number,\n width: number,\n height: number,\n|}>;\n\nexport type KeyboardEvent = AndroidKeyboardEvent | IOSKeyboardEvent;\n\ntype BaseKeyboardEvent = {|\n duration: number,\n easing: KeyboardEventEasing,\n endCoordinates: KeyboardMetrics,\n|};\n\nexport type AndroidKeyboardEvent = $ReadOnly<{|\n ...BaseKeyboardEvent,\n duration: 0,\n easing: 'keyboard',\n|}>;\n\nexport type IOSKeyboardEvent = $ReadOnly<{|\n ...BaseKeyboardEvent,\n startCoordinates: KeyboardMetrics,\n isEventFromThisApp: boolean,\n|}>;\n\ntype KeyboardEventDefinitions = {\n keyboardWillShow: [KeyboardEvent],\n keyboardDidShow: [KeyboardEvent],\n keyboardWillHide: [KeyboardEvent],\n keyboardDidHide: [KeyboardEvent],\n keyboardWillChangeFrame: [KeyboardEvent],\n keyboardDidChangeFrame: [KeyboardEvent],\n};\n\n/**\n * `Keyboard` module to control keyboard events.\n *\n * ### Usage\n *\n * The Keyboard module allows you to listen for native events and react to them, as\n * well as make changes to the keyboard, like dismissing it.\n *\n *```\n * import React, { Component } from 'react';\n * import { Keyboard, TextInput } from 'react-native';\n *\n * class Example extends Component {\n * componentWillMount () {\n * this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);\n * this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);\n * }\n *\n * componentWillUnmount () {\n * this.keyboardDidShowListener.remove();\n * this.keyboardDidHideListener.remove();\n * }\n *\n * _keyboardDidShow () {\n * alert('Keyboard Shown');\n * }\n *\n * _keyboardDidHide () {\n * alert('Keyboard Hidden');\n * }\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *```\n */\n\nclass Keyboard {\n _currentlyShowing: ?KeyboardEvent;\n\n _emitter: NativeEventEmitter =\n new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativeKeyboardObserver,\n );\n\n constructor() {\n this.addListener('keyboardDidShow', ev => {\n this._currentlyShowing = ev;\n });\n this.addListener('keyboardDidHide', _ev => {\n this._currentlyShowing = null;\n });\n }\n\n /**\n * The `addListener` function connects a JavaScript function to an identified native\n * keyboard notification event.\n *\n * This function then returns the reference to the listener.\n *\n * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for. This\n *can be any of the following:\n *\n * - `keyboardWillShow`\n * - `keyboardDidShow`\n * - `keyboardWillHide`\n * - `keyboardDidHide`\n * - `keyboardWillChangeFrame`\n * - `keyboardDidChangeFrame`\n *\n * Android versions prior to API 30 rely on observing layout changes when\n * `android:windowSoftInputMode` is set to `adjustResize` or `adjustPan`.\n *\n * `keyboardWillShow` as well as `keyboardWillHide` are not available on Android since there is\n * no native corresponding event.\n *\n * @param {function} callback function to be called when the event fires.\n */\n addListener>(\n eventType: K,\n listener: (...$ElementType) => mixed,\n context?: mixed,\n ): EventSubscription {\n return this._emitter.addListener(eventType, listener);\n }\n\n /**\n * Removes all listeners for a specific event type.\n *\n * @param {string} eventType The native event string listeners are watching which will be removed.\n */\n removeAllListeners>(eventType: ?K): void {\n this._emitter.removeAllListeners(eventType);\n }\n\n /**\n * Dismisses the active keyboard and removes focus.\n */\n dismiss(): void {\n dismissKeyboard();\n }\n\n /**\n * Whether the keyboard is last known to be visible.\n */\n isVisible(): boolean {\n return !!this._currentlyShowing;\n }\n\n /**\n * Return the metrics of the soft-keyboard if visible.\n */\n metrics(): ?KeyboardMetrics {\n return this._currentlyShowing?.endCoordinates;\n }\n\n /**\n * Useful for syncing TextInput (or other keyboard accessory view) size of\n * position changes with keyboard movements.\n */\n scheduleLayoutAnimation(event: KeyboardEvent): void {\n const {duration, easing} = event;\n if (duration != null && duration !== 0) {\n LayoutAnimation.configureNext({\n duration: duration,\n update: {\n duration: duration,\n type: (easing != null && LayoutAnimation.Types[easing]) || 'keyboard',\n },\n });\n }\n }\n}\n\nmodule.exports = (new Keyboard(): Keyboard);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {\n LayoutAnimationConfig as LayoutAnimationConfig_,\n LayoutAnimationProperty,\n LayoutAnimationType,\n} from '../Renderer/shims/ReactNativeTypes';\n\nimport * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';\nimport {getFabricUIManager} from '../ReactNative/FabricUIManager';\nimport Platform from '../Utilities/Platform';\n\nconst UIManager = require('../ReactNative/UIManager');\n\n// Reexport type\nexport type LayoutAnimationConfig = LayoutAnimationConfig_;\n\ntype OnAnimationDidEndCallback = () => void;\ntype OnAnimationDidFailCallback = () => void;\n\nlet isLayoutAnimationEnabled: boolean =\n ReactNativeFeatureFlags.isLayoutAnimationEnabled();\n\nfunction setEnabled(value: boolean) {\n isLayoutAnimationEnabled = isLayoutAnimationEnabled;\n}\n\n/**\n * Configures the next commit to be animated.\n *\n * onAnimationDidEnd is guaranteed to be called when the animation completes.\n * onAnimationDidFail is *never* called in the classic, pre-Fabric renderer,\n * and never has been. In the new renderer (Fabric) it is called only if configuration\n * parsing fails.\n */\nfunction configureNext(\n config: LayoutAnimationConfig,\n onAnimationDidEnd?: OnAnimationDidEndCallback,\n onAnimationDidFail?: OnAnimationDidFailCallback,\n) {\n if (Platform.isDisableAnimations) {\n return;\n }\n\n if (!isLayoutAnimationEnabled) {\n return;\n }\n\n // Since LayoutAnimations may possibly be disabled for now on iOS (Fabric),\n // or Android (non-Fabric) we race a setTimeout with animation completion,\n // in case onComplete is never called\n // from native. Once LayoutAnimations+Fabric unconditionally ship everywhere, we can\n // delete this mechanism at least in the Fabric branch.\n let animationCompletionHasRun = false;\n const onAnimationComplete = () => {\n if (animationCompletionHasRun) {\n return;\n }\n animationCompletionHasRun = true;\n clearTimeout(raceWithAnimationId);\n onAnimationDidEnd?.();\n };\n const raceWithAnimationId = setTimeout(\n onAnimationComplete,\n (config.duration ?? 0) + 17 /* one frame + 1ms */,\n );\n\n // In Fabric, LayoutAnimations are unconditionally enabled for Android, and\n // conditionally enabled on iOS (pending fully shipping; this is a temporary state).\n const FabricUIManager = getFabricUIManager();\n if (FabricUIManager?.configureNextLayoutAnimation) {\n global?.nativeFabricUIManager?.configureNextLayoutAnimation(\n config,\n onAnimationComplete,\n onAnimationDidFail ??\n function () {} /* this will only be called if configuration parsing fails */,\n );\n return;\n }\n\n // This will only run if Fabric is *not* installed.\n // If you have Fabric + non-Fabric running in the same VM, non-Fabric LayoutAnimations\n // will not work.\n if (UIManager?.configureNextLayoutAnimation) {\n UIManager.configureNextLayoutAnimation(\n config,\n onAnimationComplete ?? function () {},\n onAnimationDidFail ??\n function () {} /* this should never be called in Non-Fabric */,\n );\n }\n}\n\nfunction create(\n duration: number,\n type: LayoutAnimationType,\n property: LayoutAnimationProperty,\n): LayoutAnimationConfig {\n return {\n duration,\n create: {type, property},\n update: {type},\n delete: {type, property},\n };\n}\n\nconst Presets = {\n easeInEaseOut: (create(\n 300,\n 'easeInEaseOut',\n 'opacity',\n ): LayoutAnimationConfig),\n linear: (create(500, 'linear', 'opacity'): LayoutAnimationConfig),\n spring: {\n duration: 700,\n create: {\n type: 'linear',\n property: 'opacity',\n },\n update: {\n type: 'spring',\n springDamping: 0.4,\n },\n delete: {\n type: 'linear',\n property: 'opacity',\n },\n },\n};\n\n/**\n * Automatically animates views to their new positions when the\n * next layout happens.\n *\n * A common way to use this API is to call it before calling `setState`.\n *\n * Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:\n *\n * UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);\n */\nconst LayoutAnimation = {\n /**\n * Schedules an animation to happen on the next layout.\n *\n * @param config Specifies animation properties:\n *\n * - `duration` in milliseconds\n * - `create`, `AnimationConfig` for animating in new views\n * - `update`, `AnimationConfig` for animating views that have been updated\n *\n * @param onAnimationDidEnd Called when the animation finished.\n * Only supported on iOS.\n * @param onError Called on error. Only supported on iOS.\n */\n configureNext,\n /**\n * Helper for creating a config for `configureNext`.\n */\n create,\n Types: Object.freeze({\n spring: 'spring',\n linear: 'linear',\n easeInEaseOut: 'easeInEaseOut',\n easeIn: 'easeIn',\n easeOut: 'easeOut',\n keyboard: 'keyboard',\n }),\n Properties: Object.freeze({\n opacity: 'opacity',\n scaleX: 'scaleX',\n scaleY: 'scaleY',\n scaleXY: 'scaleXY',\n }),\n checkConfig(...args: Array) {\n console.error('LayoutAnimation.checkConfig(...) has been disabled.');\n },\n Presets,\n easeInEaseOut: (configureNext.bind(null, Presets.easeInEaseOut): (\n onAnimationDidEnd?: OnAnimationDidEndCallback,\n ) => void),\n linear: (configureNext.bind(null, Presets.linear): (\n onAnimationDidEnd?: OnAnimationDidEndCallback,\n ) => void),\n spring: (configureNext.bind(null, Presets.spring): (\n onAnimationDidEnd?: OnAnimationDidEndCallback,\n ) => void),\n setEnabled,\n};\n\nmodule.exports = LayoutAnimation;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeKeyboardObserver';\nimport NativeKeyboardObserver from '../../../src/private/specs/modules/NativeKeyboardObserver';\nexport default NativeKeyboardObserver;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('KeyboardObserver'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent';\nimport AndroidHorizontalScrollContentViewNativeComponent from '../../../src/private/specs/components/AndroidHorizontalScrollContentViewNativeComponent';\nexport default AndroidHorizontalScrollContentViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\n\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n removeClippedSubviews?: ?boolean,\n|}>;\n\ntype NativeType = HostComponent;\n\nexport default (codegenNativeComponent(\n 'AndroidHorizontalScrollContentView',\n): NativeType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ScrollViewNativeProps as Props} from './ScrollViewNativeComponentType';\n\nimport * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {\n uiViewClassName: 'AndroidHorizontalScrollView',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {\n decelerationRate: true,\n disableIntervalMomentum: true,\n maintainVisibleContentPosition: true,\n endFillColor: {process: require('../../StyleSheet/processColor').default},\n fadingEdgeLength: true,\n nestedScrollEnabled: true,\n overScrollMode: true,\n pagingEnabled: true,\n persistentScrollbar: true,\n horizontal: true,\n enableSyncOnScroll: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollPerfTag: true,\n sendMomentumEvents: true,\n showsHorizontalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToStart: true,\n snapToOffsets: true,\n contentOffset: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderRadius: true,\n borderStyle: true,\n borderRightColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n borderColor: {process: require('../../StyleSheet/processColor').default},\n borderBottomColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n borderTopLeftRadius: true,\n borderTopColor: {process: require('../../StyleSheet/processColor').default},\n removeClippedSubviews: true,\n borderTopRightRadius: true,\n borderLeftColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n pointerEvents: true,\n },\n};\n\nconst AndroidHorizontalScrollViewNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'AndroidHorizontalScrollView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\nexport default AndroidHorizontalScrollViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport Platform from '../../Utilities/Platform';\n\nfunction processDecelerationRate(\n decelerationRate: number | 'normal' | 'fast',\n): number {\n if (decelerationRate === 'normal') {\n return Platform.select({\n ios: 0.998,\n android: 0.985,\n });\n } else if (decelerationRate === 'fast') {\n return Platform.select({\n ios: 0.99,\n android: 0.9,\n });\n }\n return decelerationRate;\n}\n\nmodule.exports = processDecelerationRate;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ViewProps as Props} from '../View/ViewPropTypes';\n\nimport * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {\n uiViewClassName: 'RCTScrollContentView',\n bubblingEventTypes: {},\n directEventTypes: {},\n validAttributes: {},\n};\n\nconst ScrollContentViewNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'RCTScrollContentView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\nexport default ScrollContentViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {Double} from '../../Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport * as React from 'react';\n\ntype ScrollViewNativeComponentType = HostComponent;\ninterface NativeCommands {\n +flashScrollIndicators: (\n viewRef: React.ElementRef,\n ) => void;\n +scrollTo: (\n viewRef: React.ElementRef,\n x: Double,\n y: Double,\n animated: boolean,\n ) => void;\n +scrollToEnd: (\n viewRef: React.ElementRef,\n animated: boolean,\n ) => void;\n +zoomToRect: (\n viewRef: React.ElementRef,\n rect: {|\n x: Double,\n y: Double,\n width: Double,\n height: Double,\n animated?: boolean,\n |},\n animated?: boolean,\n ) => void;\n}\n\nexport default (codegenNativeCommands({\n supportedCommands: [\n 'flashScrollIndicators',\n 'scrollTo',\n 'scrollToEnd',\n 'zoomToRect',\n ],\n}): NativeCommands);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport * as React from 'react';\n\ntype Value = {horizontal: boolean} | null;\n\nconst ScrollViewContext: React.Context = React.createContext(null);\nif (__DEV__) {\n ScrollViewContext.displayName = 'ScrollViewContext';\n}\nexport default ScrollViewContext;\n\nexport const HORIZONTAL: Value = Object.freeze({horizontal: true});\nexport const VERTICAL: Value = Object.freeze({horizontal: false});\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ScrollViewNativeProps as Props} from './ScrollViewNativeComponentType';\n\nimport * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';\nimport {ConditionallyIgnoredEventHandlers} from '../../NativeComponent/ViewConfigIgnore';\nimport Platform from '../../Utilities/Platform';\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig =\n Platform.OS === 'android'\n ? {\n uiViewClassName: 'RCTScrollView',\n bubblingEventTypes: {},\n directEventTypes: {\n topMomentumScrollBegin: {\n registrationName: 'onMomentumScrollBegin',\n },\n topMomentumScrollEnd: {\n registrationName: 'onMomentumScrollEnd',\n },\n topScroll: {\n registrationName: 'onScroll',\n },\n topScrollBeginDrag: {\n registrationName: 'onScrollBeginDrag',\n },\n topScrollEndDrag: {\n registrationName: 'onScrollEndDrag',\n },\n },\n validAttributes: {\n contentOffset: {\n diff: require('../../Utilities/differ/pointsDiffer'),\n },\n decelerationRate: true,\n enableSyncOnScroll: true, // Fabric only.\n disableIntervalMomentum: true,\n maintainVisibleContentPosition: true,\n pagingEnabled: true,\n scrollEnabled: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n sendMomentumEvents: true,\n borderRadius: true,\n nestedScrollEnabled: true,\n scrollEventThrottle: true,\n borderStyle: true,\n borderRightColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n borderColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n borderBottomColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n persistentScrollbar: true,\n horizontal: true,\n endFillColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n fadingEdgeLength: true,\n overScrollMode: true,\n borderTopLeftRadius: true,\n scrollPerfTag: true,\n borderTopColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n removeClippedSubviews: true,\n borderTopRightRadius: true,\n borderLeftColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n pointerEvents: true,\n isInvertedVirtualizedList: true,\n },\n }\n : {\n uiViewClassName: 'RCTScrollView',\n bubblingEventTypes: {},\n directEventTypes: {\n topMomentumScrollBegin: {\n registrationName: 'onMomentumScrollBegin',\n },\n topMomentumScrollEnd: {\n registrationName: 'onMomentumScrollEnd',\n },\n topScroll: {\n registrationName: 'onScroll',\n },\n topScrollBeginDrag: {\n registrationName: 'onScrollBeginDrag',\n },\n topScrollEndDrag: {\n registrationName: 'onScrollEndDrag',\n },\n topScrollToTop: {\n registrationName: 'onScrollToTop',\n },\n },\n validAttributes: {\n alwaysBounceHorizontal: true,\n alwaysBounceVertical: true,\n automaticallyAdjustContentInsets: true,\n automaticallyAdjustKeyboardInsets: true,\n automaticallyAdjustsScrollIndicatorInsets: true,\n bounces: true,\n bouncesZoom: true,\n canCancelContentTouches: true,\n centerContent: true,\n contentInset: {\n diff: require('../../Utilities/differ/insetsDiffer'),\n },\n contentOffset: {\n diff: require('../../Utilities/differ/pointsDiffer'),\n },\n contentInsetAdjustmentBehavior: true,\n decelerationRate: true,\n endDraggingSensitivityMultiplier: true,\n enableSyncOnScroll: true, // Fabric only.\n directionalLockEnabled: true,\n disableIntervalMomentum: true,\n indicatorStyle: true,\n inverted: true,\n keyboardDismissMode: true,\n maintainVisibleContentPosition: true,\n maximumZoomScale: true,\n minimumZoomScale: true,\n pagingEnabled: true,\n pinchGestureEnabled: true,\n scrollEnabled: true,\n scrollEventThrottle: true,\n scrollIndicatorInsets: {\n diff: require('../../Utilities/differ/insetsDiffer'),\n },\n scrollToOverflowEnabled: true,\n scrollsToTop: true,\n showsHorizontalScrollIndicator: true,\n showsVerticalScrollIndicator: true,\n snapToAlignment: true,\n snapToEnd: true,\n snapToInterval: true,\n snapToOffsets: true,\n snapToStart: true,\n zoomScale: true,\n ...ConditionallyIgnoredEventHandlers({\n onScrollBeginDrag: true,\n onMomentumScrollEnd: true,\n onScrollEndDrag: true,\n onMomentumScrollBegin: true,\n onScrollToTop: true,\n onScroll: true,\n }),\n },\n };\n\nconst ScrollViewNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'RCTScrollView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\nexport default ScrollViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {LayoutEvent} from '../../Types/CoreEventTypes';\n\nimport Animated from '../../Animated/Animated';\nimport {isPublicInstance as isFabricPublicInstance} from '../../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport useMergeRefs from '../../Utilities/useMergeRefs';\nimport * as React from 'react';\nimport {useCallback, useEffect, useMemo, useRef, useState} from 'react';\n\nexport type Props = $ReadOnly<{\n children?: React.Element<$FlowFixMe>,\n nextHeaderLayoutY: ?number,\n onLayout: (event: LayoutEvent) => void,\n scrollAnimatedValue: Animated.Value,\n // Will cause sticky headers to stick at the bottom of the ScrollView instead\n // of the top.\n inverted: ?boolean,\n // The height of the parent ScrollView. Currently only set when inverted.\n scrollViewHeight: ?number,\n nativeID?: ?string,\n hiddenOnScroll?: ?boolean,\n}>;\n\ntype Instance = {\n ...React.ElementRef,\n setNextHeaderY: number => void,\n ...\n};\n\nconst ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<\n Props,\n Instance,\n> = React.forwardRef(function ScrollViewStickyHeader(props, forwardedRef) {\n const {\n inverted,\n scrollViewHeight,\n hiddenOnScroll,\n scrollAnimatedValue,\n nextHeaderLayoutY: _nextHeaderLayoutY,\n } = props;\n\n const [measured, setMeasured] = useState(false);\n const [layoutY, setLayoutY] = useState(0);\n const [layoutHeight, setLayoutHeight] = useState(0);\n const [translateY, setTranslateY] = useState(null);\n const [nextHeaderLayoutY, setNextHeaderLayoutY] =\n useState(_nextHeaderLayoutY);\n const [isFabric, setIsFabric] = useState(false);\n\n const callbackRef = useCallback((ref: Instance | null): void => {\n if (ref == null) {\n return;\n }\n ref.setNextHeaderY = setNextHeaderLayoutY;\n setIsFabric(isFabricPublicInstance(ref));\n }, []);\n const ref: (React.ElementRef | null) => void =\n // $FlowFixMe[incompatible-type] - Ref is mutated by `callbackRef`.\n useMergeRefs(callbackRef, forwardedRef);\n\n const offset = useMemo(\n () =>\n hiddenOnScroll === true\n ? Animated.diffClamp(\n scrollAnimatedValue\n .interpolate({\n extrapolateLeft: 'clamp',\n inputRange: [layoutY, layoutY + 1],\n outputRange: ([0, 1]: Array),\n })\n .interpolate({\n inputRange: [0, 1],\n outputRange: ([0, -1]: Array),\n }),\n -layoutHeight,\n 0,\n )\n : null,\n [scrollAnimatedValue, layoutHeight, layoutY, hiddenOnScroll],\n );\n\n const [animatedTranslateY, setAnimatedTranslateY] = useState(\n () => {\n const inputRange: Array = [-1, 0];\n const outputRange: Array = [0, 0];\n const initialTranslateY = scrollAnimatedValue.interpolate({\n inputRange,\n outputRange,\n });\n\n if (offset != null) {\n return Animated.add(initialTranslateY, offset);\n }\n return initialTranslateY;\n },\n );\n\n const haveReceivedInitialZeroTranslateY = useRef(true);\n const translateYDebounceTimer = useRef(null);\n\n useEffect(() => {\n if (translateY !== 0 && translateY != null) {\n haveReceivedInitialZeroTranslateY.current = false;\n }\n }, [translateY]);\n\n // This is called whenever the (Interpolated) Animated Value\n // updates, which is several times per frame during scrolling.\n // To ensure that the Fabric ShadowTree has the most recent\n // translate style of this node, we debounce the value and then\n // pass it through to the underlying node during render.\n // This is:\n // 1. Only an issue in Fabric.\n // 2. Worse in Android than iOS. In Android, but not iOS, you\n // can touch and move your finger slightly and still trigger\n // a \"tap\" event. In iOS, moving will cancel the tap in\n // both Fabric and non-Fabric. On Android when you move\n // your finger, the hit-detection moves from the Android\n // platform to JS, so we need the ShadowTree to have knowledge\n // of the current position.\n const animatedValueListener = useCallback(({value}: $FlowFixMe) => {\n const debounceTimeout: number = Platform.OS === 'android' ? 15 : 64;\n // When the AnimatedInterpolation is recreated, it always initializes\n // to a value of zero and emits a value change of 0 to its listeners.\n if (value === 0 && !haveReceivedInitialZeroTranslateY.current) {\n haveReceivedInitialZeroTranslateY.current = true;\n return;\n }\n if (translateYDebounceTimer.current != null) {\n clearTimeout(translateYDebounceTimer.current);\n }\n translateYDebounceTimer.current = setTimeout(\n () => setTranslateY(value),\n debounceTimeout,\n );\n }, []);\n\n useEffect(() => {\n const inputRange: Array = [-1, 0];\n const outputRange: Array = [0, 0];\n\n if (measured) {\n if (inverted === true) {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - `stickStartPoint` is the point at which the header will start sticking.\n // It is calculated using the ScrollView viewport height so it is a the bottom.\n // - Headers that are in the initial viewport will never stick, `stickStartPoint`\n // will be negative.\n // - From 0 to `stickStartPoint` no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From `stickStartPoint` to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n if (scrollViewHeight != null) {\n const stickStartPoint = layoutY + layoutHeight - scrollViewHeight;\n if (stickStartPoint > 0) {\n inputRange.push(stickStartPoint);\n outputRange.push(0);\n inputRange.push(stickStartPoint + 1);\n outputRange.push(1);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint =\n (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight;\n if (collisionPoint > stickStartPoint) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(\n collisionPoint - stickStartPoint,\n collisionPoint - stickStartPoint,\n );\n }\n }\n }\n } else {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - From 0 to the y of the header: no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From header y to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n inputRange.push(layoutY);\n outputRange.push(0);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight;\n if (collisionPoint >= layoutY) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(collisionPoint - layoutY, collisionPoint - layoutY);\n } else {\n inputRange.push(layoutY + 1);\n outputRange.push(1);\n }\n }\n }\n\n let newAnimatedTranslateY: Animated.Node = scrollAnimatedValue.interpolate({\n inputRange,\n outputRange,\n });\n\n if (offset != null) {\n newAnimatedTranslateY = Animated.add(newAnimatedTranslateY, offset);\n }\n\n // add the event listener\n let animatedListenerId;\n if (isFabric) {\n animatedListenerId = newAnimatedTranslateY.addListener(\n animatedValueListener,\n );\n }\n\n setAnimatedTranslateY(newAnimatedTranslateY);\n\n // clean up the event listener and timer\n return () => {\n if (animatedListenerId) {\n newAnimatedTranslateY.removeListener(animatedListenerId);\n }\n if (translateYDebounceTimer.current != null) {\n clearTimeout(translateYDebounceTimer.current);\n }\n };\n }, [\n nextHeaderLayoutY,\n measured,\n layoutHeight,\n layoutY,\n scrollViewHeight,\n scrollAnimatedValue,\n inverted,\n offset,\n animatedValueListener,\n isFabric,\n ]);\n\n const _onLayout = (event: LayoutEvent) => {\n setLayoutY(event.nativeEvent.layout.y);\n setLayoutHeight(event.nativeEvent.layout.height);\n setMeasured(true);\n\n props.onLayout(event);\n const child = React.Children.only<$FlowFixMe>(props.children);\n if (child.props.onLayout) {\n child.props.onLayout(event);\n }\n };\n\n const child = React.Children.only<$FlowFixMe>(props.children);\n\n const passthroughAnimatedPropExplicitValues =\n isFabric && translateY != null\n ? {\n style: {transform: [{translateY: translateY}]},\n }\n : null;\n\n return (\n /* $FlowFixMe[prop-missing] passthroughAnimatedPropExplicitValues isn't properly\n included in the Animated.View flow type. */\n \n {React.cloneElement(child, {\n style: styles.fill, // We transfer the child style to the wrapper.\n onLayout: undefined, // we call this manually through our this._onLayout\n })}\n \n );\n});\n\nconst styles = StyleSheet.create({\n header: {\n zIndex: 10,\n position: 'relative',\n },\n fill: {\n flex: 1,\n },\n});\n\nexport default ScrollViewStickyHeaderWithForwardedRef;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport SectionList from '../../Lists/SectionList';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport * as React from 'react';\n\nexport default (createAnimatedComponent(SectionList): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {ScrollResponderType} from '../Components/ScrollView/ScrollView';\nimport type {\n ScrollToLocationParamsType,\n SectionBase as _SectionBase,\n VirtualizedSectionListProps,\n} from '@react-native/virtualized-lists';\n\nimport Platform from '../Utilities/Platform';\nimport {VirtualizedSectionList} from '@react-native/virtualized-lists';\nimport * as React from 'react';\n\ntype Item = any;\n\nexport type SectionBase = _SectionBase;\n\ntype RequiredProps> = {|\n /**\n * The actual data to render, akin to the `data` prop in [``](https://reactnative.dev/docs/flatlist).\n *\n * General shape:\n *\n * sections: $ReadOnlyArray<{\n * data: $ReadOnlyArray,\n * renderItem?: ({item: SectionItem, ...}) => ?React.Element<*>,\n * ItemSeparatorComponent?: ?ReactClass<{highlighted: boolean, ...}>,\n * }>\n */\n sections: $ReadOnlyArray,\n|};\n\ntype OptionalProps> = {|\n /**\n * Default renderer for every item in every section. Can be over-ridden on a per-section basis.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n ...\n },\n ...\n }) => null | React.Element,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks item.key, then\n * falls back to using the index, like react does. Note that this sets keys for each item, but\n * each overall section still needs its own key.\n */\n keyExtractor?: ?(item: Item, index: number) => string,\n /**\n * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered\n * content.\n */\n onEndReached?: ?(info: {distanceFromEnd: number, ...}) => void,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n|};\n\nexport type Props = {|\n ...$Diff<\n VirtualizedSectionListProps,\n {\n getItem: $PropertyType, 'getItem'>,\n getItemCount: $PropertyType<\n VirtualizedSectionListProps,\n 'getItemCount',\n >,\n renderItem: $PropertyType<\n VirtualizedSectionListProps,\n 'renderItem',\n >,\n keyExtractor: $PropertyType<\n VirtualizedSectionListProps,\n 'keyExtractor',\n >,\n ...\n },\n >,\n ...RequiredProps,\n ...OptionalProps,\n|};\n\n/**\n * A performant interface for rendering sectioned lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Configurable viewability callbacks.\n * - List header support.\n * - List footer support.\n * - Item separator support.\n * - Section header support.\n * - Section separator support.\n * - Heterogeneous data and item rendering support.\n * - Pull to Refresh.\n * - Scroll loading.\n *\n * If you don't need section support and want a simpler interface, use\n * [``](https://reactnative.dev/docs/flatlist).\n *\n * Simple Examples:\n *\n * }\n * renderSectionHeader={({section}) =>
}\n * sections={[ // homogeneous rendering between sections\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * ]}\n * />\n *\n * \n *\n * This is a convenience wrapper around [``](docs/virtualizedlist),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate and momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n */\nexport default class SectionList<\n SectionT: SectionBase,\n> extends React.PureComponent, void> {\n props: Props;\n\n /**\n * Scrolls to the item at the specified `sectionIndex` and `itemIndex` (within the section)\n * positioned in the viewable area such that `viewPosition` 0 places it at the top (and may be\n * covered by a sticky header), 1 at the bottom, and 0.5 centered in the middle. `viewOffset` is a\n * fixed number of pixels to offset the final target position, e.g. to compensate for sticky\n * headers.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToLocation(params: ScrollToLocationParamsType) {\n if (this._wrapperListRef != null) {\n this._wrapperListRef.scrollToLocation(params);\n }\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n listRef && listRef.recordInteraction();\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n listRef && listRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder(): ?ScrollResponderType {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollResponder();\n }\n }\n\n getScrollableNode(): any {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: Object) {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n listRef.setNativeProps(props);\n }\n }\n\n render(): React.Node {\n const {\n stickySectionHeadersEnabled: _stickySectionHeadersEnabled,\n ...restProps\n } = this.props;\n const stickySectionHeadersEnabled =\n _stickySectionHeadersEnabled ?? Platform.OS === 'ios';\n return (\n /* $FlowFixMe[incompatible-type] Error revealed after improved builtin\n * React utility types */\n /* $FlowFixMe[incompatible-type] Error revealed after improved builtin\n * React utility types */\n items.length}\n // $FlowFixMe[missing-local-annot]\n getItem={(items, index) => items[index]}\n />\n );\n }\n\n _wrapperListRef: ?React.ElementRef;\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n _captureRef = ref => {\n this._wrapperListRef = ref;\n };\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport Text from '../../Text/Text';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport * as React from 'react';\n\nexport default (createAnimatedComponent(\n (Text: $FlowFixMe),\n): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedComponentType} from '../createAnimatedComponent';\n\nimport View from '../../Components/View/View';\nimport createAnimatedComponent from '../createAnimatedComponent';\nimport * as React from 'react';\n\nexport default (createAnimatedComponent(View): AnimatedComponentType<\n React.ElementConfig,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {AccessibilityRole} from '../../Components/View/ViewAccessibility';\nimport type {\n MeasureInWindowOnSuccessCallback,\n MeasureLayoutOnSuccessCallback,\n MeasureOnSuccessCallback,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {ColorValue, ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {DirectEventHandler} from '../../Types/CodegenTypes';\n\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport dismissKeyboard from '../../Utilities/dismissKeyboard';\nimport StatusBar from '../StatusBar/StatusBar';\nimport View from '../View/View';\nimport AndroidDrawerLayoutNativeComponent, {\n Commands,\n} from './AndroidDrawerLayoutNativeComponent';\nimport nullthrows from 'nullthrows';\nimport * as React from 'react';\n\nconst DRAWER_STATES = ['Idle', 'Dragging', 'Settling'];\n\ntype DrawerStates = 'Idle' | 'Dragging' | 'Settling';\n\ntype DrawerSlideEvent = $ReadOnly<{|\n offset: number,\n|}>;\n\ntype Props = $ReadOnly<{|\n accessibilityRole?: ?AccessibilityRole,\n\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode?: ?('none' | 'on-drag'),\n\n /**\n * Specifies the background color of the drawer. The default value is white.\n * If you want to set the opacity of the drawer, use rgba. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ```\n */\n drawerBackgroundColor?: ?ColorValue,\n\n /**\n * Specifies the side of the screen from which the drawer will slide in.\n */\n drawerPosition: ?('left' | 'right'),\n\n /**\n * Specifies the width of the drawer, more precisely the width of the view that be pulled in\n * from the edge of the window.\n */\n drawerWidth?: ?number,\n\n /**\n * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:\n * - unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.\n * - locked-closed, meaning that the drawer will stay closed and not respond to gestures.\n * - locked-open, meaning that the drawer will stay opened and not respond to gestures.\n * The drawer may still be opened and closed programmatically (`openDrawer`/`closeDrawer`).\n */\n drawerLockMode?: ?('unlocked' | 'locked-closed' | 'locked-open'),\n\n /**\n * Function called whenever there is an interaction with the navigation view.\n */\n onDrawerSlide?: ?DirectEventHandler,\n\n /**\n * Function called when the drawer state has changed. The drawer can be in 3 states:\n * - Idle, meaning there is no interaction with the navigation view happening at the time\n * - Dragging, meaning there is currently an interaction with the navigation view\n * - Settling, meaning that there was an interaction with the navigation view, and the\n * navigation view is now finishing its closing or opening animation\n */\n onDrawerStateChanged?: ?(state: DrawerStates) => mixed,\n\n /**\n * Function called whenever the navigation view has been opened.\n */\n onDrawerOpen?: ?() => mixed,\n\n /**\n * Function called whenever the navigation view has been closed.\n */\n onDrawerClose?: ?() => mixed,\n\n /**\n * The navigation view that will be rendered to the side of the screen and can be pulled in.\n */\n renderNavigationView: () => React.Element,\n\n /**\n * Make the drawer take the entire screen and draw the background of the\n * status bar to allow it to open over the status bar. It will only have an\n * effect on API 21+.\n */\n statusBarBackgroundColor?: ?ColorValue,\n\n children?: React.Node,\n style?: ?ViewStyleProp,\n|}>;\n\ntype State = {|\n drawerOpened: boolean,\n|};\n\n/**\n * React component that wraps the platform `DrawerLayout` (Android only). The\n * Drawer (typically used for navigation) is rendered with `renderNavigationView`\n * and direct children are the main view (where your content goes). The navigation\n * view is initially not visible on the screen, but can be pulled in from the\n * side of the window specified by the `drawerPosition` prop and its width can\n * be set by the `drawerWidth` prop.\n *\n * Example:\n *\n * ```\n * render: function() {\n * var navigationView = (\n * \n * I'm in the Drawer!\n * \n * );\n * return (\n * navigationView}>\n * \n * Hello\n * World!\n * \n * \n * );\n * },\n * ```\n */\nclass DrawerLayoutAndroid extends React.Component {\n static get positions(): mixed {\n console.warn(\n 'Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value \"left\" or \"right\"',\n );\n\n return {Left: 'left', Right: 'right'};\n }\n\n // $FlowFixMe[missing-local-annot]\n _nativeRef =\n React.createRef<\n React.ElementRef,\n >();\n\n state: State = {\n drawerOpened: false,\n };\n\n render(): React.Node {\n const {\n drawerBackgroundColor = 'white',\n onDrawerStateChanged,\n renderNavigationView,\n onDrawerOpen,\n onDrawerClose,\n ...props\n } = this.props;\n const drawStatusBar = this.props.statusBarBackgroundColor != null;\n const drawerViewWrapper = (\n \n {renderNavigationView()}\n {drawStatusBar && }\n \n );\n const childrenWrapper = (\n \n {drawStatusBar && (\n \n )}\n {drawStatusBar && (\n \n )}\n {this.props.children}\n \n );\n return (\n \n {childrenWrapper}\n {drawerViewWrapper}\n \n );\n }\n\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n _onDrawerSlide = event => {\n if (this.props.onDrawerSlide) {\n // $FlowFixMe[unused-promise]\n this.props.onDrawerSlide(event);\n }\n if (this.props.keyboardDismissMode === 'on-drag') {\n dismissKeyboard();\n }\n };\n\n _onDrawerOpen = () => {\n this.setState({\n drawerOpened: true,\n });\n if (this.props.onDrawerOpen) {\n this.props.onDrawerOpen();\n }\n };\n\n _onDrawerClose = () => {\n this.setState({\n drawerOpened: false,\n });\n if (this.props.onDrawerClose) {\n this.props.onDrawerClose();\n }\n };\n\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n _onDrawerStateChanged = event => {\n if (this.props.onDrawerStateChanged) {\n this.props.onDrawerStateChanged(\n DRAWER_STATES[event.nativeEvent.drawerState],\n );\n }\n };\n\n /**\n * Opens the drawer.\n */\n openDrawer() {\n Commands.openDrawer(nullthrows(this._nativeRef.current));\n }\n\n /**\n * Closes the drawer.\n */\n closeDrawer() {\n Commands.closeDrawer(nullthrows(this._nativeRef.current));\n }\n\n /**\n * Closing and opening example\n * Note: To access the drawer you have to give it a ref\n *\n * Class component:\n *\n * render () {\n * this.openDrawer = () => {\n * this.refs.DRAWER.openDrawer()\n * }\n * this.closeDrawer = () => {\n * this.refs.DRAWER.closeDrawer()\n * }\n * return (\n * \n * {children}\n * \n * )\n * }\n *\n * Function component:\n *\n * const drawerRef = useRef()\n * const openDrawer = () => {\n * drawerRef.current.openDrawer()\n * }\n * const closeDrawer = () => {\n * drawerRef.current.closeDrawer()\n * }\n * return (\n * \n * {children}\n * \n * )\n */\n\n /**\n * Native methods\n */\n blur() {\n nullthrows(this._nativeRef.current).blur();\n }\n\n focus() {\n nullthrows(this._nativeRef.current).focus();\n }\n\n measure(callback: MeasureOnSuccessCallback) {\n nullthrows(this._nativeRef.current).measure(callback);\n }\n\n measureInWindow(callback: MeasureInWindowOnSuccessCallback) {\n nullthrows(this._nativeRef.current).measureInWindow(callback);\n }\n\n measureLayout(\n relativeToNativeNode: number,\n onSuccess: MeasureLayoutOnSuccessCallback,\n onFail?: () => void,\n ) {\n nullthrows(this._nativeRef.current).measureLayout(\n relativeToNativeNode,\n onSuccess,\n onFail,\n );\n }\n\n setNativeProps(nativeProps: Object) {\n nullthrows(this._nativeRef.current).setNativeProps(nativeProps);\n }\n}\n\nconst styles = StyleSheet.create({\n base: {\n flex: 1,\n elevation: 16,\n },\n mainSubview: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n drawerSubview: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n },\n statusBar: {\n height: StatusBar.currentHeight,\n },\n drawerStatusBar: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n height: StatusBar.currentHeight,\n backgroundColor: 'rgba(0, 0, 0, 0.251)',\n },\n});\n\nmodule.exports = DrawerLayoutAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\n\nimport processColor from '../../StyleSheet/processColor';\nimport Platform from '../../Utilities/Platform';\nimport NativeStatusBarManagerAndroid from './NativeStatusBarManagerAndroid';\nimport NativeStatusBarManagerIOS from './NativeStatusBarManagerIOS';\nimport invariant from 'invariant';\nimport * as React from 'react';\n\n/**\n * Status bar style\n */\nexport type StatusBarStyle = $Keys<{\n /**\n * Default status bar style (dark for iOS, light for Android)\n */\n default: string,\n /**\n * Dark background, white texts and icons\n */\n 'light-content': string,\n /**\n * Light background, dark texts and icons\n */\n 'dark-content': string,\n ...\n}>;\n\n/**\n * Status bar animation\n */\nexport type StatusBarAnimation = $Keys<{\n /**\n * No animation\n */\n none: string,\n /**\n * Fade animation\n */\n fade: string,\n /**\n * Slide animation\n */\n slide: string,\n ...\n}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * The background color of the status bar.\n * @platform android\n */\n backgroundColor?: ?ColorValue,\n /**\n * If the status bar is translucent.\n * When translucent is set to true, the app will draw under the status bar.\n * This is useful when using a semi transparent status bar color.\n *\n * @platform android\n */\n translucent?: ?boolean,\n|}>;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * If the network activity indicator should be visible.\n *\n * @platform ios\n */\n networkActivityIndicatorVisible?: ?boolean,\n /**\n * The transition effect when showing and hiding the status bar using the `hidden`\n * prop. Defaults to 'fade'.\n *\n * @platform ios\n */\n showHideTransition?: ?('fade' | 'slide' | 'none'),\n|}>;\n\ntype Props = $ReadOnly<{|\n ...AndroidProps,\n ...IOSProps,\n /**\n * If the status bar is hidden.\n */\n hidden?: ?boolean,\n /**\n * If the transition between status bar property changes should be animated.\n * Supported for backgroundColor, barStyle and hidden.\n */\n animated?: ?boolean,\n /**\n * Sets the color of the status bar text.\n */\n barStyle?: ?('default' | 'light-content' | 'dark-content'),\n|}>;\n\n/**\n * Merges the prop stack with the default values.\n */\nfunction mergePropsStack(\n propsStack: Array,\n defaultValues: Object,\n): Object {\n return propsStack.reduce(\n (prev, cur) => {\n for (const prop in cur) {\n if (cur[prop] != null) {\n prev[prop] = cur[prop];\n }\n }\n return prev;\n },\n {...defaultValues},\n );\n}\n\n/**\n * Returns an object to insert in the props stack from the props\n * and the transition/animation info.\n */\nfunction createStackEntry(props: any): any {\n const animated = props.animated ?? false;\n const showHideTransition = props.showHideTransition ?? 'fade';\n return {\n backgroundColor:\n props.backgroundColor != null\n ? {\n value: props.backgroundColor,\n animated,\n }\n : null,\n barStyle:\n props.barStyle != null\n ? {\n value: props.barStyle,\n animated,\n }\n : null,\n translucent: props.translucent,\n hidden:\n props.hidden != null\n ? {\n value: props.hidden,\n animated,\n transition: showHideTransition,\n }\n : null,\n networkActivityIndicatorVisible: props.networkActivityIndicatorVisible,\n };\n}\n\n/**\n * Component to control the app status bar.\n *\n * It is possible to have multiple `StatusBar` components mounted at the same\n * time. The props will be merged in the order the `StatusBar` components were\n * mounted.\n *\n * ### Imperative API\n *\n * For cases where using a component is not ideal, there are static methods\n * to manipulate the `StatusBar` display stack. These methods have the same\n * behavior as mounting and unmounting a `StatusBar` component.\n *\n * For example, you can call `StatusBar.pushStackEntry` to update the status bar\n * before launching a third-party native UI component, and then call\n * `StatusBar.popStackEntry` when completed.\n *\n * ```\n * const openThirdPartyBugReporter = async () => {\n * // The bug reporter has a dark background, so we push a new status bar style.\n * const stackEntry = StatusBar.pushStackEntry({barStyle: 'light-content'});\n *\n * // `open` returns a promise that resolves when the UI is dismissed.\n * await BugReporter.open();\n *\n * // Don't forget to call `popStackEntry` when you're done.\n * StatusBar.popStackEntry(stackEntry);\n * };\n * ```\n *\n * There is a legacy imperative API that enables you to manually update the\n * status bar styles. However, the legacy API does not update the internal\n * `StatusBar` display stack, which means that any changes will be overridden\n * whenever a `StatusBar` component is mounted or unmounted.\n *\n * It is strongly advised that you use `pushStackEntry`, `popStackEntry`, or\n * `replaceStackEntry` instead of the static methods beginning with `set`.\n *\n * ### Constants\n *\n * `currentHeight` (Android only) The height of the status bar.\n */\nclass StatusBar extends React.Component {\n static _propsStack: Array = [];\n\n static _defaultProps: any = createStackEntry({\n backgroundColor:\n Platform.OS === 'android'\n ? NativeStatusBarManagerAndroid.getConstants()\n .DEFAULT_BACKGROUND_COLOR ?? 'black'\n : 'black',\n barStyle: 'default',\n translucent: false,\n hidden: false,\n networkActivityIndicatorVisible: false,\n });\n\n // Timer for updating the native module values at the end of the frame.\n // $FlowFixMe[missing-local-annot]\n static _updateImmediate = null;\n\n // The current merged values from the props stack.\n // $FlowFixMe[missing-local-annot]\n static _currentValues = null;\n\n // TODO(janic): Provide a real API to deal with status bar height. See the\n // discussion in #6195.\n /**\n * The current height of the status bar on the device.\n *\n * @platform android\n */\n static currentHeight: ?number =\n Platform.OS === 'android'\n ? NativeStatusBarManagerAndroid.getConstants().HEIGHT\n : null;\n\n // Provide an imperative API as static functions of the component.\n // See the corresponding prop for more detail.\n\n /**\n * Show or hide the status bar\n * @param hidden Hide the status bar.\n * @param animation Optional animation when\n * changing the status bar hidden property.\n */\n static setHidden(hidden: boolean, animation?: StatusBarAnimation) {\n animation = animation || 'none';\n StatusBar._defaultProps.hidden.value = hidden;\n if (Platform.OS === 'ios') {\n NativeStatusBarManagerIOS.setHidden(hidden, animation);\n } else if (Platform.OS === 'android') {\n NativeStatusBarManagerAndroid.setHidden(hidden);\n }\n }\n\n /**\n * Set the status bar style\n * @param style Status bar style to set\n * @param animated Animate the style change.\n */\n static setBarStyle(style: StatusBarStyle, animated?: boolean) {\n animated = animated || false;\n StatusBar._defaultProps.barStyle.value = style;\n if (Platform.OS === 'ios') {\n NativeStatusBarManagerIOS.setStyle(style, animated);\n } else if (Platform.OS === 'android') {\n NativeStatusBarManagerAndroid.setStyle(style);\n }\n }\n\n /**\n * Control the visibility of the network activity indicator\n * @param visible Show the indicator.\n */\n static setNetworkActivityIndicatorVisible(visible: boolean) {\n if (Platform.OS !== 'ios') {\n console.warn(\n '`setNetworkActivityIndicatorVisible` is only available on iOS',\n );\n return;\n }\n StatusBar._defaultProps.networkActivityIndicatorVisible = visible;\n NativeStatusBarManagerIOS.setNetworkActivityIndicatorVisible(visible);\n }\n\n /**\n * Set the background color for the status bar\n * @param color Background color.\n * @param animated Animate the style change.\n */\n static setBackgroundColor(color: string, animated?: boolean): void {\n if (Platform.OS !== 'android') {\n console.warn('`setBackgroundColor` is only available on Android');\n return;\n }\n animated = animated || false;\n StatusBar._defaultProps.backgroundColor.value = color;\n\n const processedColor = processColor(color);\n if (processedColor == null) {\n console.warn(\n `\\`StatusBar.setBackgroundColor\\`: Color ${color} parsed to null or undefined`,\n );\n return;\n }\n invariant(\n typeof processedColor === 'number',\n 'Unexpected color given for StatusBar.setBackgroundColor',\n );\n\n NativeStatusBarManagerAndroid.setColor(processedColor, animated);\n }\n\n /**\n * Control the translucency of the status bar\n * @param translucent Set as translucent.\n */\n static setTranslucent(translucent: boolean) {\n if (Platform.OS !== 'android') {\n console.warn('`setTranslucent` is only available on Android');\n return;\n }\n StatusBar._defaultProps.translucent = translucent;\n NativeStatusBarManagerAndroid.setTranslucent(translucent);\n }\n\n /**\n * Push a StatusBar entry onto the stack.\n * The return value should be passed to `popStackEntry` when complete.\n *\n * @param props Object containing the StatusBar props to use in the stack entry.\n */\n static pushStackEntry(props: any): any {\n const entry = createStackEntry(props);\n StatusBar._propsStack.push(entry);\n StatusBar._updatePropsStack();\n return entry;\n }\n\n /**\n * Pop a StatusBar entry from the stack.\n *\n * @param entry Entry returned from `pushStackEntry`.\n */\n static popStackEntry(entry: any) {\n const index = StatusBar._propsStack.indexOf(entry);\n if (index !== -1) {\n StatusBar._propsStack.splice(index, 1);\n }\n StatusBar._updatePropsStack();\n }\n\n /**\n * Replace an existing StatusBar stack entry with new props.\n *\n * @param entry Entry returned from `pushStackEntry` to replace.\n * @param props Object containing the StatusBar props to use in the replacement stack entry.\n */\n static replaceStackEntry(entry: any, props: any): any {\n const newEntry = createStackEntry(props);\n const index = StatusBar._propsStack.indexOf(entry);\n if (index !== -1) {\n StatusBar._propsStack[index] = newEntry;\n }\n StatusBar._updatePropsStack();\n return newEntry;\n }\n\n // $FlowFixMe[missing-local-annot]\n _stackEntry = null;\n\n componentDidMount() {\n // Every time a StatusBar component is mounted, we push it's prop to a stack\n // and always update the native status bar with the props from the top of then\n // stack. This allows having multiple StatusBar components and the one that is\n // added last or is deeper in the view hierarchy will have priority.\n this._stackEntry = StatusBar.pushStackEntry(this.props);\n }\n\n componentWillUnmount() {\n // When a StatusBar is unmounted, remove itself from the stack and update\n // the native bar with the next props.\n StatusBar.popStackEntry(this._stackEntry);\n }\n\n componentDidUpdate() {\n this._stackEntry = StatusBar.replaceStackEntry(\n this._stackEntry,\n this.props,\n );\n }\n\n /**\n * Updates the native status bar with the props from the stack.\n */\n static _updatePropsStack = () => {\n // Send the update to the native module only once at the end of the frame.\n clearImmediate(StatusBar._updateImmediate);\n StatusBar._updateImmediate = setImmediate(() => {\n const oldProps = StatusBar._currentValues;\n const mergedProps = mergePropsStack(\n StatusBar._propsStack,\n StatusBar._defaultProps,\n );\n\n // Update the props that have changed using the merged values from the props stack.\n if (Platform.OS === 'ios') {\n if (\n !oldProps ||\n oldProps.barStyle.value !== mergedProps.barStyle.value\n ) {\n NativeStatusBarManagerIOS.setStyle(\n mergedProps.barStyle.value,\n mergedProps.barStyle.animated || false,\n );\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n NativeStatusBarManagerIOS.setHidden(\n mergedProps.hidden.value,\n mergedProps.hidden.animated\n ? mergedProps.hidden.transition\n : 'none',\n );\n }\n\n if (\n !oldProps ||\n oldProps.networkActivityIndicatorVisible !==\n mergedProps.networkActivityIndicatorVisible\n ) {\n NativeStatusBarManagerIOS.setNetworkActivityIndicatorVisible(\n mergedProps.networkActivityIndicatorVisible,\n );\n }\n } else if (Platform.OS === 'android') {\n //todo(T60684787): Add back optimization to only update bar style and\n //background color if the new value is different from the old value.\n NativeStatusBarManagerAndroid.setStyle(mergedProps.barStyle.value);\n const processedColor = processColor(mergedProps.backgroundColor.value);\n if (processedColor == null) {\n console.warn(\n `\\`StatusBar._updatePropsStack\\`: Color ${mergedProps.backgroundColor.value} parsed to null or undefined`,\n );\n } else {\n invariant(\n typeof processedColor === 'number',\n 'Unexpected color given in StatusBar._updatePropsStack',\n );\n NativeStatusBarManagerAndroid.setColor(\n processedColor,\n mergedProps.backgroundColor.animated,\n );\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n NativeStatusBarManagerAndroid.setHidden(mergedProps.hidden.value);\n }\n // Activities are not translucent by default, so always set if true.\n if (\n !oldProps ||\n oldProps.translucent !== mergedProps.translucent ||\n mergedProps.translucent\n ) {\n NativeStatusBarManagerAndroid.setTranslucent(mergedProps.translucent);\n }\n }\n // Update the current prop values.\n StatusBar._currentValues = mergedProps;\n });\n };\n\n render(): React.Node {\n return null;\n }\n}\n\nmodule.exports = StatusBar;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeStatusBarManagerAndroid';\nimport NativeStatusBarManagerAndroid from '../../../src/private/specs/modules/NativeStatusBarManagerAndroid';\nexport default NativeStatusBarManagerAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR: number,\n |};\n +setColor: (color: number, animated: boolean) => void;\n +setTranslucent: (translucent: boolean) => void;\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n */\n +setStyle: (statusBarStyle?: ?string) => void;\n +setHidden: (hidden: boolean) => void;\n}\n\nconst NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager');\nlet constants = null;\n\nconst NativeStatusBarManager = {\n getConstants(): {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR?: number,\n |} {\n if (constants == null) {\n constants = NativeModule.getConstants();\n }\n return constants;\n },\n\n setColor(color: number, animated: boolean): void {\n NativeModule.setColor(color, animated);\n },\n\n setTranslucent(translucent: boolean): void {\n NativeModule.setTranslucent(translucent);\n },\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n */\n setStyle(statusBarStyle?: ?string): void {\n NativeModule.setStyle(statusBarStyle);\n },\n\n setHidden(hidden: boolean): void {\n NativeModule.setHidden(hidden);\n },\n};\n\nexport default NativeStatusBarManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeStatusBarManagerIOS';\nimport NativeStatusBarManagerIOS from '../../../src/private/specs/modules/NativeStatusBarManagerIOS';\nexport default NativeStatusBarManagerIOS;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR?: number,\n |};\n\n // TODO(T47754272) Can we remove this method?\n +getHeight: (callback: (result: {|height: number|}) => void) => void;\n +setNetworkActivityIndicatorVisible: (visible: boolean) => void;\n +addListener: (eventType: string) => void;\n +removeListeners: (count: number) => void;\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n * - 'light-content'\n */\n +setStyle: (statusBarStyle?: ?string, animated: boolean) => void;\n /**\n * - withAnimation can be: 'none' | 'fade' | 'slide'\n */\n +setHidden: (hidden: boolean, withAnimation: string) => void;\n}\n\nconst NativeModule = TurboModuleRegistry.getEnforcing('StatusBarManager');\nlet constants = null;\n\nconst NativeStatusBarManager = {\n getConstants(): {|\n +HEIGHT: number,\n +DEFAULT_BACKGROUND_COLOR?: number,\n |} {\n if (constants == null) {\n constants = NativeModule.getConstants();\n }\n return constants;\n },\n\n // TODO(T47754272) Can we remove this method?\n getHeight(callback: (result: {|height: number|}) => void): void {\n NativeModule.getHeight(callback);\n },\n\n setNetworkActivityIndicatorVisible(visible: boolean): void {\n NativeModule.setNetworkActivityIndicatorVisible(visible);\n },\n\n addListener(eventType: string): void {\n NativeModule.addListener(eventType);\n },\n\n removeListeners(count: number): void {\n NativeModule.removeListeners(count);\n },\n\n /**\n * - statusBarStyles can be:\n * - 'default'\n * - 'dark-content'\n * - 'light-content'\n */\n setStyle(statusBarStyle?: ?string, animated: boolean): void {\n NativeModule.setStyle(statusBarStyle, animated);\n },\n\n /**\n * - withAnimation can be: 'none' | 'fade' | 'slide'\n */\n setHidden(hidden: boolean, withAnimation: string): void {\n NativeModule.setHidden(hidden, withAnimation);\n },\n};\n\nexport default NativeStatusBarManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/AndroidDrawerLayoutNativeComponent';\nimport AndroidDrawerLayoutNativeComponent from '../../../src/private/specs/components/AndroidDrawerLayoutNativeComponent';\nexport default AndroidDrawerLayoutNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\nimport type {\n DirectEventHandler,\n Float,\n Int32,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\nimport * as React from 'react';\n\ntype DrawerStateEvent = $ReadOnly<{|\n drawerState: Int32,\n|}>;\n\ntype DrawerSlideEvent = $ReadOnly<{|\n offset: Float,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode?: WithDefault<'none' | 'on-drag', 'none'>,\n\n /**\n * Specifies the background color of the drawer. The default value is white.\n * If you want to set the opacity of the drawer, use rgba. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ```\n */\n drawerBackgroundColor: ColorValue,\n\n /**\n * Specifies the side of the screen from which the drawer will slide in.\n */\n drawerPosition?: WithDefault<'left' | 'right', 'left'>,\n\n /**\n * Specifies the width of the drawer, more precisely the width of the view that be pulled in\n * from the edge of the window.\n */\n\n drawerWidth?: WithDefault,\n\n /**\n * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:\n * - unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.\n * - locked-closed, meaning that the drawer will stay closed and not respond to gestures.\n * - locked-open, meaning that the drawer will stay opened and not respond to gestures.\n * The drawer may still be opened and closed programmatically (`openDrawer`/`closeDrawer`).\n */\n drawerLockMode?: WithDefault<\n 'unlocked' | 'locked-closed' | 'locked-open',\n 'unlocked',\n >,\n\n /**\n * Function called whenever there is an interaction with the navigation view.\n */\n onDrawerSlide?: ?DirectEventHandler,\n\n /**\n * Function called when the drawer state has changed. The drawer can be in 3 states:\n * - Idle, meaning there is no interaction with the navigation view happening at the time\n * - Dragging, meaning there is currently an interaction with the navigation view\n * - Settling, meaning that there was an interaction with the navigation view, and the\n * navigation view is now finishing its closing or opening animation\n */\n onDrawerStateChanged?: ?DirectEventHandler,\n\n /**\n * Function called whenever the navigation view has been opened.\n */\n onDrawerOpen?: ?DirectEventHandler,\n\n /**\n * Function called whenever the navigation view has been closed.\n */\n onDrawerClose?: ?DirectEventHandler,\n\n /**\n * Make the drawer take the entire screen and draw the background of the\n * status bar to allow it to open over the status bar. It will only have an\n * effect on API 21+.\n */\n statusBarBackgroundColor?: ?ColorValue,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +openDrawer: (viewRef: React.ElementRef) => void;\n +closeDrawer: (viewRef: React.ElementRef) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['openDrawer', 'closeDrawer'],\n});\n\nexport default (codegenNativeComponent(\n 'AndroidDrawerLayout',\n): NativeType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {HostComponent} from '../Renderer/shims/ReactNativeTypes';\nimport type {ImageBackgroundProps} from './ImageProps';\n\nimport View from '../Components/View/View';\nimport flattenStyle from '../StyleSheet/flattenStyle';\nimport StyleSheet from '../StyleSheet/StyleSheet';\nimport Image from './Image';\nimport * as React from 'react';\n\n/**\n * Very simple drop-in replacement for which supports nesting views.\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, ImageBackground, Text } from 'react-native';\n *\n * class DisplayAnImageBackground extends Component {\n * render() {\n * return (\n * \n * React\n * \n * );\n * }\n * }\n *\n * // App registration and rendering\n * AppRegistry.registerComponent('DisplayAnImageBackground', () => DisplayAnImageBackground);\n * ```\n */\nclass ImageBackground extends React.Component {\n setNativeProps(props: {...}) {\n // Work-around flow\n const viewRef = this._viewRef;\n if (viewRef) {\n viewRef.setNativeProps(props);\n }\n }\n\n _viewRef: ?React.ElementRef = null;\n\n _captureRef = (\n ref: null | React$ElementRef<\n React$AbstractComponent<\n ViewProps,\n React.ElementRef>,\n >,\n >,\n ) => {\n this._viewRef = ref;\n };\n\n render(): React.Node {\n const {\n children,\n style,\n imageStyle,\n imageRef,\n importantForAccessibility,\n ...props\n } = this.props;\n\n // $FlowFixMe[underconstrained-implicit-instantiation]\n const flattenedStyle = flattenStyle(style);\n return (\n \n {/* $FlowFixMe[incompatible-use] */}\n overwrites width and height styles\n // (which is not quite correct), and these styles conflict with explicitly set styles\n // of and with our internal layout model here.\n // So, we have to proxy/reapply these styles explicitly for actual component.\n // This workaround should be removed after implementing proper support of\n // intrinsic content size of the .\n // $FlowFixMe[prop-missing]\n width: flattenedStyle?.width,\n // $FlowFixMe[prop-missing]\n height: flattenedStyle?.height,\n },\n imageStyle,\n ]}\n ref={imageRef}\n />\n {children}\n \n );\n }\n}\n\nmodule.exports = ImageBackground;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport SafeAreaView from '../../Components/SafeAreaView/SafeAreaView';\nimport StyleSheet, {\n type ColorValue,\n type ViewStyleProp,\n} from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport useWindowDimensions from '../../Utilities/useWindowDimensions';\nimport RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent';\nimport * as React from 'react';\n\n/**\n * Note: iOS only\n *\n * A component which enables customization of the keyboard input accessory view.\n * The input accessory view is displayed above the keyboard whenever a TextInput\n * has focus. This component can be used to create custom toolbars.\n *\n * To use this component wrap your custom toolbar with the\n * InputAccessoryView component, and set a nativeID. Then, pass that nativeID\n * as the inputAccessoryViewID of whatever TextInput you desire. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput, InputAccessoryView, Button } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {text: 'Placeholder Text'};\n * }\n *\n * render() {\n * const inputAccessoryViewID = \"uniqueID\";\n * return (\n * \n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * \n * this.setState({text: 'Placeholder Text'})}\n * title=\"Reset Text\"\n * />\n * \n * \n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * This component can also be used to create sticky text inputs (text inputs\n * which are anchored to the top of the keyboard). To do this, wrap a\n * TextInput with the InputAccessoryView component, and don't set a nativeID.\n * For an example, look at InputAccessoryViewExample.js in RNTester.\n */\n\ntype Props = $ReadOnly<{|\n +children: React.Node,\n /**\n * An ID which is used to associate this `InputAccessoryView` to\n * specified TextInput(s).\n */\n nativeID?: ?string,\n style?: ?ViewStyleProp,\n backgroundColor?: ?ColorValue,\n|}>;\n\nconst InputAccessoryView: React.AbstractComponent = (props: Props) => {\n const {width} = useWindowDimensions();\n\n if (Platform.OS === 'ios') {\n if (React.Children.count(props.children) === 0) {\n return null;\n }\n\n return (\n \n \n {props.children}\n \n \n );\n } else {\n console.warn(' is only supported on iOS.');\n return null;\n }\n};\n\nconst styles = StyleSheet.create({\n container: {\n position: 'absolute',\n },\n safeAreaView: {\n flex: 1,\n },\n});\n\nexport default InputAccessoryView;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nimport Platform from '../../Utilities/Platform';\nimport View from '../View/View';\nimport * as React from 'react';\n\n/**\n * Renders nested content and automatically applies paddings reflect the portion\n * of the view that is not covered by navigation bars, tab bars, toolbars, and\n * other ancestor views.\n *\n * Moreover, and most importantly, Safe Area's paddings reflect physical\n * limitation of the screen, such as rounded corners or camera notches (aka\n * sensor housing area on iPhone X).\n */\nconst exported: React.AbstractComponent<\n ViewProps,\n React.ElementRef,\n> = Platform.select({\n ios: require('./RCTSafeAreaViewNativeComponent').default,\n default: View,\n});\n\nexport default exported;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/RCTSafeAreaViewNativeComponent';\nimport RCTSafeAreaViewNativeComponent from '../../../src/private/specs/components/RCTSafeAreaViewNativeComponent';\nexport default RCTSafeAreaViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\n\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // No props\n|}>;\n\nexport default (codegenNativeComponent('SafeAreaView', {\n paperComponentName: 'RCTSafeAreaView',\n interfaceOnly: true,\n}): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport Dimensions from './Dimensions';\nimport {\n type DisplayMetrics,\n type DisplayMetricsAndroid,\n} from './NativeDeviceInfo';\nimport {useEffect, useState} from 'react';\n\nexport default function useWindowDimensions():\n | DisplayMetrics\n | DisplayMetricsAndroid {\n const [dimensions, setDimensions] = useState(() => Dimensions.get('window'));\n useEffect(() => {\n function handleChange({\n window,\n }: {\n window: DisplayMetrics | DisplayMetricsAndroid,\n }) {\n if (\n dimensions.width !== window.width ||\n dimensions.height !== window.height ||\n dimensions.scale !== window.scale ||\n dimensions.fontScale !== window.fontScale\n ) {\n setDimensions(window);\n }\n }\n const subscription = Dimensions.addEventListener('change', handleChange);\n // We might have missed an update between calling `get` in render and\n // `addEventListener` in this handler, so we set it here. If there was\n // no change, React will filter out this update as a no-op.\n handleChange({window: Dimensions.get('window')});\n return () => {\n subscription.remove();\n };\n }, [dimensions]);\n return dimensions;\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/RCTInputAccessoryViewNativeComponent';\nimport RCTInputAccessoryViewNativeComponent from '../../../src/private/specs/components/RCTInputAccessoryViewNativeComponent';\nexport default RCTInputAccessoryViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\n\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n backgroundColor?: ?ColorValue,\n|}>;\n\nexport default (codegenNativeComponent('InputAccessory', {\n interfaceOnly: true,\n paperComponentName: 'RCTInputAccessoryView',\n excludedPlatforms: ['android'],\n}): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport type {\n ViewLayout,\n ViewLayoutEvent,\n ViewProps,\n} from '../View/ViewPropTypes';\nimport type {KeyboardEvent, KeyboardMetrics} from './Keyboard';\n\nimport LayoutAnimation from '../../LayoutAnimation/LayoutAnimation';\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport {type EventSubscription} from '../../vendor/emitter/EventEmitter';\nimport AccessibilityInfo from '../AccessibilityInfo/AccessibilityInfo';\nimport View from '../View/View';\nimport Keyboard from './Keyboard';\nimport * as React from 'react';\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Specify how to react to the presence of the keyboard.\n */\n behavior?: ?('height' | 'position' | 'padding'),\n\n /**\n * Style of the content container when `behavior` is 'position'.\n */\n contentContainerStyle?: ?ViewStyleProp,\n\n /**\n * Controls whether this `KeyboardAvoidingView` instance should take effect.\n * This is useful when more than one is on the screen. Defaults to true.\n */\n enabled?: ?boolean,\n\n /**\n * Distance between the top of the user screen and the React Native view. This\n * may be non-zero in some cases. Defaults to 0.\n */\n keyboardVerticalOffset?: number,\n|}>;\n\ntype State = {|\n bottom: number,\n|};\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n */\nclass KeyboardAvoidingView extends React.Component {\n _frame: ?ViewLayout = null;\n _keyboardEvent: ?KeyboardEvent = null;\n _subscriptions: Array = [];\n viewRef: {current: React.ElementRef | null, ...};\n _initialFrameHeight: number = 0;\n _bottom: number = 0;\n\n constructor(props: Props) {\n super(props);\n this.state = {bottom: 0};\n this.viewRef = React.createRef();\n }\n\n async _relativeKeyboardHeight(\n keyboardFrame: KeyboardMetrics,\n ): Promise {\n const frame = this._frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n // On iOS when Prefer Cross-Fade Transitions is enabled, the keyboard position\n // & height is reported differently (0 instead of Y position value matching height of frame)\n if (\n Platform.OS === 'ios' &&\n keyboardFrame.screenY === 0 &&\n (await AccessibilityInfo.prefersCrossFadeTransitions())\n ) {\n return 0;\n }\n\n const keyboardY =\n keyboardFrame.screenY - (this.props.keyboardVerticalOffset ?? 0);\n\n if (this.props.behavior === 'height') {\n return Math.max(\n this.state.bottom + frame.y + frame.height - keyboardY,\n 0,\n );\n }\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(frame.y + frame.height - keyboardY, 0);\n }\n\n _onKeyboardChange = (event: ?KeyboardEvent) => {\n this._keyboardEvent = event;\n // $FlowFixMe[unused-promise]\n this._updateBottomIfNecessary();\n };\n\n _onLayout = async (event: ViewLayoutEvent) => {\n const oldFrame = this._frame;\n this._frame = event.nativeEvent.layout;\n if (!this._initialFrameHeight) {\n // save the initial frame height, before the keyboard is visible\n this._initialFrameHeight = this._frame.height;\n }\n\n // update bottom height for the first time or when the height is changed\n if (!oldFrame || oldFrame.height !== this._frame.height) {\n await this._updateBottomIfNecessary();\n }\n\n if (this.props.onLayout) {\n this.props.onLayout(event);\n }\n };\n\n // Avoid unnecessary renders if the KeyboardAvoidingView is disabled.\n _setBottom = (value: number) => {\n const enabled = this.props.enabled ?? true;\n this._bottom = value;\n if (enabled) {\n this.setState({bottom: value});\n }\n };\n\n _updateBottomIfNecessary = async () => {\n if (this._keyboardEvent == null) {\n this._setBottom(0);\n return;\n }\n\n const {duration, easing, endCoordinates} = this._keyboardEvent;\n const height = await this._relativeKeyboardHeight(endCoordinates);\n\n if (this._bottom === height) {\n return;\n }\n\n this._setBottom(height);\n\n const enabled = this.props.enabled ?? true;\n if (enabled && duration && easing) {\n LayoutAnimation.configureNext({\n // We have to pass the duration equal to minimal accepted duration defined here: RCTLayoutAnimation.m\n duration: duration > 10 ? duration : 10,\n update: {\n duration: duration > 10 ? duration : 10,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n };\n\n componentDidUpdate(_: Props, prevState: State): void {\n const enabled = this.props.enabled ?? true;\n if (enabled && this._bottom !== prevState.bottom) {\n this.setState({bottom: this._bottom});\n }\n }\n\n componentDidMount(): void {\n if (Platform.OS === 'ios') {\n this._subscriptions = [\n Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange),\n ];\n } else {\n this._subscriptions = [\n Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),\n Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),\n ];\n }\n }\n\n componentWillUnmount(): void {\n this._subscriptions.forEach(subscription => {\n subscription.remove();\n });\n }\n\n render(): React.Node {\n const {\n behavior,\n children,\n contentContainerStyle,\n enabled = true,\n // eslint-disable-next-line no-unused-vars\n keyboardVerticalOffset = 0,\n style,\n onLayout,\n ...props\n } = this.props;\n const bottomHeight = enabled === true ? this.state.bottom : 0;\n switch (behavior) {\n case 'height':\n let heightStyle;\n if (this._frame != null && this.state.bottom > 0) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n height: this._initialFrameHeight - bottomHeight,\n flex: 0,\n };\n }\n return (\n \n {children}\n \n );\n\n case 'position':\n return (\n \n \n {children}\n \n \n );\n\n case 'padding':\n return (\n \n {children}\n \n );\n\n default:\n return (\n \n {children}\n \n );\n }\n }\n}\n\nexport default KeyboardAvoidingView;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../Components/View/ViewPropTypes';\nimport type {RootTag} from '../ReactNative/RootTag';\nimport type {DirectEventHandler} from '../Types/CodegenTypes';\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport {type EventSubscription} from '../vendor/emitter/EventEmitter';\nimport ModalInjection from './ModalInjection';\nimport NativeModalManager from './NativeModalManager';\nimport RCTModalHostView from './RCTModalHostViewNativeComponent';\nimport {VirtualizedListContextResetter} from '@react-native/virtualized-lists';\n\nconst ScrollView = require('../Components/ScrollView/ScrollView');\nconst View = require('../Components/View/View');\nconst AppContainer = require('../ReactNative/AppContainer');\nconst I18nManager = require('../ReactNative/I18nManager');\nconst {RootTagContext} = require('../ReactNative/RootTag');\nconst StyleSheet = require('../StyleSheet/StyleSheet');\nconst Platform = require('../Utilities/Platform');\nconst React = require('react');\n\ntype ModalEventDefinitions = {\n modalDismissed: [{modalID: number}],\n};\n\nconst ModalEventEmitter =\n Platform.OS === 'ios' && NativeModalManager != null\n ? new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativeModalManager,\n )\n : null;\n\n/**\n * The Modal component is a simple way to present content above an enclosing view.\n *\n * See https://reactnative.dev/docs/modal\n */\n\n// In order to route onDismiss callbacks, we need to uniquely identifier each\n// on screen. There can be different ones, either nested or as siblings.\n// We cannot pass the onDismiss callback to native as the view will be\n// destroyed before the callback is fired.\nlet uniqueModalIdentifier = 0;\n\ntype OrientationChangeEvent = $ReadOnly<{|\n orientation: 'portrait' | 'landscape',\n|}>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The `animationType` prop controls how the modal animates.\n *\n * See https://reactnative.dev/docs/modal#animationtype\n */\n animationType?: ?('none' | 'slide' | 'fade'),\n\n /**\n * The `presentationStyle` prop controls how the modal appears.\n *\n * See https://reactnative.dev/docs/modal#presentationstyle\n */\n presentationStyle?: ?(\n | 'fullScreen'\n | 'pageSheet'\n | 'formSheet'\n | 'overFullScreen'\n ),\n\n /**\n * The `transparent` prop determines whether your modal will fill the\n * entire view.\n *\n * See https://reactnative.dev/docs/modal#transparent\n */\n transparent?: ?boolean,\n\n /**\n * The `statusBarTranslucent` prop determines whether your modal should go under\n * the system statusbar.\n *\n * See https://reactnative.dev/docs/modal.html#statusbartranslucent-android\n */\n statusBarTranslucent?: ?boolean,\n\n /**\n * The `hardwareAccelerated` prop controls whether to force hardware\n * acceleration for the underlying window.\n *\n * This prop works only on Android.\n *\n * See https://reactnative.dev/docs/modal#hardwareaccelerated\n */\n hardwareAccelerated?: ?boolean,\n\n /**\n * The `visible` prop determines whether your modal is visible.\n *\n * See https://reactnative.dev/docs/modal#visible\n */\n visible?: ?boolean,\n\n /**\n * The `onRequestClose` callback is called when the user taps the hardware\n * back button on Android or the menu button on Apple TV.\n *\n * This is required on Apple TV and Android.\n *\n * See https://reactnative.dev/docs/modal#onrequestclose\n */\n onRequestClose?: ?DirectEventHandler,\n\n /**\n * The `onShow` prop allows passing a function that will be called once the\n * modal has been shown.\n *\n * See https://reactnative.dev/docs/modal#onshow\n */\n onShow?: ?DirectEventHandler,\n\n /**\n * The `onDismiss` prop allows passing a function that will be called once\n * the modal has been dismissed.\n *\n * See https://reactnative.dev/docs/modal#ondismiss\n */\n onDismiss?: ?() => mixed,\n\n /**\n * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.\n *\n * See https://reactnative.dev/docs/modal#supportedorientations\n */\n supportedOrientations?: ?$ReadOnlyArray<\n | 'portrait'\n | 'portrait-upside-down'\n | 'landscape'\n | 'landscape-left'\n | 'landscape-right',\n >,\n\n /**\n * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.\n *\n * See https://reactnative.dev/docs/modal#onorientationchange\n */\n onOrientationChange?: ?DirectEventHandler,\n|}>;\n\nfunction confirmProps(props: Props) {\n if (__DEV__) {\n if (\n props.presentationStyle &&\n props.presentationStyle !== 'overFullScreen' &&\n props.transparent === true\n ) {\n console.warn(\n `Modal with '${props.presentationStyle}' presentation style and 'transparent' value is not supported.`,\n );\n }\n }\n}\n\n// Create a state to track whether the Modal is rendering or not.\n// This is the only prop that controls whether the modal is rendered or not.\ntype State = {\n isRendered: boolean,\n};\n\nclass Modal extends React.Component {\n static defaultProps: {|hardwareAccelerated: boolean, visible: boolean|} = {\n visible: true,\n hardwareAccelerated: false,\n };\n\n static contextType: React.Context = RootTagContext;\n\n _identifier: number;\n _eventSubscription: ?EventSubscription;\n\n constructor(props: Props) {\n super(props);\n if (__DEV__) {\n confirmProps(props);\n }\n this._identifier = uniqueModalIdentifier++;\n this.state = {\n isRendered: props.visible === true,\n };\n }\n\n componentDidMount() {\n // 'modalDismissed' is for the old renderer in iOS only\n if (ModalEventEmitter) {\n this._eventSubscription = ModalEventEmitter.addListener(\n 'modalDismissed',\n event => {\n this.setState({isRendered: false}, () => {\n if (event.modalID === this._identifier && this.props.onDismiss) {\n this.props.onDismiss();\n }\n });\n },\n );\n }\n }\n\n componentWillUnmount() {\n this.setState({isRendered: false});\n if (this._eventSubscription) {\n this._eventSubscription.remove();\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n if (prevProps.visible === false && this.props.visible === true) {\n this.setState({isRendered: true});\n }\n\n if (__DEV__) {\n confirmProps(this.props);\n }\n }\n\n // Helper function to encapsulate platform specific logic to show or not the Modal.\n _shouldShowModal(): boolean {\n if (Platform.OS === 'ios') {\n return this.props.visible === true || this.state.isRendered === true;\n }\n\n return this.props.visible === true;\n }\n\n render(): React.Node {\n if (!this._shouldShowModal()) {\n return null;\n }\n\n const containerStyles = {\n backgroundColor:\n this.props.transparent === true ? 'transparent' : 'white',\n };\n\n let animationType = this.props.animationType || 'none';\n\n let presentationStyle = this.props.presentationStyle;\n if (!presentationStyle) {\n presentationStyle = 'fullScreen';\n if (this.props.transparent === true) {\n presentationStyle = 'overFullScreen';\n }\n }\n\n const innerChildren = __DEV__ ? (\n {this.props.children}\n ) : (\n this.props.children\n );\n\n const onDismiss = () => {\n // OnDismiss is implemented on iOS only.\n if (Platform.OS === 'ios') {\n this.setState({isRendered: false}, () => {\n if (this.props.onDismiss) {\n this.props.onDismiss();\n }\n });\n }\n };\n\n return (\n \n \n \n \n {innerChildren}\n \n \n \n \n );\n }\n\n // We don't want any responder events bubbling out of the modal.\n _shouldSetResponder(): boolean {\n return true;\n }\n}\n\nconst side = I18nManager.getConstants().isRTL ? 'right' : 'left';\nconst styles = StyleSheet.create({\n modal: {\n position: 'absolute',\n },\n container: {\n /* $FlowFixMe[invalid-computed-prop] (>=0.111.0 site=react_native_fb) This\n * comment suppresses an error found when Flow v0.111 was deployed. To see\n * the error, delete this comment and run Flow. */\n [side]: 0,\n top: 0,\n flex: 1,\n },\n});\n\nconst ExportedModal: React.AbstractComponent<\n React.ElementConfig,\n> = ModalInjection.unstable_Modal ?? Modal;\n\nmodule.exports = ExportedModal;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport typeof Modal from './Modal';\n\nexport default {\n unstable_Modal: (null: ?Modal),\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeModalManager';\nimport NativeModalManager from '../../src/private/specs/modules/NativeModalManager';\nexport default NativeModalManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('ModalManager'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../src/private/specs/components/RCTModalHostViewNativeComponent';\nimport RCTModalHostViewNativeComponent from '../../src/private/specs/components/RCTModalHostViewNativeComponent';\nexport default RCTModalHostViewNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {\n DirectEventHandler,\n Int32,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\n\ntype OrientationChangeEvent = $ReadOnly<{|\n orientation: 'portrait' | 'landscape',\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * The `animationType` prop controls how the modal animates.\n *\n * See https://reactnative.dev/docs/modal#animationtype\n */\n animationType?: WithDefault<'none' | 'slide' | 'fade', 'none'>,\n\n /**\n * The `presentationStyle` prop controls how the modal appears.\n *\n * See https://reactnative.dev/docs/modal#presentationstyle\n */\n presentationStyle?: WithDefault<\n 'fullScreen' | 'pageSheet' | 'formSheet' | 'overFullScreen',\n 'fullScreen',\n >,\n\n /**\n * The `transparent` prop determines whether your modal will fill the\n * entire view.\n *\n * See https://reactnative.dev/docs/modal#transparent\n */\n transparent?: WithDefault,\n\n /**\n * The `statusBarTranslucent` prop determines whether your modal should go under\n * the system statusbar.\n *\n * See https://reactnative.dev/docs/modal#statusBarTranslucent\n */\n statusBarTranslucent?: WithDefault,\n\n /**\n * The `hardwareAccelerated` prop controls whether to force hardware\n * acceleration for the underlying window.\n *\n * See https://reactnative.dev/docs/modal#hardwareaccelerated\n */\n hardwareAccelerated?: WithDefault,\n\n /**\n * The `onRequestClose` callback is called when the user taps the hardware\n * back button on Android or the menu button on Apple TV.\n *\n * This is required on Apple TV and Android.\n *\n * See https://reactnative.dev/docs/modal#onrequestclose\n */\n onRequestClose?: ?DirectEventHandler,\n\n /**\n * The `onShow` prop allows passing a function that will be called once the\n * modal has been shown.\n *\n * See https://reactnative.dev/docs/modal#onshow\n */\n onShow?: ?DirectEventHandler,\n\n /**\n * The `onDismiss` prop allows passing a function that will be called once\n * the modal has been dismissed.\n *\n * See https://reactnative.dev/docs/modal#ondismiss\n */\n onDismiss?: ?DirectEventHandler,\n\n /**\n * The `visible` prop determines whether your modal is visible.\n *\n * See https://reactnative.dev/docs/modal#visible\n */\n visible?: WithDefault,\n\n /**\n * Deprecated. Use the `animationType` prop instead.\n */\n animated?: WithDefault,\n\n /**\n * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.\n *\n * See https://reactnative.dev/docs/modal#supportedorientations\n */\n supportedOrientations?: WithDefault<\n $ReadOnlyArray<\n | 'portrait'\n | 'portrait-upside-down'\n | 'landscape'\n | 'landscape-left'\n | 'landscape-right',\n >,\n 'portrait',\n >,\n\n /**\n * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.\n *\n * See https://reactnative.dev/docs/modal#onorientationchange\n */\n onOrientationChange?: ?DirectEventHandler,\n\n /**\n * The `identifier` is the unique number for identifying Modal components.\n */\n identifier?: WithDefault,\n|}>;\n\nexport default (codegenNativeComponent('ModalHostView', {\n interfaceOnly: true,\n paperComponentName: 'RCTModalHostView',\n}): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {I18nManagerConstants} from './NativeI18nManager';\n\nimport NativeI18nManager from './NativeI18nManager';\n\nconst i18nConstants: I18nManagerConstants = getI18nManagerConstants();\n\nfunction getI18nManagerConstants(): I18nManagerConstants {\n if (NativeI18nManager) {\n const {isRTL, doLeftAndRightSwapInRTL, localeIdentifier} =\n NativeI18nManager.getConstants();\n return {isRTL, doLeftAndRightSwapInRTL, localeIdentifier};\n }\n\n return {\n isRTL: false,\n doLeftAndRightSwapInRTL: true,\n };\n}\n\nmodule.exports = {\n getConstants: (): I18nManagerConstants => {\n return i18nConstants;\n },\n\n allowRTL: (shouldAllow: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.allowRTL(shouldAllow);\n },\n\n forceRTL: (shouldForce: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.forceRTL(shouldForce);\n },\n\n swapLeftAndRightInRTL: (flipStyles: boolean) => {\n if (!NativeI18nManager) {\n return;\n }\n\n NativeI18nManager.swapLeftAndRightInRTL(flipStyles);\n },\n\n isRTL: i18nConstants.isRTL,\n doLeftAndRightSwapInRTL: i18nConstants.doLeftAndRightSwapInRTL,\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeI18nManager';\nimport NativeI18nManager from '../../src/private/specs/modules/NativeI18nManager';\nexport default NativeI18nManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport type I18nManagerConstants = {|\n doLeftAndRightSwapInRTL: boolean,\n isRTL: boolean,\n localeIdentifier?: ?string,\n|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => I18nManagerConstants;\n allowRTL: (allowRTL: boolean) => void;\n forceRTL: (forceRTL: boolean) => void;\n swapLeftAndRightInRTL: (flipStyles: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.get('I18nManager'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n LayoutEvent,\n MouseEvent,\n PressEvent,\n} from '../../Types/CoreEventTypes';\nimport type {\n AccessibilityActionEvent,\n AccessibilityActionInfo,\n AccessibilityRole,\n AccessibilityState,\n AccessibilityValue,\n} from '../View/ViewAccessibility';\n\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug';\nimport usePressability from '../../Pressability/usePressability';\nimport {type RectOrSize} from '../../StyleSheet/Rect';\nimport useMergeRefs from '../../Utilities/useMergeRefs';\nimport View from '../View/View';\nimport useAndroidRippleForView, {\n type RippleConfig,\n} from './useAndroidRippleForView';\nimport * as React from 'react';\nimport {useMemo, useRef, useState} from 'react';\n\ntype ViewStyleProp = $ElementType, 'style'>;\n\nexport type StateCallbackType = $ReadOnly<{|\n pressed: boolean,\n|}>;\n\ntype Props = $ReadOnly<{|\n /**\n * Accessibility.\n */\n accessibilityActions?: ?$ReadOnlyArray,\n accessibilityElementsHidden?: ?boolean,\n accessibilityHint?: ?Stringish,\n accessibilityLanguage?: ?Stringish,\n accessibilityIgnoresInvertColors?: ?boolean,\n accessibilityLabel?: ?Stringish,\n accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'),\n accessibilityRole?: ?AccessibilityRole,\n accessibilityState?: ?AccessibilityState,\n accessibilityValue?: ?AccessibilityValue,\n 'aria-valuemax'?: AccessibilityValue['max'],\n 'aria-valuemin'?: AccessibilityValue['min'],\n 'aria-valuenow'?: AccessibilityValue['now'],\n 'aria-valuetext'?: AccessibilityValue['text'],\n accessibilityViewIsModal?: ?boolean,\n 'aria-modal'?: ?boolean,\n accessible?: ?boolean,\n\n /**\n * alias for accessibilityState\n *\n * see https://reactnative.dev/docs/accessibility#accessibilitystate\n */\n 'aria-busy'?: ?boolean,\n 'aria-checked'?: ?boolean | 'mixed',\n 'aria-disabled'?: ?boolean,\n 'aria-expanded'?: ?boolean,\n 'aria-selected'?: ?boolean,\n /**\n * A value indicating whether the accessibility elements contained within\n * this accessibility element are hidden.\n */\n 'aria-hidden'?: ?boolean,\n 'aria-live'?: ?('polite' | 'assertive' | 'off'),\n focusable?: ?boolean,\n importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),\n onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,\n\n /**\n * Whether a press gesture can be interrupted by a parent gesture such as a\n * scroll event. Defaults to true.\n */\n cancelable?: ?boolean,\n\n /**\n * Either children or a render prop that receives a boolean reflecting whether\n * the component is currently pressed.\n */\n children: React.Node | ((state: StateCallbackType) => React.Node),\n\n /**\n * Duration to wait after hover in before calling `onHoverIn`.\n */\n delayHoverIn?: ?number,\n\n /**\n * Duration to wait after hover out before calling `onHoverOut`.\n */\n delayHoverOut?: ?number,\n\n /**\n * Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.\n */\n delayLongPress?: ?number,\n\n /**\n * Whether the press behavior is disabled.\n */\n disabled?: ?boolean,\n\n /**\n * Additional distance outside of this view in which a press is detected.\n */\n hitSlop?: ?RectOrSize,\n\n /**\n * Additional distance outside of this view in which a touch is considered a\n * press before `onPressOut` is triggered.\n */\n pressRetentionOffset?: ?RectOrSize,\n\n /**\n * Called when this view's layout changes.\n */\n onLayout?: ?(event: LayoutEvent) => mixed,\n\n /**\n * Called when the hover is activated to provide visual feedback.\n */\n onHoverIn?: ?(event: MouseEvent) => mixed,\n\n /**\n * Called when the hover is deactivated to undo visual feedback.\n */\n onHoverOut?: ?(event: MouseEvent) => mixed,\n\n /**\n * Called when a long-tap gesture is detected.\n */\n onLongPress?: ?(event: PressEvent) => mixed,\n\n /**\n * Called when a single tap gesture is detected.\n */\n onPress?: ?(event: PressEvent) => mixed,\n\n /**\n * Called when a touch is engaged before `onPress`.\n */\n onPressIn?: ?(event: PressEvent) => mixed,\n\n /**\n * Called when a touch is released before `onPress`.\n */\n onPressOut?: ?(event: PressEvent) => mixed,\n\n /**\n * Either view styles or a function that receives a boolean reflecting whether\n * the component is currently pressed and returns view styles.\n */\n style?: ViewStyleProp | ((state: StateCallbackType) => ViewStyleProp),\n\n /**\n * Identifier used to find this view in tests.\n */\n testID?: ?string,\n\n /**\n * If true, doesn't play system sound on touch.\n */\n android_disableSound?: ?boolean,\n\n /**\n * Enables the Android ripple effect and configures its color.\n */\n android_ripple?: ?RippleConfig,\n\n /**\n * Used only for documentation or testing (e.g. snapshot testing).\n */\n testOnly_pressed?: ?boolean,\n\n /**\n * Duration to wait after press down before calling `onPressIn`.\n */\n unstable_pressDelay?: ?number,\n /**\n * Web to Native Accessibility props\n * https://github.com/facebook/react-native/issues/34424\n */\n 'aria-label'?: ?string,\n|}>;\n\ntype Instance = React.ElementRef;\n\n/**\n * Component used to build display components that should respond to whether the\n * component is currently pressed or not.\n */\nfunction Pressable(\n props: Props,\n forwardedRef: React.RefSetter,\n): React.Node {\n const {\n accessible,\n accessibilityState,\n 'aria-live': ariaLive,\n android_disableSound,\n android_ripple,\n 'aria-busy': ariaBusy,\n 'aria-checked': ariaChecked,\n 'aria-disabled': ariaDisabled,\n 'aria-expanded': ariaExpanded,\n 'aria-label': ariaLabel,\n 'aria-selected': ariaSelected,\n cancelable,\n children,\n delayHoverIn,\n delayHoverOut,\n delayLongPress,\n disabled,\n focusable,\n hitSlop,\n onHoverIn,\n onHoverOut,\n onLongPress,\n onPress,\n onPressIn,\n onPressOut,\n pressRetentionOffset,\n style,\n testOnly_pressed,\n unstable_pressDelay,\n ...restProps\n } = props;\n\n const viewRef = useRef(null);\n const mergedRef = useMergeRefs(forwardedRef, viewRef);\n\n const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);\n\n const [pressed, setPressed] = usePressState(testOnly_pressed === true);\n\n const shouldUpdatePressed =\n typeof children === 'function' || typeof style === 'function';\n\n let _accessibilityState = {\n busy: ariaBusy ?? accessibilityState?.busy,\n checked: ariaChecked ?? accessibilityState?.checked,\n disabled: ariaDisabled ?? accessibilityState?.disabled,\n expanded: ariaExpanded ?? accessibilityState?.expanded,\n selected: ariaSelected ?? accessibilityState?.selected,\n };\n\n _accessibilityState =\n disabled != null ? {..._accessibilityState, disabled} : _accessibilityState;\n\n const accessibilityValue = {\n max: props['aria-valuemax'] ?? props.accessibilityValue?.max,\n min: props['aria-valuemin'] ?? props.accessibilityValue?.min,\n now: props['aria-valuenow'] ?? props.accessibilityValue?.now,\n text: props['aria-valuetext'] ?? props.accessibilityValue?.text,\n };\n\n const accessibilityLiveRegion =\n ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion;\n\n const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;\n const restPropsWithDefaults: React.ElementConfig = {\n ...restProps,\n ...android_rippleConfig?.viewProps,\n accessible: accessible !== false,\n accessibilityViewIsModal:\n restProps['aria-modal'] ?? restProps.accessibilityViewIsModal,\n accessibilityLiveRegion,\n accessibilityLabel,\n accessibilityState: _accessibilityState,\n focusable: focusable !== false,\n accessibilityValue,\n hitSlop,\n };\n\n const config = useMemo(\n () => ({\n cancelable,\n disabled,\n hitSlop,\n pressRectOffset: pressRetentionOffset,\n android_disableSound,\n delayHoverIn,\n delayHoverOut,\n delayLongPress,\n delayPressIn: unstable_pressDelay,\n onHoverIn,\n onHoverOut,\n onLongPress,\n onPress,\n onPressIn(event: PressEvent): void {\n if (android_rippleConfig != null) {\n android_rippleConfig.onPressIn(event);\n }\n shouldUpdatePressed && setPressed(true);\n if (onPressIn != null) {\n onPressIn(event);\n }\n },\n onPressMove: android_rippleConfig?.onPressMove,\n onPressOut(event: PressEvent): void {\n if (android_rippleConfig != null) {\n android_rippleConfig.onPressOut(event);\n }\n shouldUpdatePressed && setPressed(false);\n if (onPressOut != null) {\n onPressOut(event);\n }\n },\n }),\n [\n android_disableSound,\n android_rippleConfig,\n cancelable,\n delayHoverIn,\n delayHoverOut,\n delayLongPress,\n disabled,\n hitSlop,\n onHoverIn,\n onHoverOut,\n onLongPress,\n onPress,\n onPressIn,\n onPressOut,\n pressRetentionOffset,\n setPressed,\n shouldUpdatePressed,\n unstable_pressDelay,\n ],\n );\n const eventHandlers = usePressability(config);\n\n return (\n \n {typeof children === 'function' ? children({pressed}) : children}\n {__DEV__ ? : null}\n \n );\n}\n\nfunction usePressState(forcePressed: boolean): [boolean, (boolean) => void] {\n const [pressed, setPressed] = useState(false);\n return [pressed || forcePressed, setPressed];\n}\n\nconst MemoedPressable = React.memo(React.forwardRef(Pressable));\nMemoedPressable.displayName = 'Pressable';\n\nexport default (MemoedPressable: React.AbstractComponent<\n Props,\n React.ElementRef,\n>);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {PressEvent} from '../../Types/CoreEventTypes';\n\nimport processColor from '../../StyleSheet/processColor';\nimport Platform from '../../Utilities/Platform';\nimport View from '../View/View';\nimport {Commands} from '../View/ViewNativeComponent';\nimport invariant from 'invariant';\nimport * as React from 'react';\nimport {useMemo} from 'react';\n\ntype NativeBackgroundProp = $ReadOnly<{|\n type: 'RippleAndroid',\n color: ?number,\n borderless: boolean,\n rippleRadius: ?number,\n|}>;\n\nexport type RippleConfig = {|\n color?: ColorValue,\n borderless?: boolean,\n radius?: number,\n foreground?: boolean,\n|};\n\n/**\n * Provides the event handlers and props for configuring the ripple effect on\n * supported versions of Android.\n */\nexport default function useAndroidRippleForView(\n rippleConfig: ?RippleConfig,\n viewRef: {|current: null | React.ElementRef|},\n): ?$ReadOnly<{|\n onPressIn: (event: PressEvent) => void,\n onPressMove: (event: PressEvent) => void,\n onPressOut: (event: PressEvent) => void,\n viewProps:\n | $ReadOnly<{|nativeBackgroundAndroid: NativeBackgroundProp|}>\n | $ReadOnly<{|nativeForegroundAndroid: NativeBackgroundProp|}>,\n|}> {\n const {color, borderless, radius, foreground} = rippleConfig ?? {};\n\n return useMemo(() => {\n if (\n Platform.OS === 'android' &&\n (color != null || borderless != null || radius != null)\n ) {\n const processedColor = processColor(color);\n invariant(\n processedColor == null || typeof processedColor === 'number',\n 'Unexpected color given for Ripple color',\n );\n\n const nativeRippleValue = {\n type: 'RippleAndroid',\n color: processedColor,\n borderless: borderless === true,\n rippleRadius: radius,\n };\n\n return {\n viewProps:\n foreground === true\n ? // $FlowFixMe[incompatible-return]\n {nativeForegroundAndroid: nativeRippleValue}\n : // $FlowFixMe[incompatible-return]\n {nativeBackgroundAndroid: nativeRippleValue},\n onPressIn(event: PressEvent): void {\n const view = viewRef.current;\n if (view != null) {\n Commands.hotspotUpdate(\n view,\n event.nativeEvent.locationX ?? 0,\n event.nativeEvent.locationY ?? 0,\n );\n Commands.setPressed(view, true);\n }\n },\n onPressMove(event: PressEvent): void {\n const view = viewRef.current;\n if (view != null) {\n Commands.hotspotUpdate(\n view,\n event.nativeEvent.locationX ?? 0,\n event.nativeEvent.locationY ?? 0,\n );\n }\n },\n onPressOut(event: PressEvent): void {\n const view = viewRef.current;\n if (view != null) {\n Commands.setPressed(view, false);\n }\n },\n };\n }\n return null;\n }, [borderless, color, foreground, radius, viewRef]);\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {SyntheticEvent} from '../../Types/CoreEventTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\n\nimport StyleSheet from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport useMergeRefs from '../../Utilities/useMergeRefs';\nimport AndroidSwitchNativeComponent, {\n Commands as AndroidSwitchCommands,\n} from './AndroidSwitchNativeComponent';\nimport SwitchNativeComponent, {\n Commands as SwitchCommands,\n} from './SwitchNativeComponent';\nimport * as React from 'react';\n\ntype SwitchChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n value: boolean,\n target: number,\n |}>,\n>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n If true the user won't be able to toggle the switch.\n\n @default false\n */\n disabled?: ?boolean,\n\n /**\n The value of the switch. If true the switch will be turned on.\n\n @default false\n */\n value?: ?boolean,\n\n /**\n Color of the foreground switch grip. If this is set on iOS, the switch grip will lose its drop shadow.\n */\n thumbColor?: ?ColorValue,\n\n /**\n Custom colors for the switch track.\n\n _iOS_: When the switch value is false, the track shrinks into the border. If you want to change the\n color of the background exposed by the shrunken track, use\n [`ios_backgroundColor`](https://reactnative.dev/docs/switch#ios_backgroundColor).\n */\n trackColor?: ?$ReadOnly<{|\n false?: ?ColorValue,\n true?: ?ColorValue,\n |}>,\n\n /**\n On iOS, custom color for the background. This background color can be\n seen either when the switch value is false or when the switch is\n disabled (and the switch is translucent).\n */\n ios_backgroundColor?: ?ColorValue,\n\n /**\n Invoked when the user tries to change the value of the switch. Receives\n the change event as an argument. If you want to only receive the new\n value, use `onValueChange` instead.\n */\n onChange?: ?(event: SwitchChangeEvent) => Promise | void,\n\n /**\n Invoked when the user tries to change the value of the switch. Receives\n the new value as an argument. If you want to instead receive an event,\n use `onChange`.\n */\n onValueChange?: ?(value: boolean) => Promise | void,\n|}>;\nconst returnsFalse = () => false;\nconst returnsTrue = () => true;\n\n/**\n Renders a boolean input.\n\n This is a controlled component that requires an `onValueChange`\n callback that updates the `value` prop in order for the component to\n reflect user actions. If the `value` prop is not updated, the\n component will continue to render the supplied `value` prop instead of\n the expected result of any user actions.\n\n ```SnackPlayer name=Switch\n import React, { useState } from \"react\";\n import { View, Switch, StyleSheet } from \"react-native\";\n\n const App = () => {\n const [isEnabled, setIsEnabled] = useState(false);\n const toggleSwitch = () => setIsEnabled(previousState => !previousState);\n\n return (\n \n \n \n );\n }\n\n const styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: \"center\",\n justifyContent: \"center\"\n }\n });\n\n export default App;\n ```\n */\n\nconst SwitchWithForwardedRef: React.AbstractComponent<\n Props,\n React.ElementRef<\n typeof SwitchNativeComponent | typeof AndroidSwitchNativeComponent,\n >,\n> = React.forwardRef(function Switch(props, forwardedRef): React.Node {\n const {\n disabled,\n ios_backgroundColor,\n onChange,\n onValueChange,\n style,\n thumbColor,\n trackColor,\n value,\n ...restProps\n } = props;\n const trackColorForFalse = trackColor?.false;\n const trackColorForTrue = trackColor?.true;\n\n const nativeSwitchRef = React.useRef | null>(null);\n\n const ref = useMergeRefs(nativeSwitchRef, forwardedRef);\n\n const [native, setNative] = React.useState({value: (null: ?boolean)});\n\n const handleChange = (event: SwitchChangeEvent) => {\n // $FlowFixMe[unused-promise]\n onChange?.(event);\n // $FlowFixMe[unused-promise]\n onValueChange?.(event.nativeEvent.value);\n setNative({value: event.nativeEvent.value});\n };\n\n React.useLayoutEffect(() => {\n // This is necessary in case native updates the switch and JS decides\n // that the update should be ignored and we should stick with the value\n // that we have in JS.\n const jsValue = value === true;\n const shouldUpdateNativeSwitch =\n native.value != null && native.value !== jsValue;\n if (\n shouldUpdateNativeSwitch &&\n nativeSwitchRef.current?.setNativeProps != null\n ) {\n if (Platform.OS === 'android') {\n AndroidSwitchCommands.setNativeValue(nativeSwitchRef.current, jsValue);\n } else {\n SwitchCommands.setValue(nativeSwitchRef.current, jsValue);\n }\n }\n }, [value, native]);\n\n if (Platform.OS === 'android') {\n const {accessibilityState} = restProps;\n const _disabled =\n disabled != null ? disabled : accessibilityState?.disabled;\n\n const _accessibilityState =\n _disabled !== accessibilityState?.disabled\n ? {...accessibilityState, disabled: _disabled}\n : accessibilityState;\n\n const platformProps = {\n accessibilityState: _accessibilityState,\n enabled: _disabled !== true,\n on: value === true,\n style,\n thumbTintColor: thumbColor,\n trackColorForFalse: trackColorForFalse,\n trackColorForTrue: trackColorForTrue,\n trackTintColor: value === true ? trackColorForTrue : trackColorForFalse,\n };\n\n return (\n \n );\n } else {\n const platformProps = {\n disabled,\n onTintColor: trackColorForTrue,\n style: StyleSheet.compose(\n {height: 31, width: 51},\n StyleSheet.compose(\n style,\n ios_backgroundColor == null\n ? null\n : {\n backgroundColor: ios_backgroundColor,\n borderRadius: 16,\n },\n ),\n ),\n thumbTintColor: thumbColor,\n tintColor: trackColorForFalse,\n value: value === true,\n };\n\n return (\n \n );\n }\n});\n\nexport default SwitchWithForwardedRef;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/AndroidSwitchNativeComponent';\nimport AndroidSwitchNativeComponent from '../../../src/private/specs/components/AndroidSwitchNativeComponent';\nexport default AndroidSwitchNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\nimport type {\n BubblingEventHandler,\n Int32,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\nimport * as React from 'react';\n\ntype SwitchChangeEvent = $ReadOnly<{|\n value: boolean,\n target: Int32,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // Props\n disabled?: WithDefault,\n enabled?: WithDefault,\n thumbColor?: ?ColorValue,\n trackColorForFalse?: ?ColorValue,\n trackColorForTrue?: ?ColorValue,\n value?: WithDefault,\n on?: WithDefault,\n thumbTintColor?: ?ColorValue,\n trackTintColor?: ?ColorValue,\n\n // Events\n onChange?: BubblingEventHandler,\n|}>;\n\ntype NativeType = HostComponent;\n\ninterface NativeCommands {\n +setNativeValue: (\n viewRef: React.ElementRef,\n value: boolean,\n ) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setNativeValue'],\n});\n\nexport default (codegenNativeComponent('AndroidSwitch', {\n interfaceOnly: true,\n}): NativeType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nexport * from '../../../src/private/specs/components/SwitchNativeComponent';\nimport SwitchNativeComponent from '../../../src/private/specs/components/SwitchNativeComponent';\nexport default SwitchNativeComponent;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ViewProps} from '../../../../Libraries/Components/View/ViewPropTypes';\nimport type {HostComponent} from '../../../../Libraries/Renderer/shims/ReactNativeTypes';\nimport type {ColorValue} from '../../../../Libraries/StyleSheet/StyleSheet';\nimport type {\n BubblingEventHandler,\n Int32,\n WithDefault,\n} from '../../../../Libraries/Types/CodegenTypes';\n\nimport codegenNativeCommands from '../../../../Libraries/Utilities/codegenNativeCommands';\nimport codegenNativeComponent from '../../../../Libraries/Utilities/codegenNativeComponent';\nimport * as React from 'react';\n\ntype SwitchChangeEvent = $ReadOnly<{|\n value: boolean,\n target: Int32,\n|}>;\n\ntype NativeProps = $ReadOnly<{|\n ...ViewProps,\n\n // Props\n disabled?: WithDefault,\n value?: WithDefault,\n tintColor?: ?ColorValue,\n onTintColor?: ?ColorValue,\n thumbTintColor?: ?ColorValue,\n\n // Deprecated props\n thumbColor?: ?ColorValue,\n trackColorForFalse?: ?ColorValue,\n trackColorForTrue?: ?ColorValue,\n\n // Events\n onChange?: ?BubblingEventHandler,\n|}>;\n\ntype ComponentType = HostComponent;\n\ninterface NativeCommands {\n +setValue: (viewRef: React.ElementRef, value: boolean) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['setValue'],\n});\n\nexport default (codegenNativeComponent('Switch', {\n paperComponentName: 'RCTSwitch',\n excludedPlatforms: ['android'],\n}): ComponentType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';\nimport type {\n PressEvent,\n ScrollEvent,\n SyntheticEvent,\n} from '../../Types/CoreEventTypes';\nimport type {ViewProps} from '../View/ViewPropTypes';\nimport type {TextInputType} from './TextInput.flow';\n\nimport usePressability from '../../Pressability/usePressability';\nimport flattenStyle from '../../StyleSheet/flattenStyle';\nimport StyleSheet, {\n type ColorValue,\n type TextStyleProp,\n type ViewStyleProp,\n} from '../../StyleSheet/StyleSheet';\nimport Text from '../../Text/Text';\nimport TextAncestor from '../../Text/TextAncestor';\nimport Platform from '../../Utilities/Platform';\nimport useMergeRefs from '../../Utilities/useMergeRefs';\nimport TextInputState from './TextInputState';\nimport invariant from 'invariant';\nimport nullthrows from 'nullthrows';\nimport * as React from 'react';\nimport {useCallback, useLayoutEffect, useRef, useState} from 'react';\n\ntype ReactRefSetter = {current: null | T, ...} | ((ref: null | T) => mixed);\ntype TextInputInstance = React.ElementRef> & {\n +clear: () => void,\n +isFocused: () => boolean,\n +getNativeRef: () => ?React.ElementRef>,\n +setSelection: (start: number, end: number) => void,\n};\n\nlet AndroidTextInput;\nlet AndroidTextInputCommands;\nlet RCTSinglelineTextInputView;\nlet RCTSinglelineTextInputNativeCommands;\nlet RCTMultilineTextInputView;\nlet RCTMultilineTextInputNativeCommands;\n\nif (Platform.OS === 'android') {\n AndroidTextInput = require('./AndroidTextInputNativeComponent').default;\n AndroidTextInputCommands =\n require('./AndroidTextInputNativeComponent').Commands;\n} else if (Platform.OS === 'ios') {\n RCTSinglelineTextInputView =\n require('./RCTSingelineTextInputNativeComponent').default;\n RCTSinglelineTextInputNativeCommands =\n require('./RCTSingelineTextInputNativeComponent').Commands;\n RCTMultilineTextInputView =\n require('./RCTMultilineTextInputNativeComponent').default;\n RCTMultilineTextInputNativeCommands =\n require('./RCTMultilineTextInputNativeComponent').Commands;\n}\n\nexport type ChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n target: number,\n text: string,\n |}>,\n>;\n\nexport type TextInputEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n previousText: string,\n range: $ReadOnly<{|\n start: number,\n end: number,\n |}>,\n target: number,\n text: string,\n |}>,\n>;\n\nexport type ContentSizeChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n contentSize: $ReadOnly<{|\n width: number,\n height: number,\n |}>,\n |}>,\n>;\n\ntype TargetEvent = SyntheticEvent<\n $ReadOnly<{|\n target: number,\n |}>,\n>;\n\nexport type BlurEvent = TargetEvent;\nexport type FocusEvent = TargetEvent;\n\ntype Selection = $ReadOnly<{|\n start: number,\n end: number,\n|}>;\n\nexport type SelectionChangeEvent = SyntheticEvent<\n $ReadOnly<{|\n selection: Selection,\n target: number,\n |}>,\n>;\n\nexport type KeyPressEvent = SyntheticEvent<\n $ReadOnly<{|\n key: string,\n target?: ?number,\n eventCount?: ?number,\n |}>,\n>;\n\nexport type EditingEvent = SyntheticEvent<\n $ReadOnly<{|\n eventCount: number,\n text: string,\n target: number,\n |}>,\n>;\n\ntype DataDetectorTypesType =\n | 'phoneNumber'\n | 'link'\n | 'address'\n | 'calendarEvent'\n | 'trackingNumber'\n | 'flightNumber'\n | 'lookupSuggestion'\n | 'none'\n | 'all';\n\nexport type KeyboardType =\n // Cross Platform\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'number-pad'\n | 'decimal-pad'\n | 'url'\n // iOS-only\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'name-phone-pad'\n | 'twitter'\n | 'web-search'\n // iOS 10+ only\n | 'ascii-capable-number-pad'\n // Android-only\n | 'visible-password';\n\nexport type InputMode =\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url';\n\nexport type ReturnKeyType =\n // Cross Platform\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n // Android-only\n | 'none'\n | 'previous'\n // iOS-only\n | 'default'\n | 'emergency-call'\n | 'google'\n | 'join'\n | 'route'\n | 'yahoo';\n\nexport type SubmitBehavior = 'submit' | 'blurAndSubmit' | 'newline';\n\nexport type AutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';\n\nexport type TextContentType =\n | 'none'\n | 'URL'\n | 'addressCity'\n | 'addressCityAndState'\n | 'addressState'\n | 'countryName'\n | 'creditCardNumber'\n | 'creditCardExpiration'\n | 'creditCardExpirationMonth'\n | 'creditCardExpirationYear'\n | 'creditCardSecurityCode'\n | 'creditCardType'\n | 'creditCardName'\n | 'creditCardGivenName'\n | 'creditCardMiddleName'\n | 'creditCardFamilyName'\n | 'emailAddress'\n | 'familyName'\n | 'fullStreetAddress'\n | 'givenName'\n | 'jobTitle'\n | 'location'\n | 'middleName'\n | 'name'\n | 'namePrefix'\n | 'nameSuffix'\n | 'nickname'\n | 'organizationName'\n | 'postalCode'\n | 'streetAddressLine1'\n | 'streetAddressLine2'\n | 'sublocality'\n | 'telephoneNumber'\n | 'username'\n | 'password'\n | 'newPassword'\n | 'oneTimeCode'\n | 'birthdate'\n | 'birthdateDay'\n | 'birthdateMonth'\n | 'birthdateYear';\n\nexport type enterKeyHintType =\n // Cross Platform\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n // Android-only\n | 'previous'\n // iOS-only\n | 'enter';\n\ntype PasswordRules = string;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * When the clear button should appear on the right side of the text view.\n * This property is supported only for single-line TextInput component.\n * @platform ios\n */\n clearButtonMode?: ?('never' | 'while-editing' | 'unless-editing' | 'always'),\n\n /**\n * If `true`, clears the text field automatically when editing begins.\n * @platform ios\n */\n clearTextOnFocus?: ?boolean,\n\n /**\n * Determines the types of data converted to clickable URLs in the text input.\n * Only valid if `multiline={true}` and `editable={false}`.\n * By default no data types are detected.\n *\n * You can provide one type or an array of many types.\n *\n * Possible values for `dataDetectorTypes` are:\n *\n * - `'phoneNumber'`\n * - `'link'`\n * - `'address'`\n * - `'calendarEvent'`\n * - `'none'`\n * - `'all'`\n *\n * @platform ios\n */\n dataDetectorTypes?:\n | ?DataDetectorTypesType\n | $ReadOnlyArray,\n\n /**\n * If `true`, the keyboard disables the return key when there is no text and\n * automatically enables it when there is text. The default value is `false`.\n * @platform ios\n */\n enablesReturnKeyAutomatically?: ?boolean,\n\n /**\n * An optional identifier which links a custom InputAccessoryView to\n * this text input. The InputAccessoryView is rendered above the\n * keyboard when this text input is focused.\n * @platform ios\n */\n inputAccessoryViewID?: ?string,\n\n /**\n * Determines the color of the keyboard.\n * @platform ios\n */\n keyboardAppearance?: ?('default' | 'light' | 'dark'),\n\n /**\n * Provide rules for your password.\n * For example, say you want to require a password with at least eight characters consisting of a mix of uppercase and lowercase letters, at least one number, and at most two consecutive characters.\n * \"required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 8;\"\n * @platform ios\n */\n passwordRules?: ?PasswordRules,\n\n /*\n * If `true`, allows TextInput to pass touch events to the parent component.\n * This allows components to be swipeable from the TextInput on iOS,\n * as is the case on Android by default.\n * If `false`, TextInput always asks to handle the input (except when disabled).\n * @platform ios\n */\n rejectResponderTermination?: ?boolean,\n\n /**\n * If `false`, scrolling of the text view will be disabled.\n * The default value is `true`. Does only work with 'multiline={true}'.\n * @platform ios\n */\n scrollEnabled?: ?boolean,\n\n /**\n * If `false`, disables spell-check style (i.e. red underlines).\n * The default value is inherited from `autoCorrect`.\n * @platform ios\n */\n spellCheck?: ?boolean,\n\n /**\n * Give the keyboard and the system information about the\n * expected semantic meaning for the content that users enter.\n * `autoComplete` property accomplishes same behavior and is recommended as its supported by both platforms.\n * Avoid using both `autoComplete` and `textContentType`, you can use `Platform.select` for differing platform behaviors.\n * For backwards compatibility, when both set, `textContentType` takes precedence on iOS.\n * @platform ios\n */\n textContentType?: ?TextContentType,\n\n /**\n * Set line break strategy on iOS.\n * @platform ios\n */\n lineBreakStrategyIOS?: ?('none' | 'standard' | 'hangul-word' | 'push-out'),\n\n /**\n * If `false`, the iOS system will not insert an extra space after a paste operation\n * neither delete one or two spaces after a cut or delete operation.\n *\n * The default value is `true`.\n *\n * @platform ios\n */\n smartInsertDelete?: ?boolean,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * When provided it will set the color of the cursor (or \"caret\") in the component.\n * Unlike the behavior of `selectionColor` the cursor color will be set independently\n * from the color of the text selection box.\n * @platform android\n */\n cursorColor?: ?ColorValue,\n\n /**\n * When `false`, if there is a small amount of space available around a text input\n * (e.g. landscape orientation on a phone), the OS may choose to have the user edit\n * the text inside of a full screen text input mode. When `true`, this feature is\n * disabled and users will always edit the text directly inside of the text input.\n * Defaults to `false`.\n * @platform android\n */\n disableFullscreenUI?: ?boolean,\n\n importantForAutofill?: ?(\n | 'auto'\n | 'no'\n | 'noExcludeDescendants'\n | 'yes'\n | 'yesExcludeDescendants'\n ),\n\n /**\n * If defined, the provided image resource will be rendered on the left.\n * The image resource must be inside `/android/app/src/main/res/drawable` and referenced\n * like\n * ```\n * \n * ```\n * @platform android\n */\n inlineImageLeft?: ?string,\n\n /**\n * Padding between the inline image, if any, and the text input itself.\n * @platform android\n */\n inlineImagePadding?: ?number,\n\n /**\n * Sets the number of lines for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n numberOfLines?: ?number,\n\n /**\n * Sets the return key to the label. Use it instead of `returnKeyType`.\n * @platform android\n */\n returnKeyLabel?: ?string,\n\n /**\n * Sets the number of rows for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n rows?: ?number,\n\n /**\n * When `false`, it will prevent the soft keyboard from showing when the field is focused.\n * Defaults to `true`.\n */\n showSoftInputOnFocus?: ?boolean,\n\n /**\n * Set text break strategy on Android API Level 23+, possible values are `simple`, `highQuality`, `balanced`\n * The default value is `simple`.\n * @platform android\n */\n textBreakStrategy?: ?('simple' | 'highQuality' | 'balanced'),\n\n /**\n * The color of the `TextInput` underline.\n * @platform android\n */\n underlineColorAndroid?: ?ColorValue,\n|}>;\n\nexport type Props = $ReadOnly<{|\n ...$Diff>,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Can tell `TextInput` to automatically capitalize certain characters.\n *\n * - `characters`: all characters.\n * - `words`: first letter of each word.\n * - `sentences`: first letter of each sentence (*default*).\n * - `none`: don't auto capitalize anything.\n */\n autoCapitalize?: ?AutoCapitalize,\n\n /**\n * Specifies autocomplete hints for the system, so it can provide autofill.\n * On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.\n * To disable autocomplete, set autoComplete to off.\n *\n * The following values work across platforms:\n *\n * - `additional-name`\n * - `address-line1`\n * - `address-line2`\n * - `birthdate-day` (iOS 17+)\n * - `birthdate-full` (iOS 17+)\n * - `birthdate-month` (iOS 17+)\n * - `birthdate-year` (iOS 17+)\n * - `cc-number`\n * - `cc-csc` (iOS 17+)\n * - `cc-exp` (iOS 17+)\n * - `cc-exp-day` (iOS 17+)\n * - `cc-exp-month` (iOS 17+)\n * - `cc-exp-year` (iOS 17+)\n * - `country`\n * - `current-password`\n * - `email`\n * - `family-name`\n * - `given-name`\n * - `honorific-prefix`\n * - `honorific-suffix`\n * - `name`\n * - `new-password`\n * - `off`\n * - `one-time-code`\n * - `postal-code`\n * - `street-address`\n * - `tel`\n * - `username`\n *\n * The following values work on iOS only:\n *\n * - `cc-name` (iOS 17+)\n * - `cc-given-name` (iOS 17+)\n * - `cc-middle-name` (iOS 17+)\n * - `cc-family-name` (iOS 17+)\n * - `cc-type` (iOS 17+)\n * - `nickname`\n * - `organization`\n * - `organization-title`\n * - `url`\n *\n * The following values work on Android only:\n *\n * - `gender`\n * - `name-family`\n * - `name-given`\n * - `name-middle`\n * - `name-middle-initial`\n * - `name-prefix`\n * - `name-suffix`\n * - `password`\n * - `password-new`\n * - `postal-address`\n * - `postal-address-country`\n * - `postal-address-extended`\n * - `postal-address-extended-postal-code`\n * - `postal-address-locality`\n * - `postal-address-region`\n * - `sms-otp`\n * - `tel-country-code`\n * - `tel-national`\n * - `tel-device`\n * - `username-new`\n */\n autoComplete?: ?(\n | 'additional-name'\n | 'address-line1'\n | 'address-line2'\n | 'birthdate-day'\n | 'birthdate-full'\n | 'birthdate-month'\n | 'birthdate-year'\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-day'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-number'\n | 'cc-name'\n | 'cc-given-name'\n | 'cc-middle-name'\n | 'cc-family-name'\n | 'cc-type'\n | 'country'\n | 'current-password'\n | 'email'\n | 'family-name'\n | 'gender'\n | 'given-name'\n | 'honorific-prefix'\n | 'honorific-suffix'\n | 'name'\n | 'name-family'\n | 'name-given'\n | 'name-middle'\n | 'name-middle-initial'\n | 'name-prefix'\n | 'name-suffix'\n | 'new-password'\n | 'nickname'\n | 'one-time-code'\n | 'organization'\n | 'organization-title'\n | 'password'\n | 'password-new'\n | 'postal-address'\n | 'postal-address-country'\n | 'postal-address-extended'\n | 'postal-address-extended-postal-code'\n | 'postal-address-locality'\n | 'postal-address-region'\n | 'postal-code'\n | 'street-address'\n | 'sms-otp'\n | 'tel'\n | 'tel-country-code'\n | 'tel-national'\n | 'tel-device'\n | 'url'\n | 'username'\n | 'username-new'\n | 'off'\n ),\n\n /**\n * If `false`, disables auto-correct. The default value is `true`.\n */\n autoCorrect?: ?boolean,\n\n /**\n * If `true`, focuses the input on `componentDidMount`.\n * The default value is `false`.\n */\n autoFocus?: ?boolean,\n\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings. The\n * default is `true`.\n */\n allowFontScaling?: ?boolean,\n\n /**\n * If `true`, caret is hidden. The default value is `false`.\n *\n * On Android devices manufactured by Xiaomi with Android Q,\n * when keyboardType equals 'email-address'this will be set\n * in native to 'true' to prevent a system related crash. This\n * will cause cursor to be disabled as a side-effect.\n *\n */\n caretHidden?: ?boolean,\n\n /*\n * If `true`, contextMenuHidden is hidden. The default value is `false`.\n */\n contextMenuHidden?: ?boolean,\n\n /**\n * Provides an initial value that will change when the user starts typing.\n * Useful for simple use-cases where you do not want to deal with listening\n * to events and updating the value prop to keep the controlled state in sync.\n */\n defaultValue?: ?Stringish,\n\n /**\n * If `false`, text is not editable. The default value is `true`.\n */\n editable?: ?boolean,\n\n forwardedRef?: ?ReactRefSetter,\n\n /**\n * `enterKeyHint` defines what action label (or icon) to present for the enter key on virtual keyboards.\n *\n * The following values is supported:\n *\n * - `enter`\n * - `done`\n * - `go`\n * - `next`\n * - `previous`\n * - `search`\n * - `send`\n */\n enterKeyHint?: ?enterKeyHintType,\n\n /**\n * `inputMode` works like the `inputmode` attribute in HTML, it determines which\n * keyboard to open, e.g.`numeric` and has precedence over keyboardType\n *\n * Support the following values:\n *\n * - `none`\n * - `text`\n * - `decimal`\n * - `numeric`\n * - `tel`\n * - `search`\n * - `email`\n * - `url`\n */\n inputMode?: ?InputMode,\n\n /**\n * Determines which keyboard to open, e.g.`numeric`.\n *\n * The following values work across platforms:\n *\n * - `default`\n * - `numeric`\n * - `number-pad`\n * - `decimal-pad`\n * - `email-address`\n * - `phone-pad`\n * - `url`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `ascii-capable`\n * - `numbers-and-punctuation`\n * - `name-phone-pad`\n * - `twitter`\n * - `web-search`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `visible-password`\n *\n */\n keyboardType?: ?KeyboardType,\n\n /**\n * Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.\n * Possible values:\n * `null/undefined` (default): inherit from the parent node or the global default (0)\n * `0`: no max, ignore parent/global default\n * `>= 1`: sets the maxFontSizeMultiplier of this node to this value\n */\n maxFontSizeMultiplier?: ?number,\n\n /**\n * Limits the maximum number of characters that can be entered. Use this\n * instead of implementing the logic in JS to avoid flicker.\n */\n maxLength?: ?number,\n\n /**\n * If `true`, the text input can be multiple lines.\n * The default value is `false`.\n */\n multiline?: ?boolean,\n\n /**\n * Callback that is called when the text input is blurred.\n */\n onBlur?: ?(e: BlurEvent) => mixed,\n\n /**\n * Callback that is called when the text input's text changes.\n */\n onChange?: ?(e: ChangeEvent) => mixed,\n\n /**\n * Callback that is called when the text input's text changes.\n * Changed text is passed as an argument to the callback handler.\n */\n onChangeText?: ?(text: string) => mixed,\n\n /**\n * Callback that is called when the text input's content size changes.\n * This will be called with\n * `{ nativeEvent: { contentSize: { width, height } } }`.\n *\n * Only called for multiline text inputs.\n */\n onContentSizeChange?: ?(e: ContentSizeChangeEvent) => mixed,\n\n /**\n * Callback that is called when text input ends.\n */\n onEndEditing?: ?(e: EditingEvent) => mixed,\n\n /**\n * Callback that is called when the text input is focused.\n */\n onFocus?: ?(e: FocusEvent) => mixed,\n\n /**\n * Callback that is called when a key is pressed.\n * This will be called with `{ nativeEvent: { key: keyValue } }`\n * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and\n * the typed-in character otherwise including `' '` for space.\n * Fires before `onChange` callbacks.\n */\n onKeyPress?: ?(e: KeyPressEvent) => mixed,\n\n /**\n * Called when a single tap gesture is detected.\n */\n onPress?: ?(event: PressEvent) => mixed,\n\n /**\n * Called when a touch is engaged.\n */\n onPressIn?: ?(event: PressEvent) => mixed,\n\n /**\n * Called when a touch is released.\n */\n onPressOut?: ?(event: PressEvent) => mixed,\n\n /**\n * Callback that is called when the text input selection is changed.\n * This will be called with\n * `{ nativeEvent: { selection: { start, end } } }`.\n */\n onSelectionChange?: ?(e: SelectionChangeEvent) => mixed,\n\n /**\n * Callback that is called when the text input's submit button is pressed.\n * Invalid if `multiline={true}` is specified.\n */\n onSubmitEditing?: ?(e: EditingEvent) => mixed,\n\n /**\n * Invoked on content scroll with `{ nativeEvent: { contentOffset: { x, y } } }`.\n * May also contain other properties from ScrollEvent but on Android contentSize\n * is not provided for performance reasons.\n */\n onScroll?: ?(e: ScrollEvent) => mixed,\n\n /**\n * The string that will be rendered before text input has been entered.\n */\n placeholder?: ?Stringish,\n\n /**\n * The text color of the placeholder string.\n */\n placeholderTextColor?: ?ColorValue,\n\n /** `readOnly` works like the `readonly` attribute in HTML.\n * If `true`, text is not editable. The default value is `false`.\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly\n * for more details.\n */\n readOnly?: ?boolean,\n\n /**\n * Determines how the return key should look. On Android you can also use\n * `returnKeyLabel`.\n *\n * *Cross platform*\n *\n * The following values work across platforms:\n *\n * - `done`\n * - `go`\n * - `next`\n * - `search`\n * - `send`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `none`\n * - `previous`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `default`\n * - `emergency-call`\n * - `google`\n * - `join`\n * - `route`\n * - `yahoo`\n */\n returnKeyType?: ?ReturnKeyType,\n\n /**\n * If `true`, the text input obscures the text entered so that sensitive text\n * like passwords stay secure. The default value is `false`. Does not work with 'multiline={true}'.\n */\n secureTextEntry?: ?boolean,\n\n /**\n * The start and end of the text input's selection. Set start and end to\n * the same value to position the cursor.\n */\n selection?: ?$ReadOnly<{|\n start: number,\n end?: ?number,\n |}>,\n\n /**\n * The highlight and cursor color of the text input.\n */\n selectionColor?: ?ColorValue,\n\n /**\n * The text selection handle color.\n * @platform android\n */\n selectionHandleColor?: ?ColorValue,\n\n /**\n * If `true`, all text will automatically be selected on focus.\n */\n selectTextOnFocus?: ?boolean,\n\n /**\n * If `true`, the text field will blur when submitted.\n * The default value is true for single-line fields and false for\n * multiline fields. Note that for multiline fields, setting `blurOnSubmit`\n * to `true` means that pressing return will blur the field and trigger the\n * `onSubmitEditing` event instead of inserting a newline into the field.\n *\n * @deprecated\n * Note that `submitBehavior` now takes the place of `blurOnSubmit` and will\n * override any behavior defined by `blurOnSubmit`.\n * @see submitBehavior\n */\n blurOnSubmit?: ?boolean,\n\n /**\n * When the return key is pressed,\n *\n * For single line inputs:\n *\n * - `'newline`' defaults to `'blurAndSubmit'`\n * - `undefined` defaults to `'blurAndSubmit'`\n *\n * For multiline inputs:\n *\n * - `'newline'` adds a newline\n * - `undefined` defaults to `'newline'`\n *\n * For both single line and multiline inputs:\n *\n * - `'submit'` will only send a submit event and not blur the input\n * - `'blurAndSubmit`' will both blur the input and send a submit event\n */\n submitBehavior?: ?SubmitBehavior,\n\n /**\n * Note that not all Text styles are supported, an incomplete list of what is not supported includes:\n *\n * - `borderLeftWidth`\n * - `borderTopWidth`\n * - `borderRightWidth`\n * - `borderBottomWidth`\n * - `borderTopLeftRadius`\n * - `borderTopRightRadius`\n * - `borderBottomRightRadius`\n * - `borderBottomLeftRadius`\n *\n * see [Issue#7070](https://github.com/facebook/react-native/issues/7070)\n * for more detail.\n *\n * [Styles](docs/style.html)\n */\n style?: ?TextStyleProp,\n\n /**\n * The value to show for the text input. `TextInput` is a controlled\n * component, which means the native value will be forced to match this\n * value prop if provided. For most uses, this works great, but in some\n * cases this may cause flickering - one common cause is preventing edits\n * by keeping value the same. In addition to simply setting the same value,\n * either set `editable={false}`, or set/update `maxLength` to prevent\n * unwanted edits without flicker.\n */\n value?: ?Stringish,\n|}>;\n\nconst emptyFunctionThatReturnsTrue = () => true;\n\n/**\n * A foundational component for inputting text into the app via a\n * keyboard. Props provide configurability for several features, such as\n * auto-correction, auto-capitalization, placeholder text, and different keyboard\n * types, such as a numeric keypad.\n *\n * The simplest use case is to plop down a `TextInput` and subscribe to the\n * `onChangeText` events to read the user input. There are also other events,\n * such as `onSubmitEditing` and `onFocus` that can be subscribed to. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = { text: 'Useless Placeholder' };\n * }\n *\n * render() {\n * return (\n * this.setState({text})}\n * value={this.state.text}\n * />\n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * Two methods exposed via the native element are .focus() and .blur() that\n * will focus or blur the TextInput programmatically.\n *\n * Note that some props are only available with `multiline={true/false}`.\n * Additionally, border styles that apply to only one side of the element\n * (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if\n * `multiline=false`. To achieve the same effect, you can wrap your `TextInput`\n * in a `View`:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, TextInput } from 'react-native';\n *\n * class UselessTextInput extends Component {\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * export default class UselessTextInputMultiline extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * text: 'Useless Multiline Placeholder',\n * };\n * }\n *\n * // If you type something in the text box that is a color, the background will change to that\n * // color.\n * render() {\n * return (\n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * );\n * }\n * }\n *\n * // skip these lines if using Create React Native App\n * AppRegistry.registerComponent(\n * 'AwesomeProject',\n * () => UselessTextInputMultiline\n * );\n * ```\n *\n * `TextInput` has by default a border at the bottom of its view. This border\n * has its padding set by the background image provided by the system, and it\n * cannot be changed. Solutions to avoid this is to either not set height\n * explicitly, case in which the system will take care of displaying the border\n * in the correct position, or to not display the border by setting\n * `underlineColorAndroid` to transparent.\n *\n * Note that on Android performing text selection in input can change\n * app's activity `windowSoftInputMode` param to `adjustResize`.\n * This may cause issues with components that have position: 'absolute'\n * while keyboard is active. To avoid this behavior either specify `windowSoftInputMode`\n * in AndroidManifest.xml ( https://developer.android.com/guide/topics/manifest/activity-element.html )\n * or control this param programmatically with native code.\n *\n */\nfunction InternalTextInput(props: Props): React.Node {\n const {\n 'aria-busy': ariaBusy,\n 'aria-checked': ariaChecked,\n 'aria-disabled': ariaDisabled,\n 'aria-expanded': ariaExpanded,\n 'aria-selected': ariaSelected,\n accessibilityState,\n id,\n tabIndex,\n selection: propsSelection,\n selectionColor,\n selectionHandleColor,\n cursorColor,\n ...otherProps\n } = props;\n\n const inputRef = useRef>>(null);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const selection: ?Selection =\n propsSelection == null\n ? null\n : {\n start: propsSelection.start,\n end: propsSelection.end ?? propsSelection.start,\n };\n\n const [mostRecentEventCount, setMostRecentEventCount] = useState(0);\n const [lastNativeText, setLastNativeText] = useState(props.value);\n const [lastNativeSelectionState, setLastNativeSelection] = useState<{|\n selection: Selection,\n mostRecentEventCount: number,\n |}>({\n selection: {start: -1, end: -1},\n mostRecentEventCount: mostRecentEventCount,\n });\n\n const lastNativeSelection = lastNativeSelectionState.selection;\n\n let viewCommands;\n if (AndroidTextInputCommands) {\n viewCommands = AndroidTextInputCommands;\n } else {\n viewCommands =\n props.multiline === true\n ? RCTMultilineTextInputNativeCommands\n : RCTSinglelineTextInputNativeCommands;\n }\n\n const text =\n typeof props.value === 'string'\n ? props.value\n : typeof props.defaultValue === 'string'\n ? props.defaultValue\n : '';\n\n // This is necessary in case native updates the text and JS decides\n // that the update should be ignored and we should stick with the value\n // that we have in JS.\n useLayoutEffect(() => {\n const nativeUpdate: {text?: string, selection?: Selection} = {};\n\n if (lastNativeText !== props.value && typeof props.value === 'string') {\n nativeUpdate.text = props.value;\n setLastNativeText(props.value);\n }\n\n if (\n selection &&\n lastNativeSelection &&\n (lastNativeSelection.start !== selection.start ||\n lastNativeSelection.end !== selection.end)\n ) {\n nativeUpdate.selection = selection;\n setLastNativeSelection({selection, mostRecentEventCount});\n }\n\n if (Object.keys(nativeUpdate).length === 0) {\n return;\n }\n\n if (inputRef.current != null) {\n viewCommands.setTextAndSelection(\n inputRef.current,\n mostRecentEventCount,\n text,\n selection?.start ?? -1,\n selection?.end ?? -1,\n );\n }\n }, [\n mostRecentEventCount,\n inputRef,\n props.value,\n props.defaultValue,\n lastNativeText,\n selection,\n lastNativeSelection,\n text,\n viewCommands,\n ]);\n\n useLayoutEffect(() => {\n const inputRefValue = inputRef.current;\n\n if (inputRefValue != null) {\n TextInputState.registerInput(inputRefValue);\n\n return () => {\n TextInputState.unregisterInput(inputRefValue);\n\n if (TextInputState.currentlyFocusedInput() === inputRefValue) {\n nullthrows(inputRefValue).blur();\n }\n };\n }\n }, [inputRef]);\n\n const setLocalRef = useCallback(\n (instance: TextInputInstance | null) => {\n inputRef.current = instance;\n\n /*\n Hi reader from the future. I'm sorry for this.\n\n This is a hack. Ideally we would forwardRef to the underlying\n host component. However, since TextInput has it's own methods that can be\n called as well, if we used the standard forwardRef then these\n methods wouldn't be accessible and thus be a breaking change.\n\n We have a couple of options of how to handle this:\n - Return a new ref with everything we methods from both. This is problematic\n because we need React to also know it is a host component which requires\n internals of the class implementation of the ref.\n - Break the API and have some other way to call one set of the methods or\n the other. This is our long term approach as we want to eventually\n get the methods on host components off the ref. So instead of calling\n ref.measure() you might call ReactNative.measure(ref). This would hopefully\n let the ref for TextInput then have the methods like `.clear`. Or we do it\n the other way and make it TextInput.clear(textInputRef) which would be fine\n too. Either way though is a breaking change that is longer term.\n - Mutate this ref. :( Gross, but accomplishes what we need in the meantime\n before we can get to the long term breaking change.\n */\n if (instance != null) {\n // $FlowFixMe[incompatible-use] - See the explanation above.\n Object.assign(instance, {\n clear(): void {\n if (inputRef.current != null) {\n viewCommands.setTextAndSelection(\n inputRef.current,\n mostRecentEventCount,\n '',\n 0,\n 0,\n );\n }\n },\n // TODO: Fix this returning true on null === null, when no input is focused\n isFocused(): boolean {\n return TextInputState.currentlyFocusedInput() === inputRef.current;\n },\n getNativeRef(): ?React.ElementRef> {\n return inputRef.current;\n },\n setSelection(start: number, end: number): void {\n if (inputRef.current != null) {\n viewCommands.setTextAndSelection(\n inputRef.current,\n mostRecentEventCount,\n null,\n start,\n end,\n );\n }\n },\n });\n }\n },\n [mostRecentEventCount, viewCommands],\n );\n\n const ref = useMergeRefs(setLocalRef, props.forwardedRef);\n\n const _onChange = (event: ChangeEvent) => {\n const currentText = event.nativeEvent.text;\n props.onChange && props.onChange(event);\n props.onChangeText && props.onChangeText(currentText);\n\n if (inputRef.current == null) {\n // calling `props.onChange` or `props.onChangeText`\n // may clean up the input itself. Exits here.\n return;\n }\n\n setLastNativeText(currentText);\n // This must happen last, after we call setLastNativeText.\n // Different ordering can cause bugs when editing AndroidTextInputs\n // with multiple Fragments.\n // We must update this so that controlled input updates work.\n setMostRecentEventCount(event.nativeEvent.eventCount);\n };\n\n const _onSelectionChange = (event: SelectionChangeEvent) => {\n props.onSelectionChange && props.onSelectionChange(event);\n\n if (inputRef.current == null) {\n // calling `props.onSelectionChange`\n // may clean up the input itself. Exits here.\n return;\n }\n\n setLastNativeSelection({\n selection: event.nativeEvent.selection,\n mostRecentEventCount,\n });\n };\n\n const _onFocus = (event: FocusEvent) => {\n TextInputState.focusInput(inputRef.current);\n if (props.onFocus) {\n props.onFocus(event);\n }\n };\n\n const _onBlur = (event: BlurEvent) => {\n TextInputState.blurInput(inputRef.current);\n if (props.onBlur) {\n props.onBlur(event);\n }\n };\n\n const _onScroll = (event: ScrollEvent) => {\n props.onScroll && props.onScroll(event);\n };\n\n let textInput = null;\n\n const multiline = props.multiline ?? false;\n\n let submitBehavior: SubmitBehavior;\n if (props.submitBehavior != null) {\n // `submitBehavior` is set explicitly\n if (!multiline && props.submitBehavior === 'newline') {\n // For single line text inputs, `'newline'` is not a valid option\n submitBehavior = 'blurAndSubmit';\n } else {\n submitBehavior = props.submitBehavior;\n }\n } else if (multiline) {\n if (props.blurOnSubmit === true) {\n submitBehavior = 'blurAndSubmit';\n } else {\n submitBehavior = 'newline';\n }\n } else {\n // Single line\n if (props.blurOnSubmit !== false) {\n submitBehavior = 'blurAndSubmit';\n } else {\n submitBehavior = 'submit';\n }\n }\n\n const accessible = props.accessible !== false;\n const focusable = props.focusable !== false;\n\n const {\n editable,\n hitSlop,\n onPress,\n onPressIn,\n onPressOut,\n rejectResponderTermination,\n } = props;\n\n const config = React.useMemo(\n () => ({\n hitSlop,\n onPress: (event: PressEvent) => {\n onPress?.(event);\n if (editable !== false) {\n if (inputRef.current != null) {\n inputRef.current.focus();\n }\n }\n },\n onPressIn: onPressIn,\n onPressOut: onPressOut,\n cancelable: Platform.OS === 'ios' ? !rejectResponderTermination : null,\n }),\n [\n editable,\n hitSlop,\n onPress,\n onPressIn,\n onPressOut,\n rejectResponderTermination,\n ],\n );\n\n // Hide caret during test runs due to a flashing caret\n // makes screenshot tests flakey\n let caretHidden = props.caretHidden;\n if (Platform.isTesting) {\n caretHidden = true;\n }\n\n // TextInput handles onBlur and onFocus events\n // so omitting onBlur and onFocus pressability handlers here.\n const {onBlur, onFocus, ...eventHandlers} = usePressability(config) || {};\n\n let _accessibilityState;\n if (\n accessibilityState != null ||\n ariaBusy != null ||\n ariaChecked != null ||\n ariaDisabled != null ||\n ariaExpanded != null ||\n ariaSelected != null\n ) {\n _accessibilityState = {\n busy: ariaBusy ?? accessibilityState?.busy,\n checked: ariaChecked ?? accessibilityState?.checked,\n disabled: ariaDisabled ?? accessibilityState?.disabled,\n expanded: ariaExpanded ?? accessibilityState?.expanded,\n selected: ariaSelected ?? accessibilityState?.selected,\n };\n }\n\n const style = flattenStyle(props.style);\n\n if (typeof style?.fontWeight === 'number') {\n // $FlowFixMe[prop-missing]\n // $FlowFixMe[cannot-write]\n style.fontWeight = style?.fontWeight.toString();\n }\n\n if (Platform.OS === 'ios') {\n const RCTTextInputView =\n props.multiline === true\n ? RCTMultilineTextInputView\n : RCTSinglelineTextInputView;\n\n const useMultilineDefaultStyle =\n props.multiline === true &&\n (style == null ||\n (style.padding == null &&\n style.paddingVertical == null &&\n style.paddingTop == null));\n\n textInput = (\n \n );\n } else if (Platform.OS === 'android') {\n const autoCapitalize = props.autoCapitalize || 'sentences';\n const _accessibilityLabelledBy =\n props?.['aria-labelledby'] ?? props?.accessibilityLabelledBy;\n const placeholder = props.placeholder ?? '';\n let children = props.children;\n const childCount = React.Children.count(children);\n invariant(\n !(props.value != null && childCount),\n 'Cannot specify both value and children.',\n );\n if (childCount > 1) {\n children = {children};\n }\n // For consistency with iOS set cursor/selectionHandle color as selectionColor\n const colorProps = {\n selectionColor,\n selectionHandleColor:\n selectionHandleColor === undefined\n ? selectionColor\n : selectionHandleColor,\n cursorColor: cursorColor === undefined ? selectionColor : cursorColor,\n };\n textInput = (\n /* $FlowFixMe[prop-missing] the types for AndroidTextInput don't match up\n * exactly with the props for TextInput. This will need to get fixed */\n /* $FlowFixMe[incompatible-type] the types for AndroidTextInput don't\n * match up exactly with the props for TextInput. This will need to get\n * fixed */\n /* $FlowFixMe[incompatible-type-arg] the types for AndroidTextInput don't\n * match up exactly with the props for TextInput. This will need to get\n * fixed */\n \n );\n }\n return (\n {textInput}\n );\n}\n\nconst enterKeyHintToReturnTypeMap = {\n enter: 'default',\n done: 'done',\n go: 'go',\n next: 'next',\n previous: 'previous',\n search: 'search',\n send: 'send',\n};\n\nconst inputModeToKeyboardTypeMap = {\n none: 'default',\n text: 'default',\n decimal: 'decimal-pad',\n numeric: 'number-pad',\n tel: 'phone-pad',\n search: Platform.OS === 'ios' ? 'web-search' : 'default',\n email: 'email-address',\n url: 'url',\n};\n\n// Map HTML autocomplete values to Android autoComplete values\nconst autoCompleteWebToAutoCompleteAndroidMap = {\n 'address-line1': 'postal-address-region',\n 'address-line2': 'postal-address-locality',\n bday: 'birthdate-full',\n 'bday-day': 'birthdate-day',\n 'bday-month': 'birthdate-month',\n 'bday-year': 'birthdate-year',\n 'cc-csc': 'cc-csc',\n 'cc-exp': 'cc-exp',\n 'cc-exp-month': 'cc-exp-month',\n 'cc-exp-year': 'cc-exp-year',\n 'cc-number': 'cc-number',\n country: 'postal-address-country',\n 'current-password': 'password',\n email: 'email',\n 'honorific-prefix': 'name-prefix',\n 'honorific-suffix': 'name-suffix',\n name: 'name',\n 'additional-name': 'name-middle',\n 'family-name': 'name-family',\n 'given-name': 'name-given',\n 'new-password': 'password-new',\n off: 'off',\n 'one-time-code': 'sms-otp',\n 'postal-code': 'postal-code',\n sex: 'gender',\n 'street-address': 'street-address',\n tel: 'tel',\n 'tel-country-code': 'tel-country-code',\n 'tel-national': 'tel-national',\n username: 'username',\n};\n\n// Map HTML autocomplete values to iOS textContentType values\nconst autoCompleteWebToTextContentTypeMap = {\n 'address-line1': 'streetAddressLine1',\n 'address-line2': 'streetAddressLine2',\n bday: 'birthdate',\n 'bday-day': 'birthdateDay',\n 'bday-month': 'birthdateMonth',\n 'bday-year': 'birthdateYear',\n 'cc-csc': 'creditCardSecurityCode',\n 'cc-exp-month': 'creditCardExpirationMonth',\n 'cc-exp-year': 'creditCardExpirationYear',\n 'cc-exp': 'creditCardExpiration',\n 'cc-given-name': 'creditCardGivenName',\n 'cc-additional-name': 'creditCardMiddleName',\n 'cc-family-name': 'creditCardFamilyName',\n 'cc-name': 'creditCardName',\n 'cc-number': 'creditCardNumber',\n 'cc-type': 'creditCardType',\n 'current-password': 'password',\n country: 'countryName',\n email: 'emailAddress',\n name: 'name',\n 'additional-name': 'middleName',\n 'family-name': 'familyName',\n 'given-name': 'givenName',\n nickname: 'nickname',\n 'honorific-prefix': 'namePrefix',\n 'honorific-suffix': 'nameSuffix',\n 'new-password': 'newPassword',\n off: 'none',\n 'one-time-code': 'oneTimeCode',\n organization: 'organizationName',\n 'organization-title': 'jobTitle',\n 'postal-code': 'postalCode',\n 'street-address': 'fullStreetAddress',\n tel: 'telephoneNumber',\n url: 'URL',\n username: 'username',\n};\n\nconst ExportedForwardRef: React.AbstractComponent<\n React.ElementConfig,\n TextInputInstance,\n // $FlowFixMe[incompatible-call]\n> = React.forwardRef(function TextInput(\n {\n allowFontScaling = true,\n rejectResponderTermination = true,\n underlineColorAndroid = 'transparent',\n autoComplete,\n textContentType,\n readOnly,\n editable,\n enterKeyHint,\n returnKeyType,\n inputMode,\n showSoftInputOnFocus,\n keyboardType,\n ...restProps\n },\n forwardedRef: ReactRefSetter,\n) {\n // $FlowFixMe[underconstrained-implicit-instantiation]\n let style = flattenStyle(restProps.style);\n\n if (style?.verticalAlign != null) {\n // $FlowFixMe[prop-missing]\n // $FlowFixMe[cannot-write]\n style.textAlignVertical =\n // $FlowFixMe[invalid-computed-prop]\n verticalAlignToTextAlignVerticalMap[style.verticalAlign];\n // $FlowFixMe[prop-missing]\n // $FlowFixMe[cannot-write]\n delete style.verticalAlign;\n }\n\n return (\n \n );\n});\n\nExportedForwardRef.displayName = 'TextInput';\n\n// $FlowFixMe[prop-missing]\nExportedForwardRef.State = {\n currentlyFocusedInput: TextInputState.currentlyFocusedInput,\n\n currentlyFocusedField: TextInputState.currentlyFocusedField,\n focusTextInput: TextInputState.focusTextInput,\n blurTextInput: TextInputState.blurTextInput,\n};\n\nexport type TextInputComponentStatics = $ReadOnly<{|\n State: $ReadOnly<{|\n currentlyFocusedInput: typeof TextInputState.currentlyFocusedInput,\n currentlyFocusedField: typeof TextInputState.currentlyFocusedField,\n focusTextInput: typeof TextInputState.focusTextInput,\n blurTextInput: typeof TextInputState.blurTextInput,\n |}>,\n|}>;\n\nconst styles = StyleSheet.create({\n multilineDefault: {\n // This default top inset makes RCTMultilineTextInputView seem as close as possible\n // to single-line RCTSinglelineTextInputView defaults, using the system defaults\n // of font size 17 and a height of 31 points.\n paddingTop: 5,\n },\n});\n\nconst verticalAlignToTextAlignVerticalMap = {\n auto: 'auto',\n top: 'top',\n bottom: 'bottom',\n middle: 'center',\n};\n\n// $FlowFixMe[unclear-type] Unclear type. Using `any` type is not safe.\nmodule.exports = ((ExportedForwardRef: any): TextInputType);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {TextInputNativeCommands} from './TextInputNativeCommands';\n\nimport * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport RCTTextInputViewConfig from './RCTTextInputViewConfig';\n\ntype NativeType = HostComponent;\n\ntype NativeCommands = TextInputNativeCommands;\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['focus', 'blur', 'setTextAndSelection'],\n});\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {\n uiViewClassName: 'RCTSinglelineTextInputView',\n ...RCTTextInputViewConfig,\n};\n\nconst SinglelineTextInputNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'RCTSinglelineTextInputView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\n// flowlint-next-line unclear-type:off\nexport default ((SinglelineTextInputNativeComponent: any): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {PartialViewConfig} from '../../Renderer/shims/ReactNativeTypes';\n\nimport {ConditionallyIgnoredEventHandlers} from '../../NativeComponent/ViewConfigIgnore';\n\ntype PartialViewConfigWithoutName = $Rest<\n PartialViewConfig,\n {uiViewClassName: string},\n>;\n\nconst RCTTextInputViewConfig = {\n bubblingEventTypes: {\n topBlur: {\n phasedRegistrationNames: {\n bubbled: 'onBlur',\n captured: 'onBlurCapture',\n },\n },\n topChange: {\n phasedRegistrationNames: {\n bubbled: 'onChange',\n captured: 'onChangeCapture',\n },\n },\n topEndEditing: {\n phasedRegistrationNames: {\n bubbled: 'onEndEditing',\n captured: 'onEndEditingCapture',\n },\n },\n topFocus: {\n phasedRegistrationNames: {\n bubbled: 'onFocus',\n captured: 'onFocusCapture',\n },\n },\n topKeyPress: {\n phasedRegistrationNames: {\n bubbled: 'onKeyPress',\n captured: 'onKeyPressCapture',\n },\n },\n topSubmitEditing: {\n phasedRegistrationNames: {\n bubbled: 'onSubmitEditing',\n captured: 'onSubmitEditingCapture',\n },\n },\n topTouchCancel: {\n phasedRegistrationNames: {\n bubbled: 'onTouchCancel',\n captured: 'onTouchCancelCapture',\n },\n },\n topTouchEnd: {\n phasedRegistrationNames: {\n bubbled: 'onTouchEnd',\n captured: 'onTouchEndCapture',\n },\n },\n\n topTouchMove: {\n phasedRegistrationNames: {\n bubbled: 'onTouchMove',\n captured: 'onTouchMoveCapture',\n },\n },\n },\n directEventTypes: {\n topScroll: {\n registrationName: 'onScroll',\n },\n topSelectionChange: {\n registrationName: 'onSelectionChange',\n },\n topContentSizeChange: {\n registrationName: 'onContentSizeChange',\n },\n },\n validAttributes: {\n fontSize: true,\n fontWeight: true,\n fontVariant: true,\n // flowlint-next-line untyped-import:off\n textShadowOffset: {diff: require('../../Utilities/differ/sizesDiffer')},\n allowFontScaling: true,\n fontStyle: true,\n textTransform: true,\n textAlign: true,\n fontFamily: true,\n lineHeight: true,\n isHighlighted: true,\n writingDirection: true,\n textDecorationLine: true,\n textShadowRadius: true,\n letterSpacing: true,\n textDecorationStyle: true,\n textDecorationColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n color: {process: require('../../StyleSheet/processColor').default},\n maxFontSizeMultiplier: true,\n textShadowColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n editable: true,\n inputAccessoryViewID: true,\n caretHidden: true,\n enablesReturnKeyAutomatically: true,\n placeholderTextColor: {\n process: require('../../StyleSheet/processColor').default,\n },\n clearButtonMode: true,\n keyboardType: true,\n selection: true,\n returnKeyType: true,\n submitBehavior: true,\n mostRecentEventCount: true,\n scrollEnabled: true,\n selectionColor: {process: require('../../StyleSheet/processColor').default},\n contextMenuHidden: true,\n secureTextEntry: true,\n placeholder: true,\n autoCorrect: true,\n multiline: true,\n textContentType: true,\n maxLength: true,\n autoCapitalize: true,\n keyboardAppearance: true,\n passwordRules: true,\n spellCheck: true,\n selectTextOnFocus: true,\n text: true,\n clearTextOnFocus: true,\n showSoftInputOnFocus: true,\n autoFocus: true,\n lineBreakStrategyIOS: true,\n smartInsertDelete: true,\n ...ConditionallyIgnoredEventHandlers({\n onChange: true,\n onSelectionChange: true,\n onContentSizeChange: true,\n onScroll: true,\n }),\n },\n};\n\nmodule.exports = (RCTTextInputViewConfig: PartialViewConfigWithoutName);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n HostComponent,\n PartialViewConfig,\n} from '../../Renderer/shims/ReactNativeTypes';\nimport type {TextInputNativeCommands} from './TextInputNativeCommands';\n\nimport * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';\nimport codegenNativeCommands from '../../Utilities/codegenNativeCommands';\nimport RCTTextInputViewConfig from './RCTTextInputViewConfig';\n\ntype NativeType = HostComponent;\n\ntype NativeCommands = TextInputNativeCommands;\n\nexport const Commands: NativeCommands = codegenNativeCommands({\n supportedCommands: ['focus', 'blur', 'setTextAndSelection'],\n});\n\nexport const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {\n uiViewClassName: 'RCTMultilineTextInputView',\n ...RCTTextInputViewConfig,\n validAttributes: {\n ...RCTTextInputViewConfig.validAttributes,\n dataDetectorTypes: true,\n },\n};\n\nconst MultilineTextInputNativeComponent: HostComponent =\n NativeComponentRegistry.get(\n 'RCTMultilineTextInputView',\n () => __INTERNAL_VIEW_CONFIG,\n );\n\n// flowlint-next-line unclear-type:off\nexport default ((MultilineTextInputNativeComponent: any): HostComponent);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {EdgeInsetsProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport type {PressEvent} from '../../Types/CoreEventTypes';\n\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug';\nimport UIManager from '../../ReactNative/UIManager';\nimport Platform from '../../Utilities/Platform';\nimport SoundManager from '../Sound/SoundManager';\nimport BoundingDimensions from './BoundingDimensions';\nimport Position from './Position';\nimport * as React from 'react';\n\nconst extractSingleTouch = (nativeEvent: {\n +changedTouches: $ReadOnlyArray,\n +force?: number,\n +identifier: number,\n +locationX: number,\n +locationY: number,\n +pageX: number,\n +pageY: number,\n +target: ?number,\n +timestamp: number,\n +touches: $ReadOnlyArray,\n}) => {\n const touches = nativeEvent.touches;\n const changedTouches = nativeEvent.changedTouches;\n const hasTouches = touches && touches.length > 0;\n const hasChangedTouches = changedTouches && changedTouches.length > 0;\n\n return !hasTouches && hasChangedTouches\n ? changedTouches[0]\n : hasTouches\n ? touches[0]\n : nativeEvent;\n};\n\n/**\n * `Touchable`: Taps done right.\n *\n * You hook your `ResponderEventPlugin` events into `Touchable`. `Touchable`\n * will measure time/geometry and tells you when to give feedback to the user.\n *\n * ====================== Touchable Tutorial ===============================\n * The `Touchable` mixin helps you handle the \"press\" interaction. It analyzes\n * the geometry of elements, and observes when another responder (scroll view\n * etc) has stolen the touch lock. It notifies your component when it should\n * give feedback to the user. (bouncing/highlighting/unhighlighting).\n *\n * - When a touch was activated (typically you highlight)\n * - When a touch was deactivated (typically you unhighlight)\n * - When a touch was \"pressed\" - a touch ended while still within the geometry\n * of the element, and no other element (like scroller) has \"stolen\" touch\n * lock (\"responder\") (Typically you bounce the element).\n *\n * A good tap interaction isn't as simple as you might think. There should be a\n * slight delay before showing a highlight when starting a touch. If a\n * subsequent touch move exceeds the boundary of the element, it should\n * unhighlight, but if that same touch is brought back within the boundary, it\n * should rehighlight again. A touch can move in and out of that boundary\n * several times, each time toggling highlighting, but a \"press\" is only\n * triggered if that touch ends while within the element's boundary and no\n * scroller (or anything else) has stolen the lock on touches.\n *\n * To create a new type of component that handles interaction using the\n * `Touchable` mixin, do the following:\n *\n * - Initialize the `Touchable` state.\n *\n * getInitialState: function() {\n * return merge(this.touchableGetInitialState(), yourComponentState);\n * }\n *\n * - Choose the rendered component who's touches should start the interactive\n * sequence. On that rendered node, forward all `Touchable` responder\n * handlers. You can choose any rendered node you like. Choose a node whose\n * hit target you'd like to instigate the interaction sequence:\n *\n * // In render function:\n * return (\n * \n * \n * Even though the hit detection/interactions are triggered by the\n * wrapping (typically larger) node, we usually end up implementing\n * custom logic that highlights this inner one.\n * \n * \n * );\n *\n * - You may set up your own handlers for each of these events, so long as you\n * also invoke the `touchable*` handlers inside of your custom handler.\n *\n * - Implement the handlers on your component class in order to provide\n * feedback to the user. See documentation for each of these class methods\n * that you should implement.\n *\n * touchableHandlePress: function() {\n * this.performBounceAnimation(); // or whatever you want to do.\n * },\n * touchableHandleActivePressIn: function() {\n * this.beginHighlighting(...); // Whatever you like to convey activation\n * },\n * touchableHandleActivePressOut: function() {\n * this.endHighlighting(...); // Whatever you like to convey deactivation\n * },\n *\n * - There are more advanced methods you can implement (see documentation below):\n * touchableGetHighlightDelayMS: function() {\n * return 20;\n * }\n * // In practice, *always* use a predeclared constant (conserve memory).\n * touchableGetPressRectOffset: function() {\n * return {top: 20, left: 20, right: 20, bottom: 100};\n * }\n */\n\n/**\n * Touchable states.\n */\n\nconst States = {\n NOT_RESPONDER: 'NOT_RESPONDER', // Not the responder\n RESPONDER_INACTIVE_PRESS_IN: 'RESPONDER_INACTIVE_PRESS_IN', // Responder, inactive, in the `PressRect`\n RESPONDER_INACTIVE_PRESS_OUT: 'RESPONDER_INACTIVE_PRESS_OUT', // Responder, inactive, out of `PressRect`\n RESPONDER_ACTIVE_PRESS_IN: 'RESPONDER_ACTIVE_PRESS_IN', // Responder, active, in the `PressRect`\n RESPONDER_ACTIVE_PRESS_OUT: 'RESPONDER_ACTIVE_PRESS_OUT', // Responder, active, out of `PressRect`\n RESPONDER_ACTIVE_LONG_PRESS_IN: 'RESPONDER_ACTIVE_LONG_PRESS_IN', // Responder, active, in the `PressRect`, after long press threshold\n RESPONDER_ACTIVE_LONG_PRESS_OUT: 'RESPONDER_ACTIVE_LONG_PRESS_OUT', // Responder, active, out of `PressRect`, after long press threshold\n ERROR: 'ERROR',\n};\n\ntype State =\n | typeof States.NOT_RESPONDER\n | typeof States.RESPONDER_INACTIVE_PRESS_IN\n | typeof States.RESPONDER_INACTIVE_PRESS_OUT\n | typeof States.RESPONDER_ACTIVE_PRESS_IN\n | typeof States.RESPONDER_ACTIVE_PRESS_OUT\n | typeof States.RESPONDER_ACTIVE_LONG_PRESS_IN\n | typeof States.RESPONDER_ACTIVE_LONG_PRESS_OUT\n | typeof States.ERROR;\n\n/*\n * Quick lookup map for states that are considered to be \"active\"\n */\n\nconst baseStatesConditions = {\n NOT_RESPONDER: false,\n RESPONDER_INACTIVE_PRESS_IN: false,\n RESPONDER_INACTIVE_PRESS_OUT: false,\n RESPONDER_ACTIVE_PRESS_IN: false,\n RESPONDER_ACTIVE_PRESS_OUT: false,\n RESPONDER_ACTIVE_LONG_PRESS_IN: false,\n RESPONDER_ACTIVE_LONG_PRESS_OUT: false,\n ERROR: false,\n};\n\nconst IsActive = {\n ...baseStatesConditions,\n RESPONDER_ACTIVE_PRESS_OUT: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n};\n\n/**\n * Quick lookup for states that are considered to be \"pressing\" and are\n * therefore eligible to result in a \"selection\" if the press stops.\n */\nconst IsPressingIn = {\n ...baseStatesConditions,\n RESPONDER_INACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\nconst IsLongPressingIn = {\n ...baseStatesConditions,\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\n/**\n * Inputs to the state machine.\n */\nconst Signals = {\n DELAY: 'DELAY',\n RESPONDER_GRANT: 'RESPONDER_GRANT',\n RESPONDER_RELEASE: 'RESPONDER_RELEASE',\n RESPONDER_TERMINATED: 'RESPONDER_TERMINATED',\n ENTER_PRESS_RECT: 'ENTER_PRESS_RECT',\n LEAVE_PRESS_RECT: 'LEAVE_PRESS_RECT',\n LONG_PRESS_DETECTED: 'LONG_PRESS_DETECTED',\n};\n\ntype Signal =\n | typeof Signals.DELAY\n | typeof Signals.RESPONDER_GRANT\n | typeof Signals.RESPONDER_RELEASE\n | typeof Signals.RESPONDER_TERMINATED\n | typeof Signals.ENTER_PRESS_RECT\n | typeof Signals.LEAVE_PRESS_RECT\n | typeof Signals.LONG_PRESS_DETECTED;\n\n/**\n * Mapping from States x Signals => States\n */\nconst Transitions = {\n NOT_RESPONDER: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.ERROR,\n RESPONDER_TERMINATED: States.ERROR,\n ENTER_PRESS_RECT: States.ERROR,\n LEAVE_PRESS_RECT: States.ERROR,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_IN: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_IN,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_OUT: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_OUT,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_LONG_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_LONG_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n error: {\n DELAY: States.NOT_RESPONDER,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.NOT_RESPONDER,\n LEAVE_PRESS_RECT: States.NOT_RESPONDER,\n LONG_PRESS_DETECTED: States.NOT_RESPONDER,\n },\n};\n\n// ==== Typical Constants for integrating into UI components ====\n// var HIT_EXPAND_PX = 20;\n// var HIT_VERT_OFFSET_PX = 10;\nconst HIGHLIGHT_DELAY_MS = 130;\n\nconst PRESS_EXPAND_PX = 20;\n\nconst LONG_PRESS_THRESHOLD = 500;\n\nconst LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS;\n\nconst LONG_PRESS_ALLOWED_MOVEMENT = 10;\n\n// Default amount \"active\" region protrudes beyond box\n\n/**\n * By convention, methods prefixed with underscores are meant to be @private,\n * and not @protected. Mixers shouldn't access them - not even to provide them\n * as callback handlers.\n *\n *\n * ========== Geometry =========\n * `Touchable` only assumes that there exists a `HitRect` node. The `PressRect`\n * is an abstract box that is extended beyond the `HitRect`.\n *\n * +--------------------------+\n * | | - \"Start\" events in `HitRect` cause `HitRect`\n * | +--------------------+ | to become the responder.\n * | | +--------------+ | | - `HitRect` is typically expanded around\n * | | | | | | the `VisualRect`, but shifted downward.\n * | | | VisualRect | | | - After pressing down, after some delay,\n * | | | | | | and before letting up, the Visual React\n * | | +--------------+ | | will become \"active\". This makes it eligible\n * | | HitRect | | for being highlighted (so long as the\n * | +--------------------+ | press remains in the `PressRect`).\n * | PressRect o |\n * +----------------------|---+\n * Out Region |\n * +-----+ This gap between the `HitRect` and\n * `PressRect` allows a touch to move far away\n * from the original hit rect, and remain\n * highlighted, and eligible for a \"Press\".\n * Customize this via\n * `touchableGetPressRectOffset()`.\n *\n *\n *\n * ======= State Machine =======\n *\n * +-------------+ <---+ RESPONDER_RELEASE\n * |NOT_RESPONDER|\n * +-------------+ <---+ RESPONDER_TERMINATED\n * +\n * | RESPONDER_GRANT (HitRect)\n * v\n * +---------------------------+ DELAY +-------------------------+ T + DELAY +------------------------------+\n * |RESPONDER_INACTIVE_PRESS_IN|+-------->|RESPONDER_ACTIVE_PRESS_IN| +------------> |RESPONDER_ACTIVE_LONG_PRESS_IN|\n * +---------------------------+ +-------------------------+ +------------------------------+\n * + ^ + ^ + ^\n * |LEAVE_ |ENTER_ |LEAVE_ |ENTER_ |LEAVE_ |ENTER_\n * |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT\n * | | | | | |\n * v + v + v +\n * +----------------------------+ DELAY +--------------------------+ +-------------------------------+\n * |RESPONDER_INACTIVE_PRESS_OUT|+------->|RESPONDER_ACTIVE_PRESS_OUT| |RESPONDER_ACTIVE_LONG_PRESS_OUT|\n * +----------------------------+ +--------------------------+ +-------------------------------+\n *\n * T + DELAY => LONG_PRESS_DELAY_MS + DELAY\n *\n * Not drawn are the side effects of each transition. The most important side\n * effect is the `touchableHandlePress` abstract method invocation that occurs\n * when a responder is released while in either of the \"Press\" states.\n *\n * The other important side effects are the highlight abstract method\n * invocations (internal callbacks) to be implemented by the mixer.\n *\n *\n * @lends Touchable.prototype\n */\nconst TouchableMixin = {\n componentDidMount: function () {\n if (!Platform.isTV) {\n return;\n }\n },\n\n /**\n * Clear all timeouts on unmount\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n componentWillUnmount: function () {\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n },\n\n /**\n * It's prefer that mixins determine state in this way, having the class\n * explicitly mix the state in the one and only `getInitialState` method.\n *\n * @return {object} State object to be placed inside of\n * `this.state.touchable`.\n */\n touchableGetInitialState: function (): {\n touchable: {\n touchState: ?State,\n responderID: ?PressEvent['currentTarget'],\n },\n } {\n return {\n touchable: {touchState: undefined, responderID: null},\n };\n },\n\n // ==== Hooks to Gesture Responder system ====\n /**\n * Must return true if embedded in a native platform scroll view.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleResponderTerminationRequest: function (): any {\n return !this.props.rejectResponderTermination;\n },\n\n /**\n * Must return true to start the process of `Touchable`.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleStartShouldSetResponder: function (): any {\n return !this.props.disabled;\n },\n\n /**\n * Return true to cancel press on long press.\n */\n touchableLongPressCancelsPress: function (): boolean {\n return true;\n },\n\n /**\n * Place as callback for a DOM element's `onResponderGrant` event.\n * @param {SyntheticEvent} e Synthetic event from event system.\n *\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleResponderGrant: function (e: PressEvent) {\n const dispatchID = e.currentTarget;\n // Since e is used in a callback invoked on another event loop\n // (as in setTimeout etc), we need to call e.persist() on the\n // event to make sure it doesn't get reused in the event object pool.\n e.persist();\n\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n this.pressOutDelayTimeout = null;\n\n this.state.touchable.touchState = States.NOT_RESPONDER;\n this.state.touchable.responderID = dispatchID;\n this._receiveSignal(Signals.RESPONDER_GRANT, e);\n let delayMS =\n this.touchableGetHighlightDelayMS !== undefined\n ? Math.max(this.touchableGetHighlightDelayMS(), 0)\n : HIGHLIGHT_DELAY_MS;\n delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS;\n if (delayMS !== 0) {\n this.touchableDelayTimeout = setTimeout(\n this._handleDelay.bind(this, e),\n delayMS,\n );\n } else {\n this._handleDelay(e);\n }\n\n let longDelayMS =\n this.touchableGetLongPressDelayMS !== undefined\n ? Math.max(this.touchableGetLongPressDelayMS(), 10)\n : LONG_PRESS_DELAY_MS;\n longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS;\n this.longPressDelayTimeout = setTimeout(\n this._handleLongDelay.bind(this, e),\n longDelayMS + delayMS,\n );\n },\n\n /**\n * Place as callback for a DOM element's `onResponderRelease` event.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleResponderRelease: function (e: PressEvent) {\n this.pressInLocation = null;\n this._receiveSignal(Signals.RESPONDER_RELEASE, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderTerminate` event.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleResponderTerminate: function (e: PressEvent) {\n this.pressInLocation = null;\n this._receiveSignal(Signals.RESPONDER_TERMINATED, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderMove` event.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleResponderMove: function (e: PressEvent) {\n // Measurement may not have returned yet.\n if (!this.state.touchable.positionOnActivate) {\n return;\n }\n\n const positionOnActivate = this.state.touchable.positionOnActivate;\n const dimensionsOnActivate = this.state.touchable.dimensionsOnActivate;\n const pressRectOffset = this.touchableGetPressRectOffset\n ? this.touchableGetPressRectOffset()\n : {\n left: PRESS_EXPAND_PX,\n right: PRESS_EXPAND_PX,\n top: PRESS_EXPAND_PX,\n bottom: PRESS_EXPAND_PX,\n };\n\n let pressExpandLeft = pressRectOffset.left;\n let pressExpandTop = pressRectOffset.top;\n let pressExpandRight = pressRectOffset.right;\n let pressExpandBottom = pressRectOffset.bottom;\n\n const hitSlop = this.touchableGetHitSlop\n ? this.touchableGetHitSlop()\n : null;\n\n if (hitSlop) {\n pressExpandLeft += hitSlop.left || 0;\n pressExpandTop += hitSlop.top || 0;\n pressExpandRight += hitSlop.right || 0;\n pressExpandBottom += hitSlop.bottom || 0;\n }\n\n const touch = extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n\n if (this.pressInLocation) {\n const movedDistance = this._getDistanceBetweenPoints(\n pageX,\n pageY,\n this.pressInLocation.pageX,\n this.pressInLocation.pageY,\n );\n if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) {\n this._cancelLongPressDelayTimeout();\n }\n }\n\n const isTouchWithinActive =\n pageX > positionOnActivate.left - pressExpandLeft &&\n pageY > positionOnActivate.top - pressExpandTop &&\n pageX <\n positionOnActivate.left +\n dimensionsOnActivate.width +\n pressExpandRight &&\n pageY <\n positionOnActivate.top +\n dimensionsOnActivate.height +\n pressExpandBottom;\n if (isTouchWithinActive) {\n const prevState = this.state.touchable.touchState;\n this._receiveSignal(Signals.ENTER_PRESS_RECT, e);\n const curState = this.state.touchable.touchState;\n if (\n curState === States.RESPONDER_INACTIVE_PRESS_IN &&\n prevState !== States.RESPONDER_INACTIVE_PRESS_IN\n ) {\n // fix for t7967420\n this._cancelLongPressDelayTimeout();\n }\n } else {\n this._cancelLongPressDelayTimeout();\n this._receiveSignal(Signals.LEAVE_PRESS_RECT, e);\n }\n },\n\n /**\n * Invoked when the item receives focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * currently has the focus. Most platforms only support a single element being\n * focused at a time, in which case there may have been a previously focused\n * element that was blurred just prior to this. This can be overridden when\n * using `Touchable.Mixin.withoutDefaultFocusAndBlur`.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleFocus: function (e: Event) {\n this.props.onFocus && this.props.onFocus(e);\n },\n\n /**\n * Invoked when the item loses focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * no longer has focus. Most platforms only support a single element being\n * focused at a time, in which case the focus may have moved to another.\n * This can be overridden when using\n * `Touchable.Mixin.withoutDefaultFocusAndBlur`.\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n touchableHandleBlur: function (e: Event) {\n this.props.onBlur && this.props.onBlur(e);\n },\n\n // ==== Abstract Application Callbacks ====\n\n /**\n * Invoked when the item should be highlighted. Mixers should implement this\n * to visually distinguish the `VisualRect` so that the user knows that\n * releasing a touch will result in a \"selection\" (analog to click).\n *\n * @abstract\n * touchableHandleActivePressIn: function,\n */\n\n /**\n * Invoked when the item is \"active\" (in that it is still eligible to become\n * a \"select\") but the touch has left the `PressRect`. Usually the mixer will\n * want to unhighlight the `VisualRect`. If the user (while pressing) moves\n * back into the `PressRect` `touchableHandleActivePressIn` will be invoked\n * again and the mixer should probably highlight the `VisualRect` again. This\n * event will not fire on an `touchEnd/mouseUp` event, only move events while\n * the user is depressing the mouse/touch.\n *\n * @abstract\n * touchableHandleActivePressOut: function\n */\n\n /**\n * Invoked when the item is \"selected\" - meaning the interaction ended by\n * letting up while the item was either in the state\n * `RESPONDER_ACTIVE_PRESS_IN` or `RESPONDER_INACTIVE_PRESS_IN`.\n *\n * @abstract\n * touchableHandlePress: function\n */\n\n /**\n * Invoked when the item is long pressed - meaning the interaction ended by\n * letting up while the item was in `RESPONDER_ACTIVE_LONG_PRESS_IN`. If\n * `touchableHandleLongPress` is *not* provided, `touchableHandlePress` will\n * be called as it normally is. If `touchableHandleLongPress` is provided, by\n * default any `touchableHandlePress` callback will not be invoked. To\n * override this default behavior, override `touchableLongPressCancelsPress`\n * to return false. As a result, `touchableHandlePress` will be called when\n * lifting up, even if `touchableHandleLongPress` has also been called.\n *\n * @abstract\n * touchableHandleLongPress: function\n */\n\n /**\n * Returns the number of millis to wait before triggering a highlight.\n *\n * @abstract\n * touchableGetHighlightDelayMS: function\n */\n\n /**\n * Returns the amount to extend the `HitRect` into the `PressRect`. Positive\n * numbers mean the size expands outwards.\n *\n * @abstract\n * touchableGetPressRectOffset: function\n */\n\n // ==== Internal Logic ====\n\n /**\n * Measures the `HitRect` node on activation. The Bounding rectangle is with\n * respect to viewport - not page, so adding the `pageXOffset/pageYOffset`\n * should result in points that are in the same coordinate system as an\n * event's `globalX/globalY` data values.\n *\n * - Consider caching this for the lifetime of the component, or possibly\n * being able to share this cache between any `ScrollMap` view.\n *\n * @sideeffects\n * @private\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _remeasureMetricsOnActivation: function () {\n const responderID = this.state.touchable.responderID;\n if (responderID == null) {\n return;\n }\n\n if (typeof responderID === 'number') {\n UIManager.measure(responderID, this._handleQueryLayout);\n } else {\n responderID.measure(this._handleQueryLayout);\n }\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _handleQueryLayout: function (\n l: number,\n t: number,\n w: number,\n h: number,\n globalX: number,\n globalY: number,\n ) {\n //don't do anything UIManager failed to measure node\n if (!l && !t && !w && !h && !globalX && !globalY) {\n return;\n }\n this.state.touchable.positionOnActivate &&\n Position.release(this.state.touchable.positionOnActivate);\n this.state.touchable.dimensionsOnActivate &&\n BoundingDimensions.release(this.state.touchable.dimensionsOnActivate);\n this.state.touchable.positionOnActivate = Position.getPooled(\n globalX,\n globalY,\n );\n this.state.touchable.dimensionsOnActivate = BoundingDimensions.getPooled(\n w,\n h,\n );\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _handleDelay: function (e: PressEvent) {\n this.touchableDelayTimeout = null;\n this._receiveSignal(Signals.DELAY, e);\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _handleLongDelay: function (e: PressEvent) {\n this.longPressDelayTimeout = null;\n const curState = this.state.touchable.touchState;\n if (\n curState === States.RESPONDER_ACTIVE_PRESS_IN ||\n curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN\n ) {\n this._receiveSignal(Signals.LONG_PRESS_DETECTED, e);\n }\n },\n\n /**\n * Receives a state machine signal, performs side effects of the transition\n * and stores the new state. Validates the transition as well.\n *\n * @param {Signals} signal State machine signal.\n * @throws Error if invalid state transition or unrecognized signal.\n * @sideeffects\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _receiveSignal: function (signal: Signal, e: PressEvent) {\n const responderID = this.state.touchable.responderID;\n const curState = this.state.touchable.touchState;\n const nextState = Transitions[curState] && Transitions[curState][signal];\n if (!responderID && signal === Signals.RESPONDER_RELEASE) {\n return;\n }\n if (!nextState) {\n throw new Error(\n 'Unrecognized signal `' +\n signal +\n '` or state `' +\n curState +\n '` for Touchable responder `' +\n typeof this.state.touchable.responderID ===\n 'number'\n ? this.state.touchable.responderID\n : 'host component' + '`',\n );\n }\n if (nextState === States.ERROR) {\n throw new Error(\n 'Touchable cannot transition from `' +\n curState +\n '` to `' +\n signal +\n '` for responder `' +\n typeof this.state.touchable.responderID ===\n 'number'\n ? this.state.touchable.responderID\n : '<>' + '`',\n );\n }\n if (curState !== nextState) {\n this._performSideEffectsForTransition(curState, nextState, signal, e);\n this.state.touchable.touchState = nextState;\n }\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _cancelLongPressDelayTimeout: function () {\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.longPressDelayTimeout = null;\n },\n\n _isHighlight: function (state: State): boolean {\n return (\n state === States.RESPONDER_ACTIVE_PRESS_IN ||\n state === States.RESPONDER_ACTIVE_LONG_PRESS_IN\n );\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _savePressInLocation: function (e: PressEvent) {\n const touch = extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n const locationX = touch && touch.locationX;\n const locationY = touch && touch.locationY;\n this.pressInLocation = {pageX, pageY, locationX, locationY};\n },\n\n _getDistanceBetweenPoints: function (\n aX: number,\n aY: number,\n bX: number,\n bY: number,\n ): number {\n const deltaX = aX - bX;\n const deltaY = aY - bY;\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n },\n\n /**\n * Will perform a transition between touchable states, and identify any\n * highlighting or unhighlighting that must be performed for this particular\n * transition.\n *\n * @param {States} curState Current Touchable state.\n * @param {States} nextState Next Touchable state.\n * @param {Signal} signal Signal that triggered the transition.\n * @param {Event} e Native event.\n * @sideeffects\n */\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _performSideEffectsForTransition: function (\n curState: State,\n nextState: State,\n signal: Signal,\n e: PressEvent,\n ) {\n const curIsHighlight = this._isHighlight(curState);\n const newIsHighlight = this._isHighlight(nextState);\n\n const isFinalSignal =\n signal === Signals.RESPONDER_TERMINATED ||\n signal === Signals.RESPONDER_RELEASE;\n\n if (isFinalSignal) {\n this._cancelLongPressDelayTimeout();\n }\n\n const isInitialTransition =\n curState === States.NOT_RESPONDER &&\n nextState === States.RESPONDER_INACTIVE_PRESS_IN;\n\n const isActiveTransition = !IsActive[curState] && IsActive[nextState];\n if (isInitialTransition || isActiveTransition) {\n this._remeasureMetricsOnActivation();\n }\n\n if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) {\n this.touchableHandleLongPress && this.touchableHandleLongPress(e);\n }\n\n if (newIsHighlight && !curIsHighlight) {\n this._startHighlight(e);\n } else if (!newIsHighlight && curIsHighlight) {\n this._endHighlight(e);\n }\n\n if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {\n const hasLongPressHandler = !!this.props.onLongPress;\n const pressIsLongButStillCallOnPress =\n IsLongPressingIn[curState] && // We *are* long pressing.. // But either has no long handler\n (!hasLongPressHandler || !this.touchableLongPressCancelsPress()); // or we're told to ignore it.\n\n const shouldInvokePress =\n !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress;\n if (shouldInvokePress && this.touchableHandlePress) {\n if (!newIsHighlight && !curIsHighlight) {\n // we never highlighted because of delay, but we should highlight now\n this._startHighlight(e);\n this._endHighlight(e);\n }\n if (Platform.OS === 'android' && !this.props.touchSoundDisabled) {\n SoundManager.playTouchSound();\n }\n this.touchableHandlePress(e);\n }\n }\n\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.touchableDelayTimeout = null;\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _startHighlight: function (e: PressEvent) {\n this._savePressInLocation(e);\n this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e);\n },\n\n /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\n _endHighlight: function (e: PressEvent) {\n if (this.touchableHandleActivePressOut) {\n if (\n this.touchableGetPressOutDelayMS &&\n this.touchableGetPressOutDelayMS()\n ) {\n this.pressOutDelayTimeout = setTimeout(() => {\n this.touchableHandleActivePressOut(e);\n }, this.touchableGetPressOutDelayMS());\n } else {\n this.touchableHandleActivePressOut(e);\n }\n }\n },\n\n withoutDefaultFocusAndBlur: ({}: {...}),\n};\n\n/**\n * Provide an optional version of the mixin where `touchableHandleFocus` and\n * `touchableHandleBlur` can be overridden. This allows appropriate defaults to\n * be set on TV platforms, without breaking existing implementations of\n * `Touchable`.\n */\nconst {\n touchableHandleFocus,\n touchableHandleBlur,\n ...TouchableMixinWithoutDefaultFocusAndBlur\n} = TouchableMixin;\nTouchableMixin.withoutDefaultFocusAndBlur =\n TouchableMixinWithoutDefaultFocusAndBlur;\n\nconst Touchable = {\n Mixin: TouchableMixin,\n /**\n * Renders a debugging overlay to visualize touch target with hitSlop (might not work on Android).\n */\n renderDebugView: ({\n color,\n hitSlop,\n }: {\n color: ColorValue,\n hitSlop: EdgeInsetsProp,\n ...\n }): null | React.Node => {\n if (__DEV__) {\n return ;\n }\n return null;\n },\n};\n\nexport default Touchable;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\nimport PooledClass from './PooledClass';\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * PooledClass representing the bounding rectangle of a region.\n *\n * @param {number} width Width of bounding rectangle.\n * @param {number} height Height of bounding rectangle.\n * @constructor BoundingDimensions\n */\nfunction BoundingDimensions(width, height) {\n this.width = width;\n this.height = height;\n}\n\nBoundingDimensions.prototype.destructor = function () {\n this.width = null;\n this.height = null;\n};\n\n/**\n * @param {HTMLElement} element Element to return `BoundingDimensions` for.\n * @return {BoundingDimensions} Bounding dimensions of `element`.\n */\nBoundingDimensions.getPooledFromElement = function (element) {\n return BoundingDimensions.getPooled(\n element.offsetWidth,\n element.offsetHeight,\n );\n};\n\nPooledClass.addPoolingTo(BoundingDimensions, twoArgumentPooler);\n\nmodule.exports = BoundingDimensions;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\nimport invariant from 'invariant';\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\n/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\nconst oneArgumentPooler = function (copyFieldsFrom: any) {\n const Klass = this; // eslint-disable-line consistent-this\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, copyFieldsFrom);\n return instance;\n } else {\n return new Klass(copyFieldsFrom);\n }\n};\n\n/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\nconst twoArgumentPooler = function (a1: any, a2: any) {\n const Klass = this; // eslint-disable-line consistent-this\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\n/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\nconst threeArgumentPooler = function (a1: any, a2: any, a3: any) {\n const Klass = this; // eslint-disable-line consistent-this\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3);\n return instance;\n } else {\n return new Klass(a1, a2, a3);\n }\n};\n\n/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\nconst fourArgumentPooler = function (a1: any, a2: any, a3: any, a4: any) {\n const Klass = this; // eslint-disable-line consistent-this\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3, a4);\n return instance;\n } else {\n return new Klass(a1, a2, a3, a4);\n }\n};\n\n/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n/* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by\n * Flow's LTI update could not be added via codemod */\nconst standardReleaser = function (instance) {\n const Klass = this; // eslint-disable-line consistent-this\n invariant(\n instance instanceof Klass,\n 'Trying to release an instance into a pool of a different type.',\n );\n instance.destructor();\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nconst DEFAULT_POOL_SIZE = 10;\nconst DEFAULT_POOLER = oneArgumentPooler;\n\ntype Pooler = any;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nconst addPoolingTo = function (\n CopyConstructor: Class,\n pooler: Pooler,\n): Class & {\n getPooled(\n ...args: $ReadOnlyArray\n ): /* arguments of the constructor */ T,\n release(instance: mixed): void,\n ...\n} {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n const NewKlass: any = CopyConstructor;\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nconst PooledClass = {\n addPoolingTo: addPoolingTo,\n oneArgumentPooler: (oneArgumentPooler: Pooler),\n twoArgumentPooler: (twoArgumentPooler: Pooler),\n threeArgumentPooler: (threeArgumentPooler: Pooler),\n fourArgumentPooler: (fourArgumentPooler: Pooler),\n};\n\nmodule.exports = PooledClass;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\nimport PooledClass from './PooledClass';\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * Position does not expose methods for construction via an `HTMLDOMElement`,\n * because it isn't meaningful to construct such a thing without first defining\n * a frame of reference.\n *\n * @param {number} windowStartKey Key that window starts at.\n * @param {number} windowEndKey Key that window ends at.\n */\nfunction Position(left, top) {\n this.left = left;\n this.top = top;\n}\n\nPosition.prototype.destructor = function () {\n this.left = null;\n this.top = null;\n};\n\nPooledClass.addPoolingTo(Position, twoArgumentPooler);\n\nmodule.exports = Position;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {ColorValue} from '../../StyleSheet/StyleSheet';\nimport typeof TouchableWithoutFeedback from './TouchableWithoutFeedback';\n\nimport View from '../../Components/View/View';\nimport Pressability, {\n type PressabilityConfig,\n} from '../../Pressability/Pressability';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug';\nimport StyleSheet, {type ViewStyleProp} from '../../StyleSheet/StyleSheet';\nimport Platform from '../../Utilities/Platform';\nimport * as React from 'react';\n\ntype AndroidProps = $ReadOnly<{|\n nextFocusDown?: ?number,\n nextFocusForward?: ?number,\n nextFocusLeft?: ?number,\n nextFocusRight?: ?number,\n nextFocusUp?: ?number,\n|}>;\n\ntype IOSProps = $ReadOnly<{|\n hasTVPreferredFocus?: ?boolean,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...React.ElementConfig,\n ...AndroidProps,\n ...IOSProps,\n\n activeOpacity?: ?number,\n underlayColor?: ?ColorValue,\n style?: ?ViewStyleProp,\n onShowUnderlay?: ?() => void,\n onHideUnderlay?: ?() => void,\n testOnly_pressed?: ?boolean,\n\n hostRef: React.Ref,\n|}>;\n\ntype ExtraStyles = $ReadOnly<{|\n child: ViewStyleProp,\n underlay: ViewStyleProp,\n|}>;\n\ntype State = $ReadOnly<{|\n pressability: Pressability,\n extraStyles: ?ExtraStyles,\n|}>;\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, which allows\n * the underlay color to show through, darkening or tinting the view.\n *\n * The underlay comes from wrapping the child in a new View, which can affect\n * layout, and sometimes cause unwanted visual artifacts if not used correctly,\n * for example if the backgroundColor of the wrapped view isn't explicitly set\n * to an opaque color.\n *\n * TouchableHighlight must have one child (not zero or more than one).\n * If you wish to have several child components, wrap them in a View.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * \n * );\n * },\n * ```\n *\n *\n * ### Example\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react'\n * import {\n * AppRegistry,\n * StyleSheet,\n * TouchableHighlight,\n * Text,\n * View,\n * } from 'react-native'\n *\n * class App extends Component {\n * constructor(props) {\n * super(props)\n * this.state = { count: 0 }\n * }\n *\n * onPress = () => {\n * this.setState({\n * count: this.state.count+1\n * })\n * }\n *\n * render() {\n * return (\n * \n * \n * Touch Here \n * \n * \n * \n * { this.state.count !== 0 ? this.state.count: null}\n * \n * \n * \n * )\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * justifyContent: 'center',\n * paddingHorizontal: 10\n * },\n * button: {\n * alignItems: 'center',\n * backgroundColor: '#DDDDDD',\n * padding: 10\n * },\n * countContainer: {\n * alignItems: 'center',\n * padding: 10\n * },\n * countText: {\n * color: '#FF00FF'\n * }\n * })\n *\n * AppRegistry.registerComponent('App', () => App)\n * ```\n *\n */\nclass TouchableHighlight extends React.Component {\n _hideTimeout: ?TimeoutID;\n _isMounted: boolean = false;\n\n state: State = {\n pressability: new Pressability(this._createPressabilityConfig()),\n extraStyles:\n this.props.testOnly_pressed === true ? this._createExtraStyles() : null,\n };\n\n _createPressabilityConfig(): PressabilityConfig {\n return {\n cancelable: !this.props.rejectResponderTermination,\n disabled:\n this.props.disabled != null\n ? this.props.disabled\n : this.props.accessibilityState?.disabled,\n hitSlop: this.props.hitSlop,\n delayLongPress: this.props.delayLongPress,\n delayPressIn: this.props.delayPressIn,\n delayPressOut: this.props.delayPressOut,\n minPressDuration: 0,\n pressRectOffset: this.props.pressRetentionOffset,\n android_disableSound: this.props.touchSoundDisabled,\n onBlur: event => {\n if (Platform.isTV) {\n this._hideUnderlay();\n }\n if (this.props.onBlur != null) {\n this.props.onBlur(event);\n }\n },\n onFocus: event => {\n if (Platform.isTV) {\n this._showUnderlay();\n }\n if (this.props.onFocus != null) {\n this.props.onFocus(event);\n }\n },\n onLongPress: this.props.onLongPress,\n onPress: event => {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n }\n if (!Platform.isTV) {\n this._showUnderlay();\n this._hideTimeout = setTimeout(() => {\n this._hideUnderlay();\n }, this.props.delayPressOut ?? 0);\n }\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n },\n onPressIn: event => {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n }\n this._showUnderlay();\n if (this.props.onPressIn != null) {\n this.props.onPressIn(event);\n }\n },\n onPressOut: event => {\n if (this._hideTimeout == null) {\n this._hideUnderlay();\n }\n if (this.props.onPressOut != null) {\n this.props.onPressOut(event);\n }\n },\n };\n }\n\n _createExtraStyles(): ExtraStyles {\n return {\n child: {opacity: this.props.activeOpacity ?? 0.85},\n underlay: {\n backgroundColor:\n this.props.underlayColor === undefined\n ? 'black'\n : this.props.underlayColor,\n },\n };\n }\n\n _showUnderlay(): void {\n if (!this._isMounted || !this._hasPressHandler()) {\n return;\n }\n this.setState({extraStyles: this._createExtraStyles()});\n if (this.props.onShowUnderlay != null) {\n this.props.onShowUnderlay();\n }\n }\n\n _hideUnderlay(): void {\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n }\n if (this.props.testOnly_pressed === true) {\n return;\n }\n if (this._hasPressHandler()) {\n this.setState({extraStyles: null});\n if (this.props.onHideUnderlay != null) {\n this.props.onHideUnderlay();\n }\n }\n }\n\n _hasPressHandler(): boolean {\n return (\n this.props.onPress != null ||\n this.props.onPressIn != null ||\n this.props.onPressOut != null ||\n this.props.onLongPress != null\n );\n }\n\n render(): React.Node {\n const child = React.Children.only<$FlowFixMe>(this.props.children);\n\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {onBlur, onFocus, ...eventHandlersWithoutBlurAndFocus} =\n this.state.pressability.getEventHandlers();\n\n const accessibilityState =\n this.props.disabled != null\n ? {\n ...this.props.accessibilityState,\n disabled: this.props.disabled,\n }\n : this.props.accessibilityState;\n\n const accessibilityValue = {\n max: this.props['aria-valuemax'] ?? this.props.accessibilityValue?.max,\n min: this.props['aria-valuemin'] ?? this.props.accessibilityValue?.min,\n now: this.props['aria-valuenow'] ?? this.props.accessibilityValue?.now,\n text: this.props['aria-valuetext'] ?? this.props.accessibilityValue?.text,\n };\n\n const accessibilityLiveRegion =\n this.props['aria-live'] === 'off'\n ? 'none'\n : this.props['aria-live'] ?? this.props.accessibilityLiveRegion;\n\n const accessibilityLabel =\n this.props['aria-label'] ?? this.props.accessibilityLabel;\n return (\n \n {React.cloneElement(child, {\n style: StyleSheet.compose(\n child.props.style,\n this.state.extraStyles?.child,\n ),\n })}\n {__DEV__ ? (\n \n ) : null}\n \n );\n }\n\n componentDidMount(): void {\n this._isMounted = true;\n this.state.pressability.configure(this._createPressabilityConfig());\n }\n\n componentDidUpdate(prevProps: Props, prevState: State) {\n this.state.pressability.configure(this._createPressabilityConfig());\n }\n\n componentWillUnmount(): void {\n this._isMounted = false;\n if (this._hideTimeout != null) {\n clearTimeout(this._hideTimeout);\n }\n this.state.pressability.reset();\n }\n}\n\nconst Touchable: React.AbstractComponent<\n $ReadOnly<$Diff|}>>,\n React.ElementRef,\n> = React.forwardRef((props, hostRef) => (\n \n));\n\nTouchable.displayName = 'TouchableHighlight';\n\nmodule.exports = Touchable;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {\n AccessibilityActionEvent,\n AccessibilityActionInfo,\n AccessibilityRole,\n AccessibilityState,\n AccessibilityValue,\n} from '../../Components/View/ViewAccessibility';\nimport type {EdgeInsetsOrSizeProp} from '../../StyleSheet/EdgeInsetsPropType';\nimport type {\n BlurEvent,\n FocusEvent,\n LayoutEvent,\n PressEvent,\n} from '../../Types/CoreEventTypes';\n\nimport View from '../../Components/View/View';\nimport {PressabilityDebugView} from '../../Pressability/PressabilityDebug';\nimport usePressability from '../../Pressability/usePressability';\nimport * as React from 'react';\nimport {useMemo} from 'react';\n\ntype Props = $ReadOnly<{|\n accessibilityActions?: ?$ReadOnlyArray,\n accessibilityElementsHidden?: ?boolean,\n accessibilityHint?: ?Stringish,\n accessibilityLanguage?: ?Stringish,\n accessibilityIgnoresInvertColors?: ?boolean,\n accessibilityLabel?: ?Stringish,\n accessibilityLiveRegion?: ?('none' | 'polite' | 'assertive'),\n accessibilityRole?: ?AccessibilityRole,\n accessibilityState?: ?AccessibilityState,\n accessibilityValue?: ?AccessibilityValue,\n 'aria-valuemax'?: AccessibilityValue['max'],\n 'aria-valuemin'?: AccessibilityValue['min'],\n 'aria-valuenow'?: AccessibilityValue['now'],\n 'aria-valuetext'?: AccessibilityValue['text'],\n accessibilityViewIsModal?: ?boolean,\n 'aria-modal'?: ?boolean,\n accessible?: ?boolean,\n /**\n * alias for accessibilityState\n *\n * see https://reactnative.dev/docs/accessibility#accessibilitystate\n */\n 'aria-busy'?: ?boolean,\n 'aria-checked'?: ?boolean | 'mixed',\n 'aria-disabled'?: ?boolean,\n 'aria-expanded'?: ?boolean,\n 'aria-selected'?: ?boolean,\n 'aria-hidden'?: ?boolean,\n 'aria-live'?: ?('polite' | 'assertive' | 'off'),\n 'aria-label'?: ?Stringish,\n children?: ?React.Node,\n delayLongPress?: ?number,\n delayPressIn?: ?number,\n delayPressOut?: ?number,\n disabled?: ?boolean,\n focusable?: ?boolean,\n hitSlop?: ?EdgeInsetsOrSizeProp,\n id?: string,\n importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),\n nativeID?: ?string,\n onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,\n onBlur?: ?(event: BlurEvent) => mixed,\n onFocus?: ?(event: FocusEvent) => mixed,\n onLayout?: ?(event: LayoutEvent) => mixed,\n onLongPress?: ?(event: PressEvent) => mixed,\n onPress?: ?(event: PressEvent) => mixed,\n onPressIn?: ?(event: PressEvent) => mixed,\n onPressOut?: ?(event: PressEvent) => mixed,\n pressRetentionOffset?: ?EdgeInsetsOrSizeProp,\n rejectResponderTermination?: ?boolean,\n testID?: ?string,\n touchSoundDisabled?: ?boolean,\n|}>;\n\nconst PASSTHROUGH_PROPS = [\n 'accessibilityActions',\n 'accessibilityElementsHidden',\n 'accessibilityHint',\n 'accessibilityLanguage',\n 'accessibilityIgnoresInvertColors',\n 'accessibilityLabel',\n 'accessibilityLiveRegion',\n 'accessibilityRole',\n 'accessibilityValue',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n 'accessibilityViewIsModal',\n 'aria-modal',\n 'hitSlop',\n 'importantForAccessibility',\n 'nativeID',\n 'onAccessibilityAction',\n 'onBlur',\n 'onFocus',\n 'onLayout',\n 'testID',\n];\n\nmodule.exports = function TouchableWithoutFeedback(props: Props): React.Node {\n const {\n disabled,\n rejectResponderTermination,\n 'aria-disabled': ariaDisabled,\n accessibilityState,\n hitSlop,\n delayLongPress,\n delayPressIn,\n delayPressOut,\n pressRetentionOffset,\n touchSoundDisabled,\n onBlur: _onBlur,\n onFocus: _onFocus,\n onLongPress,\n onPress,\n onPressIn,\n onPressOut,\n } = props;\n\n const pressabilityConfig = useMemo(\n () => ({\n cancelable: !rejectResponderTermination,\n disabled:\n disabled !== null\n ? disabled\n : ariaDisabled ?? accessibilityState?.disabled,\n hitSlop: hitSlop,\n delayLongPress: delayLongPress,\n delayPressIn: delayPressIn,\n delayPressOut: delayPressOut,\n minPressDuration: 0,\n pressRectOffset: pressRetentionOffset,\n android_disableSound: touchSoundDisabled,\n onBlur: _onBlur,\n onFocus: _onFocus,\n onLongPress: onLongPress,\n onPress: onPress,\n onPressIn: onPressIn,\n onPressOut: onPressOut,\n }),\n [\n rejectResponderTermination,\n disabled,\n ariaDisabled,\n accessibilityState?.disabled,\n hitSlop,\n delayLongPress,\n delayPressIn,\n delayPressOut,\n pressRetentionOffset,\n touchSoundDisabled,\n _onBlur,\n _onFocus,\n onLongPress,\n onPress,\n onPressIn,\n onPressOut,\n ],\n );\n\n const eventHandlers = usePressability(pressabilityConfig);\n\n const element = React.Children.only<$FlowFixMe>(props.children);\n const children: Array = [element.props.children];\n const ariaLive = props['aria-live'];\n\n if (__DEV__) {\n if (element.type === View) {\n children.push(\n ,\n );\n }\n }\n\n let _accessibilityState = {\n busy: props['aria-busy'] ?? props.accessibilityState?.busy,\n checked: props['aria-checked'] ?? props.accessibilityState?.checked,\n disabled: props['aria-disabled'] ?? props.accessibilityState?.disabled,\n expanded: props['aria-expanded'] ?? props.accessibilityState?.expanded,\n selected: props['aria-selected'] ?? props.accessibilityState?.selected,\n };\n\n // BACKWARD-COMPATIBILITY: Focus and blur events were never supported before\n // adopting `Pressability`, so preserve that behavior.\n const {onBlur, onFocus, ...eventHandlersWithoutBlurAndFocus} =\n eventHandlers || {};\n\n const elementProps: {[string]: mixed, ...} = {\n ...eventHandlersWithoutBlurAndFocus,\n accessible: props.accessible !== false,\n accessibilityState:\n props.disabled != null\n ? {\n ..._accessibilityState,\n disabled: props.disabled,\n }\n : _accessibilityState,\n focusable:\n props.focusable !== false &&\n props.onPress !== undefined &&\n !props.disabled,\n\n accessibilityElementsHidden:\n props['aria-hidden'] ?? props.accessibilityElementsHidden,\n importantForAccessibility:\n props['aria-hidden'] === true\n ? 'no-hide-descendants'\n : props.importantForAccessibility,\n accessibilityLiveRegion:\n ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion,\n nativeID: props.id ?? props.nativeID,\n };\n\n for (const prop of PASSTHROUGH_PROPS) {\n if (props[prop] !== undefined) {\n elementProps[prop] = props[prop];\n }\n }\n\n // $FlowFixMe[incompatible-call]\n return React.cloneElement(element, elementProps, ...children);\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport {typeof VirtualizedList as VirtualizedListType} from '@react-native/virtualized-lists';\n\nconst VirtualizedList: VirtualizedListType =\n require('@react-native/virtualized-lists').VirtualizedList;\n\nexport type {\n RenderItemProps,\n RenderItemType,\n Separators,\n} from '@react-native/virtualized-lists';\nmodule.exports = VirtualizedList;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport {typeof VirtualizedSectionList as VirtualizedSectionListType} from '@react-native/virtualized-lists';\n\nconst VirtualizedSectionList: VirtualizedSectionListType =\n require('@react-native/virtualized-lists').VirtualizedSectionList;\n\nexport type {\n SectionBase,\n ScrollToLocationParamsType,\n} from '@react-native/virtualized-lists';\nmodule.exports = VirtualizedSectionList;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {ProcessedColorValue} from '../StyleSheet/processColor';\nimport type {ColorValue} from '../StyleSheet/StyleSheet';\n\nimport RCTActionSheetManager from './NativeActionSheetManager';\n\nconst processColor = require('../StyleSheet/processColor').default;\nconst invariant = require('invariant');\n\n/**\n * Display action sheets and share sheets on iOS.\n *\n * See https://reactnative.dev/docs/actionsheetios\n */\nconst ActionSheetIOS = {\n /**\n * Display an iOS action sheet.\n *\n * The `options` object must contain one or more of:\n *\n * - `options` (array of strings) - a list of button titles (required)\n * - `cancelButtonIndex` (int) - index of cancel button in `options`\n * - `destructiveButtonIndex` (int or array of ints) - index or indices of destructive buttons in `options`\n * - `title` (string) - a title to show above the action sheet\n * - `message` (string) - a message to show below the title\n * - `disabledButtonIndices` (array of numbers) - a list of button indices which should be disabled\n *\n * The 'callback' function takes one parameter, the zero-based index\n * of the selected item.\n *\n * See https://reactnative.dev/docs/actionsheetios#showactionsheetwithoptions\n */\n showActionSheetWithOptions(\n options: {|\n +title?: ?string,\n +message?: ?string,\n +options: Array,\n +destructiveButtonIndex?: ?number | ?Array,\n +cancelButtonIndex?: ?number,\n +anchor?: ?number,\n +tintColor?: ColorValue | ProcessedColorValue,\n +cancelButtonTintColor?: ColorValue | ProcessedColorValue,\n +userInterfaceStyle?: string,\n +disabledButtonIndices?: Array,\n |},\n callback: (buttonIndex: number) => void,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n invariant(RCTActionSheetManager, \"ActionSheetManager doesn't exist\");\n\n const {\n tintColor,\n cancelButtonTintColor,\n destructiveButtonIndex,\n ...remainingOptions\n } = options;\n let destructiveButtonIndices = null;\n\n if (Array.isArray(destructiveButtonIndex)) {\n destructiveButtonIndices = destructiveButtonIndex;\n } else if (typeof destructiveButtonIndex === 'number') {\n destructiveButtonIndices = [destructiveButtonIndex];\n }\n\n const processedTintColor = processColor(tintColor);\n const processedCancelButtonTintColor = processColor(cancelButtonTintColor);\n invariant(\n processedTintColor == null || typeof processedTintColor === 'number',\n 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor',\n );\n invariant(\n processedCancelButtonTintColor == null ||\n typeof processedCancelButtonTintColor === 'number',\n 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor',\n );\n RCTActionSheetManager.showActionSheetWithOptions(\n {\n ...remainingOptions,\n // $FlowFixMe[incompatible-call]\n tintColor: processedTintColor,\n // $FlowFixMe[incompatible-call]\n cancelButtonTintColor: processedCancelButtonTintColor,\n destructiveButtonIndices,\n },\n callback,\n );\n },\n\n /**\n * Display the iOS share sheet. The `options` object should contain\n * one or both of `message` and `url` and can additionally have\n * a `subject` or `excludedActivityTypes`:\n *\n * - `url` (string) - a URL to share\n * - `message` (string) - a message to share\n * - `subject` (string) - a subject for the message\n * - `excludedActivityTypes` (array) - the activities to exclude from\n * the ActionSheet\n * - `tintColor` (color) - tint color of the buttons\n *\n * The 'failureCallback' function takes one parameter, an error object.\n * The only property defined on this object is an optional `stack` property\n * of type `string`.\n *\n * The 'successCallback' function takes two parameters:\n *\n * - a boolean value signifying success or failure\n * - a string that, in the case of success, indicates the method of sharing\n *\n * See https://reactnative.dev/docs/actionsheetios#showshareactionsheetwithoptions\n */\n showShareActionSheetWithOptions(\n options: Object,\n failureCallback: Function,\n successCallback: Function,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(\n typeof failureCallback === 'function',\n 'Must provide a valid failureCallback',\n );\n invariant(\n typeof successCallback === 'function',\n 'Must provide a valid successCallback',\n );\n invariant(RCTActionSheetManager, \"ActionSheetManager doesn't exist\");\n RCTActionSheetManager.showShareActionSheetWithOptions(\n {...options, tintColor: processColor(options.tintColor)},\n failureCallback,\n successCallback,\n );\n },\n\n /**\n * Dismisses the most upper iOS action sheet presented, if no action sheet is\n * present a warning is displayed.\n */\n dismissActionSheet: () => {\n invariant(RCTActionSheetManager, \"ActionSheetManager doesn't exist\");\n if (typeof RCTActionSheetManager.dismissActionSheet === 'function') {\n RCTActionSheetManager.dismissActionSheet();\n }\n },\n};\n\nmodule.exports = ActionSheetIOS;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeActionSheetManager';\nimport NativeActionSheetManager from '../../src/private/specs/modules/NativeActionSheetManager';\nexport default NativeActionSheetManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +showActionSheetWithOptions: (\n options: {|\n +title?: ?string,\n +message?: ?string,\n +options: ?Array,\n +destructiveButtonIndices?: ?Array,\n +cancelButtonIndex?: ?number,\n +anchor?: ?number,\n +tintColor?: ?number,\n +cancelButtonTintColor?: ?number,\n +userInterfaceStyle?: ?string,\n +disabledButtonIndices?: Array,\n |},\n callback: (buttonIndex: number) => void,\n ) => void;\n +showShareActionSheetWithOptions: (\n options: {|\n +message?: ?string,\n +url?: ?string,\n +subject?: ?string,\n +anchor?: ?number,\n +tintColor?: ?number,\n +cancelButtonTintColor?: ?number,\n +excludedActivityTypes?: ?Array,\n +userInterfaceStyle?: ?string,\n |},\n failureCallback: (error: {|\n +domain: string,\n +code: string,\n +userInfo?: ?Object,\n +message: string,\n |}) => void,\n successCallback: (completed: boolean, activityType: ?string) => void,\n ) => void;\n +dismissActionSheet?: () => void;\n}\n\nexport default (TurboModuleRegistry.get('ActionSheetManager'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport Platform from '../Utilities/Platform';\nimport EventEmitter, {\n type EventSubscription,\n} from '../vendor/emitter/EventEmitter';\nimport {isAsyncDebugging} from './DebugEnvironment';\nimport NativeAppearance, {\n type AppearancePreferences,\n type ColorSchemeName,\n} from './NativeAppearance';\nimport invariant from 'invariant';\n\ntype AppearanceListener = (preferences: AppearancePreferences) => void;\nconst eventEmitter = new EventEmitter<{\n change: [AppearancePreferences],\n}>();\n\ntype NativeAppearanceEventDefinitions = {\n appearanceChanged: [AppearancePreferences],\n};\n\nif (NativeAppearance) {\n const nativeEventEmitter =\n new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativeAppearance,\n );\n nativeEventEmitter.addListener(\n 'appearanceChanged',\n (newAppearance: AppearancePreferences) => {\n const {colorScheme} = newAppearance;\n invariant(\n colorScheme === 'dark' ||\n colorScheme === 'light' ||\n colorScheme == null,\n \"Unrecognized color scheme. Did you mean 'dark' or 'light'?\",\n );\n eventEmitter.emit('change', {colorScheme});\n },\n );\n}\n\nmodule.exports = {\n /**\n * Note: Although color scheme is available immediately, it may change at any\n * time. Any rendering logic or styles that depend on this should try to call\n * this function on every render, rather than caching the value (for example,\n * using inline styles rather than setting a value in a `StyleSheet`).\n *\n * Example: `const colorScheme = Appearance.getColorScheme();`\n *\n * @returns {?ColorSchemeName} Value for the color scheme preference.\n */\n getColorScheme(): ?ColorSchemeName {\n if (__DEV__) {\n if (isAsyncDebugging) {\n // Hard code light theme when using the async debugger as\n // sync calls aren't supported\n return 'light';\n }\n }\n\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n const nativeColorScheme: ?string =\n NativeAppearance == null\n ? null\n : NativeAppearance.getColorScheme() || null;\n invariant(\n nativeColorScheme === 'dark' ||\n nativeColorScheme === 'light' ||\n nativeColorScheme == null,\n \"Unrecognized color scheme. Did you mean 'dark' or 'light'?\",\n );\n return nativeColorScheme;\n },\n\n setColorScheme(colorScheme: ?ColorSchemeName): void {\n const nativeColorScheme = colorScheme == null ? 'unspecified' : colorScheme;\n\n invariant(\n colorScheme === 'dark' || colorScheme === 'light' || colorScheme == null,\n \"Unrecognized color scheme. Did you mean 'dark', 'light' or null?\",\n );\n\n if (NativeAppearance != null && NativeAppearance.setColorScheme != null) {\n NativeAppearance.setColorScheme(nativeColorScheme);\n }\n },\n\n /**\n * Add an event handler that is fired when appearance preferences change.\n */\n addChangeListener(listener: AppearanceListener): EventSubscription {\n return eventEmitter.addListener('change', listener);\n },\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport type * from '../../src/private/specs/modules/NativeAppearance';\nimport NativeAppearance from '../../src/private/specs/modules/NativeAppearance';\nexport default NativeAppearance;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport type ColorSchemeName = 'light' | 'dark';\n\nexport type AppearancePreferences = {|\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n // types.\n /* 'light' | 'dark' */\n colorScheme?: ?string,\n|};\n\nexport interface Spec extends TurboModule {\n // TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union\n // types.\n /* 'light' | 'dark' */\n +getColorScheme: () => ?string;\n +setColorScheme?: (colorScheme: string) => void;\n\n // RCTEventEmitter\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('Appearance'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport logError from '../Utilities/logError';\nimport Platform from '../Utilities/Platform';\nimport {type EventSubscription} from '../vendor/emitter/EventEmitter';\nimport NativeAppState from './NativeAppState';\n\nexport type AppStateValues = 'inactive' | 'background' | 'active';\n\ntype AppStateEventDefinitions = {\n change: [AppStateValues],\n memoryWarning: [],\n blur: [],\n focus: [],\n};\n\ntype NativeAppStateEventDefinitions = {\n appStateDidChange: [{app_state: AppStateValues}],\n appStateFocusChange: [boolean],\n memoryWarning: [],\n};\n\n/**\n * `AppState` can tell you if the app is in the foreground or background,\n * and notify you when the state changes.\n *\n * See https://reactnative.dev/docs/appstate\n */\nclass AppState {\n currentState: ?string = null;\n isAvailable: boolean;\n\n _emitter: ?NativeEventEmitter;\n\n constructor() {\n if (NativeAppState == null) {\n this.isAvailable = false;\n } else {\n this.isAvailable = true;\n\n const emitter: NativeEventEmitter =\n new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativeAppState,\n );\n this._emitter = emitter;\n\n this.currentState = NativeAppState.getConstants().initialAppState;\n\n let eventUpdated = false;\n\n // TODO: this is a terrible solution - in order to ensure `currentState`\n // prop is up to date, we have to register an observer that updates it\n // whenever the state changes, even if nobody cares. We should just\n // deprecate the `currentState` property and get rid of this.\n emitter.addListener('appStateDidChange', appStateData => {\n eventUpdated = true;\n this.currentState = appStateData.app_state;\n });\n\n // TODO: see above - this request just populates the value of `currentState`\n // when the module is first initialized. Would be better to get rid of the\n // prop and expose `getCurrentAppState` method directly.\n // $FlowExpectedError[incompatible-call]\n NativeAppState.getCurrentAppState(appStateData => {\n // It's possible that the state will have changed here & listeners need to be notified\n if (!eventUpdated && this.currentState !== appStateData.app_state) {\n this.currentState = appStateData.app_state;\n // $FlowFixMe[incompatible-call]\n emitter.emit('appStateDidChange', appStateData);\n }\n }, logError);\n }\n }\n\n /**\n * Add a handler to AppState changes by listening to the `change` event type\n * and providing the handler.\n *\n * See https://reactnative.dev/docs/appstate#addeventlistener\n */\n addEventListener>(\n type: K,\n handler: (...$ElementType) => void,\n ): EventSubscription {\n const emitter = this._emitter;\n if (emitter == null) {\n throw new Error('Cannot use AppState when `isAvailable` is false.');\n }\n switch (type) {\n case 'change':\n // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type\n const changeHandler: AppStateValues => void = handler;\n return emitter.addListener('appStateDidChange', appStateData => {\n changeHandler(appStateData.app_state);\n });\n case 'memoryWarning':\n // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type\n const memoryWarningHandler: () => void = handler;\n return emitter.addListener('memoryWarning', memoryWarningHandler);\n case 'blur':\n case 'focus':\n // $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type\n const focusOrBlurHandler: () => void = handler;\n return emitter.addListener('appStateFocusChange', hasFocus => {\n if (type === 'blur' && !hasFocus) {\n focusOrBlurHandler();\n }\n if (type === 'focus' && hasFocus) {\n focusOrBlurHandler();\n }\n });\n }\n throw new Error('Trying to subscribe to unknown event: ' + type);\n }\n}\n\nmodule.exports = (new AppState(): AppState);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/**\n * Small utility that can be used as an error handler. You cannot just pass\n * `console.error` as a failure callback - it's not properly bound. If passes an\n * `Error` object, it will print the message and stack.\n */\nconst logError = function (...args: $ReadOnlyArray) {\n if (args.length === 1 && args[0] instanceof Error) {\n const err = args[0];\n console.error('Error: \"' + err.message + '\". Stack:\\n' + err.stack);\n } else {\n console.error.apply(console, args);\n }\n};\n\nmodule.exports = logError;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeAppState';\nimport NativeAppState from '../../src/private/specs/modules/NativeAppState';\nexport default NativeAppState;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport type AppStateConstants = {|\n initialAppState: string,\n|};\n\nexport type AppState = {|app_state: string|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => AppStateConstants;\n +getCurrentAppState: (\n success: (appState: AppState) => void,\n error: (error: Object) => void,\n ) => void;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('AppState'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\nimport NativeClipboard from './NativeClipboard';\n\n/**\n * `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android\n */\nmodule.exports = {\n /**\n * Get content of string type, this method returns a `Promise`, so you can use following code to get clipboard content\n * ```javascript\n * async _getContent() {\n * var content = await Clipboard.getString();\n * }\n * ```\n */\n getString(): Promise {\n return NativeClipboard.getString();\n },\n /**\n * Set content of string type. You can use following code to set clipboard content\n * ```javascript\n * _setContent() {\n * Clipboard.setString('hello world');\n * }\n * ```\n * @param {string} content the content to be stored in the clipboard.\n */\n setString(content: string) {\n NativeClipboard.setString(content);\n },\n};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeClipboard';\nimport NativeClipboard from '../../../src/private/specs/modules/NativeClipboard';\nexport default NativeClipboard;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +getString: () => Promise;\n +setString: (content: string) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('Clipboard'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport NativeDeviceInfo from './NativeDeviceInfo';\n\nmodule.exports = NativeDeviceInfo;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {EventSubscription} from '../vendor/emitter/EventEmitter';\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport NativeDevSettings from '../NativeModules/specs/NativeDevSettings';\nimport Platform from '../Utilities/Platform';\n\nlet DevSettings: {\n addMenuItem(title: string, handler: () => mixed): void,\n reload(reason?: string): void,\n onFastRefresh(): void,\n} = {\n addMenuItem(title: string, handler: () => mixed): void {},\n reload(reason?: string): void {},\n onFastRefresh(): void {},\n};\n\ntype DevSettingsEventDefinitions = {\n didPressMenuItem: [{title: string}],\n};\n\nif (__DEV__) {\n const emitter = new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativeDevSettings,\n );\n const subscriptions = new Map();\n\n DevSettings = {\n addMenuItem(title: string, handler: () => mixed): void {\n // Make sure items are not added multiple times. This can\n // happen when hot reloading the module that registers the\n // menu items. The title is used as the id which means we\n // don't support multiple items with the same name.\n let subscription = subscriptions.get(title);\n if (subscription != null) {\n subscription.remove();\n } else {\n NativeDevSettings.addMenuItem(title);\n }\n\n subscription = emitter.addListener('didPressMenuItem', event => {\n if (event.title === title) {\n handler();\n }\n });\n subscriptions.set(title, subscription);\n },\n reload(reason?: string): void {\n if (NativeDevSettings.reloadWithReason != null) {\n NativeDevSettings.reloadWithReason(reason ?? 'Uncategorized from JS');\n } else {\n NativeDevSettings.reload();\n }\n },\n onFastRefresh(): void {\n NativeDevSettings.onFastRefresh?.();\n },\n };\n}\n\nmodule.exports = DevSettings;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeDevSettings';\nimport NativeDevSettings from '../../../src/private/specs/modules/NativeDevSettings';\nexport default NativeDevSettings;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +reload: () => void;\n +reloadWithReason?: (reason: string) => void;\n +onFastRefresh?: () => void;\n +setHotLoadingEnabled: (isHotLoadingEnabled: boolean) => void;\n +setIsDebuggingRemotely: (isDebuggingRemotelyEnabled: boolean) => void;\n +setProfilingEnabled: (isProfilingEnabled: boolean) => void;\n +toggleElementInspector: () => void;\n +addMenuItem: (title: string) => void;\n +openDebugger?: () => void;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n\n // iOS only.\n +setIsShakeToShowDevMenuEnabled: (enabled: boolean) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('DevSettings'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {EventSubscription} from '../vendor/emitter/EventEmitter';\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport Platform from '../Utilities/Platform';\nimport NativeIntentAndroid from './NativeIntentAndroid';\nimport NativeLinkingManager from './NativeLinkingManager';\nimport invariant from 'invariant';\nimport nullthrows from 'nullthrows';\n\ntype LinkingEventDefinitions = {\n url: [{url: string}],\n};\n\n/**\n * `Linking` gives you a general interface to interact with both incoming\n * and outgoing app links.\n *\n * See https://reactnative.dev/docs/linking\n */\nclass Linking extends NativeEventEmitter {\n constructor() {\n super(Platform.OS === 'ios' ? nullthrows(NativeLinkingManager) : undefined);\n }\n\n /**\n * Add a handler to Linking changes by listening to the `url` event type\n * and providing the handler\n *\n * See https://reactnative.dev/docs/linking#addeventlistener\n */\n addEventListener>(\n eventType: K,\n listener: (...$ElementType) => mixed,\n context: $FlowFixMe,\n ): EventSubscription {\n return this.addListener(eventType, listener);\n }\n\n /**\n * Try to open the given `url` with any of the installed apps.\n *\n * See https://reactnative.dev/docs/linking#openurl\n */\n openURL(url: string): Promise {\n this._validateURL(url);\n if (Platform.OS === 'android') {\n return nullthrows(NativeIntentAndroid).openURL(url);\n } else {\n return nullthrows(NativeLinkingManager).openURL(url);\n }\n }\n\n /**\n * Determine whether or not an installed app can handle a given URL.\n *\n * See https://reactnative.dev/docs/linking#canopenurl\n */\n canOpenURL(url: string): Promise {\n this._validateURL(url);\n if (Platform.OS === 'android') {\n return nullthrows(NativeIntentAndroid).canOpenURL(url);\n } else {\n return nullthrows(NativeLinkingManager).canOpenURL(url);\n }\n }\n\n /**\n * Open app settings.\n *\n * See https://reactnative.dev/docs/linking#opensettings\n */\n openSettings(): Promise {\n if (Platform.OS === 'android') {\n return nullthrows(NativeIntentAndroid).openSettings();\n } else {\n return nullthrows(NativeLinkingManager).openSettings();\n }\n }\n\n /**\n * If the app launch was triggered by an app link,\n * it will give the link url, otherwise it will give `null`\n *\n * See https://reactnative.dev/docs/linking#getinitialurl\n */\n getInitialURL(): Promise {\n return Platform.OS === 'android'\n ? nullthrows(NativeIntentAndroid).getInitialURL()\n : nullthrows(NativeLinkingManager).getInitialURL();\n }\n\n /*\n * Launch an Android intent with extras (optional)\n *\n * @platform android\n *\n * See https://reactnative.dev/docs/linking#sendintent\n */\n sendIntent(\n action: string,\n extras?: Array<{\n key: string,\n value: string | number | boolean,\n ...\n }>,\n ): Promise {\n if (Platform.OS === 'android') {\n return nullthrows(NativeIntentAndroid).sendIntent(action, extras);\n } else {\n return new Promise((resolve, reject) => reject(new Error('Unsupported')));\n }\n }\n\n _validateURL(url: string): void {\n invariant(\n typeof url === 'string',\n 'Invalid URL: should be a string. Was: ' + url,\n );\n invariant(url, 'Invalid URL: cannot be empty');\n }\n}\n\nmodule.exports = (new Linking(): Linking);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeIntentAndroid';\nimport NativeIntentAndroid from '../../src/private/specs/modules/NativeIntentAndroid';\nexport default NativeIntentAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getInitialURL: () => Promise;\n +canOpenURL: (url: string) => Promise;\n +openURL: (url: string) => Promise;\n +openSettings: () => Promise;\n +sendIntent: (\n action: string,\n extras: ?Array<{\n key: string,\n value: string | number | boolean, // TODO(T67672788): Union types are not type safe\n ...\n }>,\n ) => Promise;\n}\n\nexport default (TurboModuleRegistry.get('IntentAndroid'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeLinkingManager';\nimport NativeLinkingManager from '../../src/private/specs/modules/NativeLinkingManager';\nexport default NativeLinkingManager;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n // Common interface\n +getInitialURL: () => Promise;\n +canOpenURL: (url: string) => Promise;\n +openURL: (url: string) => Promise;\n +openSettings: () => Promise;\n\n // Events\n +addListener: (eventName: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get('LinkingManager'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {IgnorePattern, LogData} from './Data/LogBoxData';\nimport type {ExtendedExceptionData} from './Data/parseLogBoxLog';\n\nimport Platform from '../Utilities/Platform';\nimport RCTLog from '../Utilities/RCTLog';\nimport {hasComponentStack} from './Data/parseLogBoxLog';\n\nexport type {LogData, ExtendedExceptionData, IgnorePattern};\n\nlet LogBox;\n\ninterface ILogBox {\n install(): void;\n uninstall(): void;\n isInstalled(): boolean;\n ignoreLogs($ReadOnlyArray): void;\n ignoreAllLogs(?boolean): void;\n clearAllLogs(): void;\n addLog(log: LogData): void;\n addException(error: ExtendedExceptionData): void;\n}\n\n/**\n * LogBox displays logs in the app.\n */\nif (__DEV__) {\n const LogBoxData = require('./Data/LogBoxData');\n const {parseLogBoxLog, parseInterpolation} = require('./Data/parseLogBoxLog');\n\n let originalConsoleError;\n let originalConsoleWarn;\n let consoleErrorImpl;\n let consoleWarnImpl: (...args: Array) => void;\n\n let isLogBoxInstalled: boolean = false;\n\n LogBox = {\n install(): void {\n if (isLogBoxInstalled) {\n return;\n }\n\n isLogBoxInstalled = true;\n\n // Trigger lazy initialization of module.\n require('../NativeModules/specs/NativeLogBox');\n\n // IMPORTANT: we only overwrite `console.error` and `console.warn` once.\n // When we uninstall we keep the same reference and only change its\n // internal implementation\n const isFirstInstall = originalConsoleError == null;\n if (isFirstInstall) {\n originalConsoleError = console.error.bind(console);\n originalConsoleWarn = console.warn.bind(console);\n\n // $FlowExpectedError[cannot-write]\n console.error = (...args) => {\n consoleErrorImpl(...args);\n };\n // $FlowExpectedError[cannot-write]\n console.warn = (...args) => {\n consoleWarnImpl(...args);\n };\n }\n\n consoleErrorImpl = registerError;\n consoleWarnImpl = registerWarning;\n\n if (Platform.isTesting) {\n LogBoxData.setDisabled(true);\n }\n\n RCTLog.setWarningHandler((...args) => {\n registerWarning(...args);\n });\n },\n\n uninstall(): void {\n if (!isLogBoxInstalled) {\n return;\n }\n\n isLogBoxInstalled = false;\n\n // IMPORTANT: we don't re-assign to `console` in case the method has been\n // decorated again after installing LogBox. E.g.:\n // Before uninstalling: original > LogBox > OtherErrorHandler\n // After uninstalling: original > LogBox (noop) > OtherErrorHandler\n consoleErrorImpl = originalConsoleError;\n consoleWarnImpl = originalConsoleWarn;\n },\n\n isInstalled(): boolean {\n return isLogBoxInstalled;\n },\n\n ignoreLogs(patterns: $ReadOnlyArray): void {\n LogBoxData.addIgnorePatterns(patterns);\n },\n\n ignoreAllLogs(value?: ?boolean): void {\n LogBoxData.setDisabled(value == null ? true : value);\n },\n\n clearAllLogs(): void {\n LogBoxData.clear();\n },\n\n addLog(log: LogData): void {\n if (isLogBoxInstalled) {\n LogBoxData.addLog(log);\n }\n },\n\n addException(error: ExtendedExceptionData): void {\n if (isLogBoxInstalled) {\n LogBoxData.addException(error);\n }\n },\n };\n\n const isRCTLogAdviceWarning = (...args: Array) => {\n // RCTLogAdvice is a native logging function designed to show users\n // a message in the console, but not show it to them in Logbox.\n return typeof args[0] === 'string' && args[0].startsWith('(ADVICE)');\n };\n\n const isWarningModuleWarning = (...args: Array) => {\n return typeof args[0] === 'string' && args[0].startsWith('Warning: ');\n };\n\n const registerWarning = (...args: Array): void => {\n // Let warnings within LogBox itself fall through.\n if (LogBoxData.isLogBoxErrorMessage(String(args[0]))) {\n originalConsoleError(...args);\n return;\n } else {\n // Be sure to pass LogBox warnings through.\n originalConsoleWarn(...args);\n }\n\n try {\n if (!isRCTLogAdviceWarning(...args)) {\n const {category, message, componentStack, componentStackType} =\n parseLogBoxLog(args);\n\n if (!LogBoxData.isMessageIgnored(message.content)) {\n LogBoxData.addLog({\n level: 'warn',\n category,\n message,\n componentStack,\n componentStackType,\n });\n }\n }\n } catch (err) {\n LogBoxData.reportLogBoxError(err);\n }\n };\n\n /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's\n * LTI update could not be added via codemod */\n const registerError = (...args): void => {\n // Let errors within LogBox itself fall through.\n if (LogBoxData.isLogBoxErrorMessage(args[0])) {\n originalConsoleError(...args);\n return;\n }\n\n try {\n if (!isWarningModuleWarning(...args) && !hasComponentStack(args)) {\n // Only show LogBox for the 'warning' module, or React errors with\n // component stacks, otherwise pass the error through.u\n //\n // By passing through, this will get picked up by the React console override,\n // potentially adding the component stack. React then passes it back to the\n // React Native ExceptionsManager, which reports it to LogBox as an error.\n //\n // Ideally, we refactor all RN error handling so that LogBox patching\n // errors is not necessary, and they are reported the same as a framework.\n // The blocker to this is that the ExceptionManager console.error override\n // strigifys all of the args before passing it through to LogBox, which\n // would lose all of the interpolation information.\n //\n // The 'warning' module needs to be handled here because React internally calls\n // `console.error('Warning: ')` with the component stack already included.\n originalConsoleError(...args);\n return;\n }\n\n const format = args[0].replace('Warning: ', '');\n const filterResult = LogBoxData.checkWarningFilter(format);\n let level = 'error';\n if (filterResult.monitorEvent !== 'warning_unhandled') {\n if (filterResult.suppressCompletely) {\n return;\n }\n\n if (filterResult.suppressDialog_LEGACY === true) {\n level = 'warn';\n } else if (filterResult.forceDialogImmediately === true) {\n level = 'fatal'; // Do not downgrade. These are real bugs with same severity as throws.\n }\n }\n\n // Unfortunately, we need to add the Warning: prefix back for downstream dependencies.\n // Downstream, we check for this prefix to know that LogBox already handled it, so\n // it doesn't get reported back to LogBox. It's an absolute mess.\n args[0] = `Warning: ${filterResult.finalFormat}`;\n const {category, message, componentStack, componentStackType} =\n parseLogBoxLog(args);\n\n // Interpolate the message so they are formatted for adb and other CLIs.\n // This is different than the message.content above because it includes component stacks.\n const interpolated = parseInterpolation(args);\n originalConsoleError(interpolated.message.content);\n\n if (!LogBoxData.isMessageIgnored(message.content)) {\n LogBoxData.addLog({\n level,\n category,\n message,\n componentStack,\n componentStackType,\n });\n }\n } catch (err) {\n LogBoxData.reportLogBoxError(err);\n }\n };\n} else {\n LogBox = {\n install(): void {\n // Do nothing.\n },\n\n uninstall(): void {\n // Do nothing.\n },\n\n isInstalled(): boolean {\n return false;\n },\n\n ignoreLogs(patterns: $ReadOnlyArray): void {\n // Do nothing.\n },\n\n ignoreAllLogs(value?: ?boolean): void {\n // Do nothing.\n },\n\n clearAllLogs(): void {\n // Do nothing.\n },\n\n addLog(log: LogData): void {\n // Do nothing.\n },\n\n addException(error: ExtendedExceptionData): void {\n // Do nothing.\n },\n };\n}\n\nexport default (LogBox: ILogBox);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {PressEvent} from '../Types/CoreEventTypes';\n\nconst InteractionManager = require('./InteractionManager');\nconst TouchHistoryMath = require('./TouchHistoryMath');\n\nconst currentCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidXOfTouchesChangedAfter;\nconst currentCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidYOfTouchesChangedAfter;\nconst previousCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidXOfTouchesChangedAfter;\nconst previousCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidYOfTouchesChangedAfter;\nconst currentCentroidX = TouchHistoryMath.currentCentroidX;\nconst currentCentroidY = TouchHistoryMath.currentCentroidY;\n\n/**\n * `PanResponder` reconciles several touches into a single gesture. It makes\n * single-touch gestures resilient to extra touches, and can be used to\n * recognize simple multi-touch gestures.\n *\n * By default, `PanResponder` holds an `InteractionManager` handle to block\n * long-running JS events from interrupting active gestures.\n *\n * It provides a predictable wrapper of the responder handlers provided by the\n * [gesture responder system](docs/gesture-responder-system.html).\n * For each handler, it provides a new `gestureState` object alongside the\n * native event object:\n *\n * ```\n * onPanResponderMove: (event, gestureState) => {}\n * ```\n *\n * A native event is a synthetic touch event with the following form:\n *\n * - `nativeEvent`\n * + `changedTouches` - Array of all touch events that have changed since the last event\n * + `identifier` - The ID of the touch\n * + `locationX` - The X position of the touch, relative to the element\n * + `locationY` - The Y position of the touch, relative to the element\n * + `pageX` - The X position of the touch, relative to the root element\n * + `pageY` - The Y position of the touch, relative to the root element\n * + `target` - The node id of the element receiving the touch event\n * + `timestamp` - A time identifier for the touch, useful for velocity calculation\n * + `touches` - Array of all current touches on the screen\n *\n * A `gestureState` object has the following:\n *\n * - `stateID` - ID of the gestureState- persisted as long as there at least\n * one touch on screen\n * - `moveX` - the latest screen coordinates of the recently-moved touch\n * - `moveY` - the latest screen coordinates of the recently-moved touch\n * - `x0` - the screen coordinates of the responder grant\n * - `y0` - the screen coordinates of the responder grant\n * - `dx` - accumulated distance of the gesture since the touch started\n * - `dy` - accumulated distance of the gesture since the touch started\n * - `vx` - current velocity of the gesture\n * - `vy` - current velocity of the gesture\n * - `numberActiveTouches` - Number of touches currently on screen\n *\n * ### Basic Usage\n *\n * ```\n * componentWillMount: function() {\n * this._panResponder = PanResponder.create({\n * // Ask to be the responder:\n * onStartShouldSetPanResponder: (evt, gestureState) => true,\n * onStartShouldSetPanResponderCapture: (evt, gestureState) => true,\n * onMoveShouldSetPanResponder: (evt, gestureState) => true,\n * onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,\n *\n * onPanResponderGrant: (evt, gestureState) => {\n * // The gesture has started. Show visual feedback so the user knows\n * // what is happening!\n *\n * // gestureState.d{x,y} will be set to zero now\n * },\n * onPanResponderMove: (evt, gestureState) => {\n * // The most recent move distance is gestureState.move{X,Y}\n *\n * // The accumulated gesture distance since becoming responder is\n * // gestureState.d{x,y}\n * },\n * onPanResponderTerminationRequest: (evt, gestureState) => true,\n * onPanResponderRelease: (evt, gestureState) => {\n * // The user has released all touches while this view is the\n * // responder. This typically means a gesture has succeeded\n * },\n * onPanResponderTerminate: (evt, gestureState) => {\n * // Another component has become the responder, so this gesture\n * // should be cancelled\n * },\n * onShouldBlockNativeResponder: (evt, gestureState) => {\n * // Returns whether this component should block native components from becoming the JS\n * // responder. Returns true by default. Is currently only supported on android.\n * return true;\n * },\n * });\n * },\n *\n * render: function() {\n * return (\n * \n * );\n * },\n *\n * ```\n *\n * ### Working Example\n *\n * To see it in action, try the\n * [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/HEAD/packages/rn-tester/js/examples/PanResponder/PanResponderExample.js)\n */\n\nexport type GestureState = {|\n /**\n * ID of the gestureState - persisted as long as there at least one touch on screen\n */\n stateID: number,\n\n /**\n * The latest screen coordinates of the recently-moved touch\n */\n moveX: number,\n\n /**\n * The latest screen coordinates of the recently-moved touch\n */\n moveY: number,\n\n /**\n * The screen coordinates of the responder grant\n */\n x0: number,\n\n /**\n * The screen coordinates of the responder grant\n */\n y0: number,\n\n /**\n * Accumulated distance of the gesture since the touch started\n */\n dx: number,\n\n /**\n * Accumulated distance of the gesture since the touch started\n */\n dy: number,\n\n /**\n * Current velocity of the gesture\n */\n vx: number,\n\n /**\n * Current velocity of the gesture\n */\n vy: number,\n\n /**\n * Number of touches currently on screen\n */\n numberActiveTouches: number,\n\n /**\n * All `gestureState` accounts for timeStamps up until this value\n *\n * @private\n */\n _accountsForMovesUpTo: number,\n|};\n\ntype ActiveCallback = (\n event: PressEvent,\n gestureState: GestureState,\n) => boolean;\n\ntype PassiveCallback = (event: PressEvent, gestureState: GestureState) => mixed;\n\nexport type PanHandlers = {|\n onMoveShouldSetResponder: (event: PressEvent) => boolean,\n onMoveShouldSetResponderCapture: (event: PressEvent) => boolean,\n onResponderEnd: (event: PressEvent) => void,\n onResponderGrant: (event: PressEvent) => boolean,\n onResponderMove: (event: PressEvent) => void,\n onResponderReject: (event: PressEvent) => void,\n onResponderRelease: (event: PressEvent) => void,\n onResponderStart: (event: PressEvent) => void,\n onResponderTerminate: (event: PressEvent) => void,\n onResponderTerminationRequest: (event: PressEvent) => boolean,\n onStartShouldSetResponder: (event: PressEvent) => boolean,\n onStartShouldSetResponderCapture: (event: PressEvent) => boolean,\n|};\n\ntype PanResponderConfig = $ReadOnly<{|\n onMoveShouldSetPanResponder?: ?ActiveCallback,\n onMoveShouldSetPanResponderCapture?: ?ActiveCallback,\n onStartShouldSetPanResponder?: ?ActiveCallback,\n onStartShouldSetPanResponderCapture?: ?ActiveCallback,\n /**\n * The body of `onResponderGrant` returns a bool, but the vast majority of\n * callsites return void and this TODO notice is found in it:\n * TODO: t7467124 investigate if this can be removed\n */\n onPanResponderGrant?: ?(PassiveCallback | ActiveCallback),\n onPanResponderReject?: ?PassiveCallback,\n onPanResponderStart?: ?PassiveCallback,\n onPanResponderEnd?: ?PassiveCallback,\n onPanResponderRelease?: ?PassiveCallback,\n onPanResponderMove?: ?PassiveCallback,\n onPanResponderTerminate?: ?PassiveCallback,\n onPanResponderTerminationRequest?: ?ActiveCallback,\n onShouldBlockNativeResponder?: ?ActiveCallback,\n|}>;\n\nconst PanResponder = {\n /**\n *\n * A graphical explanation of the touch data flow:\n *\n * +----------------------------+ +--------------------------------+\n * | ResponderTouchHistoryStore | |TouchHistoryMath |\n * +----------------------------+ +----------+---------------------+\n * |Global store of touchHistory| |Allocation-less math util |\n * |including activeness, start | |on touch history (centroids |\n * |position, prev/cur position.| |and multitouch movement etc) |\n * | | | |\n * +----^-----------------------+ +----^---------------------------+\n * | |\n * | (records relevant history |\n * | of touches relevant for |\n * | implementing higher level |\n * | gestures) |\n * | |\n * +----+-----------------------+ +----|---------------------------+\n * | ResponderEventPlugin | | | Your App/Component |\n * +----------------------------+ +----|---------------------------+\n * |Negotiates which view gets | Low level | | High level |\n * |onResponderMove events. | events w/ | +-+-------+ events w/ |\n * |Also records history into | touchHistory| | Pan | multitouch + |\n * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|\n * +----------------------------+ attached to | | | distance and |\n * each event | +---------+ velocity. |\n * | |\n * | |\n * +--------------------------------+\n *\n *\n *\n * Gesture that calculates cumulative movement over time in a way that just\n * \"does the right thing\" for multiple touches. The \"right thing\" is very\n * nuanced. When moving two touches in opposite directions, the cumulative\n * distance is zero in each dimension. When two touches move in parallel five\n * pixels in the same direction, the cumulative distance is five, not ten. If\n * two touches start, one moves five in a direction, then stops and the other\n * touch moves fives in the same direction, the cumulative distance is ten.\n *\n * This logic requires a kind of processing of time \"clusters\" of touch events\n * so that two touch moves that essentially occur in parallel but move every\n * other frame respectively, are considered part of the same movement.\n *\n * Explanation of some of the non-obvious fields:\n *\n * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is\n * invalid. If a move event has been observed, `(moveX, moveY)` is the\n * centroid of the most recently moved \"cluster\" of active touches.\n * (Currently all move have the same timeStamp, but later we should add some\n * threshold for what is considered to be \"moving\"). If a palm is\n * accidentally counted as a touch, but a finger is moving greatly, the palm\n * will move slightly, but we only want to count the single moving touch.\n * - x0/y0: Centroid location (non-cumulative) at the time of becoming\n * responder.\n * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch\n * distance. Accounts for touch moves that are clustered together in time,\n * moving the same direction. Only valid when currently responder (otherwise,\n * it only represents the drag distance below the threshold).\n * - vx/vy: Velocity.\n */\n\n _initializeGestureState(gestureState: GestureState) {\n gestureState.moveX = 0;\n gestureState.moveY = 0;\n gestureState.x0 = 0;\n gestureState.y0 = 0;\n gestureState.dx = 0;\n gestureState.dy = 0;\n gestureState.vx = 0;\n gestureState.vy = 0;\n gestureState.numberActiveTouches = 0;\n // All `gestureState` accounts for timeStamps up until:\n gestureState._accountsForMovesUpTo = 0;\n },\n\n /**\n * This is nuanced and is necessary. It is incorrect to continuously take all\n * active *and* recently moved touches, find the centroid, and track how that\n * result changes over time. Instead, we must take all recently moved\n * touches, and calculate how the centroid has changed just for those\n * recently moved touches, and append that change to an accumulator. This is\n * to (at least) handle the case where the user is moving three fingers, and\n * then one of the fingers stops but the other two continue.\n *\n * This is very different than taking all of the recently moved touches and\n * storing their centroid as `dx/dy`. For correctness, we must *accumulate\n * changes* in the centroid of recently moved touches.\n *\n * There is also some nuance with how we handle multiple moved touches in a\n * single event. With the way `ReactNativeEventEmitter` dispatches touches as\n * individual events, multiple touches generate two 'move' events, each of\n * them triggering `onResponderMove`. But with the way `PanResponder` works,\n * all of the gesture inference is performed on the first dispatch, since it\n * looks at all of the touches (even the ones for which there hasn't been a\n * native dispatch yet). Therefore, `PanResponder` does not call\n * `onResponderMove` passed the first dispatch. This diverges from the\n * typical responder callback pattern (without using `PanResponder`), but\n * avoids more dispatches than necessary.\n */\n _updateGestureStateOnMove(\n gestureState: GestureState,\n touchHistory: $PropertyType,\n ) {\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n gestureState.moveX = currentCentroidXOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n gestureState.moveY = currentCentroidYOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n const movedAfter = gestureState._accountsForMovesUpTo;\n const prevX = previousCentroidXOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter);\n const prevY = previousCentroidYOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter);\n const nextDX = gestureState.dx + (x - prevX);\n const nextDY = gestureState.dy + (y - prevY);\n\n // TODO: This must be filtered intelligently.\n const dt =\n touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;\n gestureState.vx = (nextDX - gestureState.dx) / dt;\n gestureState.vy = (nextDY - gestureState.dy) / dt;\n\n gestureState.dx = nextDX;\n gestureState.dy = nextDY;\n gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;\n },\n\n /**\n * @param {object} config Enhanced versions of all of the responder callbacks\n * that provide not only the typical `ResponderSyntheticEvent`, but also the\n * `PanResponder` gesture state. Simply replace the word `Responder` with\n * `PanResponder` in each of the typical `onResponder*` callbacks. For\n * example, the `config` object would look like:\n *\n * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onPanResponderReject: (e, gestureState) => {...}`\n * - `onPanResponderGrant: (e, gestureState) => {...}`\n * - `onPanResponderStart: (e, gestureState) => {...}`\n * - `onPanResponderEnd: (e, gestureState) => {...}`\n * - `onPanResponderRelease: (e, gestureState) => {...}`\n * - `onPanResponderMove: (e, gestureState) => {...}`\n * - `onPanResponderTerminate: (e, gestureState) => {...}`\n * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`\n * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`\n *\n * In general, for events that have capture equivalents, we update the\n * gestureState once in the capture phase and can use it in the bubble phase\n * as well.\n *\n * Be careful with onStartShould* callbacks. They only reflect updated\n * `gestureState` for start/end events that bubble/capture to the Node.\n * Once the node is the responder, you can rely on every start/end event\n * being processed by the gesture and `gestureState` being updated\n * accordingly. (numberActiveTouches) may not be totally accurate unless you\n * are the responder.\n */\n create(config: PanResponderConfig): {\n getInteractionHandle: () => ?number,\n panHandlers: PanHandlers,\n } {\n const interactionState = {\n handle: (null: ?number),\n };\n const gestureState: GestureState = {\n // Useful for debugging\n stateID: Math.random(),\n moveX: 0,\n moveY: 0,\n x0: 0,\n y0: 0,\n dx: 0,\n dy: 0,\n vx: 0,\n vy: 0,\n numberActiveTouches: 0,\n _accountsForMovesUpTo: 0,\n };\n const panHandlers = {\n onStartShouldSetResponder(event: PressEvent): boolean {\n return config.onStartShouldSetPanResponder == null\n ? false\n : config.onStartShouldSetPanResponder(event, gestureState);\n },\n onMoveShouldSetResponder(event: PressEvent): boolean {\n return config.onMoveShouldSetPanResponder == null\n ? false\n : config.onMoveShouldSetPanResponder(event, gestureState);\n },\n onStartShouldSetResponderCapture(event: PressEvent): boolean {\n // TODO: Actually, we should reinitialize the state any time\n // touches.length increases from 0 active to > 0 active.\n if (event.nativeEvent.touches.length === 1) {\n PanResponder._initializeGestureState(gestureState);\n }\n gestureState.numberActiveTouches =\n event.touchHistory.numberActiveTouches;\n return config.onStartShouldSetPanResponderCapture != null\n ? config.onStartShouldSetPanResponderCapture(event, gestureState)\n : false;\n },\n\n onMoveShouldSetResponderCapture(event: PressEvent): boolean {\n const touchHistory = event.touchHistory;\n // Responder system incorrectly dispatches should* to current responder\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return false;\n }\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n return config.onMoveShouldSetPanResponderCapture\n ? config.onMoveShouldSetPanResponderCapture(event, gestureState)\n : false;\n },\n\n onResponderGrant(event: PressEvent): boolean {\n if (!interactionState.handle) {\n interactionState.handle =\n InteractionManager.createInteractionHandle();\n }\n gestureState.x0 = currentCentroidX(event.touchHistory);\n gestureState.y0 = currentCentroidY(event.touchHistory);\n gestureState.dx = 0;\n gestureState.dy = 0;\n if (config.onPanResponderGrant) {\n config.onPanResponderGrant(event, gestureState);\n }\n // TODO: t7467124 investigate if this can be removed\n return config.onShouldBlockNativeResponder == null\n ? true\n : config.onShouldBlockNativeResponder(event, gestureState);\n },\n\n onResponderReject(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderReject,\n event,\n gestureState,\n );\n },\n\n onResponderRelease(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderRelease,\n event,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderStart(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n if (config.onPanResponderStart) {\n config.onPanResponderStart(event, gestureState);\n }\n },\n\n onResponderMove(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n // Guard against the dispatch of two touch moves when there are two\n // simultaneously changed touches.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return;\n }\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n if (config.onPanResponderMove) {\n config.onPanResponderMove(event, gestureState);\n }\n },\n\n onResponderEnd(event: PressEvent): void {\n const touchHistory = event.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n clearInteractionHandle(\n interactionState,\n config.onPanResponderEnd,\n event,\n gestureState,\n );\n },\n\n onResponderTerminate(event: PressEvent): void {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderTerminate,\n event,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderTerminationRequest(event: PressEvent): boolean {\n return config.onPanResponderTerminationRequest == null\n ? true\n : config.onPanResponderTerminationRequest(event, gestureState);\n },\n };\n return {\n panHandlers,\n getInteractionHandle(): ?number {\n return interactionState.handle;\n },\n };\n },\n};\n\nfunction clearInteractionHandle(\n interactionState: {handle: ?number, ...},\n callback: ?(ActiveCallback | PassiveCallback),\n event: PressEvent,\n gestureState: GestureState,\n) {\n if (interactionState.handle) {\n InteractionManager.clearInteractionHandle(interactionState.handle);\n interactionState.handle = null;\n }\n if (callback) {\n callback(event, gestureState);\n }\n}\n\nexport type PanResponderInstance = ReturnType<(typeof PanResponder)['create']>;\n\nexport default PanResponder;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nconst TouchHistoryMath = {\n /**\n * This code is optimized and not intended to look beautiful. This allows\n * computing of touch centroids that have moved after `touchesChangedAfter`\n * timeStamp. You can compute the current centroid involving all touches\n * moves after `touchesChangedAfter`, or you can compute the previous\n * centroid of all touches that were moved after `touchesChangedAfter`.\n *\n * @param {TouchHistoryMath} touchHistory Standard Responder touch track\n * data.\n * @param {number} touchesChangedAfter timeStamp after which moved touches\n * are considered \"actively moving\" - not just \"active\".\n * @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.\n * @param {boolean} ofCurrent Compute current centroid for actively moving\n * touches vs. previous centroid of now actively moving touches.\n * @return {number} value of centroid in specified dimension.\n */\n centroidDimension: function (\n touchHistory,\n touchesChangedAfter,\n isXAxis,\n ofCurrent,\n ) {\n const touchBank = touchHistory.touchBank;\n let total = 0;\n let count = 0;\n\n const oneTouchData =\n touchHistory.numberActiveTouches === 1\n ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch]\n : null;\n\n if (oneTouchData !== null) {\n if (\n oneTouchData.touchActive &&\n oneTouchData.currentTimeStamp > touchesChangedAfter\n ) {\n total +=\n ofCurrent && isXAxis\n ? oneTouchData.currentPageX\n : ofCurrent && !isXAxis\n ? oneTouchData.currentPageY\n : !ofCurrent && isXAxis\n ? oneTouchData.previousPageX\n : oneTouchData.previousPageY;\n count = 1;\n }\n } else {\n for (let i = 0; i < touchBank.length; i++) {\n const touchTrack = touchBank[i];\n if (\n touchTrack !== null &&\n touchTrack !== undefined &&\n touchTrack.touchActive &&\n touchTrack.currentTimeStamp >= touchesChangedAfter\n ) {\n let toAdd; // Yuck, program temporarily in invalid state.\n if (ofCurrent && isXAxis) {\n toAdd = touchTrack.currentPageX;\n } else if (ofCurrent && !isXAxis) {\n toAdd = touchTrack.currentPageY;\n } else if (!ofCurrent && isXAxis) {\n toAdd = touchTrack.previousPageX;\n } else {\n toAdd = touchTrack.previousPageY;\n }\n total += toAdd;\n count++;\n }\n }\n }\n return count > 0 ? total / count : TouchHistoryMath.noCentroid;\n },\n\n currentCentroidXOfTouchesChangedAfter: function (\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidYOfTouchesChangedAfter: function (\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n previousCentroidXOfTouchesChangedAfter: function (\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n false, // ofCurrent\n );\n },\n\n previousCentroidYOfTouchesChangedAfter: function (\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n false, // ofCurrent\n );\n },\n\n currentCentroidX: function (touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidY: function (touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n noCentroid: -1,\n};\n\nmodule.exports = TouchHistoryMath;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\nimport type {\n PermissionStatus,\n PermissionType,\n} from './NativePermissionsAndroid';\n\nimport NativeDialogManagerAndroid from '../NativeModules/specs/NativeDialogManagerAndroid';\nimport NativePermissionsAndroid from './NativePermissionsAndroid';\nimport invariant from 'invariant';\n\nconst Platform = require('../Utilities/Platform');\n\nexport type Rationale = {\n title: string,\n message: string,\n buttonPositive?: string,\n buttonNegative?: string,\n buttonNeutral?: string,\n ...\n};\n\nconst PERMISSION_REQUEST_RESULT = Object.freeze({\n GRANTED: 'granted',\n DENIED: 'denied',\n NEVER_ASK_AGAIN: 'never_ask_again',\n});\n\nconst PERMISSIONS = Object.freeze({\n READ_CALENDAR: 'android.permission.READ_CALENDAR',\n WRITE_CALENDAR: 'android.permission.WRITE_CALENDAR',\n CAMERA: 'android.permission.CAMERA',\n READ_CONTACTS: 'android.permission.READ_CONTACTS',\n WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS',\n GET_ACCOUNTS: 'android.permission.GET_ACCOUNTS',\n ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',\n ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION',\n ACCESS_BACKGROUND_LOCATION: 'android.permission.ACCESS_BACKGROUND_LOCATION',\n RECORD_AUDIO: 'android.permission.RECORD_AUDIO',\n READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE',\n CALL_PHONE: 'android.permission.CALL_PHONE',\n READ_CALL_LOG: 'android.permission.READ_CALL_LOG',\n WRITE_CALL_LOG: 'android.permission.WRITE_CALL_LOG',\n ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL',\n READ_VOICEMAIL: 'com.android.voicemail.permission.READ_VOICEMAIL',\n WRITE_VOICEMAIL: 'com.android.voicemail.permission.WRITE_VOICEMAIL',\n USE_SIP: 'android.permission.USE_SIP',\n PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS',\n BODY_SENSORS: 'android.permission.BODY_SENSORS',\n BODY_SENSORS_BACKGROUND: 'android.permission.BODY_SENSORS_BACKGROUND',\n SEND_SMS: 'android.permission.SEND_SMS',\n RECEIVE_SMS: 'android.permission.RECEIVE_SMS',\n READ_SMS: 'android.permission.READ_SMS',\n RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH',\n RECEIVE_MMS: 'android.permission.RECEIVE_MMS',\n READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE',\n READ_MEDIA_IMAGES: 'android.permission.READ_MEDIA_IMAGES',\n READ_MEDIA_VIDEO: 'android.permission.READ_MEDIA_VIDEO',\n READ_MEDIA_AUDIO: 'android.permission.READ_MEDIA_AUDIO',\n READ_MEDIA_VISUAL_USER_SELECTED:\n 'android.permission.READ_MEDIA_VISUAL_USER_SELECTED',\n WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE',\n BLUETOOTH_CONNECT: 'android.permission.BLUETOOTH_CONNECT',\n BLUETOOTH_SCAN: 'android.permission.BLUETOOTH_SCAN',\n BLUETOOTH_ADVERTISE: 'android.permission.BLUETOOTH_ADVERTISE',\n ACCESS_MEDIA_LOCATION: 'android.permission.ACCESS_MEDIA_LOCATION',\n ACCEPT_HANDOVER: 'android.permission.ACCEPT_HANDOVER',\n ACTIVITY_RECOGNITION: 'android.permission.ACTIVITY_RECOGNITION',\n ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',\n READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS',\n UWB_RANGING: 'android.permission.UWB_RANGING',\n POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',\n NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES',\n});\n\n/**\n * `PermissionsAndroid` provides access to Android M's new permissions model.\n *\n * See https://reactnative.dev/docs/permissionsandroid\n */\n\nclass PermissionsAndroid {\n PERMISSIONS: {|\n ACCEPT_HANDOVER: string,\n ACCESS_BACKGROUND_LOCATION: string,\n ACCESS_COARSE_LOCATION: string,\n ACCESS_FINE_LOCATION: string,\n ACCESS_MEDIA_LOCATION: string,\n ACTIVITY_RECOGNITION: string,\n ADD_VOICEMAIL: string,\n READ_VOICEMAIL: string,\n WRITE_VOICEMAIL: string,\n ANSWER_PHONE_CALLS: string,\n BLUETOOTH_ADVERTISE: string,\n BLUETOOTH_CONNECT: string,\n BLUETOOTH_SCAN: string,\n BODY_SENSORS: string,\n BODY_SENSORS_BACKGROUND: string,\n CALL_PHONE: string,\n CAMERA: string,\n GET_ACCOUNTS: string,\n NEARBY_WIFI_DEVICES: string,\n POST_NOTIFICATIONS: string,\n PROCESS_OUTGOING_CALLS: string,\n READ_CALENDAR: string,\n READ_CALL_LOG: string,\n READ_CONTACTS: string,\n READ_EXTERNAL_STORAGE: string,\n READ_MEDIA_IMAGES: string,\n READ_MEDIA_VIDEO: string,\n READ_MEDIA_AUDIO: string,\n READ_MEDIA_VISUAL_USER_SELECTED: string,\n READ_PHONE_NUMBERS: string,\n READ_PHONE_STATE: string,\n READ_SMS: string,\n RECEIVE_MMS: string,\n RECEIVE_SMS: string,\n RECEIVE_WAP_PUSH: string,\n RECORD_AUDIO: string,\n SEND_SMS: string,\n USE_SIP: string,\n UWB_RANGING: string,\n WRITE_CALENDAR: string,\n WRITE_CALL_LOG: string,\n WRITE_CONTACTS: string,\n WRITE_EXTERNAL_STORAGE: string,\n |} = PERMISSIONS;\n RESULTS: {|\n DENIED: 'denied',\n GRANTED: 'granted',\n NEVER_ASK_AGAIN: 'never_ask_again',\n |} = PERMISSION_REQUEST_RESULT;\n\n /**\n * DEPRECATED - use check\n *\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * @deprecated\n */\n checkPermission(permission: PermissionType): Promise {\n console.warn(\n '\"PermissionsAndroid.checkPermission\" is deprecated. Use \"PermissionsAndroid.check\" instead',\n );\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n return NativePermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * See https://reactnative.dev/docs/permissionsandroid#check\n */\n check(permission: PermissionType): Promise {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n return NativePermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * DEPRECATED - use request\n *\n * Prompts the user to enable a permission and returns a promise resolving to a\n * boolean value indicating whether the user allowed or denied the request\n *\n * If the optional rationale argument is included (which is an object with a\n * `title` and `message`), this function checks with the OS whether it is\n * necessary to show a dialog explaining why the permission is needed\n * (https://developer.android.com/training/permissions/requesting#explain)\n * and then shows the system permission dialog\n *\n * @deprecated\n */\n async requestPermission(\n permission: PermissionType,\n rationale?: Rationale,\n ): Promise {\n console.warn(\n '\"PermissionsAndroid.requestPermission\" is deprecated. Use \"PermissionsAndroid.request\" instead',\n );\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(false);\n }\n\n const response = await this.request(permission, rationale);\n return response === this.RESULTS.GRANTED;\n }\n\n /**\n * Prompts the user to enable a permission and returns a promise resolving to a\n * string value indicating whether the user allowed or denied the request\n *\n * See https://reactnative.dev/docs/permissionsandroid#request\n */\n async request(\n permission: PermissionType,\n rationale?: Rationale,\n ): Promise {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve(this.RESULTS.DENIED);\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n\n if (rationale) {\n const shouldShowRationale =\n await NativePermissionsAndroid.shouldShowRequestPermissionRationale(\n permission,\n );\n\n if (shouldShowRationale && !!NativeDialogManagerAndroid) {\n return new Promise((resolve, reject) => {\n const options = {\n ...rationale,\n };\n NativeDialogManagerAndroid.showAlert(\n /* $FlowFixMe[incompatible-exact] (>=0.111.0 site=react_native_fb)\n * This comment suppresses an error found when Flow v0.111 was\n * deployed. To see the error, delete this comment and run Flow.\n */\n options,\n () => reject(new Error('Error showing rationale')),\n () =>\n resolve(NativePermissionsAndroid.requestPermission(permission)),\n );\n });\n }\n }\n return NativePermissionsAndroid.requestPermission(permission);\n }\n\n /**\n * Prompts the user to enable multiple permissions in the same dialog and\n * returns an object with the permissions as keys and strings as values\n * indicating whether the user allowed or denied the request\n *\n * See https://reactnative.dev/docs/permissionsandroid#requestmultiple\n */\n requestMultiple(\n permissions: Array,\n ): Promise<{[permission: PermissionType]: PermissionStatus, ...}> {\n if (Platform.OS !== 'android') {\n console.warn(\n '\"PermissionsAndroid\" module works only for Android platform.',\n );\n return Promise.resolve({});\n }\n\n invariant(\n NativePermissionsAndroid,\n 'PermissionsAndroid is not installed correctly.',\n );\n return NativePermissionsAndroid.requestMultiplePermissions(permissions);\n }\n}\n\nconst PermissionsAndroidInstance: PermissionsAndroid = new PermissionsAndroid();\n\nmodule.exports = PermissionsAndroidInstance;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativePermissionsAndroid';\nimport NativePermissionsAndroid from '../../src/private/specs/modules/NativePermissionsAndroid';\nexport default NativePermissionsAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\n// TODO: Use proper enum types.\nexport type PermissionStatus = string;\nexport type PermissionType = string;\n/*\nexport type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';\nexport type PermissionType =\n | 'android.permission.READ_CALENDAR'\n | 'android.permission.WRITE_CALENDAR'\n | 'android.permission.CAMERA'\n | 'android.permission.READ_CONTACTS'\n | 'android.permission.WRITE_CONTACTS'\n | 'android.permission.GET_ACCOUNTS'\n | 'android.permission.ACCESS_BACKGROUND_LOCATION'\n | 'android.permission.ACCESS_FINE_LOCATION'\n | 'android.permission.ACCESS_COARSE_LOCATION'\n | 'android.permission.RECORD_AUDIO'\n | 'android.permission.READ_PHONE_STATE'\n | 'android.permission.CALL_PHONE'\n | 'android.permission.READ_CALL_LOG'\n | 'android.permission.WRITE_CALL_LOG'\n | 'com.android.voicemail.permission.ADD_VOICEMAIL'\n | 'com.android.voicemail.permission.READ_VOICEMAIL'\n | 'com.android.voicemail.permission.WRITE_VOICEMAIL'\n | 'android.permission.USE_SIP'\n | 'android.permission.PROCESS_OUTGOING_CALLS'\n | 'android.permission.BODY_SENSORS'\n | 'android.permission.BODY_SENSORS_BACKGROUND'\n | 'android.permission.SEND_SMS'\n | 'android.permission.RECEIVE_SMS'\n | 'android.permission.READ_SMS'\n | 'android.permission.RECEIVE_WAP_PUSH'\n | 'android.permission.RECEIVE_MMS'\n | 'android.permission.READ_EXTERNAL_STORAGE'\n | 'android.permission.READ_MEDIA_IMAGES',\n | 'android.permission.READ_MEDIA_VIDEO',\n | 'android.permission.READ_MEDIA_AUDIO',\n | 'android.permission.READ_MEDIA_VISUAL_USER_SELECTED'\n | 'android.permission.WRITE_EXTERNAL_STORAGE'\n | 'android.permission.BLUETOOTH_CONNECT'\n | 'android.permission.BLUETOOTH_SCAN'\n | 'android.permission.BLUETOOTH_ADVERTISE'\n | 'android.permission.ACCESS_MEDIA_LOCATION'\n | 'android.permission.ACCEPT_HANDOVER'\n | 'android.permission.ACTIVITY_RECOGNITION'\n | 'android.permission.ANSWER_PHONE_CALLS'\n | 'android.permission.READ_PHONE_NUMBERS'\n | 'android.permission.UWB_RANGING'\n | 'android.permission.POST_NOTIFICATIONS'\n | 'android.permission.NEARBY_WIFI_DEVICES';\n*/\n\nexport interface Spec extends TurboModule {\n +checkPermission: (permission: PermissionType) => Promise;\n +requestPermission: (permission: PermissionType) => Promise;\n +shouldShowRequestPermissionRationale: (\n permission: string,\n ) => Promise;\n +requestMultiplePermissions: (\n permissions: Array,\n ) => Promise<{[permission: PermissionType]: PermissionStatus, ...}>;\n}\n\nexport default (TurboModuleRegistry.get('PermissionsAndroid'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nimport type {EventSubscription} from '../vendor/emitter/EventEmitter';\n\nimport NativeEventEmitter from '../EventEmitter/NativeEventEmitter';\nimport Platform from '../Utilities/Platform';\nimport NativePushNotificationManagerIOS from './NativePushNotificationManagerIOS';\nimport invariant from 'invariant';\n\ntype NativePushNotificationIOSEventDefinitions = {\n remoteNotificationReceived: [\n {\n notificationId: string,\n remote: boolean,\n ...\n },\n ],\n remoteNotificationsRegistered: [\n {\n deviceToken?: ?string,\n ...\n },\n ],\n remoteNotificationRegistrationError: [\n {\n message: string,\n code: number,\n details: {...},\n },\n ],\n localNotificationReceived: [{...}],\n};\n\nconst PushNotificationEmitter =\n new NativeEventEmitter(\n // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior\n // If you want to use the native module on other platforms, please remove this condition and test its behavior\n Platform.OS !== 'ios' ? null : NativePushNotificationManagerIOS,\n );\n\nconst _notifHandlers = new Map();\n\nconst DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';\nconst NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered';\nconst NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError';\nconst DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived';\n\nexport type ContentAvailable = 1 | null | void;\n\nexport type FetchResult = {\n NewData: string,\n NoData: string,\n ResultFailed: string,\n ...\n};\n\n/**\n * An event emitted by PushNotificationIOS.\n */\nexport type PushNotificationEventName = $Keys<{\n /**\n * Fired when a remote notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`. This will handle notifications\n * that arrive in the foreground or were tapped to open the app from the\n * background.\n */\n notification: string,\n /**\n * Fired when a local notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`. This will handle notifications\n * that arrive in the foreground or were tapped to open the app from the\n * background.\n */\n localNotification: string,\n /**\n * Fired when the user registers for remote notifications. The handler will be\n * invoked with a hex string representing the deviceToken.\n */\n register: string,\n /**\n * Fired when the user fails to register for remote notifications. Typically\n * occurs due to APNS issues or if the device is a simulator. The handler\n * will be invoked with {message: string, code: number, details: any}.\n */\n registrationError: string,\n ...\n}>;\n\n/**\n *\n * Handle notifications for your app, including scheduling and permissions.\n *\n * See https://reactnative.dev/docs/pushnotificationios\n */\nclass PushNotificationIOS {\n _data: Object;\n _alert: string | Object;\n _sound: string;\n _category: string;\n _contentAvailable: ContentAvailable;\n _badgeCount: number;\n _notificationId: string;\n _isRemote: boolean;\n _remoteNotificationCompleteCallbackCalled: boolean;\n _threadID: string;\n\n static FetchResult: FetchResult = {\n NewData: 'UIBackgroundFetchResultNewData',\n NoData: 'UIBackgroundFetchResultNoData',\n ResultFailed: 'UIBackgroundFetchResultFailed',\n };\n\n /**\n * Schedules a local notification for immediate presentation.\n *\n * See https://reactnative.dev/docs/pushnotificationios#presentlocalnotification\n */\n static presentLocalNotification(details: Object): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.presentLocalNotification(details);\n }\n\n /**\n * Schedules a local notification for future presentation.\n *\n * See https://reactnative.dev/docs/pushnotificationios#schedulelocalnotification\n */\n static scheduleLocalNotification(details: Object): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.scheduleLocalNotification(details);\n }\n\n /**\n * Cancels all scheduled local notifications.\n *\n * See https://reactnative.dev/docs/pushnotificationios#cancelalllocalnotifications\n */\n static cancelAllLocalNotifications(): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.cancelAllLocalNotifications();\n }\n\n /**\n * Removes all delivered notifications from Notification Center.\n *\n * See https://reactnative.dev/docs/pushnotificationios#removealldeliverednotifications\n */\n static removeAllDeliveredNotifications(): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.removeAllDeliveredNotifications();\n }\n\n /**\n * Provides a list of the app’s notifications that are currently displayed\n * in Notification Center.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getdeliverednotifications\n */\n static getDeliveredNotifications(\n callback: (notifications: Array) => void,\n ): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getDeliveredNotifications(callback);\n }\n\n /**\n * Removes the specified notifications from Notification Center.\n *\n * See https://reactnative.dev/docs/pushnotificationios#removedeliverednotifications\n */\n static removeDeliveredNotifications(identifiers: Array): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.removeDeliveredNotifications(identifiers);\n }\n\n /**\n * Sets the badge number for the app icon on the Home Screen.\n *\n * See https://reactnative.dev/docs/pushnotificationios#setapplicationiconbadgenumber\n */\n static setApplicationIconBadgeNumber(number: number): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.setApplicationIconBadgeNumber(number);\n }\n\n /**\n * Gets the current badge number for the app icon on the Home Screen.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getapplicationiconbadgenumber\n */\n static getApplicationIconBadgeNumber(callback: Function): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getApplicationIconBadgeNumber(callback);\n }\n\n /**\n * Cancels any scheduled local notifications which match the fields in the\n * provided `userInfo`.\n *\n * See https://reactnative.dev/docs/pushnotificationios#cancellocalnotification\n */\n static cancelLocalNotifications(userInfo: Object): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.cancelLocalNotifications(userInfo);\n }\n\n /**\n * Gets the list of local notifications that are currently scheduled.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getscheduledlocalnotifications\n */\n static getScheduledLocalNotifications(callback: Function): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.getScheduledLocalNotifications(callback);\n }\n\n /**\n * Attaches a listener to notification events including local notifications,\n * remote notifications, and notification registration results.\n *\n * See https://reactnative.dev/docs/pushnotificationios#addeventlistener\n */\n static addEventListener(\n type: PushNotificationEventName,\n handler: Function,\n ): void {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n let listener;\n if (type === 'notification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'localNotification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_LOCAL_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'register') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTER_EVENT,\n registrationInfo => {\n handler(registrationInfo.deviceToken);\n },\n );\n } else if (type === 'registrationError') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTRATION_ERROR_EVENT,\n errorInfo => {\n handler(errorInfo);\n },\n );\n }\n _notifHandlers.set(type, listener);\n }\n\n /**\n * Removes the event listener. Do this in `componentWillUnmount` to prevent\n * memory leaks.\n *\n * See https://reactnative.dev/docs/pushnotificationios#removeeventlistener\n */\n static removeEventListener(type: PushNotificationEventName): void {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n const listener = _notifHandlers.get(type);\n if (!listener) {\n return;\n }\n listener.remove();\n _notifHandlers.delete(type);\n }\n\n /**\n * Requests notification permissions from iOS, prompting the user with a\n * dialog box. By default, it will request all notification permissions, but\n * you can optionally specify which permissions to request.\n *\n * See https://reactnative.dev/docs/pushnotificationios#requestpermissions\n */\n static requestPermissions(permissions?: {\n alert?: boolean,\n badge?: boolean,\n sound?: boolean,\n ...\n }): Promise<{\n alert: boolean,\n badge: boolean,\n sound: boolean,\n ...\n }> {\n let requestedPermissions = {\n alert: true,\n badge: true,\n sound: true,\n };\n if (permissions) {\n requestedPermissions = {\n alert: !!permissions.alert,\n badge: !!permissions.badge,\n sound: !!permissions.sound,\n };\n }\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n return NativePushNotificationManagerIOS.requestPermissions(\n requestedPermissions,\n );\n }\n\n /**\n * Unregister for all remote notifications received via Apple Push Notification\n * service. This should be called in rare circumstances only.\n *\n * See https://reactnative.dev/docs/pushnotificationios#abandonpermissions\n */\n static abandonPermissions(): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.abandonPermissions();\n }\n\n /**\n * Check which push permissions are currently enabled. `callback` will be\n * invoked with a `Permissions` object.\n *\n * See https://reactnative.dev/docs/pushnotificationios#checkpermissions\n */\n static checkPermissions(callback: Function): void {\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.checkPermissions(callback);\n }\n\n /**\n * This method returns a promise that resolves to either the notification\n * object if the app was launched by a push notification, or `null` otherwise.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getinitialnotification\n */\n static getInitialNotification(): Promise {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n return NativePushNotificationManagerIOS.getInitialNotification().then(\n notification => {\n return notification && new PushNotificationIOS(notification);\n },\n );\n }\n\n /**\n * This method returns a promise that resolves to the current notification\n * authorization status. See UNAuthorizationStatus for possible values.\n */\n static getAuthorizationStatus(\n callback: (authorizationStatus: number) => void,\n ): void {\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n\n NativePushNotificationManagerIOS.getAuthorizationStatus(callback);\n }\n\n /**\n * You will never need to instantiate `PushNotificationIOS` yourself.\n * Listening to the `notification` event and invoking\n * `getInitialNotification` is sufficient.\n *\n */\n constructor(nativeNotif: Object) {\n this._data = {};\n this._remoteNotificationCompleteCallbackCalled = false;\n this._isRemote = nativeNotif.remote;\n if (this._isRemote) {\n this._notificationId = nativeNotif.notificationId;\n }\n\n if (nativeNotif.remote) {\n // Extract data from Apple's `aps` dict as defined:\n // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService\n Object.keys(nativeNotif).forEach(notifKey => {\n const notifVal = nativeNotif[notifKey];\n if (notifKey === 'aps') {\n this._alert = notifVal.alert;\n this._sound = notifVal.sound;\n this._badgeCount = notifVal.badge;\n this._category = notifVal.category;\n this._contentAvailable = notifVal['content-available'];\n this._threadID = notifVal['thread-id'];\n } else {\n this._data[notifKey] = notifVal;\n }\n });\n } else {\n // Local notifications aren't being sent down with `aps` dict.\n this._badgeCount = nativeNotif.applicationIconBadgeNumber;\n this._sound = nativeNotif.soundName;\n this._alert = nativeNotif.alertBody;\n this._data = nativeNotif.userInfo;\n this._category = nativeNotif.category;\n }\n }\n\n /**\n * This method is available for remote notifications that have been received via:\n * `application:didReceiveRemoteNotification:fetchCompletionHandler:`. See docs\n * for more information.\n *\n * See https://reactnative.dev/docs/pushnotificationios#finish\n */\n finish(fetchResult: string): void {\n if (\n !this._isRemote ||\n !this._notificationId ||\n this._remoteNotificationCompleteCallbackCalled\n ) {\n return;\n }\n this._remoteNotificationCompleteCallbackCalled = true;\n\n invariant(\n NativePushNotificationManagerIOS,\n 'PushNotificationManager is not available.',\n );\n NativePushNotificationManagerIOS.onFinishRemoteNotification(\n this._notificationId,\n fetchResult,\n );\n }\n\n /**\n * An alias for `getAlert` to get the notification's main message string.\n */\n getMessage(): ?string | ?Object {\n // alias because \"alert\" is an ambiguous name\n return this._alert;\n }\n\n /**\n * Gets the sound string from the `aps` object. This will be `null` for local\n * notifications.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getsound\n */\n getSound(): ?string {\n return this._sound;\n }\n\n /**\n * Gets the category string from the `aps` object.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getcategory\n */\n getCategory(): ?string {\n return this._category;\n }\n\n /**\n * Gets the notification's main message from the `aps` object. Also see the\n * alias: `getMessage()`.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getalert\n */\n getAlert(): ?string | ?Object {\n return this._alert;\n }\n\n /**\n * Gets the content-available number from the `aps` object.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getcontentavailable\n */\n getContentAvailable(): ContentAvailable {\n return this._contentAvailable;\n }\n\n /**\n * Gets the badge count number from the `aps` object.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getbadgecount\n */\n getBadgeCount(): ?number {\n return this._badgeCount;\n }\n\n /**\n * Gets the data object on the notification.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getdata\n */\n getData(): ?Object {\n return this._data;\n }\n\n /**\n * Gets the thread ID on the notification.\n *\n * See https://reactnative.dev/docs/pushnotificationios#getthreadid\n */\n getThreadID(): ?string {\n return this._threadID;\n }\n}\n\nmodule.exports = PushNotificationIOS;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativePushNotificationManagerIOS';\nimport NativePushNotificationManagerIOS from '../../src/private/specs/modules/NativePushNotificationManagerIOS';\nexport default NativePushNotificationManagerIOS;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\ntype Permissions = {|\n alert: boolean,\n badge: boolean,\n sound: boolean,\n|};\n\ntype Notification = {|\n +alertTitle?: ?string,\n +alertBody?: ?string,\n +userInfo?: ?Object,\n /**\n * Identifier for the notification category. See the [Apple documentation](https://developer.apple.com/documentation/usernotifications/declaring_your_actionable_notification_types)\n * for more details.\n */\n +category?: ?string,\n /**\n * Actual type: string | number\n *\n * Schedule notifications using EITHER `fireDate` or `fireIntervalSeconds`.\n * If both are specified, `fireDate` takes precedence.\n * If you use `presentLocalNotification`, both will be ignored\n * and the notification will be shown immediately.\n */\n +fireDate?: ?number,\n /**\n * Seconds from now to display the notification.\n *\n * Schedule notifications using EITHER `fireDate` or `fireIntervalSeconds`.\n * If both are specified, `fireDate` takes precedence.\n * If you use `presentLocalNotification`, both will be ignored\n * and the notification will be shown immediately.\n */\n +fireIntervalSeconds?: ?number,\n /** Badge count to display on the app icon. */\n +applicationIconBadgeNumber?: ?number,\n /** Whether to silence the notification sound. */\n +isSilent?: ?boolean,\n /**\n * Custom notification sound. Can only be set when creating notifications.\n * This will be null for notifications retrieved via\n * getScheduledLocalNotifications or getDeliveredNotifications.\n */\n +soundName?: ?string,\n|};\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +onFinishRemoteNotification: (\n notificationId: string,\n /**\n * Type:\n * 'UIBackgroundFetchResultNewData' |\n * 'UIBackgroundFetchResultNoData' |\n * 'UIBackgroundFetchResultFailed'\n */\n fetchResult: string,\n ) => void;\n +setApplicationIconBadgeNumber: (num: number) => void;\n +getApplicationIconBadgeNumber: (callback: (num: number) => void) => void;\n +requestPermissions: (permission: {|\n +alert: boolean,\n +badge: boolean,\n +sound: boolean,\n |}) => Promise;\n +abandonPermissions: () => void;\n +checkPermissions: (callback: (permissions: Permissions) => void) => void;\n +presentLocalNotification: (notification: Notification) => void;\n +scheduleLocalNotification: (notification: Notification) => void;\n +cancelAllLocalNotifications: () => void;\n +cancelLocalNotifications: (userInfo: Object) => void;\n +getInitialNotification: () => Promise;\n +getScheduledLocalNotifications: (\n callback: (notification: Notification) => void,\n ) => void;\n +removeAllDeliveredNotifications: () => void;\n +removeDeliveredNotifications: (identifiers: Array) => void;\n +getDeliveredNotifications: (\n callback: (notification: Array) => void,\n ) => void;\n +getAuthorizationStatus: (\n callback: (authorizationStatus: number) => void,\n ) => void;\n +addListener: (eventType: string) => void;\n +removeListeners: (count: number) => void;\n}\n\nexport default (TurboModuleRegistry.get(\n 'PushNotificationManager',\n): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Settings = {\n get(key: string): mixed {\n console.warn('Settings is not yet supported on this platform.');\n return null;\n },\n\n set(settings: Object) {\n console.warn('Settings is not yet supported on this platform.');\n },\n\n watchKeys(keys: string | Array, callback: Function): number {\n console.warn('Settings is not yet supported on this platform.');\n return -1;\n },\n\n clearWatch(watchId: number) {\n console.warn('Settings is not yet supported on this platform.');\n },\n};\n\nmodule.exports = Settings;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport NativeActionSheetManager from '../ActionSheetIOS/NativeActionSheetManager';\nimport NativeShareModule from './NativeShareModule';\n\nconst processColor = require('../StyleSheet/processColor').default;\nconst Platform = require('../Utilities/Platform');\nconst invariant = require('invariant');\n\nexport type ShareContent =\n | {\n title?: string,\n url: string,\n message?: string,\n }\n | {\n title?: string,\n url?: string,\n message: string,\n };\nexport type ShareOptions = {\n dialogTitle?: string,\n excludedActivityTypes?: Array,\n tintColor?: string,\n subject?: string,\n anchor?: number,\n};\n\nclass Share {\n /**\n * Open a dialog to share text content.\n *\n * In iOS, Returns a Promise which will be invoked an object containing `action`, `activityType`.\n * If the user dismissed the dialog, the Promise will still be resolved with action being `Share.dismissedAction`\n * and all the other keys being undefined.\n *\n * In Android, Returns a Promise which always resolves with action being `Share.sharedAction`.\n *\n * ### Content\n *\n * #### iOS\n *\n * - `url` - a URL to share\n * - `message` - a message to share\n *\n * At least one of `URL` or `message` is required.\n *\n * #### Android\n *\n * - `title` - title of the message (optional)\n * - `message` - a message to share (often will include a URL).\n *\n * ### Options\n *\n * #### iOS\n *\n * - `subject` - a subject to share via email\n * - `excludedActivityTypes`\n * - `tintColor`\n *\n * #### Android\n *\n * - `dialogTitle`\n *\n */\n static share(\n content: ShareContent,\n options: ShareOptions = {},\n ): Promise<{action: string, activityType: ?string}> {\n invariant(\n typeof content === 'object' && content !== null,\n 'Content to share must be a valid object',\n );\n invariant(\n typeof content.url === 'string' || typeof content.message === 'string',\n 'At least one of URL or message is required',\n );\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n\n if (Platform.OS === 'android') {\n invariant(\n NativeShareModule,\n 'ShareModule should be registered on Android.',\n );\n invariant(\n content.title == null || typeof content.title === 'string',\n 'Invalid title: title should be a string.',\n );\n\n const newContent = {\n title: content.title,\n message:\n typeof content.message === 'string' ? content.message : undefined,\n };\n\n return NativeShareModule.share(newContent, options.dialogTitle).then(\n result => ({\n activityType: null,\n ...result,\n }),\n );\n } else if (Platform.OS === 'ios') {\n return new Promise((resolve, reject) => {\n const tintColor = processColor(options.tintColor);\n\n invariant(\n tintColor == null || typeof tintColor === 'number',\n 'Unexpected color given for options.tintColor',\n );\n\n invariant(\n NativeActionSheetManager,\n 'NativeActionSheetManager is not registered on iOS, but it should be.',\n );\n\n NativeActionSheetManager.showShareActionSheetWithOptions(\n {\n message:\n typeof content.message === 'string' ? content.message : undefined,\n url: typeof content.url === 'string' ? content.url : undefined,\n subject: options.subject,\n tintColor: typeof tintColor === 'number' ? tintColor : undefined,\n anchor:\n typeof options.anchor === 'number' ? options.anchor : undefined,\n excludedActivityTypes: options.excludedActivityTypes,\n },\n error => reject(error),\n (success, activityType) => {\n if (success) {\n resolve({\n action: 'sharedAction',\n activityType: activityType,\n });\n } else {\n resolve({\n action: 'dismissedAction',\n activityType: null,\n });\n }\n },\n );\n });\n } else {\n return Promise.reject(new Error('Unsupported platform'));\n }\n }\n\n /**\n * The content was successfully shared.\n */\n static sharedAction: 'sharedAction' = 'sharedAction';\n\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n static dismissedAction: 'dismissedAction' = 'dismissedAction';\n}\n\nmodule.exports = Share;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeShareModule';\nimport NativeShareModule from '../../src/private/specs/modules/NativeShareModule';\nexport default NativeShareModule;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +share: (\n content: {|title?: string, message?: string|},\n dialogTitle?: string,\n ) => Promise<{|action: string|}>;\n}\n\nexport default (TurboModuleRegistry.get('ShareModule'): ?Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport NativeToastAndroid from './NativeToastAndroid';\n\n/**\n * This exposes the native ToastAndroid module as a JS module. This has a function 'show'\n * which takes the following parameters:\n *\n * 1. String message: A string with the text to toast\n * 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG\n *\n * There is also a function `showWithGravity` to specify the layout gravity. May be\n * ToastAndroid.TOP, ToastAndroid.BOTTOM, ToastAndroid.CENTER.\n *\n * The 'showWithGravityAndOffset' function adds on the ability to specify offset\n * These offset values will translate to pixels.\n *\n * Basic usage:\n * ```javascript\n * ToastAndroid.show('A pikachu appeared nearby !', ToastAndroid.SHORT);\n * ToastAndroid.showWithGravity('All Your Base Are Belong To Us', ToastAndroid.SHORT, ToastAndroid.CENTER);\n * ToastAndroid.showWithGravityAndOffset('A wild toast appeared!', ToastAndroid.LONG, ToastAndroid.BOTTOM, 25, 50);\n * ```\n */\n\nconst ToastAndroidConstants = NativeToastAndroid.getConstants();\n\nconst ToastAndroid = {\n // Toast duration constants\n SHORT: (ToastAndroidConstants.SHORT: number),\n LONG: (ToastAndroidConstants.LONG: number),\n // Toast gravity constants\n TOP: (ToastAndroidConstants.TOP: number),\n BOTTOM: (ToastAndroidConstants.BOTTOM: number),\n CENTER: (ToastAndroidConstants.CENTER: number),\n\n show: function (message: string, duration: number): void {\n NativeToastAndroid.show(message, duration);\n },\n\n showWithGravity: function (\n message: string,\n duration: number,\n gravity: number,\n ): void {\n NativeToastAndroid.showWithGravity(message, duration, gravity);\n },\n\n showWithGravityAndOffset: function (\n message: string,\n duration: number,\n gravity: number,\n xOffset: number,\n yOffset: number,\n ): void {\n NativeToastAndroid.showWithGravityAndOffset(\n message,\n duration,\n gravity,\n xOffset,\n yOffset,\n );\n },\n};\n\nmodule.exports = ToastAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../../src/private/specs/modules/NativeToastAndroid';\nimport NativeToastAndroid from '../../../src/private/specs/modules/NativeToastAndroid';\nexport default NativeToastAndroid;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {|\n SHORT: number,\n LONG: number,\n TOP: number,\n BOTTOM: number,\n CENTER: number,\n |};\n +show: (message: string, duration: number) => void;\n +showWithGravity: (\n message: string,\n duration: number,\n gravity: number,\n ) => void;\n +showWithGravityAndOffset: (\n message: string,\n duration: number,\n gravity: number,\n xOffset: number,\n yOffset: number,\n ) => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('ToastAndroid'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\nimport type {AnimatedValueConfig} from './nodes/AnimatedValue';\n\nimport Animated from './Animated';\nimport {useRef} from 'react';\n\nexport default function useAnimatedValue(\n initialValue: number,\n config?: ?AnimatedValueConfig,\n): Animated.Value {\n const ref = useRef(null);\n if (ref.current == null) {\n ref.current = new Animated.Value(initialValue, config);\n }\n return ref.current;\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ColorSchemeName} from './NativeAppearance';\n\nimport Appearance from './Appearance';\nimport {useSyncExternalStore} from 'react';\n\nconst subscribe = (onStoreChange: () => void) => {\n const appearanceSubscription = Appearance.addChangeListener(onStoreChange);\n return () => appearanceSubscription.remove();\n};\n\nexport default function useColorScheme(): ?ColorSchemeName {\n return useSyncExternalStore(subscribe, Appearance.getColorScheme);\n}\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\nconst deepFreezeAndThrowOnMutationInDev = require('./Utilities/deepFreezeAndThrowOnMutationInDev');\n\n/**\n * A collection of Unicode sequences for various characters and emoji.\n *\n * - More explicit than using the sequences directly in code.\n * - Source code should be limited to ASCII.\n * - Less chance of typos.\n */\nconst UTFSequence: {|\n BOM: string,\n BULLET: string,\n BULLET_SP: string,\n MDASH: string,\n MDASH_SP: string,\n MIDDOT: string,\n MIDDOT_KATAKANA: string,\n MIDDOT_SP: string,\n NBSP: string,\n NDASH: string,\n NDASH_SP: string,\n NEWLINE: string,\n PIZZA: string,\n TRIANGLE_LEFT: string,\n TRIANGLE_RIGHT: string,\n|} = deepFreezeAndThrowOnMutationInDev({\n BOM: '\\ufeff', // byte order mark\n BULLET: '\\u2022', // bullet: •\n BULLET_SP: '\\u00A0\\u2022\\u00A0', //  • \n MIDDOT: '\\u00B7', // normal middle dot: ·\n MIDDOT_SP: '\\u00A0\\u00B7\\u00A0', //  · \n MIDDOT_KATAKANA: '\\u30FB', // katakana middle dot\n MDASH: '\\u2014', // em dash: —\n MDASH_SP: '\\u00A0\\u2014\\u00A0', //  — \n NDASH: '\\u2013', // en dash: –\n NDASH_SP: '\\u00A0\\u2013\\u00A0', //  – \n NEWLINE: '\\u000A',\n NBSP: '\\u00A0', // non-breaking space:  \n PIZZA: '\\uD83C\\uDF55',\n TRIANGLE_LEFT: '\\u25c0', // black left-pointing triangle\n TRIANGLE_RIGHT: '\\u25b6', // black right-pointing triangle\n});\n\nexport default UTFSequence;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n * @jsdoc\n */\n\nimport NativeVibration from './NativeVibration';\n\nconst Platform = require('../Utilities/Platform');\n\n/**\n * Vibration API\n *\n * See https://reactnative.dev/docs/vibration\n */\n\nlet _vibrating: boolean = false;\nlet _id: number = 0; // _id is necessary to prevent race condition.\nconst _default_vibration_length = 400;\n\nfunction vibrateByPattern(pattern: Array, repeat: boolean = false) {\n if (_vibrating) {\n return;\n }\n _vibrating = true;\n if (pattern[0] === 0) {\n NativeVibration.vibrate(_default_vibration_length);\n // $FlowFixMe[reassign-const]\n pattern = pattern.slice(1);\n }\n if (pattern.length === 0) {\n _vibrating = false;\n return;\n }\n setTimeout(() => vibrateScheduler(++_id, pattern, repeat, 1), pattern[0]);\n}\n\nfunction vibrateScheduler(\n id: number,\n pattern: Array,\n repeat: boolean,\n nextIndex: number,\n) {\n if (!_vibrating || id !== _id) {\n return;\n }\n NativeVibration.vibrate(_default_vibration_length);\n if (nextIndex >= pattern.length) {\n if (repeat) {\n // $FlowFixMe[reassign-const]\n nextIndex = 0;\n } else {\n _vibrating = false;\n return;\n }\n }\n setTimeout(\n () => vibrateScheduler(id, pattern, repeat, nextIndex + 1),\n pattern[nextIndex],\n );\n}\n\nconst Vibration = {\n /**\n * Trigger a vibration with specified `pattern`.\n *\n * See https://reactnative.dev/docs/vibration#vibrate\n */\n vibrate: function (\n pattern: number | Array = _default_vibration_length,\n repeat: boolean = false,\n ) {\n if (Platform.OS === 'android') {\n if (typeof pattern === 'number') {\n NativeVibration.vibrate(pattern);\n } else if (Array.isArray(pattern)) {\n NativeVibration.vibrateByPattern(pattern, repeat ? 0 : -1);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n } else {\n if (_vibrating) {\n return;\n }\n if (typeof pattern === 'number') {\n NativeVibration.vibrate(pattern);\n } else if (Array.isArray(pattern)) {\n vibrateByPattern(pattern, repeat);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n }\n },\n /**\n * Stop vibration\n *\n * See https://reactnative.dev/docs/vibration#cancel\n */\n cancel: function () {\n if (Platform.OS === 'ios') {\n _vibrating = false;\n } else {\n NativeVibration.cancel();\n }\n },\n};\n\nmodule.exports = Vibration;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nexport * from '../../src/private/specs/modules/NativeVibration';\nimport NativeVibration from '../../src/private/specs/modules/NativeVibration';\nexport default NativeVibration;\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nimport type {TurboModule} from '../../../../Libraries/TurboModule/RCTExport';\n\nimport * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboModuleRegistry';\n\nexport interface Spec extends TurboModule {\n +getConstants: () => {||};\n +vibrate: (pattern: number) => void;\n\n // Android only\n +vibrateByPattern: (pattern: Array, repeat: number) => void;\n +cancel: () => void;\n}\n\nexport default (TurboModuleRegistry.getEnforcing('Vibration'): Spec);\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nimport type {IgnorePattern} from '../LogBox/Data/LogBoxData';\n\nconst LogBox = require('../LogBox/LogBox').default;\nconst React = require('react');\n\ntype Props = $ReadOnly<{||}>;\n\nlet YellowBox;\nif (__DEV__) {\n YellowBox = class extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n console.warn(\n 'YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.',\n );\n\n LogBox.ignoreLogs(patterns);\n }\n\n static install(): void {\n console.warn(\n 'YellowBox has been replaced with LogBox. Please call LogBox.install() instead.',\n );\n LogBox.install();\n }\n\n static uninstall(): void {\n console.warn(\n 'YellowBox has been replaced with LogBox. Please call LogBox.uninstall() instead.',\n );\n LogBox.uninstall();\n }\n\n render(): React.Node {\n return null;\n }\n };\n} else {\n YellowBox = class extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n // Do nothing.\n }\n\n static install(): void {\n // Do nothing.\n }\n\n static uninstall(): void {\n // Do nothing.\n }\n\n render(): React.Node {\n return null;\n }\n };\n}\n\n// $FlowFixMe[method-unbinding]\nmodule.exports = (YellowBox: Class> & {\n ignoreWarnings($ReadOnlyArray): void,\n install(): void,\n uninstall(): void,\n ...\n});\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nimport type {ColorValue} from './StyleSheet';\n\nexport type DynamicColorIOSTuple = {\n light: ColorValue,\n dark: ColorValue,\n highContrastLight?: ColorValue,\n highContrastDark?: ColorValue,\n};\n\nexport const DynamicColorIOS = (tuple: DynamicColorIOSTuple): ColorValue => {\n throw new Error('DynamicColorIOS is not available on this platform.');\n};\n","import * as React from 'react';\nimport { useImperativeHandle, useRef } from 'react';\n\nimport {\n NativeViewGestureHandler,\n NativeViewGestureHandlerProps,\n nativeViewProps,\n} from './NativeViewGestureHandler';\n\n/*\n * This array should consist of:\n * - All keys in propTypes from NativeGestureHandler\n * (and all keys in GestureHandlerPropTypes)\n * - 'onGestureHandlerEvent'\n * - 'onGestureHandlerStateChange'\n */\nconst NATIVE_WRAPPER_PROPS_FILTER = [\n ...nativeViewProps,\n 'onGestureHandlerEvent',\n 'onGestureHandlerStateChange',\n] as const;\n\nexport default function createNativeWrapper

(\n Component: React.ComponentType

,\n config: Readonly = {}\n) {\n const ComponentWrapper = React.forwardRef<\n React.ComponentType,\n P & NativeViewGestureHandlerProps\n >((props, ref) => {\n // Filter out props that should be passed to gesture handler wrapper\n const gestureHandlerProps = Object.keys(props).reduce(\n (res, key) => {\n // TS being overly protective with it's types, see https://github.com/microsoft/TypeScript/issues/26255#issuecomment-458013731 for more info\n const allowedKeys: readonly string[] = NATIVE_WRAPPER_PROPS_FILTER;\n if (allowedKeys.includes(key)) {\n // @ts-ignore FIXME(TS)\n res[key] = props[key];\n }\n return res;\n },\n { ...config } // Watch out not to modify config\n );\n const _ref = useRef>();\n const _gestureHandlerRef = useRef>();\n useImperativeHandle(\n ref,\n // @ts-ignore TODO(TS) decide how nulls work in this context\n () => {\n const node = _gestureHandlerRef.current;\n // Add handlerTag for relations config\n if (_ref.current && node) {\n // @ts-ignore FIXME(TS) think about createHandler return type\n _ref.current.handlerTag = node.handlerTag;\n return _ref.current;\n }\n return null;\n },\n [_ref, _gestureHandlerRef]\n );\n return (\n \n \n \n );\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n ComponentWrapper.displayName =\n Component?.displayName ||\n // @ts-ignore if render doesn't exist it will return undefined and go further\n Component?.render?.name ||\n (typeof Component === 'string' && Component) ||\n 'ComponentWrapper';\n\n return ComponentWrapper;\n}\n","import type { NativeViewGestureHandlerPayload } from './GestureHandlerEventPayload';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\n\nexport const nativeViewGestureHandlerProps = [\n 'shouldActivateOnStart',\n 'disallowInterruption',\n] as const;\n\nexport interface NativeViewGestureConfig {\n /**\n * Android only.\n *\n * Determines whether the handler should check for an existing touch event on\n * instantiation.\n */\n shouldActivateOnStart?: boolean;\n\n /**\n * When `true`, cancels all other gesture handlers when this\n * `NativeViewGestureHandler` receives an `ACTIVE` state event.\n */\n disallowInterruption?: boolean;\n}\n\nexport interface NativeViewGestureHandlerProps\n extends BaseGestureHandlerProps,\n NativeViewGestureConfig {}\n\nexport const nativeViewProps = [\n ...baseGestureHandlerProps,\n ...nativeViewGestureHandlerProps,\n] as const;\n\nexport const nativeViewHandlerName = 'NativeViewGestureHandler';\n\nexport type NativeViewGestureHandler = typeof NativeViewGestureHandler;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const NativeViewGestureHandler = createHandler<\n NativeViewGestureHandlerProps,\n NativeViewGestureHandlerPayload\n>({\n name: nativeViewHandlerName,\n allowedProps: nativeViewProps,\n config: {},\n});\n","import * as React from 'react';\nimport {\n Platform,\n UIManager,\n DeviceEventEmitter,\n EmitterSubscription,\n} from 'react-native';\nimport { customDirectEventTypes } from './customDirectEventTypes';\nimport RNGestureHandlerModule from '../RNGestureHandlerModule';\nimport { State } from '../State';\nimport { handlerIDToTag, registerOldGestureHandler } from './handlersRegistry';\nimport { getNextHandlerTag } from './getNextHandlerTag';\n\nimport {\n BaseGestureHandlerProps,\n GestureEvent,\n HandlerStateChangeEvent,\n} from './gestureHandlerCommon';\nimport { filterConfig, findNodeHandle, scheduleFlushOperations } from './utils';\nimport { ValueOf } from '../typeUtils';\nimport { deepEqual, isFabric, isJestEnv, tagMessage } from '../utils';\nimport { ActionType } from '../ActionType';\nimport { PressabilityDebugView } from './PressabilityDebugView';\nimport GestureHandlerRootViewContext from '../GestureHandlerRootViewContext';\nimport { ghQueueMicrotask } from '../ghQueueMicrotask';\n\nconst UIManagerAny = UIManager as any;\n\ncustomDirectEventTypes.topGestureHandlerEvent = {\n registrationName: 'onGestureHandlerEvent',\n};\n\nconst customGHEventsConfigFabricAndroid = {\n topOnGestureHandlerEvent: { registrationName: 'onGestureHandlerEvent' },\n topOnGestureHandlerStateChange: {\n registrationName: 'onGestureHandlerStateChange',\n },\n};\n\nconst customGHEventsConfig = {\n onGestureHandlerEvent: { registrationName: 'onGestureHandlerEvent' },\n onGestureHandlerStateChange: {\n registrationName: 'onGestureHandlerStateChange',\n },\n\n // When using React Native Gesture Handler for Animated.event with useNativeDriver: true\n // on Android with Fabric enabled, the native part still sends the native events to JS\n // but prefixed with \"top\". We cannot simply rename the events above so they are prefixed\n // with \"top\" instead of \"on\" because in such case Animated.events would not be registered.\n // That's why we need to register another pair of event names.\n // The incoming events will be queued but never handled.\n // Without this piece of code below, you'll get the following JS error:\n // Unsupported top level event type \"topOnGestureHandlerEvent\" dispatched\n ...(isFabric() &&\n Platform.OS === 'android' &&\n customGHEventsConfigFabricAndroid),\n};\n\n// Add gesture specific events to genericDirectEventTypes object exported from UIManager\n// native module.\n// Once new event types are registered with react it is possible to dispatch these\n// events to all kind of native views.\nUIManagerAny.genericDirectEventTypes = {\n ...UIManagerAny.genericDirectEventTypes,\n ...customGHEventsConfig,\n};\n// In newer versions of RN the `genericDirectEventTypes` is located in the object\n// returned by UIManager.getViewManagerConfig('getConstants') or in older RN UIManager.getConstants(), we need to add it there as well to make\n// it compatible with RN 61+\nconst UIManagerConstants =\n UIManagerAny.getViewManagerConfig?.('getConstants') ??\n UIManagerAny.getConstants?.();\n\nif (UIManagerConstants) {\n UIManagerConstants.genericDirectEventTypes = {\n ...UIManagerConstants.genericDirectEventTypes,\n ...customGHEventsConfig,\n };\n}\n\n// Wrap JS responder calls and notify gesture handler manager\nconst {\n setJSResponder: oldSetJSResponder = () => {\n // no-op\n },\n clearJSResponder: oldClearJSResponder = () => {\n // no-op\n },\n} = UIManagerAny;\nUIManagerAny.setJSResponder = (tag: number, blockNativeResponder: boolean) => {\n RNGestureHandlerModule.handleSetJSResponder(tag, blockNativeResponder);\n oldSetJSResponder(tag, blockNativeResponder);\n};\nUIManagerAny.clearJSResponder = () => {\n RNGestureHandlerModule.handleClearJSResponder();\n oldClearJSResponder();\n};\n\nlet allowTouches = true;\nconst DEV_ON_ANDROID = __DEV__ && Platform.OS === 'android';\n// Toggled inspector blocks touch events in order to allow inspecting on Android\n// This needs to be a global variable in order to set initial state for `allowTouches` property in Handler component\nif (DEV_ON_ANDROID) {\n DeviceEventEmitter.addListener('toggleElementInspector', () => {\n allowTouches = !allowTouches;\n });\n}\n\ntype HandlerProps> = Readonly<\n React.PropsWithChildren>\n>;\nfunction hasUnresolvedRefs>(\n props: HandlerProps\n) {\n // TODO(TS) - add type for extract arg\n const extract = (refs: any | any[]) => {\n if (!Array.isArray(refs)) {\n return refs && refs.current === null;\n }\n return refs.some((r) => r && r.current === null);\n };\n return extract(props['simultaneousHandlers']) || extract(props['waitFor']);\n}\n\nconst stateToPropMappings = {\n [State.UNDETERMINED]: undefined,\n [State.BEGAN]: 'onBegan',\n [State.FAILED]: 'onFailed',\n [State.CANCELLED]: 'onCancelled',\n [State.ACTIVE]: 'onActivated',\n [State.END]: 'onEnded',\n} as const;\n\ntype CreateHandlerArgs> =\n Readonly<{\n name: string;\n allowedProps: Readonly[]>;\n config: Readonly>;\n transformProps?: (props: HandlerPropsT) => HandlerPropsT;\n customNativeProps?: Readonly;\n }>;\n\n// TODO(TS) fix event types\ntype InternalEventHandlers = {\n onGestureHandlerEvent?: (event: any) => void;\n onGestureHandlerStateChange?: (event: any) => void;\n};\n\ntype AttachGestureHandlerWeb = (\n handlerTag: number,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n newView: any,\n _actionType: ActionType,\n propsRef: React.RefObject\n) => void;\n\nconst UNRESOLVED_REFS_RETRY_LIMIT = 1;\n\n// TODO(TS) - make sure that BaseGestureHandlerProps doesn't need other generic parameter to work with custom properties.\nexport default function createHandler<\n T extends BaseGestureHandlerProps,\n U extends Record\n>({\n name,\n allowedProps = [],\n config = {},\n transformProps,\n customNativeProps = [],\n}: CreateHandlerArgs): React.ComponentType> {\n interface HandlerState {\n allowTouches: boolean;\n }\n class Handler extends React.Component<\n T & InternalEventHandlers,\n HandlerState\n > {\n static displayName = name;\n static contextType = GestureHandlerRootViewContext;\n\n private handlerTag: number;\n private config: Record;\n private propsRef: React.MutableRefObject;\n private isMountedRef: React.MutableRefObject;\n private viewNode: any;\n private viewTag?: number;\n private inspectorToggleListener?: EmitterSubscription;\n\n constructor(props: T & InternalEventHandlers) {\n super(props);\n this.handlerTag = getNextHandlerTag();\n this.config = {};\n this.propsRef = React.createRef();\n this.isMountedRef = React.createRef();\n this.state = { allowTouches };\n if (props.id) {\n if (handlerIDToTag[props.id] !== undefined) {\n throw new Error(`Handler with ID \"${props.id}\" already registered`);\n }\n handlerIDToTag[props.id] = this.handlerTag;\n }\n }\n\n componentDidMount() {\n const props: HandlerProps = this.props;\n this.isMountedRef.current = true;\n\n if (DEV_ON_ANDROID) {\n this.inspectorToggleListener = DeviceEventEmitter.addListener(\n 'toggleElementInspector',\n () => {\n this.setState((_) => ({ allowTouches }));\n this.update(UNRESOLVED_REFS_RETRY_LIMIT);\n }\n );\n }\n if (hasUnresolvedRefs(props)) {\n // If there are unresolved refs (e.g. \".current\" has not yet been set)\n // passed as `simultaneousHandlers` or `waitFor`, we enqueue a call to\n // _update method that will try to update native handler props using\n // queueMicrotask. This makes it so update() function gets called after all\n // react components are mounted and we expect the missing ref object to\n // be resolved by then.\n ghQueueMicrotask(() => {\n this.update(UNRESOLVED_REFS_RETRY_LIMIT);\n });\n }\n\n this.createGestureHandler(\n filterConfig(\n transformProps ? transformProps(this.props) : this.props,\n [...allowedProps, ...customNativeProps],\n config\n )\n );\n\n this.attachGestureHandler(findNodeHandle(this.viewNode) as number); // TODO(TS) - check if this can be null\n }\n\n componentDidUpdate() {\n const viewTag = findNodeHandle(this.viewNode);\n if (this.viewTag !== viewTag) {\n this.attachGestureHandler(viewTag as number); // TODO(TS) - check interaction between _viewTag & findNodeHandle\n }\n this.update(UNRESOLVED_REFS_RETRY_LIMIT);\n }\n\n componentWillUnmount() {\n this.inspectorToggleListener?.remove();\n this.isMountedRef.current = false;\n RNGestureHandlerModule.dropGestureHandler(this.handlerTag);\n scheduleFlushOperations();\n // We can't use this.props.id directly due to TS generic type narrowing bug, see https://github.com/microsoft/TypeScript/issues/13995 for more context\n const handlerID: string | undefined = this.props.id;\n if (handlerID) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete handlerIDToTag[handlerID];\n }\n }\n\n private onGestureHandlerEvent = (event: GestureEvent) => {\n if (event.nativeEvent.handlerTag === this.handlerTag) {\n if (typeof this.props.onGestureEvent === 'function') {\n this.props.onGestureEvent?.(event);\n }\n } else {\n this.props.onGestureHandlerEvent?.(event);\n }\n };\n\n // TODO(TS) - make sure this is right type for event\n private onGestureHandlerStateChange = (\n event: HandlerStateChangeEvent\n ) => {\n if (event.nativeEvent.handlerTag === this.handlerTag) {\n if (typeof this.props.onHandlerStateChange === 'function') {\n this.props.onHandlerStateChange?.(event);\n }\n\n const state: ValueOf = event.nativeEvent.state;\n const stateEventName = stateToPropMappings[state];\n const eventHandler = stateEventName && this.props[stateEventName];\n if (eventHandler && typeof eventHandler === 'function') {\n eventHandler(event);\n }\n } else {\n this.props.onGestureHandlerStateChange?.(event);\n }\n };\n\n private refHandler = (node: any) => {\n this.viewNode = node;\n\n const child = React.Children.only(this.props.children);\n // TODO(TS) fix ref type\n const { ref }: any = child;\n if (ref !== null) {\n if (typeof ref === 'function') {\n ref(node);\n } else {\n ref.current = node;\n }\n }\n };\n\n private createGestureHandler = (\n newConfig: Readonly>\n ) => {\n this.config = newConfig;\n\n RNGestureHandlerModule.createGestureHandler(\n name,\n this.handlerTag,\n newConfig\n );\n };\n\n private attachGestureHandler = (newViewTag: number) => {\n this.viewTag = newViewTag;\n\n if (Platform.OS === 'web') {\n // Typecast due to dynamic resolution, attachGestureHandler should have web version signature in this branch\n (\n RNGestureHandlerModule.attachGestureHandler as AttachGestureHandlerWeb\n )(\n this.handlerTag,\n newViewTag,\n ActionType.JS_FUNCTION_OLD_API, // ignored on web\n this.propsRef\n );\n } else {\n registerOldGestureHandler(this.handlerTag, {\n onGestureEvent: this.onGestureHandlerEvent,\n onGestureStateChange: this.onGestureHandlerStateChange,\n });\n\n const actionType = (() => {\n const onGestureEvent = this.props?.onGestureEvent;\n const isGestureHandlerWorklet =\n onGestureEvent &&\n ('current' in onGestureEvent ||\n 'workletEventHandler' in onGestureEvent);\n const onHandlerStateChange = this.props?.onHandlerStateChange;\n const isStateChangeHandlerWorklet =\n onHandlerStateChange &&\n ('current' in onHandlerStateChange ||\n 'workletEventHandler' in onHandlerStateChange);\n const isReanimatedHandler =\n isGestureHandlerWorklet || isStateChangeHandlerWorklet;\n if (isReanimatedHandler) {\n // Reanimated worklet\n return ActionType.REANIMATED_WORKLET;\n } else if (onGestureEvent && '__isNative' in onGestureEvent) {\n // Animated.event with useNativeDriver: true\n return ActionType.NATIVE_ANIMATED_EVENT;\n } else {\n // JS callback or Animated.event with useNativeDriver: false\n return ActionType.JS_FUNCTION_OLD_API;\n }\n })();\n\n RNGestureHandlerModule.attachGestureHandler(\n this.handlerTag,\n newViewTag,\n actionType\n );\n }\n\n scheduleFlushOperations();\n };\n\n private updateGestureHandler = (\n newConfig: Readonly>\n ) => {\n this.config = newConfig;\n\n RNGestureHandlerModule.updateGestureHandler(this.handlerTag, newConfig);\n scheduleFlushOperations();\n };\n\n private update(remainingTries: number) {\n if (!this.isMountedRef.current) {\n return;\n }\n\n const props: HandlerProps = this.props;\n\n // When ref is set via a function i.e. `ref={(r) => refObject.current = r}` instead of\n // `ref={refObject}` it's possible that it won't be resolved in time. Seems like trying\n // again is easy enough fix.\n if (hasUnresolvedRefs(props) && remainingTries > 0) {\n ghQueueMicrotask(() => {\n this.update(remainingTries - 1);\n });\n } else {\n const newConfig = filterConfig(\n transformProps ? transformProps(this.props) : this.props,\n [...allowedProps, ...customNativeProps],\n config\n );\n if (!deepEqual(this.config, newConfig)) {\n this.updateGestureHandler(newConfig);\n }\n }\n }\n\n setNativeProps(updates: any) {\n const mergedProps = { ...this.props, ...updates };\n const newConfig = filterConfig(\n transformProps ? transformProps(mergedProps) : mergedProps,\n [...allowedProps, ...customNativeProps],\n config\n );\n this.updateGestureHandler(newConfig);\n }\n\n render() {\n if (__DEV__ && !this.context && !isJestEnv() && Platform.OS !== 'web') {\n throw new Error(\n name +\n ' must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.'\n );\n }\n\n let gestureEventHandler = this.onGestureHandlerEvent;\n // Another instance of https://github.com/microsoft/TypeScript/issues/13995\n type OnGestureEventHandlers = {\n onGestureEvent?: BaseGestureHandlerProps['onGestureEvent'];\n onGestureHandlerEvent?: InternalEventHandlers['onGestureHandlerEvent'];\n };\n const { onGestureEvent, onGestureHandlerEvent }: OnGestureEventHandlers =\n this.props;\n if (onGestureEvent && typeof onGestureEvent !== 'function') {\n // If it's not a method it should be an native Animated.event\n // object. We set it directly as the handler for the view\n // In this case nested handlers are not going to be supported\n if (onGestureHandlerEvent) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n gestureEventHandler = onGestureEvent;\n } else {\n if (\n onGestureHandlerEvent &&\n typeof onGestureHandlerEvent !== 'function'\n ) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n }\n\n let gestureStateEventHandler = this.onGestureHandlerStateChange;\n // Another instance of https://github.com/microsoft/TypeScript/issues/13995\n type OnGestureStateChangeHandlers = {\n onHandlerStateChange?: BaseGestureHandlerProps['onHandlerStateChange'];\n onGestureHandlerStateChange?: InternalEventHandlers['onGestureHandlerStateChange'];\n };\n const {\n onHandlerStateChange,\n onGestureHandlerStateChange,\n }: OnGestureStateChangeHandlers = this.props;\n if (onHandlerStateChange && typeof onHandlerStateChange !== 'function') {\n // If it's not a method it should be an native Animated.event\n // object. We set it directly as the handler for the view\n // In this case nested handlers are not going to be supported\n if (onGestureHandlerStateChange) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n gestureStateEventHandler = onHandlerStateChange;\n } else {\n if (\n onGestureHandlerStateChange &&\n typeof onGestureHandlerStateChange !== 'function'\n ) {\n throw new Error(\n 'Nesting touch handlers with native animated driver is not supported yet'\n );\n }\n }\n const events = {\n onGestureHandlerEvent: this.state.allowTouches\n ? gestureEventHandler\n : undefined,\n onGestureHandlerStateChange: this.state.allowTouches\n ? gestureStateEventHandler\n : undefined,\n };\n\n this.propsRef.current = events;\n\n let child: any = null;\n try {\n child = React.Children.only(this.props.children);\n } catch (e) {\n throw new Error(\n tagMessage(\n `${name} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`\n )\n );\n }\n\n let grandChildren = child.props.children;\n if (\n __DEV__ &&\n child.type &&\n (child.type === 'RNGestureHandlerButton' ||\n child.type.name === 'View' ||\n child.type.displayName === 'View')\n ) {\n grandChildren = React.Children.toArray(grandChildren);\n grandChildren.push(\n \n );\n }\n\n return React.cloneElement(\n child,\n {\n ref: this.refHandler,\n collapsable: false,\n ...(isJestEnv()\n ? {\n handlerType: name,\n handlerTag: this.handlerTag,\n enabled: this.props.enabled,\n }\n : {}),\n testID: this.props.testID ?? child.props.testID,\n ...events,\n },\n grandChildren\n );\n }\n }\n return Handler;\n}\n","// Reexport the native module spec used by codegen. The relevant files are inluded on Android\n// to ensure the compatibility with the old arch, while iOS doesn't require those at all.\n\nimport Module from './specs/NativeRNGestureHandlerModule';\nexport default Module;\n","import { TurboModuleRegistry, TurboModule } from 'react-native';\nimport { Double } from 'react-native/Libraries/Types/CodegenTypes';\n\nexport interface Spec extends TurboModule {\n handleSetJSResponder: (tag: Double, blockNativeResponder: boolean) => void;\n handleClearJSResponder: () => void;\n createGestureHandler: (\n handlerName: string,\n handlerTag: Double,\n // Record<> is not supported by codegen\n // eslint-disable-next-line @typescript-eslint/ban-types\n config: Object\n ) => void;\n attachGestureHandler: (\n handlerTag: Double,\n newView: Double,\n actionType: Double\n ) => void;\n // eslint-disable-next-line @typescript-eslint/ban-types\n updateGestureHandler: (handlerTag: Double, newConfig: Object) => void;\n dropGestureHandler: (handlerTag: Double) => void;\n install: () => boolean;\n flushOperations: () => void;\n}\n\nexport default TurboModuleRegistry.getEnforcing('RNGestureHandlerModule');\n","import React from 'react';\n\nexport default React.createContext(false);\n","// @ts-ignore - its taken straight from RN\nexport { customDirectEventTypes } from 'react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry';\n","export function toArray(object: T | T[]): T[] {\n if (!Array.isArray(object)) {\n return [object];\n }\n\n return object;\n}\n\nexport type withPrevAndCurrentMapFn = (\n previous: Transformed | null,\n current: T\n) => Transformed;\nexport function withPrevAndCurrent(\n array: T[],\n mapFn: withPrevAndCurrentMapFn\n): Transformed[] {\n const previousArr: (null | Transformed)[] = [null];\n const currentArr = [...array];\n const transformedArr: Transformed[] = [];\n currentArr.forEach((current, i) => {\n // This type cast is fine and solves problem mentioned in https://github.com/software-mansion/react-native-gesture-handler/pull/2867 (namely that `previous` can be undefined).\n // Unfortunately, linter on our CI does not allow this type of casting as it is unnecessary. To bypass that we use eslint-disable.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const previous = previousArr[i] as Transformed | null;\n const transformed = mapFn(previous, current);\n previousArr.push(transformed);\n transformedArr.push(transformed);\n });\n return transformedArr;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function hasProperty(object: object, key: string) {\n return Object.prototype.hasOwnProperty.call(object, key);\n}\n\nexport function isJestEnv(): boolean {\n // @ts-ignore Do not use `@types/node` because it will prioritise Node types over RN types which breaks the types (ex. setTimeout) in React Native projects.\n return hasProperty(global, 'process') && !!process.env.JEST_WORKER_ID;\n}\n\nexport function tagMessage(msg: string) {\n return `[react-native-gesture-handler] ${msg}`;\n}\n\n// Helper method to check whether Fabric is enabled, however global.nativeFabricUIManager\n// may not be initialized before the first render\nexport function isFabric(): boolean {\n // @ts-expect-error nativeFabricUIManager is not yet included in the RN types\n return !!global?.nativeFabricUIManager;\n}\n\nexport function isRemoteDebuggingEnabled(): boolean {\n // react-native-reanimated checks if in remote debugging in the same way\n // @ts-ignore global is available but node types are not included\n const localGlobal = global as any;\n return (\n (!localGlobal.nativeCallSyncHook || !!localGlobal.__REMOTEDEV__) &&\n !localGlobal.RN$Bridgeless\n );\n}\n\n/**\n * Recursively compares two objects for deep equality.\n *\n * **Note:** This function does not support cyclic references.\n *\n * @param obj1 - The first object to compare.\n * @param obj2 - The second object to compare.\n * @returns `true` if the objects are deeply equal, `false` otherwise.\n */\nexport function deepEqual(obj1: any, obj2: any) {\n if (obj1 === obj2) {\n return true;\n }\n\n if (\n typeof obj1 !== 'object' ||\n typeof obj2 !== 'object' ||\n obj1 === null ||\n obj2 === null\n ) {\n return false;\n }\n\n const keys1 = Object.keys(obj1);\n const keys2 = Object.keys(obj2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n if (!keys2.includes(key) || !deepEqual(obj1[key], obj2[key])) {\n return false;\n }\n }\n\n return true;\n}\n\nexport const INT32_MAX = 2 ** 31 - 1;\n","// TODO use State from RNModule\n\nexport const State = {\n UNDETERMINED: 0,\n FAILED: 1,\n BEGAN: 2,\n CANCELLED: 3,\n ACTIVE: 4,\n END: 5,\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a value\nexport type State = typeof State[keyof typeof State];\n","export const ActionType = {\n REANIMATED_WORKLET: 1,\n NATIVE_ANIMATED_EVENT: 2,\n JS_FUNCTION_OLD_API: 3,\n JS_FUNCTION_NEW_API: 4,\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a value\nexport type ActionType = typeof ActionType[keyof typeof ActionType];\n","import { isJestEnv } from '../utils';\nimport { GestureType } from './gestures/gesture';\nimport { GestureEvent, HandlerStateChangeEvent } from './gestureHandlerCommon';\n\nexport const handlerIDToTag: Record = {};\nconst gestures = new Map();\nconst oldHandlers = new Map();\nconst testIDs = new Map();\n\nexport function registerHandler(\n handlerTag: number,\n handler: GestureType,\n testID?: string\n) {\n gestures.set(handlerTag, handler);\n if (isJestEnv() && testID) {\n testIDs.set(testID, handlerTag);\n }\n}\n\nexport function registerOldGestureHandler(\n handlerTag: number,\n handler: GestureHandlerCallbacks\n) {\n oldHandlers.set(handlerTag, handler);\n}\n\nexport function unregisterHandler(handlerTag: number, testID?: string) {\n gestures.delete(handlerTag);\n if (isJestEnv() && testID) {\n testIDs.delete(testID);\n }\n}\n\nexport function findHandler(handlerTag: number) {\n return gestures.get(handlerTag);\n}\n\nexport function findOldGestureHandler(handlerTag: number) {\n return oldHandlers.get(handlerTag);\n}\n\nexport function findHandlerByTestID(testID: string) {\n const handlerTag = testIDs.get(testID);\n if (handlerTag !== undefined) {\n return findHandler(handlerTag) ?? null;\n }\n return null;\n}\n\nexport interface GestureHandlerCallbacks {\n onGestureEvent: (event: GestureEvent) => void;\n onGestureStateChange: (event: HandlerStateChangeEvent) => void;\n}\n","import * as React from 'react';\nimport { Platform, findNodeHandle as findNodeHandleRN } from 'react-native';\nimport { handlerIDToTag } from './handlersRegistry';\nimport { toArray } from '../utils';\nimport RNGestureHandlerModule from '../RNGestureHandlerModule';\nimport { ghQueueMicrotask } from '../ghQueueMicrotask';\n\nfunction isConfigParam(param: unknown, name: string) {\n // param !== Object(param) returns false if `param` is a function\n // or an object and returns true if `param` is null\n return (\n param !== undefined &&\n (param !== Object(param) ||\n !('__isNative' in (param as Record))) &&\n name !== 'onHandlerStateChange' &&\n name !== 'onGestureEvent'\n );\n}\n\nexport function filterConfig(\n props: Record,\n validProps: string[],\n defaults: Record = {}\n) {\n const filteredConfig = { ...defaults };\n for (const key of validProps) {\n let value = props[key];\n if (isConfigParam(value, key)) {\n if (key === 'simultaneousHandlers' || key === 'waitFor') {\n value = transformIntoHandlerTags(props[key]);\n } else if (key === 'hitSlop' && typeof value !== 'object') {\n value = { top: value, left: value, bottom: value, right: value };\n }\n filteredConfig[key] = value;\n }\n }\n return filteredConfig;\n}\nfunction transformIntoHandlerTags(handlerIDs: any) {\n handlerIDs = toArray(handlerIDs);\n\n if (Platform.OS === 'web') {\n return handlerIDs\n .map(({ current }: { current: any }) => current)\n .filter((handle: any) => handle);\n }\n // converts handler string IDs into their numeric tags\n return handlerIDs\n .map(\n (handlerID: any) =>\n handlerIDToTag[handlerID] || handlerID.current?.handlerTag || -1\n )\n .filter((handlerTag: number) => handlerTag > 0);\n}\n\nexport function findNodeHandle(\n node: null | number | React.Component | React.ComponentClass\n): null | number | React.Component | React.ComponentClass {\n if (Platform.OS === 'web') {\n return node;\n }\n return findNodeHandleRN(node);\n}\nlet flushOperationsScheduled = false;\n\nexport function scheduleFlushOperations() {\n if (!flushOperationsScheduled) {\n flushOperationsScheduled = true;\n ghQueueMicrotask(() => {\n RNGestureHandlerModule.flushOperations();\n\n flushOperationsScheduled = false;\n });\n }\n}\n","// We check for typeof requestAnimationFrame because of SSR\n// Functions are bound to null to avoid issues with scope when using Metro inline requires.\nexport const ghQueueMicrotask =\n typeof setImmediate === 'function'\n ? setImmediate.bind(null)\n : typeof requestAnimationFrame === 'function'\n ? requestAnimationFrame.bind(null)\n : queueMicrotask.bind(null);\n","let handlerTag = 1;\n\nexport function getNextHandlerTag(): number {\n return handlerTag++;\n}\n","// Previous types exported gesture handlers as classes which creates an interface and variable, both named the same as class.\n// Without those types, we'd introduce breaking change, forcing users to prefix every handler type specification with typeof\n// e.g. React.createRef -> React.createRef.\n// See https://www.typescriptlang.org/docs/handbook/classes.html#constructor-functions for reference.\nimport * as React from 'react';\n\nimport { State } from '../State';\nimport { TouchEventType } from '../TouchEventType';\nimport { ValueOf } from '../typeUtils';\nimport { PointerType } from '../PointerType';\n\nconst commonProps = [\n 'id',\n 'enabled',\n 'shouldCancelWhenOutside',\n 'hitSlop',\n 'cancelsTouchesInView',\n 'userSelect',\n 'activeCursor',\n 'mouseButton',\n 'enableContextMenu',\n 'touchAction',\n] as const;\n\nconst componentInteractionProps = [\n 'waitFor',\n 'simultaneousHandlers',\n 'blocksHandlers',\n] as const;\n\nexport const baseGestureHandlerProps = [\n ...commonProps,\n ...componentInteractionProps,\n 'onBegan',\n 'onFailed',\n 'onCancelled',\n 'onActivated',\n 'onEnded',\n 'onGestureEvent',\n 'onHandlerStateChange',\n] as const;\n\nexport const baseGestureHandlerWithDetectorProps = [\n ...commonProps,\n 'needsPointerData',\n 'manualActivation',\n];\n\nexport interface GestureEventPayload {\n handlerTag: number;\n numberOfPointers: number;\n state: ValueOf;\n pointerType: PointerType;\n}\nexport interface HandlerStateChangeEventPayload extends GestureEventPayload {\n oldState: ValueOf;\n}\n\nexport type HitSlop =\n | number\n | null\n | undefined\n | Partial<\n Record<\n 'left' | 'right' | 'top' | 'bottom' | 'vertical' | 'horizontal',\n number\n >\n >\n | Record<'width' | 'left', number>\n | Record<'width' | 'right', number>\n | Record<'height' | 'top', number>\n | Record<'height' | 'bottom', number>;\n\nexport type UserSelect = 'none' | 'auto' | 'text';\nexport type ActiveCursor =\n | 'auto'\n | 'default'\n | 'none'\n | 'context-menu'\n | 'help'\n | 'pointer'\n | 'progress'\n | 'wait'\n | 'cell'\n | 'crosshair'\n | 'text'\n | 'vertical-text'\n | 'alias'\n | 'copy'\n | 'move'\n | 'no-drop'\n | 'not-allowed'\n | 'grab'\n | 'grabbing'\n | 'e-resize'\n | 'n-resize'\n | 'ne-resize'\n | 'nw-resize'\n | 's-resize'\n | 'se-resize'\n | 'sw-resize'\n | 'w-resize'\n | 'ew-resize'\n | 'ns-resize'\n | 'nesw-resize'\n | 'nwse-resize'\n | 'col-resize'\n | 'row-resize'\n | 'all-scroll'\n | 'zoom-in'\n | 'zoom-out';\n\nexport enum MouseButton {\n LEFT = 1,\n RIGHT = 2,\n MIDDLE = 4,\n BUTTON_4 = 8,\n BUTTON_5 = 16,\n ALL = 31,\n}\n\nexport type TouchAction =\n | 'auto'\n | 'none'\n | 'pan-x'\n | 'pan-left'\n | 'pan-right'\n | 'pan-y'\n | 'pan-up'\n | 'pan-down'\n | 'pinch-zoom'\n | 'manipulation'\n | 'inherit'\n | 'initial'\n | 'revert'\n | 'revert-layer'\n | 'unset';\n\n// TODO(TS) events in handlers\n\nexport interface GestureEvent> {\n nativeEvent: Readonly;\n}\nexport interface HandlerStateChangeEvent<\n ExtraEventPayloadT = Record\n> {\n nativeEvent: Readonly;\n}\n\nexport type TouchData = {\n id: number;\n x: number;\n y: number;\n absoluteX: number;\n absoluteY: number;\n};\n\nexport type GestureTouchEvent = {\n handlerTag: number;\n numberOfTouches: number;\n state: ValueOf;\n eventType: TouchEventType;\n allTouches: TouchData[];\n changedTouches: TouchData[];\n pointerType: PointerType;\n};\n\nexport type GestureUpdateEvent> =\n GestureEventPayload & GestureEventPayloadT;\n\nexport type GestureStateChangeEvent<\n GestureStateChangeEventPayloadT = Record\n> = HandlerStateChangeEventPayload & GestureStateChangeEventPayloadT;\n\nexport type CommonGestureConfig = {\n enabled?: boolean;\n shouldCancelWhenOutside?: boolean;\n hitSlop?: HitSlop;\n userSelect?: UserSelect;\n activeCursor?: ActiveCursor;\n mouseButton?: MouseButton;\n enableContextMenu?: boolean;\n touchAction?: TouchAction;\n};\n\n// Events payloads are types instead of interfaces due to TS limitation.\n// See https://github.com/microsoft/TypeScript/issues/15300 for more info.\nexport type BaseGestureHandlerProps<\n ExtraEventPayloadT extends Record = Record\n> = CommonGestureConfig & {\n id?: string;\n waitFor?: React.Ref | React.Ref[];\n simultaneousHandlers?: React.Ref | React.Ref[];\n blocksHandlers?: React.Ref | React.Ref[];\n testID?: string;\n cancelsTouchesInView?: boolean;\n // TODO(TS) - fix event types\n onBegan?: (event: HandlerStateChangeEvent) => void;\n onFailed?: (event: HandlerStateChangeEvent) => void;\n onCancelled?: (event: HandlerStateChangeEvent) => void;\n onActivated?: (event: HandlerStateChangeEvent) => void;\n onEnded?: (event: HandlerStateChangeEvent) => void;\n\n // TODO(TS) consider using NativeSyntheticEvent\n onGestureEvent?: (event: GestureEvent) => void;\n onHandlerStateChange?: (\n event: HandlerStateChangeEvent\n ) => void;\n // Implicit `children` prop has been removed in @types/react^18.0.0\n children?: React.ReactNode;\n};\n","import { HostComponent } from 'react-native';\nimport type { RawButtonProps } from './GestureButtonsProps';\nimport RNGestureHandlerButtonNativeComponent from '../specs/RNGestureHandlerButtonNativeComponent';\n\nexport default RNGestureHandlerButtonNativeComponent as HostComponent;\n","import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\nimport type {\n Int32,\n WithDefault,\n Float,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport type { ViewProps, ColorValue } from 'react-native';\n\ninterface NativeProps extends ViewProps {\n exclusive?: WithDefault;\n foreground?: boolean;\n borderless?: boolean;\n enabled?: WithDefault;\n rippleColor?: ColorValue;\n rippleRadius?: Int32;\n touchSoundDisabled?: WithDefault;\n borderWidth?: Float;\n borderColor?: ColorValue;\n borderStyle?: WithDefault;\n}\n\nexport default codegenNativeComponent('RNGestureHandlerButton');\n","const RIGHT = 1;\nconst LEFT = 2;\nconst UP = 4;\nconst DOWN = 8;\n\n// Public interface\nexport const Directions = {\n RIGHT: RIGHT,\n LEFT: LEFT,\n UP: UP,\n DOWN: DOWN,\n} as const;\n\n// Internal interface\nexport const DiagonalDirections = {\n UP_RIGHT: UP | RIGHT,\n DOWN_RIGHT: DOWN | RIGHT,\n UP_LEFT: UP | LEFT,\n DOWN_LEFT: DOWN | LEFT,\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; it can be used as a type and as a value\nexport type Directions = typeof Directions[keyof typeof Directions];\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type DiagonalDirections =\n typeof DiagonalDirections[keyof typeof DiagonalDirections];\n","import * as React from 'react';\nimport {\n PropsWithChildren,\n ForwardedRef,\n RefAttributes,\n ReactElement,\n} from 'react';\nimport {\n ScrollView as RNScrollView,\n ScrollViewProps as RNScrollViewProps,\n Switch as RNSwitch,\n SwitchProps as RNSwitchProps,\n TextInput as RNTextInput,\n TextInputProps as RNTextInputProps,\n DrawerLayoutAndroid as RNDrawerLayoutAndroid,\n DrawerLayoutAndroidProps as RNDrawerLayoutAndroidProps,\n FlatList as RNFlatList,\n FlatListProps as RNFlatListProps,\n RefreshControl as RNRefreshControl,\n} from 'react-native';\n\nimport createNativeWrapper from '../handlers/createNativeWrapper';\n\nimport {\n NativeViewGestureHandlerProps,\n nativeViewProps,\n} from '../handlers/NativeViewGestureHandler';\n\nimport { toArray } from '../utils';\n\nexport const RefreshControl = createNativeWrapper(RNRefreshControl, {\n disallowInterruption: true,\n shouldCancelWhenOutside: false,\n});\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type RefreshControl = typeof RefreshControl & RNRefreshControl;\n\nconst GHScrollView = createNativeWrapper>(\n RNScrollView,\n {\n disallowInterruption: true,\n shouldCancelWhenOutside: false,\n }\n);\nexport const ScrollView = React.forwardRef<\n RNScrollView,\n RNScrollViewProps & NativeViewGestureHandlerProps\n>((props, ref) => {\n const refreshControlGestureRef = React.useRef(null);\n const { refreshControl, waitFor, ...rest } = props;\n\n return (\n \n );\n});\n// Backward type compatibility with https://github.com/software-mansion/react-native-gesture-handler/blob/db78d3ca7d48e8ba57482d3fe9b0a15aa79d9932/react-native-gesture-handler.d.ts#L440-L457\n// include methods of wrapped components by creating an intersection type with the RN component instead of duplicating them.\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type ScrollView = typeof GHScrollView & RNScrollView;\n\nexport const Switch = createNativeWrapper(RNSwitch, {\n shouldCancelWhenOutside: false,\n shouldActivateOnStart: true,\n disallowInterruption: true,\n});\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type Switch = typeof Switch & RNSwitch;\n\nexport const TextInput = createNativeWrapper(RNTextInput);\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type TextInput = typeof TextInput & RNTextInput;\n\nexport const DrawerLayoutAndroid = createNativeWrapper<\n PropsWithChildren\n>(RNDrawerLayoutAndroid, { disallowInterruption: true });\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type DrawerLayoutAndroid = typeof DrawerLayoutAndroid &\n RNDrawerLayoutAndroid;\n\nexport const FlatList = React.forwardRef((props, ref) => {\n const refreshControlGestureRef = React.useRef(null);\n\n const { waitFor, refreshControl, ...rest } = props;\n\n const flatListProps = {};\n const scrollViewProps = {};\n for (const [propName, value] of Object.entries(rest)) {\n // https://github.com/microsoft/TypeScript/issues/26255\n if ((nativeViewProps as readonly string[]).includes(propName)) {\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n scrollViewProps[propName] = value;\n } else {\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n flatListProps[propName] = value;\n }\n }\n\n return (\n // @ts-ignore - this function cannot have generic type so we have to ignore this error\n (\n \n )}\n // @ts-ignore we don't pass `refreshing` prop as we only want to override the ref\n refreshControl={\n refreshControl\n ? React.cloneElement(refreshControl, {\n // @ts-ignore for reasons unknown to me, `ref` doesn't exist on the type inferred by TS\n ref: refreshControlGestureRef,\n })\n : undefined\n }\n />\n );\n}) as (\n props: PropsWithChildren<\n Omit, 'renderScrollComponent'> &\n RefAttributes> &\n NativeViewGestureHandlerProps\n >,\n ref: ForwardedRef>\n) => ReactElement | null;\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type FlatList = typeof FlatList & RNFlatList;\n","import type { FlingGestureHandlerEventPayload } from './GestureHandlerEventPayload';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\n\nexport const flingGestureHandlerProps = [\n 'numberOfPointers',\n 'direction',\n] as const;\n\nexport interface FlingGestureConfig {\n /**\n * Expressed allowed direction of movement. It's possible to pass one or many\n * directions in one parameter:\n *\n * ```js\n * direction={Directions.RIGHT | Directions.LEFT}\n * ```\n *\n * or\n *\n * ```js\n * direction={Directions.DOWN}\n * ```\n */\n direction?: number;\n\n /**\n * Determine exact number of points required to handle the fling gesture.\n */\n numberOfPointers?: number;\n}\n\nexport interface FlingGestureHandlerProps\n extends BaseGestureHandlerProps,\n FlingGestureConfig {}\n\nexport const flingHandlerName = 'FlingGestureHandler';\n\nexport type FlingGestureHandler = typeof FlingGestureHandler;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const FlingGestureHandler = createHandler<\n FlingGestureHandlerProps,\n FlingGestureHandlerEventPayload\n>({\n name: flingHandlerName,\n allowedProps: [\n ...baseGestureHandlerProps,\n ...flingGestureHandlerProps,\n ] as const,\n config: {},\n});\n","import React, { PropsWithChildren } from 'react';\nimport { tagMessage } from '../utils';\nimport PlatformConstants from '../PlatformConstants';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\nimport type { ForceTouchGestureHandlerEventPayload } from './GestureHandlerEventPayload';\n\nexport const forceTouchGestureHandlerProps = [\n 'minForce',\n 'maxForce',\n 'feedbackOnActivation',\n] as const;\n\n// implicit `children` prop has been removed in @types/react^18.0.0\nclass ForceTouchFallback extends React.Component> {\n static forceTouchAvailable = false;\n componentDidMount() {\n console.warn(\n tagMessage(\n 'ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'\n )\n );\n }\n render() {\n return this.props.children;\n }\n}\n\nexport interface ForceTouchGestureConfig {\n /**\n *\n * A minimal pressure that is required before handler can activate. Should be a\n * value from range `[0.0, 1.0]`. Default is `0.2`.\n */\n minForce?: number;\n\n /**\n * A maximal pressure that could be applied for handler. If the pressure is\n * greater, handler fails. Should be a value from range `[0.0, 1.0]`.\n */\n maxForce?: number;\n\n /**\n * Boolean value defining if haptic feedback has to be performed on\n * activation.\n */\n feedbackOnActivation?: boolean;\n}\n\nexport interface ForceTouchGestureHandlerProps\n extends BaseGestureHandlerProps,\n ForceTouchGestureConfig {}\n\nexport type ForceTouchGestureHandler = typeof ForceTouchGestureHandler & {\n forceTouchAvailable: boolean;\n};\n\nexport const forceTouchHandlerName = 'ForceTouchGestureHandler';\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const ForceTouchGestureHandler = PlatformConstants?.forceTouchAvailable\n ? createHandler<\n ForceTouchGestureHandlerProps,\n ForceTouchGestureHandlerEventPayload\n >({\n name: forceTouchHandlerName,\n allowedProps: [\n ...baseGestureHandlerProps,\n ...forceTouchGestureHandlerProps,\n ] as const,\n config: {},\n })\n : ForceTouchFallback;\n\n(ForceTouchGestureHandler as ForceTouchGestureHandler).forceTouchAvailable =\n PlatformConstants?.forceTouchAvailable || false;\n","import { NativeModules, Platform } from 'react-native';\n\ntype PlatformConstants = {\n forceTouchAvailable: boolean;\n};\n\nexport default (NativeModules?.PlatformConstants ??\n Platform.constants) as PlatformConstants;\n","import { FlingGesture } from './flingGesture';\nimport { ForceTouchGesture } from './forceTouchGesture';\nimport { Gesture } from './gesture';\nimport {\n ComposedGesture,\n ExclusiveGesture,\n SimultaneousGesture,\n} from './gestureComposition';\nimport { LongPressGesture } from './longPressGesture';\nimport { PanGesture } from './panGesture';\nimport { PinchGesture } from './pinchGesture';\nimport { RotationGesture } from './rotationGesture';\nimport { TapGesture } from './tapGesture';\nimport { NativeGesture } from './nativeGesture';\nimport { ManualGesture } from './manualGesture';\nimport { HoverGesture } from './hoverGesture';\n\n/**\n * `Gesture` is the object that allows you to create and compose gestures.\n *\n * ### Remarks\n * - Consider wrapping your gesture configurations with `useMemo`, as it will reduce the amount of work Gesture Handler has to do under the hood when updating gestures.\n *\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/gesture\n */\nexport const GestureObjects = {\n /**\n * A discrete gesture that recognizes one or many taps.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture\n */\n Tap: () => {\n return new TapGesture();\n },\n\n /**\n * A continuous gesture that can recognize a panning (dragging) gesture and track its movement.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture\n */\n Pan: () => {\n return new PanGesture();\n },\n\n /**\n * A continuous gesture that recognizes pinch gesture. It allows for tracking the distance between two fingers and use that information to scale or zoom your content.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pinch-gesture\n */\n Pinch: () => {\n return new PinchGesture();\n },\n\n /**\n * A continuous gesture that can recognize rotation and track its movement.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/rotation-gesture\n */\n Rotation: () => {\n return new RotationGesture();\n },\n\n /**\n * A discrete gesture that activates when the movement is sufficiently fast.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture\n */\n Fling: () => {\n return new FlingGesture();\n },\n\n /**\n * A discrete gesture that activates when the corresponding view is pressed for a sufficiently long time.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture\n */\n LongPress: () => {\n return new LongPressGesture();\n },\n\n /**\n * #### iOS only\n * A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/force-touch-gesture\n */\n ForceTouch: () => {\n return new ForceTouchGesture();\n },\n\n /**\n * A gesture that allows other touch handling components to participate in RNGH's gesture system.\n * When used, the other component should be the direct child of a `GestureDetector`.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/native-gesture\n */\n Native: () => {\n return new NativeGesture();\n },\n\n /**\n * A plain gesture that has no specific activation criteria nor event data set.\n * Its state has to be controlled manually using a state manager.\n * It will not fail when all the pointers are lifted from the screen.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/manual-gesture\n */\n Manual: () => {\n return new ManualGesture();\n },\n\n /**\n * A continuous gesture that can recognize hovering above the view it's attached to.\n * The hover effect may be activated by moving a mouse or a stylus over the view.\n *\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/hover-gesture\n */\n Hover: () => {\n return new HoverGesture();\n },\n\n /**\n * Builds a composed gesture consisting of gestures provided as parameters.\n * The first one that becomes active cancels the rest of gestures.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#race\n */\n Race: (...gestures: Gesture[]) => {\n return new ComposedGesture(...gestures);\n },\n\n /**\n * Builds a composed gesture that allows all base gestures to run simultaneously.\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#simultaneous\n */\n Simultaneous(...gestures: Gesture[]) {\n return new SimultaneousGesture(...gestures);\n },\n\n /**\n * Builds a composed gesture where only one of the provided gestures can become active.\n * Priority is decided through the order of gestures: the first one has higher priority\n * than the second one, second one has higher priority than the third one, and so on.\n * For example, to make a gesture that recognizes both single and double tap you need\n * to call Exclusive(doubleTap, singleTap).\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#exclusive\n */\n Exclusive(...gestures: Gesture[]) {\n return new ExclusiveGesture(...gestures);\n },\n};\n","import { BaseGestureConfig, BaseGesture } from './gesture';\nimport { TapGestureConfig } from '../TapGestureHandler';\nimport type { TapGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\n\nexport class TapGesture extends BaseGesture {\n public config: BaseGestureConfig & TapGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'TapGestureHandler';\n this.shouldCancelWhenOutside(true);\n }\n\n /**\n * Minimum number of pointers (fingers) required to be placed before the gesture activates.\n * Should be a positive integer. The default value is 1.\n * @param minPointers\n */\n minPointers(minPointers: number) {\n this.config.minPointers = minPointers;\n return this;\n }\n\n /**\n * Number of tap gestures required to activate the gesture.\n * The default value is 1.\n * @param count\n */\n numberOfTaps(count: number) {\n this.config.numberOfTaps = count;\n return this;\n }\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is allowed to travel during a tap gesture.\n * @param maxDist\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture#maxdistancevalue-number\n */\n maxDistance(maxDist: number) {\n this.config.maxDist = maxDist;\n return this;\n }\n\n /**\n * Maximum time, expressed in milliseconds, that defines how fast a finger must be released after a touch.\n * The default value is 500.\n * @param duration\n */\n maxDuration(duration: number) {\n this.config.maxDurationMs = duration;\n return this;\n }\n\n /**\n * Maximum time, expressed in milliseconds, that can pass before the next tap — if many taps are required.\n * The default value is 500.\n * @param delay\n */\n maxDelay(delay: number) {\n this.config.maxDelayMs = delay;\n return this;\n }\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is allowed to travel along the X axis during a tap gesture.\n * @param delta\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture#maxdeltaxvalue-number\n */\n maxDeltaX(delta: number) {\n this.config.maxDeltaX = delta;\n return this;\n }\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is allowed to travel along the Y axis during a tap gesture.\n * @param delta\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture#maxdeltayvalue-number\n */\n maxDeltaY(delta: number) {\n this.config.maxDeltaY = delta;\n return this;\n }\n}\n\nexport type TapGestureType = InstanceType;\n","import {\n HitSlop,\n CommonGestureConfig,\n GestureTouchEvent,\n GestureStateChangeEvent,\n GestureUpdateEvent,\n ActiveCursor,\n MouseButton,\n} from '../gestureHandlerCommon';\nimport { getNextHandlerTag } from '../getNextHandlerTag';\nimport { GestureStateManagerType } from './gestureStateManager';\nimport type {\n FlingGestureHandlerEventPayload,\n ForceTouchGestureHandlerEventPayload,\n LongPressGestureHandlerEventPayload,\n PanGestureHandlerEventPayload,\n PinchGestureHandlerEventPayload,\n RotationGestureHandlerEventPayload,\n TapGestureHandlerEventPayload,\n NativeViewGestureHandlerPayload,\n HoverGestureHandlerEventPayload,\n} from '../GestureHandlerEventPayload';\nimport { isRemoteDebuggingEnabled } from '../../utils';\n\nexport type GestureType =\n | BaseGesture>\n | BaseGesture>\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture\n | BaseGesture;\n\nexport type GestureRef =\n | number\n | GestureType\n | React.RefObject\n | React.RefObject; // Allow adding a ref to a gesture handler\nexport interface BaseGestureConfig\n extends CommonGestureConfig,\n Record {\n ref?: React.MutableRefObject;\n requireToFail?: GestureRef[];\n simultaneousWith?: GestureRef[];\n blocksHandlers?: GestureRef[];\n needsPointerData?: boolean;\n manualActivation?: boolean;\n runOnJS?: boolean;\n testId?: string;\n cancelsTouchesInView?: boolean;\n}\n\ntype TouchEventHandlerType = (\n event: GestureTouchEvent,\n stateManager: GestureStateManagerType\n) => void;\n\nexport type HandlerCallbacks> = {\n gestureId: number;\n handlerTag: number;\n onBegin?: (event: GestureStateChangeEvent) => void;\n onStart?: (event: GestureStateChangeEvent) => void;\n onEnd?: (\n event: GestureStateChangeEvent,\n success: boolean\n ) => void;\n onFinalize?: (\n event: GestureStateChangeEvent,\n success: boolean\n ) => void;\n onUpdate?: (event: GestureUpdateEvent) => void;\n onChange?: (event: any) => void;\n onTouchesDown?: TouchEventHandlerType;\n onTouchesMove?: TouchEventHandlerType;\n onTouchesUp?: TouchEventHandlerType;\n onTouchesCancelled?: TouchEventHandlerType;\n changeEventCalculator?: (\n current: GestureUpdateEvent>,\n previous?: GestureUpdateEvent>\n ) => GestureUpdateEvent>;\n isWorklet: boolean[];\n};\n\nexport const CALLBACK_TYPE = {\n UNDEFINED: 0,\n BEGAN: 1,\n START: 2,\n UPDATE: 3,\n CHANGE: 4,\n END: 5,\n FINALIZE: 6,\n TOUCHES_DOWN: 7,\n TOUCHES_MOVE: 8,\n TOUCHES_UP: 9,\n TOUCHES_CANCELLED: 10,\n} as const;\n\n// Allow using CALLBACK_TYPE as object and type\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type CALLBACK_TYPE = typeof CALLBACK_TYPE[keyof typeof CALLBACK_TYPE];\n\nexport abstract class Gesture {\n /**\n * Return array of gestures, providing the same interface for creating and updating\n * handlers, no matter which object was used to create gesture instance.\n */\n abstract toGestureArray(): GestureType[];\n\n /**\n * Assign handlerTag to the gesture instance and set ref.current (if a ref is set)\n */\n abstract initialize(): void;\n\n /**\n * Make sure that values of properties defining relations are arrays. Do any necessary\n * preprocessing required to configure relations between handlers. Called just before\n * updating the handler on the native side.\n */\n abstract prepare(): void;\n}\n\nlet nextGestureId = 0;\nexport abstract class BaseGesture<\n EventPayloadT extends Record\n> extends Gesture {\n private gestureId = -1;\n public handlerTag = -1;\n public handlerName = '';\n public config: BaseGestureConfig = {};\n public handlers: HandlerCallbacks = {\n gestureId: -1,\n handlerTag: -1,\n isWorklet: [],\n };\n\n constructor() {\n super();\n\n // Used to check whether the gesture config has been updated when wrapping it\n // with `useMemo`. Since every config will have a unique id, when the dependencies\n // don't change, the config won't be recreated and the id will stay the same.\n // If the id is different, it means that the config has changed and the gesture\n // needs to be updated.\n this.gestureId = nextGestureId++;\n this.handlers.gestureId = this.gestureId;\n }\n\n private addDependency(\n key: 'simultaneousWith' | 'requireToFail' | 'blocksHandlers',\n gesture: Exclude\n ) {\n const value = this.config[key];\n this.config[key] = value\n ? Array().concat(value, gesture)\n : [gesture];\n }\n\n /**\n * Sets a `ref` to the gesture object, allowing for interoperability with the old API.\n * @param ref\n */\n withRef(ref: React.MutableRefObject) {\n this.config.ref = ref;\n return this;\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-types\n protected isWorklet(callback: Function) {\n // @ts-ignore if callback is a worklet, the property will be available, if not then the check will return false\n return callback.__workletHash !== undefined;\n }\n\n /**\n * Set the callback that is being called when given gesture handler starts receiving touches.\n * At the moment of this callback the handler is in `BEGAN` state and we don't know yet if it will recognize the gesture at all.\n * @param callback\n */\n onBegin(callback: (event: GestureStateChangeEvent) => void) {\n this.handlers.onBegin = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.BEGAN] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * Set the callback that is being called when the gesture is recognized by the handler and it transitions to the `ACTIVE` state.\n * @param callback\n */\n onStart(callback: (event: GestureStateChangeEvent) => void) {\n this.handlers.onStart = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.START] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * Set the callback that is being called when the gesture that was recognized by the handler finishes and handler reaches `END` state.\n * It will be called only if the handler was previously in the `ACTIVE` state.\n * @param callback\n */\n onEnd(\n callback: (\n event: GestureStateChangeEvent,\n success: boolean\n ) => void\n ) {\n this.handlers.onEnd = callback;\n // @ts-ignore if callback is a worklet, the property will be available, if not then the check will return false\n this.handlers.isWorklet[CALLBACK_TYPE.END] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * Set the callback that is being called when the handler finalizes handling gesture - the gesture was recognized and has finished or it failed to recognize.\n * @param callback\n */\n onFinalize(\n callback: (\n event: GestureStateChangeEvent,\n success: boolean\n ) => void\n ) {\n this.handlers.onFinalize = callback;\n // @ts-ignore if callback is a worklet, the property will be available, if not then the check will return false\n this.handlers.isWorklet[CALLBACK_TYPE.FINALIZE] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * Set the `onTouchesDown` callback which is called every time a pointer is placed on the screen.\n * @param callback\n */\n onTouchesDown(callback: TouchEventHandlerType) {\n this.config.needsPointerData = true;\n this.handlers.onTouchesDown = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.TOUCHES_DOWN] =\n this.isWorklet(callback);\n\n return this;\n }\n\n /**\n * Set the `onTouchesMove` callback which is called every time a pointer is moved on the screen.\n * @param callback\n */\n onTouchesMove(callback: TouchEventHandlerType) {\n this.config.needsPointerData = true;\n this.handlers.onTouchesMove = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.TOUCHES_MOVE] =\n this.isWorklet(callback);\n\n return this;\n }\n\n /**\n * Set the `onTouchesUp` callback which is called every time a pointer is lifted from the screen.\n * @param callback\n */\n onTouchesUp(callback: TouchEventHandlerType) {\n this.config.needsPointerData = true;\n this.handlers.onTouchesUp = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.TOUCHES_UP] =\n this.isWorklet(callback);\n\n return this;\n }\n\n /**\n * Set the `onTouchesCancelled` callback which is called every time a pointer stops being tracked, for example when the gesture finishes.\n * @param callback\n */\n onTouchesCancelled(callback: TouchEventHandlerType) {\n this.config.needsPointerData = true;\n this.handlers.onTouchesCancelled = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.TOUCHES_CANCELLED] =\n this.isWorklet(callback);\n\n return this;\n }\n\n /**\n * Indicates whether the given handler should be analyzing stream of touch events or not.\n * @param enabled\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#enabledvalue-boolean\n */\n enabled(enabled: boolean) {\n this.config.enabled = enabled;\n return this;\n }\n\n /**\n * When true the handler will cancel or fail recognition (depending on its current state) whenever the finger leaves the area of the connected view.\n * @param value\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#shouldcancelwhenoutsidevalue-boolean\n */\n shouldCancelWhenOutside(value: boolean) {\n this.config.shouldCancelWhenOutside = value;\n return this;\n }\n\n /**\n * This parameter enables control over what part of the connected view area can be used to begin recognizing the gesture.\n * When a negative number is provided the bounds of the view will reduce the area by the given number of points in each of the sides evenly.\n * @param hitSlop\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#hitslopsettings\n */\n hitSlop(hitSlop: HitSlop) {\n this.config.hitSlop = hitSlop;\n return this;\n }\n\n /**\n * #### Web only\n * This parameter allows to specify which `cursor` should be used when gesture activates.\n * Supports all CSS cursor values (e.g. `\"grab\"`, `\"zoom-in\"`). Default value is set to `\"auto\"`.\n * @param activeCursor\n */\n activeCursor(activeCursor: ActiveCursor) {\n this.config.activeCursor = activeCursor;\n return this;\n }\n\n /**\n * #### Web & Android only\n * Allows users to choose which mouse button should handler respond to.\n * Arguments can be combined using `|` operator, e.g. `mouseButton(MouseButton.LEFT | MouseButton.RIGHT)`.\n * Default value is set to `MouseButton.LEFT`.\n * @param mouseButton\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#mousebuttonvalue-mousebutton-web--android-only\n */\n mouseButton(mouseButton: MouseButton) {\n this.config.mouseButton = mouseButton;\n return this;\n }\n\n /**\n * When `react-native-reanimated` is installed, the callbacks passed to the gestures are automatically workletized and run on the UI thread when called.\n * This option allows for changing this behavior: when `true`, all the callbacks will be run on the JS thread instead of the UI thread, regardless of whether they are worklets or not.\n * Defaults to `false`.\n * @param runOnJS\n */\n runOnJS(runOnJS: boolean) {\n this.config.runOnJS = runOnJS;\n return this;\n }\n\n /**\n * Allows gestures across different components to be recognized simultaneously.\n * @param gestures\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#simultaneouswithexternalgesture\n */\n simultaneousWithExternalGesture(...gestures: Exclude[]) {\n for (const gesture of gestures) {\n this.addDependency('simultaneousWith', gesture);\n }\n return this;\n }\n\n /**\n * Allows to delay activation of the handler until all handlers passed as arguments to this method fail (or don't begin at all).\n * @param gestures\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#requireexternalgesturetofail\n */\n requireExternalGestureToFail(...gestures: Exclude[]) {\n for (const gesture of gestures) {\n this.addDependency('requireToFail', gesture);\n }\n return this;\n }\n\n /**\n * Works similarily to `requireExternalGestureToFail` but the direction of the relation is reversed - instead of being one-to-many relation, it's many-to-one.\n * @param gestures\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#blocksexternalgesture\n */\n blocksExternalGesture(...gestures: Exclude[]) {\n for (const gesture of gestures) {\n this.addDependency('blocksHandlers', gesture);\n }\n return this;\n }\n\n /**\n * Sets a `testID` property for gesture object, allowing for querying for it in tests.\n * @param id\n */\n withTestId(id: string) {\n this.config.testId = id;\n return this;\n }\n\n /**\n * #### iOS only\n * When `true`, the handler will cancel touches for native UI components (`UIButton`, `UISwitch`, etc) it's attached to when it becomes `ACTIVE`.\n * Default value is `true`.\n * @param value\n */\n cancelsTouchesInView(value: boolean) {\n this.config.cancelsTouchesInView = value;\n return this;\n }\n\n initialize() {\n this.handlerTag = getNextHandlerTag();\n\n this.handlers = { ...this.handlers, handlerTag: this.handlerTag };\n\n if (this.config.ref) {\n this.config.ref.current = this as GestureType;\n }\n }\n\n toGestureArray(): GestureType[] {\n return [this as GestureType];\n }\n\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n prepare() {}\n\n get shouldUseReanimated(): boolean {\n // Use Reanimated when runOnJS isn't set explicitly,\n // all defined callbacks are worklets\n // and remote debugging is disabled\n return (\n this.config.runOnJS !== true &&\n !this.handlers.isWorklet.includes(false) &&\n !isRemoteDebuggingEnabled()\n );\n }\n}\n\nexport abstract class ContinousBaseGesture<\n EventPayloadT extends Record,\n EventChangePayloadT extends Record\n> extends BaseGesture {\n /**\n * Set the callback that is being called every time the gesture receives an update while it's active.\n * @param callback\n */\n onUpdate(callback: (event: GestureUpdateEvent) => void) {\n this.handlers.onUpdate = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.UPDATE] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * Set the callback that is being called every time the gesture receives an update while it's active.\n * This callback will receive information about change in value in relation to the last received event.\n * @param callback\n */\n onChange(\n callback: (\n event: GestureUpdateEvent\n ) => void\n ) {\n this.handlers.onChange = callback;\n this.handlers.isWorklet[CALLBACK_TYPE.CHANGE] = this.isWorklet(callback);\n return this;\n }\n\n /**\n * When `true` the handler will not activate by itself even if its activation criteria are met.\n * Instead you can manipulate its state using state manager.\n * @param manualActivation\n */\n manualActivation(manualActivation: boolean) {\n this.config.manualActivation = manualActivation;\n return this;\n }\n}\n","import { BaseGestureConfig, ContinousBaseGesture } from './gesture';\nimport { GestureUpdateEvent } from '../gestureHandlerCommon';\nimport { PanGestureConfig } from '../PanGestureHandler';\nimport type { PanGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\n\nexport type PanGestureChangeEventPayload = {\n changeX: number;\n changeY: number;\n};\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent,\n previous?: GestureUpdateEvent\n) {\n 'worklet';\n let changePayload: PanGestureChangeEventPayload;\n if (previous === undefined) {\n changePayload = {\n changeX: current.translationX,\n changeY: current.translationY,\n };\n } else {\n changePayload = {\n changeX: current.translationX - previous.translationX,\n changeY: current.translationY - previous.translationY,\n };\n }\n\n return { ...current, ...changePayload };\n}\n\nexport class PanGesture extends ContinousBaseGesture<\n PanGestureHandlerEventPayload,\n PanGestureChangeEventPayload\n> {\n public config: BaseGestureConfig & PanGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'PanGestureHandler';\n }\n\n /**\n * Range along Y axis (in points) where fingers travels without activation of gesture.\n * @param offset\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#activeoffsetyvalue-number--number\n */\n activeOffsetY(\n offset: number | [activeOffsetYStart: number, activeOffsetYEnd: number]\n ) {\n if (Array.isArray(offset)) {\n this.config.activeOffsetYStart = offset[0];\n this.config.activeOffsetYEnd = offset[1];\n } else if (offset < 0) {\n this.config.activeOffsetYStart = offset;\n } else {\n this.config.activeOffsetYEnd = offset;\n }\n return this;\n }\n\n /**\n * Range along X axis (in points) where fingers travels without activation of gesture.\n * @param offset\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#activeoffsetxvalue-number--number\n */\n activeOffsetX(\n offset: number | [activeOffsetXStart: number, activeOffsetXEnd: number]\n ) {\n if (Array.isArray(offset)) {\n this.config.activeOffsetXStart = offset[0];\n this.config.activeOffsetXEnd = offset[1];\n } else if (offset < 0) {\n this.config.activeOffsetXStart = offset;\n } else {\n this.config.activeOffsetXEnd = offset;\n }\n return this;\n }\n\n /**\n * When the finger moves outside this range (in points) along Y axis and gesture hasn't yet activated it will fail recognizing the gesture.\n * @param offset\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#failoffsetyvalue-number--number\n */\n failOffsetY(\n offset: number | [failOffsetYStart: number, failOffsetYEnd: number]\n ) {\n if (Array.isArray(offset)) {\n this.config.failOffsetYStart = offset[0];\n this.config.failOffsetYEnd = offset[1];\n } else if (offset < 0) {\n this.config.failOffsetYStart = offset;\n } else {\n this.config.failOffsetYEnd = offset;\n }\n return this;\n }\n\n /**\n * When the finger moves outside this range (in points) along X axis and gesture hasn't yet activated it will fail recognizing the gesture.\n * @param offset\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture#failoffsetxvalue-number--number\n */\n failOffsetX(\n offset: number | [failOffsetXStart: number, failOffsetXEnd: number]\n ) {\n if (Array.isArray(offset)) {\n this.config.failOffsetXStart = offset[0];\n this.config.failOffsetXEnd = offset[1];\n } else if (offset < 0) {\n this.config.failOffsetXStart = offset;\n } else {\n this.config.failOffsetXEnd = offset;\n }\n return this;\n }\n\n /**\n * A number of fingers that is required to be placed before gesture can activate. Should be a higher or equal to 0 integer.\n * @param minPointers\n */\n minPointers(minPointers: number) {\n this.config.minPointers = minPointers;\n return this;\n }\n\n /**\n * When the given number of fingers is placed on the screen and gesture hasn't yet activated it will fail recognizing the gesture.\n * Should be a higher or equal to 0 integer.\n * @param maxPointers\n */\n maxPointers(maxPointers: number) {\n this.config.maxPointers = maxPointers;\n return this;\n }\n\n /**\n * Minimum distance the finger (or multiple finger) need to travel before the gesture activates.\n * Expressed in points.\n * @param distance\n */\n minDistance(distance: number) {\n this.config.minDist = distance;\n return this;\n }\n\n /**\n * Minimum velocity the finger has to reach in order to activate handler.\n * @param velocity\n */\n minVelocity(velocity: number) {\n this.config.minVelocity = velocity;\n return this;\n }\n\n /**\n * Minimum velocity along X axis the finger has to reach in order to activate handler.\n * @param velocity\n */\n minVelocityX(velocity: number) {\n this.config.minVelocityX = velocity;\n return this;\n }\n\n /**\n * Minimum velocity along Y axis the finger has to reach in order to activate handler.\n * @param velocity\n */\n minVelocityY(velocity: number) {\n this.config.minVelocityY = velocity;\n return this;\n }\n\n /**\n * #### Android only\n * Android, by default, will calculate translation values based on the position of the leading pointer (the first one that was placed on the screen).\n * This modifier allows that behavior to be changed to the one that is default on iOS - the averaged position of all active pointers will be used to calculate the translation values.\n * @param value\n */\n averageTouches(value: boolean) {\n this.config.avgTouches = value;\n return this;\n }\n\n /**\n * #### iOS only\n * Enables two-finger gestures on supported devices, for example iPads with trackpads.\n * @param value\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture/#enabletrackpadtwofingergesturevalue-boolean-ios-only\n */\n enableTrackpadTwoFingerGesture(value: boolean) {\n this.config.enableTrackpadTwoFingerGesture = value;\n return this;\n }\n\n /**\n * Duration in milliseconds of the LongPress gesture before Pan is allowed to activate.\n * @param duration\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture/#activateafterlongpressduration-number\n */\n activateAfterLongPress(duration: number) {\n this.config.activateAfterLongPress = duration;\n return this;\n }\n\n onChange(\n callback: (\n event: GestureUpdateEvent<\n PanGestureHandlerEventPayload & PanGestureChangeEventPayload\n >\n ) => void\n ) {\n // @ts-ignore TS being overprotective, PanGestureHandlerEventPayload is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type PanGestureType = InstanceType;\n","import { ContinousBaseGesture } from './gesture';\nimport type { PinchGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\nimport { GestureUpdateEvent } from '../gestureHandlerCommon';\n\nexport type PinchGestureChangeEventPayload = {\n scaleChange: number;\n};\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent,\n previous?: GestureUpdateEvent\n) {\n 'worklet';\n let changePayload: PinchGestureChangeEventPayload;\n if (previous === undefined) {\n changePayload = {\n scaleChange: current.scale,\n };\n } else {\n changePayload = {\n scaleChange: current.scale / previous.scale,\n };\n }\n\n return { ...current, ...changePayload };\n}\n\nexport class PinchGesture extends ContinousBaseGesture<\n PinchGestureHandlerEventPayload,\n PinchGestureChangeEventPayload\n> {\n constructor() {\n super();\n\n this.handlerName = 'PinchGestureHandler';\n }\n\n onChange(\n callback: (\n event: GestureUpdateEvent<\n PinchGestureHandlerEventPayload & PinchGestureChangeEventPayload\n >\n ) => void\n ) {\n // @ts-ignore TS being overprotective, PinchGestureHandlerEventPayload is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type PinchGestureType = InstanceType;\n","import { ContinousBaseGesture } from './gesture';\nimport type { RotationGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\nimport { GestureUpdateEvent } from '../gestureHandlerCommon';\n\ntype RotationGestureChangeEventPayload = {\n rotationChange: number;\n};\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent,\n previous?: GestureUpdateEvent\n) {\n 'worklet';\n let changePayload: RotationGestureChangeEventPayload;\n if (previous === undefined) {\n changePayload = {\n rotationChange: current.rotation,\n };\n } else {\n changePayload = {\n rotationChange: current.rotation - previous.rotation,\n };\n }\n\n return { ...current, ...changePayload };\n}\n\nexport class RotationGesture extends ContinousBaseGesture<\n RotationGestureHandlerEventPayload,\n RotationGestureChangeEventPayload\n> {\n constructor() {\n super();\n\n this.handlerName = 'RotationGestureHandler';\n }\n\n onChange(\n callback: (\n event: GestureUpdateEvent<\n RotationGestureHandlerEventPayload & RotationGestureChangeEventPayload\n >\n ) => void\n ) {\n // @ts-ignore TS being overprotective, RotationGestureHandlerEventPayload is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type RotationGestureType = InstanceType;\n","import { BaseGesture, BaseGestureConfig } from './gesture';\nimport { FlingGestureConfig } from '../FlingGestureHandler';\nimport type { FlingGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\n\nexport class FlingGesture extends BaseGesture {\n public config: BaseGestureConfig & FlingGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'FlingGestureHandler';\n }\n\n /**\n * Determine exact number of points required to handle the fling gesture.\n * @param pointers\n */\n numberOfPointers(pointers: number) {\n this.config.numberOfPointers = pointers;\n return this;\n }\n\n /**\n * Expressed allowed direction of movement.\n * Expected values are exported as constants in the Directions object.\n * Arguments can be combined using `|` operator. Default value is set to `MouseButton.LEFT`.\n * @param direction\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture/#directionvalue-directions\n */\n direction(direction: number) {\n this.config.direction = direction;\n return this;\n }\n}\n\nexport type FlingGestureType = InstanceType;\n","import { BaseGesture, BaseGestureConfig } from './gesture';\nimport { LongPressGestureConfig } from '../LongPressGestureHandler';\nimport type { LongPressGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\n\nexport class LongPressGesture extends BaseGesture {\n public config: BaseGestureConfig & LongPressGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'LongPressGestureHandler';\n this.shouldCancelWhenOutside(true);\n }\n\n /**\n * Minimum time, expressed in milliseconds, that a finger must remain pressed on the corresponding view.\n * The default value is 500.\n * @param duration\n */\n minDuration(duration: number) {\n this.config.minDurationMs = duration;\n return this;\n }\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is allowed to travel during a long press gesture.\n * @param distance\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture#maxdistancevalue-number\n */\n maxDistance(distance: number) {\n this.config.maxDist = distance;\n return this;\n }\n\n /**\n * Determine exact number of points required to handle the long press gesture.\n * @param pointers\n */\n numberOfPointers(pointers: number) {\n this.config.numberOfPointers = pointers;\n return this;\n }\n}\n\nexport type LongPressGestureType = InstanceType;\n","import { BaseGestureConfig, ContinousBaseGesture } from './gesture';\nimport { ForceTouchGestureConfig } from '../ForceTouchGestureHandler';\nimport type { ForceTouchGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\nimport { GestureUpdateEvent } from '../gestureHandlerCommon';\n\nexport type ForceTouchGestureChangeEventPayload = {\n forceChange: number;\n};\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent,\n previous?: GestureUpdateEvent\n) {\n 'worklet';\n let changePayload: ForceTouchGestureChangeEventPayload;\n if (previous === undefined) {\n changePayload = {\n forceChange: current.force,\n };\n } else {\n changePayload = {\n forceChange: current.force - previous.force,\n };\n }\n\n return { ...current, ...changePayload };\n}\n\nexport class ForceTouchGesture extends ContinousBaseGesture<\n ForceTouchGestureHandlerEventPayload,\n ForceTouchGestureChangeEventPayload\n> {\n public config: BaseGestureConfig & ForceTouchGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'ForceTouchGestureHandler';\n }\n\n /**\n * A minimal pressure that is required before gesture can activate.\n * Should be a value from range [0.0, 1.0]. Default is 0.2.\n * @param force\n */\n minForce(force: number) {\n this.config.minForce = force;\n return this;\n }\n\n /**\n * A maximal pressure that could be applied for gesture.\n * If the pressure is greater, gesture fails. Should be a value from range [0.0, 1.0].\n * @param force\n */\n maxForce(force: number) {\n this.config.maxForce = force;\n return this;\n }\n\n /**\n * Value defining if haptic feedback has to be performed on activation.\n * @param value\n */\n feedbackOnActivation(value: boolean) {\n this.config.feedbackOnActivation = value;\n return this;\n }\n\n onChange(\n callback: (\n event: GestureUpdateEvent<\n GestureUpdateEvent<\n ForceTouchGestureHandlerEventPayload &\n ForceTouchGestureChangeEventPayload\n >\n >\n ) => void\n ) {\n // @ts-ignore TS being overprotective, ForceTouchGestureHandlerEventPayload is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type ForceTouchGestureType = InstanceType;\n","import { BaseGestureConfig, BaseGesture } from './gesture';\nimport { NativeViewGestureConfig } from '../NativeViewGestureHandler';\nimport type { NativeViewGestureHandlerPayload } from '../GestureHandlerEventPayload';\n\nexport class NativeGesture extends BaseGesture {\n public config: BaseGestureConfig & NativeViewGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'NativeViewGestureHandler';\n }\n\n /**\n * When true, underlying handler will activate unconditionally when in `BEGAN` or `UNDETERMINED` state.\n * @param value\n */\n shouldActivateOnStart(value: boolean) {\n this.config.shouldActivateOnStart = value;\n return this;\n }\n\n /**\n * When true, cancels all other gesture handlers when this `NativeViewGestureHandler` receives an `ACTIVE` state event.\n * @param value\n */\n disallowInterruption(value: boolean) {\n this.config.disallowInterruption = value;\n return this;\n }\n}\n\nexport type NativeGestureType = InstanceType;\n","import { GestureUpdateEvent } from '../gestureHandlerCommon';\nimport { ContinousBaseGesture } from './gesture';\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent>,\n _previous?: GestureUpdateEvent>\n) {\n 'worklet';\n return current;\n}\n\nexport class ManualGesture extends ContinousBaseGesture<\n Record,\n Record\n> {\n constructor() {\n super();\n\n this.handlerName = 'ManualGestureHandler';\n }\n\n onChange(\n callback: (event: GestureUpdateEvent>) => void\n ) {\n // @ts-ignore TS being overprotective, Record is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type ManualGestureType = InstanceType;\n","import { BaseGestureConfig, ContinousBaseGesture } from './gesture';\nimport { GestureUpdateEvent } from '../gestureHandlerCommon';\nimport type { HoverGestureHandlerEventPayload } from '../GestureHandlerEventPayload';\n\nexport type HoverGestureChangeEventPayload = {\n changeX: number;\n changeY: number;\n};\n\nexport enum HoverEffect {\n NONE = 0,\n LIFT = 1,\n HIGHLIGHT = 2,\n}\n\nexport interface HoverGestureConfig {\n hoverEffect?: HoverEffect;\n}\n\nexport const hoverGestureHandlerProps = ['hoverEffect'] as const;\n\nfunction changeEventCalculator(\n current: GestureUpdateEvent,\n previous?: GestureUpdateEvent\n) {\n 'worklet';\n let changePayload: HoverGestureChangeEventPayload;\n if (previous === undefined) {\n changePayload = {\n changeX: current.x,\n changeY: current.y,\n };\n } else {\n changePayload = {\n changeX: current.x - previous.x,\n changeY: current.y - previous.y,\n };\n }\n\n return { ...current, ...changePayload };\n}\n\nexport class HoverGesture extends ContinousBaseGesture<\n HoverGestureHandlerEventPayload,\n HoverGestureChangeEventPayload\n> {\n public config: BaseGestureConfig & HoverGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'HoverGestureHandler';\n }\n\n /**\n * #### iOS only\n * Sets the visual hover effect.\n */\n effect(effect: HoverEffect) {\n this.config.hoverEffect = effect;\n return this;\n }\n\n onChange(\n callback: (\n event: GestureUpdateEvent<\n HoverGestureHandlerEventPayload & HoverGestureChangeEventPayload\n >\n ) => void\n ) {\n // @ts-ignore TS being overprotective, HoverGestureHandlerEventPayload is Record\n this.handlers.changeEventCalculator = changeEventCalculator;\n return super.onChange(callback);\n }\n}\n\nexport type HoverGestureType = InstanceType;\n","import { BaseGesture, Gesture, GestureRef, GestureType } from './gesture';\n\nfunction extendRelation(\n currentRelation: GestureRef[] | undefined,\n extendWith: GestureType[]\n) {\n if (currentRelation === undefined) {\n return [...extendWith];\n } else {\n return [...currentRelation, ...extendWith];\n }\n}\n\nexport class ComposedGesture extends Gesture {\n protected gestures: Gesture[] = [];\n protected simultaneousGestures: GestureType[] = [];\n protected requireGesturesToFail: GestureType[] = [];\n\n constructor(...gestures: Gesture[]) {\n super();\n this.gestures = gestures;\n }\n\n protected prepareSingleGesture(\n gesture: Gesture,\n simultaneousGestures: GestureType[],\n requireGesturesToFail: GestureType[]\n ) {\n if (gesture instanceof BaseGesture) {\n const newConfig = { ...gesture.config };\n\n // No need to extend `blocksHandlers` here, because it's not changed in composition.\n // The same effect is achieved by reversing the order of 2 gestures in `Exclusive`\n newConfig.simultaneousWith = extendRelation(\n newConfig.simultaneousWith,\n simultaneousGestures\n );\n newConfig.requireToFail = extendRelation(\n newConfig.requireToFail,\n requireGesturesToFail\n );\n\n gesture.config = newConfig;\n } else if (gesture instanceof ComposedGesture) {\n gesture.simultaneousGestures = simultaneousGestures;\n gesture.requireGesturesToFail = requireGesturesToFail;\n gesture.prepare();\n }\n }\n\n prepare() {\n for (const gesture of this.gestures) {\n this.prepareSingleGesture(\n gesture,\n this.simultaneousGestures,\n this.requireGesturesToFail\n );\n }\n }\n\n initialize() {\n for (const gesture of this.gestures) {\n gesture.initialize();\n }\n }\n\n toGestureArray(): GestureType[] {\n return this.gestures.flatMap((gesture) => gesture.toGestureArray());\n }\n}\n\nexport class SimultaneousGesture extends ComposedGesture {\n prepare() {\n // This piece of magic works something like this:\n // for every gesture in the array\n const simultaneousArrays = this.gestures.map((gesture) =>\n // we take the array it's in\n this.gestures\n // and make a copy without it\n .filter((x) => x !== gesture)\n // then we flatmap the result to get list of raw (not composed) gestures\n // this way we don't make the gestures simultaneous with themselves, which is\n // important when the gesture is `ExclusiveGesture` - we don't want to make\n // exclusive gestures simultaneous\n .flatMap((x) => x.toGestureArray())\n );\n\n for (let i = 0; i < this.gestures.length; i++) {\n this.prepareSingleGesture(\n this.gestures[i],\n simultaneousArrays[i],\n this.requireGesturesToFail\n );\n }\n }\n}\n\nexport class ExclusiveGesture extends ComposedGesture {\n prepare() {\n // Transforms the array of gestures into array of grouped raw (not composed) gestures\n // i.e. [gesture1, gesture2, ComposedGesture(gesture3, gesture4)] -> [[gesture1], [gesture2], [gesture3, gesture4]]\n const gestureArrays = this.gestures.map((gesture) =>\n gesture.toGestureArray()\n );\n\n let requireToFail: GestureType[] = [];\n\n for (let i = 0; i < this.gestures.length; i++) {\n this.prepareSingleGesture(\n this.gestures[i],\n this.simultaneousGestures,\n this.requireGesturesToFail.concat(requireToFail)\n );\n\n // Every group gets to wait for all groups before it\n requireToFail = requireToFail.concat(gestureArrays[i]);\n }\n }\n}\n\nexport type ComposedGestureType = InstanceType;\nexport type RaceGestureType = ComposedGestureType;\nexport type SimultaneousGestureType = InstanceType;\nexport type ExclusiveGestureType = InstanceType;\n","/* eslint-disable react/no-unused-prop-types */\nimport React, {\n useContext,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n} from 'react';\nimport { Platform, findNodeHandle } from 'react-native';\nimport { GestureType } from '../gesture';\nimport { UserSelect, TouchAction } from '../../gestureHandlerCommon';\nimport { ComposedGesture } from '../gestureComposition';\nimport { isJestEnv } from '../../../utils';\n\nimport GestureHandlerRootViewContext from '../../../GestureHandlerRootViewContext';\nimport { AttachedGestureState, GestureDetectorState } from './types';\nimport { useAnimatedGesture } from './useAnimatedGesture';\nimport { attachHandlers } from './attachHandlers';\nimport { needsToReattach } from './needsToReattach';\nimport { dropHandlers } from './dropHandlers';\nimport { useWebEventHandlers } from './utils';\nimport { Wrap, AnimatedWrap } from './Wrap';\nimport { useDetectorUpdater } from './useDetectorUpdater';\nimport { useViewRefHandler } from './useViewRefHandler';\n\nfunction propagateDetectorConfig(\n props: GestureDetectorProps,\n gesture: ComposedGesture | GestureType\n) {\n const keysToPropagate: (keyof GestureDetectorProps)[] = [\n 'userSelect',\n 'enableContextMenu',\n 'touchAction',\n ];\n\n for (const key of keysToPropagate) {\n const value = props[key];\n if (value === undefined) {\n continue;\n }\n\n for (const g of gesture.toGestureArray()) {\n const config = g.config as { [key: string]: unknown };\n config[key] = value;\n }\n }\n}\n\ninterface GestureDetectorProps {\n children?: React.ReactNode;\n /**\n * A gesture object containing the configuration and callbacks.\n * Can be any of:\n * - base gestures (`Tap`, `Pan`, ...)\n * - `ComposedGesture` (`Race`, `Simultaneous`, `Exclusive`)\n */\n gesture: ComposedGesture | GestureType;\n /**\n * #### Web only\n * This parameter allows to specify which `userSelect` property should be applied to underlying view.\n * Possible values are `\"none\" | \"auto\" | \"text\"`. Default value is set to `\"none\"`.\n */\n userSelect?: UserSelect;\n /**\n * #### Web only\n * Specifies whether context menu should be enabled after clicking on underlying view with right mouse button.\n * Default value is set to `false`.\n */\n enableContextMenu?: boolean;\n /**\n * #### Web only\n * This parameter allows to specify which `touchAction` property should be applied to underlying view.\n * Supports all CSS touch-action values (e.g. `\"none\"`, `\"pan-y\"`). Default value is set to `\"none\"`.\n */\n touchAction?: TouchAction;\n}\n\n/**\n * `GestureDetector` is responsible for creating and updating native gesture handlers based on the config of provided gesture.\n *\n * ### Props\n * - `gesture`\n * - `userSelect` (**Web only**)\n * - `enableContextMenu` (**Web only**)\n * - `touchAction` (**Web only**)\n *\n * ### Remarks\n * - Gesture Detector will use first native view in its subtree to recognize gestures, however if this view is used only to group its children it may get automatically collapsed.\n * - Using the same instance of a gesture across multiple Gesture Detectors is not possible.\n *\n * @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/gesture-detector\n */\nexport const GestureDetector = (props: GestureDetectorProps) => {\n const rootViewContext = useContext(GestureHandlerRootViewContext);\n if (__DEV__ && !rootViewContext && !isJestEnv() && Platform.OS !== 'web') {\n throw new Error(\n 'GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.'\n );\n }\n\n // Gesture config should be wrapped with useMemo to prevent unnecessary re-renders\n const gestureConfig = props.gesture;\n propagateDetectorConfig(props, gestureConfig);\n\n const gesturesToAttach = useMemo(\n () => gestureConfig.toGestureArray(),\n [gestureConfig]\n );\n const shouldUseReanimated = gesturesToAttach.some(\n (g) => g.shouldUseReanimated\n );\n\n const webEventHandlersRef = useWebEventHandlers();\n // Store state in ref to prevent unnecessary renders\n const state = useRef({\n firstRender: true,\n viewRef: null,\n previousViewTag: -1,\n forceRebuildReanimatedEvent: false,\n }).current;\n\n const preparedGesture = React.useRef({\n attachedGestures: [],\n animatedEventHandler: null,\n animatedHandlers: null,\n shouldUseReanimated: shouldUseReanimated,\n isMounted: false,\n }).current;\n\n const updateAttachedGestures = useDetectorUpdater(\n state,\n preparedGesture,\n gesturesToAttach,\n gestureConfig,\n webEventHandlersRef\n );\n\n const refHandler = useViewRefHandler(state, updateAttachedGestures);\n\n // Reanimated event should be rebuilt only when gestures are reattached, otherwise\n // config update will be enough as all necessary items are stored in shared values anyway\n const needsToRebuildReanimatedEvent =\n state.firstRender ||\n state.forceRebuildReanimatedEvent ||\n needsToReattach(preparedGesture, gesturesToAttach);\n state.forceRebuildReanimatedEvent = false;\n\n useAnimatedGesture(preparedGesture, needsToRebuildReanimatedEvent);\n\n useLayoutEffect(() => {\n const viewTag = findNodeHandle(state.viewRef) as number;\n preparedGesture.isMounted = true;\n\n attachHandlers({\n preparedGesture,\n gestureConfig,\n gesturesToAttach,\n webEventHandlersRef,\n viewTag,\n });\n\n return () => {\n preparedGesture.isMounted = false;\n dropHandlers(preparedGesture);\n };\n }, []);\n\n useEffect(() => {\n if (state.firstRender) {\n state.firstRender = false;\n } else {\n updateAttachedGestures();\n }\n }, [props]);\n\n if (shouldUseReanimated) {\n return (\n \n {props.children}\n \n );\n } else {\n return {props.children};\n }\n};\n","import { Platform } from 'react-native';\n\nimport { isJestEnv, tagMessage } from '../../../utils';\nimport { GestureRef, BaseGesture, GestureType } from '../gesture';\n\nimport { flingGestureHandlerProps } from '../../FlingGestureHandler';\nimport { forceTouchGestureHandlerProps } from '../../ForceTouchGestureHandler';\nimport { longPressGestureHandlerProps } from '../../LongPressGestureHandler';\nimport {\n panGestureHandlerProps,\n panGestureHandlerCustomNativeProps,\n} from '../../PanGestureHandler';\nimport { tapGestureHandlerProps } from '../../TapGestureHandler';\nimport { hoverGestureHandlerProps } from '../hoverGesture';\nimport { nativeViewGestureHandlerProps } from '../../NativeViewGestureHandler';\nimport {\n HandlerStateChangeEvent,\n baseGestureHandlerWithDetectorProps,\n} from '../../gestureHandlerCommon';\nimport { isNewWebImplementationEnabled } from '../../../EnableNewWebImplementation';\nimport { getReactNativeVersion } from '../../../getReactNativeVersion';\nimport { RNRenderer } from '../../../RNRenderer';\nimport { useCallback, useRef, useState } from 'react';\nimport { Reanimated } from '../reanimatedWrapper';\nimport { onGestureHandlerEvent } from '../eventReceiver';\nimport { WebEventHandler } from './types';\n\nexport const ALLOWED_PROPS = [\n ...baseGestureHandlerWithDetectorProps,\n ...tapGestureHandlerProps,\n ...panGestureHandlerProps,\n ...panGestureHandlerCustomNativeProps,\n ...longPressGestureHandlerProps,\n ...forceTouchGestureHandlerProps,\n ...flingGestureHandlerProps,\n ...hoverGestureHandlerProps,\n ...nativeViewGestureHandlerProps,\n];\n\nfunction convertToHandlerTag(ref: GestureRef): number {\n if (typeof ref === 'number') {\n return ref;\n } else if (ref instanceof BaseGesture) {\n return ref.handlerTag;\n } else {\n // @ts-ignore in this case it should be a ref either to gesture object or\n // a gesture handler component, in both cases handlerTag property exists\n return ref.current?.handlerTag ?? -1;\n }\n}\n\nfunction extractValidHandlerTags(interactionGroup: GestureRef[] | undefined) {\n return (\n interactionGroup?.map(convertToHandlerTag)?.filter((tag) => tag > 0) ?? []\n );\n}\n\nexport function extractGestureRelations(gesture: GestureType) {\n const requireToFail = extractValidHandlerTags(gesture.config.requireToFail);\n const simultaneousWith = extractValidHandlerTags(\n gesture.config.simultaneousWith\n );\n const blocksHandlers = extractValidHandlerTags(gesture.config.blocksHandlers);\n\n return {\n waitFor: requireToFail,\n simultaneousHandlers: simultaneousWith,\n blocksHandlers: blocksHandlers,\n };\n}\n\nexport function checkGestureCallbacksForWorklets(gesture: GestureType) {\n if (!__DEV__) {\n return;\n }\n // If a gesture is explicitly marked to run on the JS thread there is no need to check\n // if callbacks are worklets as the user is aware they will be ran on the JS thread\n if (gesture.config.runOnJS) {\n return;\n }\n\n const areSomeNotWorklets = gesture.handlers.isWorklet.includes(false);\n const areSomeWorklets = gesture.handlers.isWorklet.includes(true);\n\n // If some of the callbacks are worklets and some are not, and the gesture is not\n // explicitly marked with `.runOnJS(true)` show an error\n if (areSomeNotWorklets && areSomeWorklets) {\n console.error(\n tagMessage(\n `Some of the callbacks in the gesture are worklets and some are not. Either make sure that all calbacks are marked as 'worklet' if you wish to run them on the UI thread or use '.runOnJS(true)' modifier on the gesture explicitly to run all callbacks on the JS thread.`\n )\n );\n }\n\n if (Reanimated === undefined) {\n // If Reanimated is not available, we can't run worklets, so we shouldn't show the warning\n return;\n }\n\n const areAllNotWorklets = !areSomeWorklets && areSomeNotWorklets;\n // If none of the callbacks are worklets and the gesture is not explicitly marked with\n // `.runOnJS(true)` show a warning\n if (areAllNotWorklets && !isJestEnv()) {\n console.warn(\n tagMessage(\n `None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.`\n )\n );\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function validateDetectorChildren(ref: any) {\n // Finds the first native view under the Wrap component and traverses the fiber tree upwards\n // to check whether there is more than one native view as a pseudo-direct child of GestureDetector\n // i.e. this is not ok:\n // Wrap\n // |\n // / \\\n // / \\\n // / \\\n // / \\\n // NativeView NativeView\n //\n // but this is fine:\n // Wrap\n // |\n // NativeView\n // |\n // / \\\n // / \\\n // / \\\n // / \\\n // NativeView NativeView\n if (__DEV__ && Platform.OS !== 'web') {\n const REACT_NATIVE_VERSION = getReactNativeVersion();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const wrapType =\n REACT_NATIVE_VERSION.minor > 63 || REACT_NATIVE_VERSION.major > 0\n ? // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n ref._reactInternals.elementType\n : // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n ref._reactInternalFiber.elementType;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n let instance =\n RNRenderer.findHostInstance_DEPRECATED(\n ref\n )._internalFiberInstanceHandleDEV;\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n while (instance && instance.elementType !== wrapType) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (instance.sibling) {\n throw new Error(\n 'GestureDetector has more than one native view as its children. This can happen if you are using a custom component that renders multiple views, like React.Fragment. You should wrap content of GestureDetector with a or .'\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n instance = instance.return;\n }\n }\n}\n\nexport function useForceRender() {\n const [renderState, setRenderState] = useState(false);\n const forceRender = useCallback(() => {\n setRenderState(!renderState);\n }, [renderState, setRenderState]);\n\n return forceRender;\n}\n\nexport function useWebEventHandlers() {\n return useRef({\n onGestureHandlerEvent: (e: HandlerStateChangeEvent) => {\n onGestureHandlerEvent(e.nativeEvent);\n },\n onGestureHandlerStateChange: isNewWebImplementationEnabled()\n ? (e: HandlerStateChangeEvent) => {\n onGestureHandlerEvent(e.nativeEvent);\n }\n : undefined,\n });\n}\n","import type { TapGestureHandlerEventPayload } from './GestureHandlerEventPayload';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\n\nexport const tapGestureHandlerProps = [\n 'maxDurationMs',\n 'maxDelayMs',\n 'numberOfTaps',\n 'maxDeltaX',\n 'maxDeltaY',\n 'maxDist',\n 'minPointers',\n] as const;\n\nexport interface TapGestureConfig {\n /**\n * Minimum number of pointers (fingers) required to be placed before the\n * handler activates. Should be a positive integer.\n * The default value is 1.\n */\n minPointers?: number;\n\n /**\n * Maximum time, expressed in milliseconds, that defines how fast a finger\n * must be released after a touch. The default value is 500.\n */\n maxDurationMs?: number;\n\n /**\n * Maximum time, expressed in milliseconds, that can pass before the next tap\n * if many taps are required. The default value is 500.\n */\n maxDelayMs?: number;\n\n /**\n * Number of tap gestures required to activate the handler. The default value\n * is 1.\n */\n numberOfTaps?: number;\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is\n * allowed to travel along the X axis during a tap gesture. If the finger\n * travels further than the defined distance along the X axis and the handler\n * hasn't yet activated, it will fail to recognize the gesture.\n */\n maxDeltaX?: number;\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is\n * allowed to travel along the Y axis during a tap gesture. If the finger\n * travels further than the defined distance along the Y axis and the handler\n * hasn't yet activated, it will fail to recognize the gesture.\n */\n maxDeltaY?: number;\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is\n * allowed to travel during a tap gesture. If the finger travels further than\n * the defined distance and the handler hasn't yet\n * activated, it will fail to recognize the gesture.\n */\n maxDist?: number;\n}\n\nexport interface TapGestureHandlerProps\n extends BaseGestureHandlerProps,\n TapGestureConfig {}\n\nexport const tapHandlerName = 'TapGestureHandler';\n\nexport type TapGestureHandler = typeof TapGestureHandler;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const TapGestureHandler = createHandler<\n TapGestureHandlerProps,\n TapGestureHandlerEventPayload\n>({\n name: tapHandlerName,\n allowedProps: [\n ...baseGestureHandlerProps,\n ...tapGestureHandlerProps,\n ] as const,\n config: {\n shouldCancelWhenOutside: true,\n },\n});\n","import type { PanGestureHandlerEventPayload } from './GestureHandlerEventPayload';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\n\nexport const panGestureHandlerProps = [\n 'activeOffsetY',\n 'activeOffsetX',\n 'failOffsetY',\n 'failOffsetX',\n 'minDist',\n 'minVelocity',\n 'minVelocityX',\n 'minVelocityY',\n 'minPointers',\n 'maxPointers',\n 'avgTouches',\n 'enableTrackpadTwoFingerGesture',\n 'activateAfterLongPress',\n] as const;\n\nexport const panGestureHandlerCustomNativeProps = [\n 'activeOffsetYStart',\n 'activeOffsetYEnd',\n 'activeOffsetXStart',\n 'activeOffsetXEnd',\n 'failOffsetYStart',\n 'failOffsetYEnd',\n 'failOffsetXStart',\n 'failOffsetXEnd',\n] as const;\n\ninterface CommonPanProperties {\n /**\n * Minimum distance the finger (or multiple finger) need to travel before the\n * handler activates. Expressed in points.\n */\n minDist?: number;\n\n /**\n * Android only.\n */\n avgTouches?: boolean;\n\n /**\n * Enables two-finger gestures on supported devices, for example iPads with\n * trackpads. If not enabled the gesture will require click + drag, with\n * enableTrackpadTwoFingerGesture swiping with two fingers will also trigger\n * the gesture.\n */\n enableTrackpadTwoFingerGesture?: boolean;\n\n /**\n * A number of fingers that is required to be placed before handler can\n * activate. Should be a higher or equal to 0 integer.\n */\n minPointers?: number;\n\n /**\n * When the given number of fingers is placed on the screen and handler hasn't\n * yet activated it will fail recognizing the gesture. Should be a higher or\n * equal to 0 integer.\n */\n maxPointers?: number;\n\n minVelocity?: number;\n minVelocityX?: number;\n minVelocityY?: number;\n activateAfterLongPress?: number;\n}\n\nexport interface PanGestureConfig extends CommonPanProperties {\n activeOffsetYStart?: number;\n activeOffsetYEnd?: number;\n activeOffsetXStart?: number;\n activeOffsetXEnd?: number;\n failOffsetYStart?: number;\n failOffsetYEnd?: number;\n failOffsetXStart?: number;\n failOffsetXEnd?: number;\n}\n\nexport interface PanGestureHandlerProps\n extends BaseGestureHandlerProps,\n CommonPanProperties {\n /**\n * Range along X axis (in points) where fingers travels without activation of\n * handler. Moving outside of this range implies activation of handler. Range\n * can be given as an array or a single number. If range is set as an array,\n * first value must be lower or equal to 0, a the second one higher or equal\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\n */\n activeOffsetY?:\n | number\n | [activeOffsetYStart: number, activeOffsetYEnd: number];\n\n /**\n * Range along X axis (in points) where fingers travels without activation of\n * handler. Moving outside of this range implies activation of handler. Range\n * can be given as an array or a single number. If range is set as an array,\n * first value must be lower or equal to 0, a the second one higher or equal\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\n */\n activeOffsetX?:\n | number\n | [activeOffsetXStart: number, activeOffsetXEnd: number];\n\n /**\n * When the finger moves outside this range (in points) along Y axis and\n * handler hasn't yet activated it will fail recognizing the gesture. Range\n * can be given as an array or a single number. If range is set as an array,\n * first value must be lower or equal to 0, a the second one higher or equal\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\n */\n failOffsetY?: number | [failOffsetYStart: number, failOffsetYEnd: number];\n\n /**\n * When the finger moves outside this range (in points) along X axis and\n * handler hasn't yet activated it will fail recognizing the gesture. Range\n * can be given as an array or a single number. If range is set as an array,\n * first value must be lower or equal to 0, a the second one higher or equal\n * to 0. If only one number `p` is given a range of `(-inf, p)` will be used\n * if `p` is higher or equal to 0 and `(-p, inf)` otherwise.\n */\n failOffsetX?: number | [failOffsetXStart: number, failOffsetXEnd: number];\n}\n\nexport const panHandlerName = 'PanGestureHandler';\n\nexport type PanGestureHandler = typeof PanGestureHandler;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const PanGestureHandler = createHandler<\n PanGestureHandlerProps,\n PanGestureHandlerEventPayload\n>({\n name: panHandlerName,\n allowedProps: [\n ...baseGestureHandlerProps,\n ...panGestureHandlerProps,\n ] as const,\n config: {},\n transformProps: managePanProps,\n customNativeProps: panGestureHandlerCustomNativeProps,\n});\n\nfunction validatePanGestureHandlerProps(props: PanGestureHandlerProps) {\n if (\n Array.isArray(props.activeOffsetX) &&\n (props.activeOffsetX[0] > 0 || props.activeOffsetX[1] < 0)\n ) {\n throw new Error(\n `First element of activeOffsetX should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.activeOffsetY) &&\n (props.activeOffsetY[0] > 0 || props.activeOffsetY[1] < 0)\n ) {\n throw new Error(\n `First element of activeOffsetY should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.failOffsetX) &&\n (props.failOffsetX[0] > 0 || props.failOffsetX[1] < 0)\n ) {\n throw new Error(\n `First element of failOffsetX should be negative, a the second one should be positive`\n );\n }\n\n if (\n Array.isArray(props.failOffsetY) &&\n (props.failOffsetY[0] > 0 || props.failOffsetY[1] < 0)\n ) {\n throw new Error(\n `First element of failOffsetY should be negative, a the second one should be positive`\n );\n }\n\n if (props.minDist && (props.failOffsetX || props.failOffsetY)) {\n throw new Error(\n `It is not supported to use minDist with failOffsetX or failOffsetY, use activeOffsetX and activeOffsetY instead`\n );\n }\n\n if (props.minDist && (props.activeOffsetX || props.activeOffsetY)) {\n throw new Error(\n `It is not supported to use minDist with activeOffsetX or activeOffsetY`\n );\n }\n}\n\nfunction transformPanGestureHandlerProps(props: PanGestureHandlerProps) {\n type InternalPanGHKeys =\n | 'activeOffsetXStart'\n | 'activeOffsetXEnd'\n | 'failOffsetXStart'\n | 'failOffsetXEnd'\n | 'activeOffsetYStart'\n | 'activeOffsetYEnd'\n | 'failOffsetYStart'\n | 'failOffsetYEnd';\n type PanGestureHandlerInternalProps = PanGestureHandlerProps &\n Partial>;\n\n const res: PanGestureHandlerInternalProps = { ...props };\n\n if (props.activeOffsetX !== undefined) {\n delete res.activeOffsetX;\n if (Array.isArray(props.activeOffsetX)) {\n res.activeOffsetXStart = props.activeOffsetX[0];\n res.activeOffsetXEnd = props.activeOffsetX[1];\n } else if (props.activeOffsetX < 0) {\n res.activeOffsetXStart = props.activeOffsetX;\n } else {\n res.activeOffsetXEnd = props.activeOffsetX;\n }\n }\n\n if (props.activeOffsetY !== undefined) {\n delete res.activeOffsetY;\n if (Array.isArray(props.activeOffsetY)) {\n res.activeOffsetYStart = props.activeOffsetY[0];\n res.activeOffsetYEnd = props.activeOffsetY[1];\n } else if (props.activeOffsetY < 0) {\n res.activeOffsetYStart = props.activeOffsetY;\n } else {\n res.activeOffsetYEnd = props.activeOffsetY;\n }\n }\n\n if (props.failOffsetX !== undefined) {\n delete res.failOffsetX;\n if (Array.isArray(props.failOffsetX)) {\n res.failOffsetXStart = props.failOffsetX[0];\n res.failOffsetXEnd = props.failOffsetX[1];\n } else if (props.failOffsetX < 0) {\n res.failOffsetXStart = props.failOffsetX;\n } else {\n res.failOffsetXEnd = props.failOffsetX;\n }\n }\n\n if (props.failOffsetY !== undefined) {\n delete res.failOffsetY;\n if (Array.isArray(props.failOffsetY)) {\n res.failOffsetYStart = props.failOffsetY[0];\n res.failOffsetYEnd = props.failOffsetY[1];\n } else if (props.failOffsetY < 0) {\n res.failOffsetYStart = props.failOffsetY;\n } else {\n res.failOffsetYEnd = props.failOffsetY;\n }\n }\n\n return res;\n}\n\nexport function managePanProps(props: PanGestureHandlerProps) {\n if (__DEV__) {\n validatePanGestureHandlerProps(props);\n }\n return transformPanGestureHandlerProps(props);\n}\n","import { LongPressGestureHandlerEventPayload } from './GestureHandlerEventPayload';\nimport createHandler from './createHandler';\nimport {\n BaseGestureHandlerProps,\n baseGestureHandlerProps,\n} from './gestureHandlerCommon';\n\nexport const longPressGestureHandlerProps = [\n 'minDurationMs',\n 'maxDist',\n 'numberOfPointers',\n] as const;\n\nexport interface LongPressGestureConfig {\n /**\n * Minimum time, expressed in milliseconds, that a finger must remain pressed on\n * the corresponding view. The default value is 500.\n */\n minDurationMs?: number;\n\n /**\n * Maximum distance, expressed in points, that defines how far the finger is\n * allowed to travel during a long press gesture. If the finger travels\n * further than the defined distance and the handler hasn't yet activated, it\n * will fail to recognize the gesture. The default value is 10.\n */\n maxDist?: number;\n\n /**\n * Determine exact number of points required to handle the long press gesture.\n */\n numberOfPointers?: number;\n}\n\nexport interface LongPressGestureHandlerProps\n extends BaseGestureHandlerProps,\n LongPressGestureConfig {}\n\nexport const longPressHandlerName = 'LongPressGestureHandler';\n\nexport type LongPressGestureHandler = typeof LongPressGestureHandler;\n// eslint-disable-next-line @typescript-eslint/no-redeclare -- backward compatibility; see description on the top of gestureHandlerCommon.ts file\nexport const LongPressGestureHandler = createHandler<\n LongPressGestureHandlerProps,\n LongPressGestureHandlerEventPayload\n>({\n name: longPressHandlerName,\n allowedProps: [\n ...baseGestureHandlerProps,\n ...longPressGestureHandlerProps,\n ] as const,\n config: {\n shouldCancelWhenOutside: true,\n },\n});\n","import { ComponentClass } from 'react';\nimport {\n GestureUpdateEvent,\n GestureStateChangeEvent,\n} from '../gestureHandlerCommon';\nimport { tagMessage } from '../../utils';\n\nexport interface SharedValue {\n value: T;\n}\n\nlet Reanimated:\n | {\n default: {\n // Slightly modified definition copied from 'react-native-reanimated'\n // eslint-disable-next-line @typescript-eslint/ban-types\n createAnimatedComponent

(\n component: ComponentClass

,\n options?: unknown\n ): ComponentClass

;\n };\n useEvent: (\n callback: (event: GestureUpdateEvent | GestureStateChangeEvent) => void,\n events: string[],\n rebuild: boolean\n ) => unknown;\n useSharedValue: (value: T) => SharedValue;\n setGestureState: (handlerTag: number, newState: number) => void;\n }\n | undefined;\n\ntry {\n Reanimated = require('react-native-reanimated');\n} catch (e) {\n // When 'react-native-reanimated' is not available we want to quietly continue\n // @ts-ignore TS demands the variable to be initialized\n Reanimated = undefined;\n}\n\nif (!Reanimated?.useSharedValue) {\n // @ts-ignore Make sure the loaded module is actually Reanimated, if it's not\n // reset the module to undefined so we can fallback to the default implementation\n Reanimated = undefined;\n}\n\nif (Reanimated !== undefined && !Reanimated.setGestureState) {\n // The loaded module is Reanimated but it doesn't have the setGestureState defined\n Reanimated.setGestureState = () => {\n 'worklet';\n console.warn(\n tagMessage(\n 'Please use newer version of react-native-reanimated in order to control state of the gestures.'\n )\n );\n };\n}\n\nexport { Reanimated };\n","'use strict';\n\nimport './publicGlobals';\nimport * as Animated from './Animated';\n\nexport default Animated;\n\nexport { configureReanimatedLogger } from './ConfigHelper';\nexport { LogLevel as ReanimatedLogLevel } from './logger';\nexport type { WorkletRuntime } from './core';\nexport {\n runOnJS,\n runOnUI,\n createWorkletRuntime,\n runOnRuntime,\n makeMutable,\n makeShareableCloneRecursive,\n isReanimated3,\n isConfigured,\n enableLayoutAnimations,\n getViewProp,\n executeOnUIRuntimeSync,\n} from './core';\nexport type {\n GestureHandlers,\n AnimatedRef,\n DerivedValue,\n ScrollHandler,\n ScrollHandlers,\n ScrollHandlerProcessed,\n FrameCallback,\n ScrollEvent,\n EventHandler,\n EventHandlerProcessed,\n UseHandlerContext,\n ReanimatedEvent,\n} from './hook';\nexport {\n useAnimatedProps,\n useEvent,\n useHandler,\n useWorkletCallback,\n useSharedValue,\n useReducedMotion,\n useAnimatedStyle,\n useAnimatedGestureHandler,\n useAnimatedReaction,\n useAnimatedRef,\n useAnimatedScrollHandler,\n useDerivedValue,\n useAnimatedSensor,\n useFrameCallback,\n useAnimatedKeyboard,\n useScrollViewOffset,\n useComposedEventHandler,\n} from './hook';\nexport type {\n DelayAnimation,\n RepeatAnimation,\n SequenceAnimation,\n StyleLayoutAnimation,\n WithTimingConfig,\n TimingAnimation,\n WithSpringConfig,\n SpringAnimation,\n WithDecayConfig,\n DecayAnimation,\n} from './animation';\nexport {\n cancelAnimation,\n defineAnimation,\n withClamp,\n withDecay,\n withDelay,\n withRepeat,\n withSequence,\n withSpring,\n withTiming,\n} from './animation';\nexport type { ExtrapolationConfig, ExtrapolationType } from './interpolation';\nexport { Extrapolation, interpolate, clamp } from './interpolation';\nexport type {\n InterpolationOptions,\n InterpolateConfig,\n InterpolateRGB,\n InterpolateHSV,\n} from './interpolateColor';\nexport {\n /** @deprecated Please use {@link Extrapolation} instead. */\n Extrapolate,\n ColorSpace,\n interpolateColor,\n useInterpolateConfig,\n} from './interpolateColor';\nexport type {\n EasingFn,\n EasingFunctionFactory,\n EasingFactoryFn,\n} from './Easing';\nexport { Easing } from './Easing';\nexport type { ComponentCoords } from './platformFunctions';\nexport {\n measure,\n dispatchCommand,\n scrollTo,\n setGestureState,\n setNativeProps,\n getRelativeCoords,\n} from './platformFunctions';\nexport type { ParsedColorArray } from './Colors';\nexport { isColor, processColor, convertToRGBA } from './Colors';\nexport { createAnimatedPropAdapter } from './PropAdapters';\nexport type {\n LayoutAnimation,\n EntryAnimationsValues,\n ExitAnimationsValues,\n EntryExitAnimationFunction,\n LayoutAnimationsValues,\n LayoutAnimationFunction,\n LayoutAnimationStartFunction,\n LayoutAnimationType,\n SharedTransitionAnimationsValues,\n ILayoutAnimationBuilder,\n IEntryExitAnimationBuilder,\n BaseLayoutAnimationConfig,\n} from './layoutReanimation';\nexport {\n BaseAnimationBuilder,\n ComplexAnimationBuilder,\n Keyframe,\n // Flip\n FlipInXUp,\n FlipInYLeft,\n FlipInXDown,\n FlipInYRight,\n FlipInEasyX,\n FlipInEasyY,\n FlipOutXUp,\n FlipOutYLeft,\n FlipOutXDown,\n FlipOutYRight,\n FlipOutEasyX,\n FlipOutEasyY,\n // Stretch\n StretchInX,\n StretchInY,\n StretchOutX,\n StretchOutY,\n // Fade\n FadeIn,\n FadeInRight,\n FadeInLeft,\n FadeInUp,\n FadeInDown,\n FadeOut,\n FadeOutRight,\n FadeOutLeft,\n FadeOutUp,\n FadeOutDown,\n // Slide\n SlideInRight,\n SlideInLeft,\n SlideOutRight,\n SlideOutLeft,\n SlideInUp,\n SlideInDown,\n SlideOutUp,\n SlideOutDown,\n // Zoom\n ZoomIn,\n ZoomInRotate,\n ZoomInLeft,\n ZoomInRight,\n ZoomInUp,\n ZoomInDown,\n ZoomInEasyUp,\n ZoomInEasyDown,\n ZoomOut,\n ZoomOutRotate,\n ZoomOutLeft,\n ZoomOutRight,\n ZoomOutUp,\n ZoomOutDown,\n ZoomOutEasyUp,\n ZoomOutEasyDown,\n // Bounce\n BounceIn,\n BounceInDown,\n BounceInUp,\n BounceInLeft,\n BounceInRight,\n BounceOut,\n BounceOutDown,\n BounceOutUp,\n BounceOutLeft,\n BounceOutRight,\n // Lightspeed\n LightSpeedInRight,\n LightSpeedInLeft,\n LightSpeedOutRight,\n LightSpeedOutLeft,\n // Pinwheel\n PinwheelIn,\n PinwheelOut,\n // Rotate\n RotateInDownLeft,\n RotateInDownRight,\n RotateInUpLeft,\n RotateInUpRight,\n RotateOutDownLeft,\n RotateOutDownRight,\n RotateOutUpLeft,\n RotateOutUpRight,\n // Roll\n RollInLeft,\n RollInRight,\n RollOutLeft,\n RollOutRight,\n // Transitions\n Layout,\n LinearTransition,\n FadingTransition,\n SequencedTransition,\n JumpingTransition,\n CurvedTransition,\n EntryExitTransition,\n combineTransition,\n // SET\n SharedTransition,\n SharedTransitionType,\n} from './layoutReanimation';\nexport { isSharedValue } from './isSharedValue';\nexport type {\n StyleProps,\n SharedValue,\n AnimatableValueObject,\n AnimatableValue,\n AnimationObject,\n SensorConfig,\n Animation,\n AnimatedSensor,\n AnimationCallback,\n Value3D,\n ValueRotation,\n AnimatedKeyboardInfo,\n AnimatedKeyboardOptions,\n MeasuredDimensions,\n EasingFunction,\n AnimatedTransform,\n TransformArrayItem,\n AnimateStyle,\n AnimatedStyle,\n StylesOrDefault,\n} from './commonTypes';\nexport {\n SensorType,\n IOSReferenceFrame,\n InterfaceOrientation,\n KeyboardState,\n ReduceMotion,\n isWorkletFunction,\n} from './commonTypes';\nexport type { FrameInfo } from './frameCallback';\nexport { getUseOfValueInStyleWarning } from './pluginUtils';\nexport {\n withReanimatedTimer,\n advanceAnimationByTime,\n advanceAnimationByFrame,\n setUpTests,\n getAnimatedStyle,\n} from './jestUtils';\nexport { LayoutAnimationConfig } from './component/LayoutAnimationConfig';\nexport { PerformanceMonitor } from './component/PerformanceMonitor';\nexport type { PerformanceMonitorProps } from './component/PerformanceMonitor';\nexport { ReducedMotionConfig } from './component/ReducedMotionConfig';\nexport type {\n Adaptable,\n AdaptTransforms,\n AnimateProps,\n AnimatedProps,\n TransformStyleTypes,\n AnimatedStyleProp,\n} from './helperTypes';\nexport type { AnimatedScrollViewProps } from './component/ScrollView';\nexport type { FlatListPropsWithLayout } from './component/FlatList';\nexport { startMapper, stopMapper } from './mappers';\nexport {\n startScreenTransition,\n finishScreenTransition,\n ScreenTransition,\n} from './screenTransition';\nexport type {\n AnimatedScreenTransition,\n GoBackGesture,\n ScreenTransitionConfig,\n} from './screenTransition';\n","'use strict';\nimport './animationsManager';\nexport * from './animationBuilder';\nexport * from './defaultAnimations';\nexport * from './defaultTransitions';\nexport * from './sharedTransitions';\nexport type { KeyframeProps } from './animationBuilder/commonTypes';\n","'use strict';\nimport { withStyleAnimation } from '../animation/styleAnimation';\nimport type { SharedValue } from '../commonTypes';\nimport { makeMutableUI } from '../mutables';\nimport { LayoutAnimationType } from './animationBuilder';\nimport { runOnUIImmediately } from '../threads';\nimport type {\n SharedTransitionAnimationsValues,\n LayoutAnimation,\n LayoutAnimationStartFunction,\n} from './animationBuilder/commonTypes';\n\nconst TAG_OFFSET = 1e9;\n\nfunction startObservingProgress(\n tag: number,\n sharedValue: SharedValue>,\n animationType: LayoutAnimationType\n): void {\n 'worklet';\n const isSharedTransition =\n animationType === LayoutAnimationType.SHARED_ELEMENT_TRANSITION;\n sharedValue.addListener(tag + TAG_OFFSET, () => {\n global._notifyAboutProgress(tag, sharedValue.value, isSharedTransition);\n });\n}\n\nfunction stopObservingProgress(\n tag: number,\n sharedValue: SharedValue,\n removeView = false\n): void {\n 'worklet';\n sharedValue.removeListener(tag + TAG_OFFSET);\n global._notifyAboutEnd(tag, removeView);\n}\n\nfunction createLayoutAnimationManager(): {\n start: LayoutAnimationStartFunction;\n stop: (tag: number) => void;\n} {\n 'worklet';\n const currentAnimationForTag = new Map();\n const mutableValuesForTag = new Map();\n\n return {\n start(\n tag: number,\n type: LayoutAnimationType,\n /**\n * CreateLayoutAnimationManager creates an animation manager for both\n * Layout animations and Shared Transition Elements animations.\n */\n yogaValues: Partial,\n config: (\n arg: Partial\n ) => LayoutAnimation\n ) {\n if (type === LayoutAnimationType.SHARED_ELEMENT_TRANSITION_PROGRESS) {\n global.ProgressTransitionRegister.onTransitionStart(tag, yogaValues);\n return;\n }\n\n const style = config(yogaValues);\n let currentAnimation = style.animations;\n\n // When layout animation is requested, but a previous one is still running, we merge\n // new layout animation targets into the ongoing animation\n const previousAnimation = currentAnimationForTag.get(tag);\n if (previousAnimation) {\n currentAnimation = { ...previousAnimation, ...style.animations };\n }\n currentAnimationForTag.set(tag, currentAnimation);\n\n let value = mutableValuesForTag.get(tag);\n if (value === undefined) {\n value = makeMutableUI(style.initialValues);\n mutableValuesForTag.set(tag, value);\n } else {\n stopObservingProgress(tag, value);\n value._value = style.initialValues;\n }\n\n // @ts-ignore The line below started failing because I added types to the method – don't have time to fix it right now\n const animation = withStyleAnimation(currentAnimation);\n\n animation.callback = (finished?: boolean) => {\n if (finished) {\n currentAnimationForTag.delete(tag);\n mutableValuesForTag.delete(tag);\n const shouldRemoveView = type === LayoutAnimationType.EXITING;\n stopObservingProgress(tag, value, shouldRemoveView);\n }\n style.callback &&\n style.callback(finished === undefined ? false : finished);\n };\n\n startObservingProgress(tag, value, type);\n value.value = animation;\n },\n stop(tag: number) {\n const value = mutableValuesForTag.get(tag);\n if (!value) {\n return;\n }\n stopObservingProgress(tag, value);\n },\n };\n}\n\nrunOnUIImmediately(() => {\n 'worklet';\n global.LayoutAnimationsManager = createLayoutAnimationManager();\n})();\n\nexport type LayoutAnimationsManager = ReturnType<\n typeof createLayoutAnimationManager\n>;\n","'use strict';\nexport { BaseAnimationBuilder } from './BaseAnimationBuilder';\nexport { ComplexAnimationBuilder } from './ComplexAnimationBuilder';\nexport { Keyframe } from './Keyframe';\nexport { LayoutAnimationType, SharedTransitionType } from './commonTypes';\nexport type {\n LayoutAnimation,\n AnimationFunction,\n EntryAnimationsValues,\n ExitAnimationsValues,\n EntryExitAnimationFunction,\n AnimationConfigFunction,\n IEntryAnimationBuilder,\n IExitAnimationBuilder,\n LayoutAnimationsValues,\n LayoutAnimationFunction,\n LayoutAnimationStartFunction,\n ILayoutAnimationBuilder,\n BaseLayoutAnimationConfig,\n BaseBuilderAnimationConfig,\n LayoutAnimationAndConfig,\n IEntryExitAnimationBuilder,\n SharedTransitionAnimationsValues,\n} from './commonTypes';\n","'use strict';\nimport { withDelay } from '../../animation';\nimport type {\n EntryExitAnimationFunction,\n AnimationFunction,\n LayoutAnimationFunction,\n} from './commonTypes';\n\nimport { ReduceMotion } from '../../commonTypes';\nimport { getReduceMotionFromConfig } from '../../animation/util';\nimport { ReanimatedError } from '../../errors';\n\nexport class BaseAnimationBuilder {\n durationV?: number;\n delayV?: number;\n reduceMotionV: ReduceMotion = ReduceMotion.System;\n randomizeDelay = false;\n callbackV?: (finished: boolean) => void;\n\n static createInstance: (\n this: T\n ) => InstanceType;\n\n build = (): EntryExitAnimationFunction | LayoutAnimationFunction => {\n throw new ReanimatedError('Unimplemented method in child class.');\n };\n\n /**\n * Lets you adjust the animation duration. Can be chained alongside other\n * [layout animation\n * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).\n *\n * @param durationMs - Length of the animation (in milliseconds).\n */\n static duration(\n this: T,\n durationMs: number\n ): InstanceType {\n const instance = this.createInstance();\n return instance.duration(durationMs);\n }\n\n duration(durationMs: number): this {\n this.durationV = durationMs;\n return this;\n }\n\n /**\n * Lets you adjust the delay before the animation starts (in milliseconds).\n * Can be chained alongside other [layout animation\n * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).\n *\n * @param delayMs - Delay before the animation starts (in milliseconds).\n */\n static delay(\n this: T,\n delayMs: number\n ): InstanceType {\n const instance = this.createInstance();\n return instance.delay(delayMs);\n }\n\n delay(delayMs: number): this {\n this.delayV = delayMs;\n return this;\n }\n\n /**\n * The callback that will fire after the animation ends. Can be chained\n * alongside other [layout animation\n * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).\n *\n * @param callback - Callback that will fire after the animation ends.\n */\n static withCallback(\n this: T,\n callback: (finished: boolean) => void\n ): InstanceType {\n const instance = this.createInstance();\n return instance.withCallback(callback);\n }\n\n withCallback(callback: (finished: boolean) => void): this {\n this.callbackV = callback;\n return this;\n }\n\n /**\n * Lets you adjust the behavior when the device's reduced motion accessibility\n * setting is turned on. Can be chained alongside other [layout animation\n * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier).\n *\n * @param reduceMotion - Determines how the animation responds to the device's\n * reduced motion accessibility setting. Default to `ReduceMotion.System` -\n * {@link ReduceMotion}.\n */\n static reduceMotion(\n this: T,\n reduceMotion: ReduceMotion\n ): InstanceType {\n const instance = this.createInstance();\n return instance.reduceMotion(reduceMotion);\n }\n\n reduceMotion(reduceMotionV: ReduceMotion): this {\n this.reduceMotionV = reduceMotionV;\n return this;\n }\n\n // 300ms is the default animation duration. If any animation has different default has to override this method.\n static getDuration(): number {\n return 300;\n }\n\n getDuration(): number {\n return this.durationV ?? 300;\n }\n\n /** @deprecated Use `.delay()` with `Math.random()` instead */\n static randomDelay(\n this: T\n ): InstanceType {\n const instance = this.createInstance();\n return instance.randomDelay();\n }\n\n randomDelay(): this {\n this.randomizeDelay = true;\n return this;\n }\n\n // when randomizeDelay is set to true, randomize delay between 0 and provided value (or 1000ms if delay is not provided)\n getDelay(): number {\n return this.randomizeDelay\n ? Math.random() * (this.delayV ?? 1000)\n : (this.delayV ?? 0);\n }\n\n getReduceMotion(): ReduceMotion {\n return this.reduceMotionV;\n }\n\n getDelayFunction(): AnimationFunction {\n const isDelayProvided = this.randomizeDelay || this.delayV;\n const reduceMotion = this.getReduceMotion();\n return isDelayProvided\n ? (delay, animation) => {\n 'worklet';\n return withDelay(delay, animation, reduceMotion);\n }\n : (_, animation) => {\n 'worklet';\n animation.reduceMotion = getReduceMotionFromConfig(reduceMotion);\n return animation;\n };\n }\n\n static build(\n this: T\n ): EntryExitAnimationFunction | LayoutAnimationFunction {\n const instance = this.createInstance();\n return instance.build();\n }\n}\n","'use strict';\nimport type {\n ViewStyle,\n TextStyle,\n TransformsStyle,\n ImageStyle,\n} from 'react-native';\n\nexport type RequiredKeys = T & Required>;\nexport interface StyleProps extends ViewStyle, TextStyle {\n originX?: number;\n originY?: number;\n [key: string]: any;\n}\n\n/**\n * A value that can be used both on the [JavaScript\n * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#javascript-thread)\n * and the [UI\n * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#ui-thread).\n *\n * Shared values are defined using\n * [useSharedValue](https://docs.swmansion.com/react-native-reanimated/docs/core/useSharedValue)\n * hook. You access and modify shared values by their `.value` property.\n */\nexport interface SharedValue {\n value: Value;\n get(): Value;\n set(value: Value | ((value: Value) => Value)): void;\n addListener: (listenerID: number, listener: (value: Value) => void) => void;\n removeListener: (listenerID: number) => void;\n modify: (\n modifier?: (value: T) => T,\n forceUpdate?: boolean\n ) => void;\n}\n\n/**\n * Due to pattern of `MaybeSharedValue` type present in `AnimatedProps`\n * (`AnimatedStyle`), contravariance breaks types for animated styles etc.\n * Instead of refactoring the code with small chances of success, we just\n * disable contravariance for `SharedValue` in this problematic case.\n */\ntype SharedValueDisableContravariance = Omit<\n SharedValue,\n 'set'\n>;\n\nexport interface Mutable extends SharedValue {\n _isReanimatedSharedValue: true;\n _animation?: AnimationObject | null; // only in Native\n /**\n * `_value` prop should only be accessed by the `valueSetter` implementation\n * which may make the decision about updating the mutable value depending on\n * the provided new value. All other places should only attempt to modify the\n * mutable by assigning to `value` prop directly or by calling the `set`\n * method.\n */\n _value: Value;\n}\n\n// The below type is used for HostObjects returned by the JSI API that don't have\n// any accessible fields or methods but can carry data that is accessed from the\n// c++ side. We add a field to the type to make it possible for typescript to recognize\n// which JSI methods accept those types as arguments and to be able to correctly type\n// check other methods that may use them. However, this field is not actually defined\n// nor should be used for anything else as assigning any data to those objects will\n// throw an error.\nexport type ShareableRef = {\n __hostObjectShareableJSRef: T;\n};\n\n// In case of objects with depth or arrays of objects or arrays of arrays etc.\n// we add this utility type that makes it a `SharaebleRef` of the outermost type.\nexport type FlatShareableRef =\n T extends ShareableRef ? ShareableRef : ShareableRef;\n\nexport type MapperRawInputs = unknown[];\n\nexport type MapperOutputs = SharedValue[];\n\nexport type MapperRegistry = {\n start: (\n mapperID: number,\n worklet: () => void,\n inputs: MapperRawInputs,\n outputs?: MapperOutputs\n ) => void;\n stop: (mapperID: number) => void;\n};\n\nexport type WorkletStackDetails = [\n error: Error,\n lineOffset: number,\n columnOffset: number,\n];\n\ntype WorkletClosure = Record;\n\ninterface WorkletInitDataCommon {\n code: string;\n}\n\ntype WorkletInitDataRelease = WorkletInitDataCommon;\n\ninterface WorkletInitDataDev extends WorkletInitDataCommon {\n location: string;\n sourceMap: string;\n version: string;\n}\n\ninterface WorkletBaseCommon {\n __closure: WorkletClosure;\n __workletHash: number;\n}\n\ninterface WorkletBaseRelease extends WorkletBaseCommon {\n __initData: WorkletInitDataRelease;\n}\n\ninterface WorkletBaseDev extends WorkletBaseCommon {\n __initData: WorkletInitDataDev;\n /** `__stackDetails` is removed after parsing. */\n __stackDetails?: WorkletStackDetails;\n}\n\nexport type WorkletFunction<\n Args extends unknown[] = unknown[],\n ReturnValue = unknown,\n> = ((...args: Args) => ReturnValue) & (WorkletBaseRelease | WorkletBaseDev);\n\n/**\n * This function allows you to determine if a given function is a worklet. It\n * only works with Reanimated Babel plugin enabled. Unless you are doing\n * something with internals of Reanimated you shouldn't need to use this\n * function.\n *\n * ### Note\n *\n * Do not call it before the worklet is declared, as it will always return false\n * then. E.g.:\n *\n * ```ts\n * isWorkletFunction(myWorklet); // Will always return false.\n *\n * function myWorklet() {\n * 'worklet';\n * }\n * ```\n *\n * ### Maintainer note\n *\n * This function works well on the JS thread performance-wise, since the JIT can\n * inline it. However, on other threads it will not get optimized and we will\n * get a function call overhead. We want to change it in the future, but it's\n * not feasible at the moment.\n */\nexport function isWorkletFunction<\n Args extends unknown[] = unknown[],\n ReturnValue = unknown,\n BuildType extends WorkletBaseDev | WorkletBaseRelease = WorkletBaseDev,\n>(value: unknown): value is WorkletFunction & BuildType {\n 'worklet';\n // Since host objects always return true for `in` operator, we have to use dot notation to check if the property exists.\n // See https://github.com/facebook/hermes/blob/340726ef8cf666a7cce75bc60b02fa56b3e54560/lib/VM/JSObject.cpp#L1276.\n return (\n typeof value === 'function' &&\n !!(value as unknown as Record).__workletHash\n );\n}\n\nexport type AnimatedPropsAdapterFunction = (\n props: Record\n) => void;\n\nexport type AnimatedPropsAdapterWorklet = WorkletFunction<\n [props: Record],\n void\n>;\n\nexport interface NestedObject {\n [key: string]: NestedObjectValues;\n}\n\nexport type NestedObjectValues =\n | T\n | Array>\n | NestedObject;\n\ntype Animatable = number | string | Array;\n\nexport type AnimatableValueObject = { [key: string]: Animatable };\n\nexport type AnimatableValue = Animatable | AnimatableValueObject;\n\nexport interface AnimationObject {\n [key: string]: any;\n callback?: AnimationCallback;\n current?: T;\n toValue?: AnimationObject['current'];\n startValue?: AnimationObject['current'];\n finished?: boolean;\n strippedCurrent?: number;\n cancelled?: boolean;\n reduceMotion?: boolean;\n\n __prefix?: string;\n __suffix?: string;\n onFrame: (animation: any, timestamp: Timestamp) => boolean;\n onStart: (\n nextAnimation: any,\n current: any,\n timestamp: Timestamp,\n previousAnimation: any\n ) => void;\n}\n\nexport interface Animation extends AnimationObject {\n onFrame: (animation: T, timestamp: Timestamp) => boolean;\n onStart: (\n nextAnimation: T,\n current: AnimatableValue,\n timestamp: Timestamp,\n previousAnimation: Animation | null | T\n ) => void;\n}\n\nexport enum SensorType {\n ACCELEROMETER = 1,\n GYROSCOPE = 2,\n GRAVITY = 3,\n MAGNETIC_FIELD = 4,\n ROTATION = 5,\n}\nexport enum IOSReferenceFrame {\n XArbitraryZVertical,\n XArbitraryCorrectedZVertical,\n XMagneticNorthZVertical,\n XTrueNorthZVertical,\n Auto,\n}\n\nexport type SensorConfig = {\n interval: number | 'auto';\n adjustToInterfaceOrientation: boolean;\n iosReferenceFrame: IOSReferenceFrame;\n};\n\nexport type AnimatedSensor = {\n sensor: SharedValue;\n unregister: () => void;\n isAvailable: boolean;\n config: SensorConfig;\n};\n\n/**\n * A function called upon animation completion. If the animation is cancelled,\n * the callback will receive `false` as the argument; otherwise, it will receive\n * `true`.\n */\nexport type AnimationCallback = (\n finished?: boolean,\n current?: AnimatableValue\n) => void;\n\nexport type Timestamp = number;\n\nexport type Value3D = {\n x: number;\n y: number;\n z: number;\n interfaceOrientation: InterfaceOrientation;\n};\n\nexport type ValueRotation = {\n qw: number;\n qx: number;\n qy: number;\n qz: number;\n yaw: number;\n pitch: number;\n roll: number;\n interfaceOrientation: InterfaceOrientation;\n};\n\nexport enum InterfaceOrientation {\n ROTATION_0 = 0,\n ROTATION_90 = 90,\n ROTATION_180 = 180,\n ROTATION_270 = 270,\n}\n\nexport type ShadowNodeWrapper = {\n __hostObjectShadowNodeWrapper: never;\n};\n\nexport enum KeyboardState {\n UNKNOWN = 0,\n OPENING = 1,\n OPEN = 2,\n CLOSING = 3,\n CLOSED = 4,\n}\n\nexport type AnimatedKeyboardInfo = {\n height: SharedValue;\n state: SharedValue;\n};\n\n/**\n * @param x - A number representing X coordinate relative to the parent\n * component.\n * @param y - A number representing Y coordinate relative to the parent\n * component.\n * @param width - A number representing the width of the component.\n * @param height - A number representing the height of the component.\n * @param pageX - A number representing X coordinate relative to the screen.\n * @param pageY - A number representing Y coordinate relative to the screen.\n * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure#returns\n */\nexport interface MeasuredDimensions {\n x: number;\n y: number;\n width: number;\n height: number;\n pageX: number;\n pageY: number;\n}\n\nexport interface AnimatedKeyboardOptions {\n isStatusBarTranslucentAndroid?: boolean;\n isNavigationBarTranslucentAndroid?: boolean;\n}\n\n/**\n * @param System - If the `Reduce motion` accessibility setting is enabled on\n * the device, disable the animation. Otherwise, enable the animation.\n * @param Always - Disable the animation.\n * @param Never - Enable the animation.\n * @see https://docs.swmansion.com/react-native-reanimated/docs/guides/accessibility\n */\nexport enum ReduceMotion {\n System = 'system',\n Always = 'always',\n Never = 'never',\n}\n\nexport type EasingFunction = (t: number) => number;\n\nexport type TransformArrayItem = Extract<\n TransformsStyle['transform'],\n Array\n>[number];\n\ntype MaybeSharedValue =\n | Value\n | (Value extends AnimatableValue\n ? SharedValueDisableContravariance\n : never);\n\ntype MaybeSharedValueRecursive = Value extends (infer Item)[]\n ?\n | SharedValueDisableContravariance\n | (MaybeSharedValueRecursive | Item)[]\n : Value extends object\n ?\n | SharedValueDisableContravariance\n | {\n [Key in keyof Value]:\n | MaybeSharedValueRecursive\n | Value[Key];\n }\n : MaybeSharedValue;\n\ntype DefaultStyle = ViewStyle & ImageStyle & TextStyle;\n\n// Ideally we want AnimatedStyle to not be generic, but there are\n// so many dependencies on it being generic that it's not feasible at the moment.\nexport type AnimatedStyle