@getpaseo/server 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/builtin-plugins",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -534,9 +534,9 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{v
534
534
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"watchdog",{enumerable:!0,get:function(){return s}}),_e.startWatchdog=function(){if(!c||!s||f)return;f=!0;const e=c.startRecorder({version:(0,u.resolveAppVersion)()??"unknown",build:String(o.default.expoConfig?.extra?.diagnosticRevision??"unknown"),builtAt:String(o.default.expoConfig?.extra?.diagnosticBuildTime??"unknown"),reactProfiling:"true"});setInterval(()=>c.heartbeat(),e),setInterval(()=>s.flushRenders(),1e3)};var e,t=r(d[0]),n=r(d[1]),o=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),l=r(d[3]);const c=!0===o.default.expoConfig?.extra?.watchdogBuild?(0,t.requireOptionalNativeModule)("PaseoNativeTrace"):null,s=c?(0,l.createRecorder)((e,t)=>c.record(e,t),()=>performance.now()):null;let f=!1},463,[4,464,467,469]);
535
535
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"AppOwnership",{enumerable:!0,get:function(){return u.AppOwnership}}),Object.defineProperty(_e,"ExecutionEnvironment",{enumerable:!0,get:function(){return u.ExecutionEnvironment}}),Object.defineProperty(_e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return u.UserInterfaceIdiom}}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=r(d[0]);r(d[1]);var t=e(r(d[2])),u=r(d[3]),l=e(r(d[4]));l.default||console.warn("No native ExponentConstants module found, are you sure the expo-constants's module is linked properly?");const o=(0,n.requireOptionalNativeModule)('ExpoUpdates');let s=null;if(o){let e;o.manifest?e=o.manifest:o.manifestString&&(e=JSON.parse(o.manifestString)),e&&Object.keys(e).length>0&&(s=e)}let f=null;if(t.default.EXDevLauncher){let e;t.default.EXDevLauncher.manifestString&&(e=JSON.parse(t.default.EXDevLauncher.manifestString)),e&&Object.keys(e).length>0&&(f=e)}let c=null;if(l.default&&l.default.manifest){const e=l.default.manifest;c='string'==typeof e?JSON.parse(e):e}let p=s??f??c;const{name:E,appOwnership:b,...x}=l.default||{},v={...x,appOwnership:b??null};function O(e){return!_(e)}function _(e){return'metadata'in e}function S(e=!1){if(!p){const e=null===p?'null':'undefined';if(x.executionEnvironment,u.ExecutionEnvironment.Bare,x.executionEnvironment===u.ExecutionEnvironment.StoreClient||x.executionEnvironment===u.ExecutionEnvironment.Standalone)throw new n.CodedError('ERR_CONSTANTS_MANIFEST_UNAVAILABLE',`Constants.manifest is ${e}, must be an object.`)}return p}Object.defineProperties(v,{__unsafeNoWarnManifest:{get(){const e=S(!0);return e&&O(e)?e:null},enumerable:!1},__unsafeNoWarnManifest2:{get(){const e=S(!0);return e&&_(e)?e:null},enumerable:!1},manifest:{get(){const e=S();return e&&O(e)?e:null},enumerable:!0},manifest2:{get(){const e=S();return e&&_(e)?e:null},enumerable:!0},expoConfig:{get(){const e=S(!0);return e?o&&o.isEmbeddedLaunch?c:_(e)?e.extra?.expoClient??null:O(e)?e:null:null},enumerable:!0},expoGoConfig:{get(){const e=S(!0);return e?_(e)?e.extra?.expoGo??null:O(e)?e:null:null},enumerable:!0},easConfig:{get(){const e=S(!0);return e?_(e)?e.extra?.eas??null:O(e)?e:null:null},enumerable:!0},__rawManifest_TEST:{get:()=>p,set(e){p=e},enumerable:!1}});var h=v},464,[4,25,404,465,466]);
536
536
  __d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},465,[]);
537
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var n=r(d[0]);const t=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const n=navigator.userAgent.toLowerCase();if(n.includes('edge'))return'Edge';if(n.includes('edg'))return'Chromium Edge';if(n.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(n.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(n.includes('trident'))return'IE';if(n.includes('firefox'))return'Firefox';if(n.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return n.ExecutionEnvironment.Bare},get sessionId(){return t},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"Paseo\",\"slug\":\"voice-mobile\",\"version\":\"0.13.0\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"paseo\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"Paseo\",\"orientation\":\"portrait\",\"backgroundColor\":\"#ffffff\",\"name\":\"Paseo\"},\"autolinking\":{\"searchPaths\":[\"../../node_modules\",\"./node_modules\"]},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"autolinkingModuleResolution\":true},\"extra\":{\"fdroidBuild\":false,\"profileBuild\":false,\"watchdogBuild\":false,\"router\":{},\"eas\":{\"projectId\":\"0e7f65ce-0367-46c8-a238-2b65963d235a\"}},\"owner\":\"getpaseo\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"]}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},466,[465]);
537
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var n=r(d[0]);const t=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const n=navigator.userAgent.toLowerCase();if(n.includes('edge'))return'Edge';if(n.includes('edg'))return'Chromium Edge';if(n.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(n.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(n.includes('trident'))return'IE';if(n.includes('firefox'))return'Firefox';if(n.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return n.ExecutionEnvironment.Bare},get sessionId(){return t},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"Paseo\",\"slug\":\"voice-mobile\",\"version\":\"0.13.1\",\"orientation\":\"portrait\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"paseo\",\"userInterfaceStyle\":\"automatic\",\"newArchEnabled\":true,\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"Paseo\",\"orientation\":\"portrait\",\"backgroundColor\":\"#ffffff\",\"name\":\"Paseo\"},\"autolinking\":{\"searchPaths\":[\"../../node_modules\",\"./node_modules\"]},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"autolinkingModuleResolution\":true},\"extra\":{\"fdroidBuild\":false,\"profileBuild\":false,\"watchdogBuild\":false,\"router\":{},\"eas\":{\"projectId\":\"0e7f65ce-0367-46c8-a238-2b65963d235a\"}},\"owner\":\"getpaseo\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"]}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},466,[465]);
538
538
  __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.resolveAppVersion=function(){const e=u(t.default?.version);if(e)return e;const o=u(n.default.expoConfig?.version);if(o)return o;const f=u(n.default.manifest?.version);if(f)return f;return null};var n=e(r(d[0])),t=e(r(d[1]));function u(e){if("string"!=typeof e)return null;const n=e.trim();return 0===n.length?null:n}},467,[464,468]);
539
- __d(function(e,r,t,a,o,i,n){o.exports={name:"@getpaseo/app",version:"0.13.0",private:!0,main:"index.ts",scripts:{start:"npm run start:expo","start:expo":"cross-env APP_VARIANT=development expo start","reset-project":"node ./scripts/reset-project.js","eas-build-post-install":"npm --prefix ../.. run build:app-deps",android:"npm run dev:android","android:development":"npm run dev:android","android:production":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=production expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release","android:release":"npm run android:production","android:clear":"node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",ios:"npm run dev:ios","ios:release":"npm --prefix ../.. run build:client && expo run:ios --configuration Release",web:"npm --prefix ../.. run build:client && concurrently --kill-others --names protocol,client,expo --prefix-colors yellow,blue,magenta \"npm --prefix ../.. run watch:protocol\" \"npm --prefix ../.. run watch:client\" \"npm run web:expo\"","web:expo":"expo start --web",lint:"expo lint",typecheck:"tsgo --noEmit",test:"vitest run","test:browser":"vitest run --project browser","test:e2e":"playwright test --project=browser","test:e2e:diff-performance":"cross-env PASEO_DIFF_PERF_E2E=1 playwright test --project=browser e2e/browser/diff-performance.spec.ts","test:e2e:stream-smoothness":"cross-env PASEO_AGENT_STREAM_PERF_E2E=1 playwright test --project=browser e2e/browser/agent-stream-smoothness.spec.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:relay-deployment":"npm --prefix ../.. run build:server && npm --prefix ../.. run build:daemon-web-ui && cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=relay-deployment e2e/browser/relay-deployment-reconnect.real.spec.ts","test:e2e:ui":"playwright test --ui",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web","profile:composer-typing":"node ./scripts/profile-composer-typing.mjs","profile:explorer-toggle":"node ./scripts/profile-explorer-toggle.mjs","profile:side-pane":"playwright test --config playwright.profile.config.ts side-pane-performance.spec.ts","profile:workspace-switching":"node ./scripts/profile-workspace-switching.mjs","profile:workspace-tabs":"node ./scripts/profile-workspace-tabs.mjs","deploy:web":"npm run build:web && wrangler pages deploy dist --project-name paseo-app --branch main","build:mermaid-runtime":"node ./src/components/markdown/fence/mermaid/build-runtime.mjs","dev:android":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug","dev:ios":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo run:ios","build:apk":"npm --prefix ../.. run build:apk","build:apk:arm64":"npm --prefix ../.. run build:apk:arm64","test:android":"expo prebuild --platform android --no-install && cd android && ./gradlew :paseo-native-trace:testReleaseUnitTest --no-daemon --max-workers=2 -Dorg.gradle.parallel=false"},dependencies:{"@codemirror/commands":"6.10.4","@codemirror/language":"6.12.4","@codemirror/search":"6.7.1","@codemirror/state":"6.7.1","@codemirror/view":"6.43.6","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@floating-ui/react-native":"^0.10.7","@getpaseo/client":"*","@getpaseo/expo-two-way-audio":"*","@getpaseo/highlight":"*","@getpaseo/plugin":"*","@getpaseo/protocol":"*","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@marijn/find-cluster-break":"^1.0.2","@mattermost/react-native-paste-input":"2.0.1","@react-native-async-storage/async-storage":"2.2.0","@react-native-masked-view/masked-view":"0.3.2","@react-native/normalize-colors":"0.86.3","@react-navigation/native":"^7.1.8","@replit/codemirror-vim":"6.3.0","@shopify/react-native-skia":"2.6.2","@tanstack/react-query":"^5.90.11","@tanstack/react-virtual":"^3.13.21","@xterm/addon-clipboard":"^0.3.0-beta.213","@xterm/addon-fit":"^0.12.0-beta.213","@xterm/addon-image":"^0.10.0-beta.213","@xterm/addon-ligatures":"^0.11.0-beta.213","@xterm/addon-search":"^0.17.0-beta.213","@xterm/addon-unicode11":"^0.10.0-beta.213","@xterm/addon-web-links":"^0.13.0-beta.213","@xterm/addon-webgl":"^0.20.0-beta.212","@xterm/xterm":"^6.1.0-beta.213",buffer:"^6.0.3",expo:"~57.0.30","expo-asset":"~57.0.20","expo-audio":"~57.0.5","expo-build-properties":"~57.0.22","expo-camera":"~57.0.6","expo-clipboard":"~57.0.2","expo-constants":"~57.0.22","expo-crypto":"~57.0.4","expo-dev-client":"~57.0.20","expo-document-picker":"~57.0.3","expo-file-system":"~57.0.7","expo-haptics":"~57.0.3","expo-image":"~57.0.5","expo-image-manipulator":"~57.0.21","expo-image-picker":"~57.0.20","expo-keep-awake":"~57.0.2","expo-linking":"~57.0.13","expo-localization":"~57.0.2","expo-notifications":"~57.0.23","expo-router":"~57.0.28","expo-sharing":"~57.0.23","expo-splash-screen":"~57.0.10","expo-sqlite":"~57.0.4","expo-system-ui":"~57.0.4","fast-deep-equal":"^3.1.3",htmlparser2:"^12.0.0",i18next:"^26.3.0","lucide-react-native":"^1.50.0","markdown-it":"^10.0.0","mdast-util-from-markdown":"2.0.3","mdast-util-gfm-table":"^2.0.0",mermaid:"^11.16.0","micromark-extension-gfm-table":"^2.1.2","micromark-util-decode-string":"2.0.1","mnemonic-id":"^3.2.7",qrcode:"^1.5.4",react:"19.2.3","react-dom":"19.2.3","react-freeze":"1.0.4","react-i18next":"^17.0.8","react-native":"0.86.3","react-native-draggable-flatlist":"^4.0.3","react-native-edge-to-edge":"^1.7.0","react-native-enriched-markdown":"1.2.0-nightly-20261014-766fc0e67","react-native-gesture-handler":"~2.32.0","react-native-keyboard-controller":"1.21.12","react-native-nitro-modules":"0.35.5","react-native-reanimated":"4.5.1","react-native-safe-area-context":"~5.7.0","react-native-screens":"~4.26.0","react-native-svg":"15.15.4","react-native-unistyles":"^3.2.4","react-native-web":"~0.21.0","react-native-webview":"13.16.1","react-native-worklets":"0.10.1","tiny-invariant":"^1.3.3",turndown:"^7.2.4","turndown-plugin-gfm":"^1.0.2","use-sync-external-store":"^1.6.0",yaml:"^2.8.4",zod:"^4.4.3",zustand:"^5.0.9"},devDependencies:{"@playwright/test":"^1.56.1","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","@types/markdown-it":"^14.1.2","@types/node":"~22.19.0","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/turndown":"^5.0.6","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@xterm/headless":"^6.1.0-beta.213","babel-preset-expo":"~57.0.16",dotenv:"^17.2.3","eas-cli":"^16.24.1",esbuild:"0.28.1",eslint:"^9.25.0","eslint-config-expo":"~57.0.2","expo-gradle-jvmargs":"^1.1.2","fake-indexeddb":"^6.2.5",jsdom:"^20.0.3","material-icon-theme":"^5.32.0",playwright:"^1.56.1","serve-sim":"^0.1.40",typescript:"~5.9.2",vitest:"^4.1.6",wrangler:"^4.105.0",ws:"^8.20.0"},"enriched-markdown":{enableMath:!1,enableCodeHighlight:!0,codeHighlightLanguages:["json","html","css","markdown","yaml","go","java","javascript","python","c","rust","bash","typescript","tsx","cpp","swift","php","ruby","c-sharp"],enableVideo:!1},reanimated:{staticFeatureFlags:{FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS:!1}}}},468,[]);
539
+ __d(function(e,r,t,a,o,i,n){o.exports={name:"@getpaseo/app",version:"0.13.2",private:!0,main:"index.ts",scripts:{start:"npm run start:expo","start:expo":"cross-env APP_VARIANT=development expo start","reset-project":"node ./scripts/reset-project.js","eas-build-post-install":"npm --prefix ../.. run build:app-deps",android:"npm run dev:android","android:development":"npm run dev:android","android:production":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=production expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=production expo run:android --variant=release","android:release":"npm run android:production","android:clear":"node -e \"require('node:fs').rmSync('android', { recursive: true, force: true })\"",ios:"npm run dev:ios","ios:release":"npm --prefix ../.. run build:client && expo run:ios --configuration Release",web:"npm --prefix ../.. run build:client && concurrently --kill-others --names protocol,client,expo --prefix-colors yellow,blue,magenta \"npm --prefix ../.. run watch:protocol\" \"npm --prefix ../.. run watch:client\" \"npm run web:expo\"","web:expo":"expo start --web",lint:"expo lint",typecheck:"tsgo --noEmit",test:"vitest run","test:browser":"vitest run --project browser","test:e2e":"playwright test --project=browser","test:e2e:diff-performance":"cross-env PASEO_DIFF_PERF_E2E=1 playwright test --project=browser e2e/browser/diff-performance.spec.ts","test:e2e:stream-smoothness":"cross-env PASEO_AGENT_STREAM_PERF_E2E=1 playwright test --project=browser e2e/browser/agent-stream-smoothness.spec.ts","test:e2e:real":"cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=real-provider","test:e2e:relay-deployment":"npm --prefix ../.. run build:server && npm --prefix ../.. run build:daemon-web-ui && cross-env E2E_FORK_PASEO_HOME_FROM=../../.dev/paseo-home playwright test --project=relay-deployment e2e/browser/relay-deployment-reconnect.real.spec.ts","test:e2e:ui":"playwright test --ui",build:"npm run build:web","build:web":"npm --prefix ../.. run build:app-deps && expo export --platform web","profile:composer-typing":"node ./scripts/profile-composer-typing.mjs","profile:explorer-toggle":"node ./scripts/profile-explorer-toggle.mjs","profile:side-pane":"playwright test --config playwright.profile.config.ts side-pane-performance.spec.ts","profile:workspace-switching":"node ./scripts/profile-workspace-switching.mjs","profile:workspace-tabs":"node ./scripts/profile-workspace-tabs.mjs","deploy:web":"npm run build:web && wrangler pages deploy dist --project-name paseo-app --branch main","build:mermaid-runtime":"node ./src/components/markdown/fence/mermaid/build-runtime.mjs","dev:android":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo prebuild --platform android --clean --non-interactive && cross-env APP_VARIANT=development expo run:android --variant=debug","dev:ios":"npm --prefix ../.. run build:client && cross-env APP_VARIANT=development expo run:ios","build:apk":"npm --prefix ../.. run build:apk","build:apk:arm64":"npm --prefix ../.. run build:apk:arm64","test:android":"expo prebuild --platform android --no-install && cd android && ./gradlew :paseo-native-trace:testReleaseUnitTest --no-daemon --max-workers=2 -Dorg.gradle.parallel=false"},dependencies:{"@codemirror/commands":"6.10.4","@codemirror/language":"6.12.4","@codemirror/search":"6.7.1","@codemirror/state":"6.7.1","@codemirror/view":"6.43.6","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@floating-ui/react-native":"^0.10.7","@getpaseo/client":"*","@getpaseo/expo-two-way-audio":"*","@getpaseo/highlight":"*","@getpaseo/plugin":"*","@getpaseo/protocol":"*","@gorhom/bottom-sheet":"^5.2.14","@gorhom/portal":"^1.0.14","@marijn/find-cluster-break":"^1.0.2","@mattermost/react-native-paste-input":"2.0.1","@react-native-async-storage/async-storage":"2.2.0","@react-native-masked-view/masked-view":"0.3.2","@react-native/normalize-colors":"0.86.3","@react-navigation/native":"^7.1.8","@replit/codemirror-vim":"6.3.0","@shopify/react-native-skia":"2.6.2","@tanstack/react-query":"^5.90.11","@tanstack/react-virtual":"^3.13.21","@xterm/addon-clipboard":"^0.3.0-beta.213","@xterm/addon-fit":"^0.12.0-beta.213","@xterm/addon-image":"^0.10.0-beta.213","@xterm/addon-ligatures":"^0.11.0-beta.213","@xterm/addon-search":"^0.17.0-beta.213","@xterm/addon-unicode11":"^0.10.0-beta.213","@xterm/addon-web-links":"^0.13.0-beta.213","@xterm/addon-webgl":"^0.20.0-beta.212","@xterm/xterm":"^6.1.0-beta.213",buffer:"^6.0.3",expo:"~57.0.30","expo-asset":"~57.0.20","expo-audio":"~57.0.5","expo-build-properties":"~57.0.22","expo-camera":"~57.0.6","expo-clipboard":"~57.0.2","expo-constants":"~57.0.22","expo-crypto":"~57.0.4","expo-dev-client":"~57.0.20","expo-document-picker":"~57.0.3","expo-file-system":"~57.0.7","expo-haptics":"~57.0.3","expo-image":"~57.0.5","expo-image-manipulator":"~57.0.21","expo-image-picker":"~57.0.20","expo-keep-awake":"~57.0.2","expo-linking":"~57.0.13","expo-localization":"~57.0.2","expo-notifications":"~57.0.23","expo-router":"~57.0.28","expo-sharing":"~57.0.23","expo-splash-screen":"~57.0.10","expo-sqlite":"~57.0.4","expo-system-ui":"~57.0.4","fast-deep-equal":"^3.1.3",htmlparser2:"^12.0.0",i18next:"^26.3.0","lucide-react-native":"^1.50.0","markdown-it":"^10.0.0","mdast-util-from-markdown":"2.0.3","mdast-util-gfm-table":"^2.0.0",mermaid:"^11.16.0","micromark-extension-gfm-table":"^2.1.2","micromark-util-decode-string":"2.0.1","mnemonic-id":"^3.2.7",qrcode:"^1.5.4",react:"19.2.3","react-dom":"19.2.3","react-freeze":"1.0.4","react-i18next":"^17.0.8","react-native":"0.86.3","react-native-draggable-flatlist":"^4.0.3","react-native-edge-to-edge":"^1.7.0","react-native-enriched-markdown":"1.2.0-nightly-20261014-766fc0e67","react-native-gesture-handler":"~2.32.0","react-native-keyboard-controller":"1.21.12","react-native-nitro-modules":"0.35.5","react-native-reanimated":"4.5.5","react-native-safe-area-context":"~5.7.0","react-native-screens":"~4.26.0","react-native-svg":"15.15.4","react-native-unistyles":"^3.2.4","react-native-web":"~0.21.0","react-native-webview":"13.16.1","react-native-worklets":"0.10.4","tiny-invariant":"^1.3.3",turndown:"^7.2.4","turndown-plugin-gfm":"^1.0.2","use-sync-external-store":"^1.6.0",yaml:"^2.8.4",zod:"^4.4.3",zustand:"^5.0.9"},devDependencies:{"@playwright/test":"^1.56.1","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","@types/markdown-it":"^14.1.2","@types/node":"~22.19.0","@types/qrcode":"^1.5.6","@types/react":"~19.2.0","@types/turndown":"^5.0.6","@types/ws":"^8.18.1","@vitest/browser":"^4.1.7","@vitest/browser-playwright":"^4.1.7","@xterm/headless":"^6.1.0-beta.213","babel-preset-expo":"~57.0.16",dotenv:"^17.2.3","eas-cli":"^16.24.1",esbuild:"0.28.1",eslint:"^9.25.0","eslint-config-expo":"~57.0.2","expo-gradle-jvmargs":"^1.1.2","fake-indexeddb":"^6.2.5",jsdom:"^20.0.3","material-icon-theme":"^5.32.0",playwright:"^1.56.1","serve-sim":"^0.1.40",typescript:"~5.9.2",vitest:"^4.1.6",wrangler:"^4.105.0",ws:"^8.20.0"},"enriched-markdown":{enableMath:!1,enableCodeHighlight:!0,codeHighlightLanguages:["json","html","css","markdown","yaml","go","java","javascript","python","c","rust","bash","typescript","tsx","cpp","swift","php","ruby","c-sharp"],enableVideo:!1},expo:{install:{exclude:["react-native-reanimated","react-native-worklets"]}},reanimated:{staticFeatureFlags:{FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS:!1}}}},468,[]);
540
540
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createRecorder=function(t,n){let s=0;const o=new Map,c=(s,o={})=>t(s,{...o,jsMonoMs:String(n())});return{record:c,trace(t){const o=String(++s);let u=0;const l=[];return{isEnabled:()=>!0,beginSection(s,M){const S=`${o}:${++u}`;c(`${s}.begin`,{...t,...M,client:o,span:S,parent:l.at(-1)?.id??""}),l.push({id:S,name:s,start:n()})},endSection(){const s=l.pop();s&&c(`${s.name}.end`,{...t,client:o,span:s.id,durationMs:String(n()-s.start)})}}},render(t){t.actualDuration>=16&&c("react.render.slow",{region:t.id,phase:t.phase,renderMs:String(t.actualDuration),startMs:String(t.startTime),commitMs:String(t.commitTime)});const n=o.has(t.id)||o.size<128?t.id:"other",s=o.get(n)??{count:0,totalMs:0,maxMs:0};s.count++,s.totalMs+=t.actualDuration,s.maxMs=Math.max(s.maxMs,t.actualDuration),o.set(n,s)},flushRenders(){for(const[t,n]of o)c("react.render.summary",{region:t,count:String(n.count),totalMs:String(n.totalMs),maxMs:String(n.maxMs)});o.clear()}}}},469,[]);
541
541
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.RootApp=function(){const e=(0,o.c)(1);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)(t.RenderProfile,{id:"App",children:(0,h.jsx)(v,{context:p})}),e[0]=n):n=e[0];return n},_e.RootRouter=v;var e,o=r(d[0]),t=r(d[1]),n=r(d[2]),c=r(d[3]),l=r(d[4]),s=(e=l)&&e.__esModule?e:{default:e},u=r(d[5]),x=r(d[6]),f=r(d[7]),j=r(d[8]),_=r(d[9]),h=r(d[10]);const{ctx:p}=r(d[11]);function v(e){const t=(0,o.c)(7),{context:l}=e,[p,v]=(0,n.useState)(0);let y;t[0]===Symbol.for("react.memo_cache_sentinel")?(y=()=>v(R),t[0]=y):y=t[0];const P=y,S=0===p?void 0:"/open-project";let b,A;return t[1]!==l||t[2]!==S?(b=(0,h.jsx)(s.default.Provider,{children:(0,h.jsx)(c.ExpoRoot,{context:l,location:S})}),t[1]=l,t[2]=S,t[3]=b):b=t[3],t[4]!==p||t[5]!==b?(A=(0,h.jsx)(u.QueryClientProvider,{client:f.queryClient,children:(0,h.jsx)(j.I18nProvider,{children:(0,h.jsx)(x.SafeAreaProvider,{children:(0,h.jsx)(_.RootErrorBoundary,{onReload:P,children:b},p)})})}),t[4]=p,t[5]=b,t[6]=A):A=t[6],A}function R(e){return e+1}},470,[471,473,35,474,907,912,478,960,961,3349,320,3359]);
542
542
  __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},471,[472]);
@@ -1254,16 +1254,16 @@ __d(function(g,r,i,_a,m,e,d){'use strict';const t=r(d[0]);m.exports=(s,c,n)=>t(s
1254
1254
  __d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]);m.exports=(n,s)=>{const l=t(n,s);return l&&l.prerelease.length?l.prerelease:null}},1132,[1133]);
1255
1255
  __d(function(g,r,i,a,m,e,d){'use strict';const t=r(d[0]);m.exports=(n,c,u=!1)=>{if(n instanceof t)return n;try{return new t(n,c)}catch(t){if(!u)return null;throw t}}},1133,[1125]);
1256
1256
  __d(function(g,r,_i,a,m,e,d){'use strict';const t=r(d[0]),o=r(d[1]),{ANY:s}=o,n=r(d[2]),l=r(d[3]),u=r(d[4]),f=r(d[5]),i=r(d[6]),v=r(d[7]);m.exports=(c,p,w,h)=>{let b,k,E,_,x;switch(c=new t(c,h),p=new n(p,h),w){case'>':b=u,k=i,E=f,_='>',x='>=';break;case'<':b=f,k=v,E=u,_='<',x='<=';break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(c,p,h))return!1;for(let t=0;t<p.set.length;++t){const n=p.set[t];let l=null,u=null;if(n.forEach(t=>{t.semver===s&&(t=new o('>=0.0.0')),l=l||t,u=u||t,b(t.semver,l.semver,h)?l=t:E(t.semver,u.semver,h)&&(u=t)}),l.operator===_||l.operator===x)return!1;if((!u.operator||u.operator===_)&&k(c,u.semver))return!1;if(u.operator===x&&E(c,u.semver))return!1}return!0}},1134,[1125,1118,1115,1114,1128,1130,1131,1129]);
1257
- __d(function(t,e,a,x,r,i,n){r.exports={fabric:{nightly:{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["nightly"]},"4.5.x":{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["0.10.x"]},"4.4.x":{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["0.9.x","0.10.x"]},"4.3.x":{"react-native":["0.81","0.82","0.83","0.84","0.85"],"react-native-worklets":["0.8.x"]},"4.2.x":{"react-native":["0.80","0.81","0.82","0.83","0.84"],"react-native-worklets":["0.7.x","0.8.x"]},"4.1.x":{"react-native":["0.78","0.79","0.80","0.81","0.82"],"react-native-worklets":["0.5.x","0.6.x","0.7.x","0.8.x"]},"4.0.x":{"react-native":["0.78","0.79","0.80","0.81"],"react-native-worklets":["0.4.x"]},"3.19.x":{"react-native":["0.78","0.79","0.80","0.81"]},"3.18.x":{"react-native":["0.75","0.76","0.77","0.78","0.79","0.80"]},"3.17.x":{"react-native":["0.75","0.76","0.77","0.78","0.79"]},"3.16.x":{"react-native":["0.74","0.75","0.76","0.77"]},"3.15.x":{"react-native":["0.74","0.75"]},"3.9.x - 3.14.x":{"react-native":["0.74"]},"3.6.x - 3.8.x":{"react-native":["0.72","0.73"]},"3.1.x - 3.5.x":{"react-native":["0.72"]},"3.0.x":{"react-native":["0.71"]}},paper:{"3.19.x":{"react-native":["0.78","0.79","0.80","0.81"]},"3.18.x":{"react-native":["0.75","0.76","0.77","0.78","0.79","0.80"]},"3.17.x":{"react-native":["0.75","0.76","0.77","0.78","0.79"]},"3.16.x":{"react-native":["0.74","0.75","0.76","0.77"]},"3.15.x":{"react-native":["0.72","0.73","0.74","0.75"]},"3.9.x - 3.14.x":{"react-native":["0.71","0.72","0.73","0.74"]},"3.6.x - 3.8.x":{"react-native":["0.66","0.67","0.68","0.69","0.70","0.71","0.72","0.73"]},"3.5.x":{"react-native":["0.66","0.67","0.68","0.69","0.70","0.71","0.72"]},"3.3.x - 3.4.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71","0.72"]},"3.0.x - 3.2.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71"]},"2.14.x - 2.17.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71"]},"2.11.x - 2.13.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70"]},"2.10.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69"]},"2.5.x - 2.9.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68"]},"2.3.x - 2.4.x":{"react-native":["0.63","0.64","0.65","0.66","0.67"]}}}},1135,[]);
1258
- __d(function(e,t,a,r,n,i,s){n.exports={name:"react-native-worklets",version:"0.10.1",description:"The React Native multithreading library",keywords:["react-native","react","native","worklets"],scripts:{build:"yarn workspace babel-plugin-worklets build && yarn set-version && yarn run --top-level bob build","circular-dependency-check":"yarn madge --extensions js,jsx --circular lib","find-unused-code:js":"knip",format:"yarn format:js && yarn format:plugin && yarn format:common && yarn format:android && yarn format:apple","format:android":"yarn format:android:java && yarn format:android:cpp && yarn format:android:cmake","format:android:cpp":"find android/src -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i","format:android:cmake":"find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/format-cmake.sh","format:android:java":"node ../../scripts/format-java.js","format:apple":"find apple -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i","format:common":"find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i","format:js":"yarn run --top-level oxfmt src","format:plugin":"yarn workspace babel-plugin-worklets format",lint:"yarn lint:js && yarn lint:plugin && yarn lint:android && yarn lint:apple && yarn lint:clang-tidy","lint:android":"../../scripts/validate-android.sh && ../../scripts/validate-common.sh && ./android/gradlew -p android spotlessCheck -q && yarn format:common --dry-run -Werror && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake","lint:apple":"../../scripts/validate-apple.sh && ../../scripts/validate-common.sh && yarn format:common --dry-run -Werror && yarn format:apple --dry-run -Werror","lint:cmake":"find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh","lint:clang-tidy":"yarn lint:clang-tidy:ios && yarn lint:clang-tidy:android","lint:clang-tidy:ios":"../../scripts/llvm-tools/clang-tidy-lint.sh --platform=ios","lint:clang-tidy:android":"../../scripts/llvm-tools/clang-tidy-lint.sh --platform=android","lint:js":"eslint src && yarn run --top-level oxfmt --check src","lint:plugin":"yarn workspace babel-plugin-worklets lint",prepack:"yarn build","set-version":"node scripts/set-version.js",test:"jest","type:check":"yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests","type:check:src:native":"yarn tsc --noEmit","type:check:src:web":"yarn tsc --noEmit --project tsconfig.web.json","type:check:app":"yarn workspace common-app type:check","type:check:plugin":"yarn workspace babel-plugin-worklets type:check","type:check:tests":"../../scripts/test-ts.sh __typetests__","type:check:strict":"yarn type:check:strict:src && yarn type:check:strict:app","type:check:strict:src":"yarn tsc --noEmit --customConditions react-native-strict-api","type:check:strict:app":"yarn workspace common-app type:check:strict","tree-shake:check:web":"yarn is-tree-shakable --resolution web","validate-peers":"node ../../scripts/validate-compatibility-peer-dependencies.js"},repository:{type:"git",url:"git+https://github.com/software-mansion/react-native-reanimated.git",directory:"packages/react-native-worklets"},license:"MIT",readmeFilename:"README.md",bugs:{url:"https://github.com/software-mansion/react-native-reanimated/issues"},homepage:"https://docs.swmansion.com/react-native-worklets",peerDependencies:{"@babel/core":"*","@react-native/metro-config":"*",react:"*","react-native":"0.83 - 0.86"},dependencies:{"@babel/plugin-transform-arrow-functions":"^7.27.1","@babel/plugin-transform-class-properties":"^7.28.6","@babel/plugin-transform-classes":"^7.28.6","@babel/plugin-transform-nullish-coalescing-operator":"^7.28.6","@babel/plugin-transform-optional-chaining":"^7.28.6","@babel/plugin-transform-shorthand-properties":"^7.27.1","@babel/plugin-transform-template-literals":"^7.27.1","@babel/plugin-transform-unicode-regex":"^7.27.1","@babel/preset-typescript":"^7.28.5","@babel/types":"^7.27.1","convert-source-map":"^2.0.0",semver:"^7.7.4"},devDependencies:{"@babel/cli":"7.28.3","@babel/core":"7.28.4","@react-native-community/cli":"20.1.0","@react-native/eslint-config":"0.83.0","@react-native/jest-preset":"patch:@react-native/jest-preset@npm%3A0.85.2#~/.yarn/patches/@react-native-jest-preset-npm-0.85.2-d3275e8971.patch","@types/jest":"30.0.0","@types/node":"24.7.0","@types/react":"19.2.2","clang-format-node":"1.3.5","code-tag":"1.2.0",eslint:"9.37.0","is-tree-shakable":"0.5.0",jest:"30.2.0",knip:"5.61.3",madge:"8.0.0",react:"19.2.3","react-native":"0.85.2",typescript:"5.9.3"},main:"./lib/module/index",module:"./lib/module/index","react-native":"./src/index",source:"./src/index",types:"lib/typescript/index.d.ts",files:["src","lib","android","apple","Common","compatibility.json","bundleMode/index.js","bundleMode/index.d.ts","bundleMode/shims/*.js","scripts/worklets_utils.rb","scripts/validate-react-native-version.js","jest","plugin/index.js","plugin/index.d.ts","*.podspec","react-native.config.js","!apple/build","!android/build","!android/gradle","!android/gradlew","!android/gradlew.bat","!android/local.properties","!.worklets",".worklets/dummy.md","!**/__tests__","!**/__fixtures__","!**/__mocks__","!**/.*"],sideEffects:["./src/index.ts","./lib/module/index.js","./**/runtimeKind.{js,ts}","./**/serializable.native.{js,ts}","./**/initializers.native.{js,ts}","./**/featureFlags.native.{js,ts}"],codegenConfig:{name:"rnworklets",type:"modules",jsSrcsDir:"src/specs",android:{javaPackageName:"com.swmansion.worklets"}}}},1136,[]);
1259
- __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"jsVersion",{enumerable:!0,get:function(){return t}});const t='4.5.1'},1137,[]);
1257
+ __d(function(t,e,a,x,r,i,n){r.exports={fabric:{nightly:{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["nightly"]},"4.5.x":{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["0.10.x","0.11.x"]},"4.4.x":{"react-native":["0.83","0.84","0.85","0.86"],"react-native-worklets":["0.9.x","0.10.x"]},"4.3.x":{"react-native":["0.81","0.82","0.83","0.84","0.85"],"react-native-worklets":["0.8.x"]},"4.2.x":{"react-native":["0.80","0.81","0.82","0.83","0.84"],"react-native-worklets":["0.7.x","0.8.x"]},"4.1.x":{"react-native":["0.78","0.79","0.80","0.81","0.82"],"react-native-worklets":["0.5.x","0.6.x","0.7.x","0.8.x"]},"4.0.x":{"react-native":["0.78","0.79","0.80","0.81"],"react-native-worklets":["0.4.x"]},"3.19.x":{"react-native":["0.78","0.79","0.80","0.81"]},"3.18.x":{"react-native":["0.75","0.76","0.77","0.78","0.79","0.80"]},"3.17.x":{"react-native":["0.75","0.76","0.77","0.78","0.79"]},"3.16.x":{"react-native":["0.74","0.75","0.76","0.77"]},"3.15.x":{"react-native":["0.74","0.75"]},"3.9.x - 3.14.x":{"react-native":["0.74"]},"3.6.x - 3.8.x":{"react-native":["0.72","0.73"]},"3.1.x - 3.5.x":{"react-native":["0.72"]},"3.0.x":{"react-native":["0.71"]}},paper:{"3.19.x":{"react-native":["0.78","0.79","0.80","0.81"]},"3.18.x":{"react-native":["0.75","0.76","0.77","0.78","0.79","0.80"]},"3.17.x":{"react-native":["0.75","0.76","0.77","0.78","0.79"]},"3.16.x":{"react-native":["0.74","0.75","0.76","0.77"]},"3.15.x":{"react-native":["0.72","0.73","0.74","0.75"]},"3.9.x - 3.14.x":{"react-native":["0.71","0.72","0.73","0.74"]},"3.6.x - 3.8.x":{"react-native":["0.66","0.67","0.68","0.69","0.70","0.71","0.72","0.73"]},"3.5.x":{"react-native":["0.66","0.67","0.68","0.69","0.70","0.71","0.72"]},"3.3.x - 3.4.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71","0.72"]},"3.0.x - 3.2.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71"]},"2.14.x - 2.17.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70","0.71"]},"2.11.x - 2.13.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69","0.70"]},"2.10.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68","0.69"]},"2.5.x - 2.9.x":{"react-native":["0.63","0.64","0.65","0.66","0.67","0.68"]},"2.3.x - 2.4.x":{"react-native":["0.63","0.64","0.65","0.66","0.67"]}}}},1135,[]);
1258
+ __d(function(e,t,a,r,n,i,s){n.exports={name:"react-native-worklets",version:"0.10.4",description:"The React Native multithreading library",keywords:["react-native","react","native","worklets"],scripts:{build:"yarn workspace babel-plugin-worklets build && yarn set-version && yarn run --top-level bob build","circular-dependency-check":"yarn madge --extensions js,jsx --circular lib","find-unused-code:js":"knip",format:"yarn format:js && yarn format:plugin && yarn format:common && yarn format:android && yarn format:apple","format:android":"yarn format:android:java && yarn format:android:cpp && yarn format:android:cmake","format:android:cpp":"find android/src -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i","format:android:cmake":"find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/format-cmake.sh","format:android:java":"node ../../scripts/format-java.js","format:apple":"find apple -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i","format:common":"find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i","format:js":"yarn run --top-level oxfmt src","format:plugin":"yarn workspace babel-plugin-worklets format",lint:"yarn lint:js && yarn lint:plugin && yarn lint:android && yarn lint:apple && yarn lint:clang-tidy","lint:android":"../../scripts/validate-android.sh && ../../scripts/validate-common.sh && ./android/gradlew -p android spotlessCheck -q && yarn format:common --dry-run -Werror && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake","lint:apple":"../../scripts/validate-apple.sh && ../../scripts/validate-common.sh && yarn format:common --dry-run -Werror && yarn format:apple --dry-run -Werror","lint:cmake":"find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh","lint:clang-tidy":"yarn lint:clang-tidy:ios && yarn lint:clang-tidy:android","lint:clang-tidy:ios":"../../scripts/llvm-tools/clang-tidy-lint.sh --platform=ios","lint:clang-tidy:android":"../../scripts/llvm-tools/clang-tidy-lint.sh --platform=android","lint:js":"eslint src && yarn run --top-level oxfmt --check src","lint:plugin":"yarn workspace babel-plugin-worklets lint",prepack:"yarn build","set-version":"node scripts/set-version.js",test:"jest","type:check":"yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests","type:check:src:native":"yarn tsc --noEmit","type:check:src:web":"yarn tsc --noEmit --project tsconfig.web.json","type:check:app":"yarn workspace common-app type:check","type:check:plugin":"yarn workspace babel-plugin-worklets type:check","type:check:tests":"../../scripts/test-ts.sh __typetests__","type:check:strict":"yarn type:check:strict:src && yarn type:check:strict:app","type:check:strict:src":"yarn tsc --noEmit --customConditions react-native-strict-api","type:check:strict:app":"yarn workspace common-app type:check:strict","tree-shake:check:web":"yarn is-tree-shakable --resolution web","validate-peers":"node ../../scripts/validate-compatibility-peer-dependencies.js"},repository:{type:"git",url:"git+https://github.com/software-mansion/react-native-reanimated.git",directory:"packages/react-native-worklets"},license:"MIT",readmeFilename:"README.md",bugs:{url:"https://github.com/software-mansion/react-native-reanimated/issues"},homepage:"https://docs.swmansion.com/react-native-worklets",peerDependencies:{"@babel/core":"*","@react-native/metro-config":"*",react:"*","react-native":"0.83 - 0.86"},dependencies:{"@babel/plugin-transform-arrow-functions":"^7.27.1","@babel/plugin-transform-class-properties":"^7.28.6","@babel/plugin-transform-classes":"^7.28.6","@babel/plugin-transform-nullish-coalescing-operator":"^7.28.6","@babel/plugin-transform-optional-chaining":"^7.28.6","@babel/plugin-transform-shorthand-properties":"^7.27.1","@babel/plugin-transform-template-literals":"^7.27.1","@babel/plugin-transform-unicode-regex":"^7.27.1","@babel/preset-typescript":"^7.28.5","@babel/types":"^7.27.1","convert-source-map":"^2.0.0",semver:"^7.7.4"},devDependencies:{"@babel/cli":"7.28.3","@babel/core":"7.28.4","@react-native-community/cli":"20.1.0","@react-native/eslint-config":"0.83.0","@react-native/jest-preset":"patch:@react-native/jest-preset@npm%3A0.85.2#~/.yarn/patches/@react-native-jest-preset-npm-0.85.2-d3275e8971.patch","@types/jest":"30.0.0","@types/node":"24.7.0","@types/react":"19.2.2","clang-format-node":"1.3.5","code-tag":"1.2.0",eslint:"9.37.0","is-tree-shakable":"0.5.0",jest:"30.2.0",knip:"5.61.3",madge:"8.0.0",react:"19.2.3","react-native":"0.85.2",typescript:"5.9.3"},main:"./lib/module/index",module:"./lib/module/index","react-native":"./src/index",source:"./src/index",types:"lib/typescript/index.d.ts",files:["src","lib","android","apple","Common","compatibility.json","bundleMode/index.js","bundleMode/index.d.ts","bundleMode/shims/*.js","scripts/worklets_utils.rb","scripts/validate-react-native-version.js","jest","plugin/index.js","plugin/index.d.ts","*.podspec","react-native.config.js","!apple/build","!android/build","!android/gradle","!android/gradlew","!android/gradlew.bat","!android/local.properties","!.worklets",".worklets/dummy.md","!**/__tests__","!**/__fixtures__","!**/__mocks__","!**/.*"],sideEffects:["./src/index.ts","./lib/module/index.js","./**/runtimeKind.{js,ts}","./**/serializable.native.{js,ts}","./**/initializers.native.{js,ts}","./**/featureFlags.native.{js,ts}"],codegenConfig:{name:"rnworklets",type:"modules",jsSrcsDir:"src/specs",android:{javaPackageName:"com.swmansion.worklets"}}}},1136,[]);
1259
+ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"jsVersion",{enumerable:!0,get:function(){return t}});const t='4.5.5'},1137,[]);
1260
1260
  __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 t.ReanimatedFlatList}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n.AnimatedImage}}),Object.defineProperty(e,"ScrollView",{enumerable:!0,get:function(){return o.AnimatedScrollView}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return u.AnimatedText}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return c.AnimatedView}}),Object.defineProperty(e,"addWhitelistedNativeProps",{enumerable:!0,get:function(){return l.addWhitelistedNativeProps}}),Object.defineProperty(e,"addWhitelistedUIProps",{enumerable:!0,get:function(){return l.addWhitelistedUIProps}}),Object.defineProperty(e,"createAnimatedComponent",{enumerable:!0,get:function(){return f.createAnimatedComponent}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),c=r(d[4]),l=r(d[5]),f=r(d[6])},1138,[1139,1269,1271,1293,1268,1294,1141]);
1261
1261
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ReanimatedFlatList",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]);r(d[2]);var o=r(d[3]),c=r(d[4]),s=r(d[5]),u=r(d[6]);const l=(0,o.createAnimatedComponent)(t.FlatList),f=(t,n)=>o=>(0,u.jsx)(s.AnimatedView,{layout:t?.current,onLayout:o.onLayout,style:[o.style,'function'==typeof n?.current?n?.current({index:o.index,item:o.item}):n?.current],children:o.children}),y=function(t){const{itemLayoutAnimation:o,skipEnteringExitingAnimations:s,CellRendererComponentStyle:y,ref:p,...x}=t;'scrollEventThrottle'in x||(x.scrollEventThrottle=1);const v=(0,n.useRef)(o);v.current=o;const C=(0,n.useRef)(y);C.current=y;const E=(0,n.useMemo)(()=>f(v,C),[]),L=(0,u.jsx)(l,{ref:p,...x,CellRendererComponent:E});return void 0===s?L:(0,u.jsx)(c.LayoutAnimationConfig,{skipEntering:!0,skipExiting:!0,children:L})}},1139,[1140,35,185,1141,1170,1268,320]);
1262
1262
  __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 u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=(0,r(d[1]).createUnistylesElement)(n.default)},1140,[185,315]);
1263
1263
  __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 t.createAnimatedComponent}}),Object.defineProperty(e,"NativeEventsManager",{enumerable:!0,get:function(){return n.NativeEventsManager}});var t=r(d[0]),n=r(d[1])},1141,[1142,1265]);
1264
1264
  __d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),_e.createAnimatedComponent=function(e,n){class o extends s.default{static displayName=`AnimatedComponent(${e.displayName||e.name||'Component'})`;constructor(s){const t=n?.jsProps??e.jsProps,l=t?.length?{...n,jsProps:t}:n;super(e,s,o.displayName,l)}}const l=e=>(0,t.jsx)(o,{...e,ref:null,...null===e.ref?null:{forwardedRef:e.ref}});return l.displayName=e.displayName||e.name||'Component',l};var e,n=r(d[0]),s=(e=n)&&e.__esModule?e:{default:e},t=r(d[1])},1142,[1143,320]);
1265
- __d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}}),r(d[0]);var e=r(d[1]),s=r(d[2]),n=r(d[3]),o=r(d[4]),p=r(d[5]),h=t(r(d[6])),l=r(d[7]),_=r(d[8]),y=r(d[9]),u=r(d[10]),c=r(d[11]),A=r(d[12]),S=r(d[13]),T=t(r(d[14])),f=r(d[15]),E=r(d[16]),v=r(d[17]),I=r(d[18]);let P=0;n.IS_WEB&&(0,y.configureWebLayoutAnimations)();const N=(0,l.getStaticFeatureFlag)('FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS')&&!n.IS_WEB;class R extends h.default{_animatedStyles=[];_prevAnimatedStyles=[];_animatedProps=[];_prevAnimatedProps=[];_isFirstRender=!0;jestAnimatedStyle={value:{}};jestAnimatedProps={value:{}};_InlinePropManager=new S.InlinePropManager;_PropsFilter=new E.PropsFilter;static contextType=p.SkipEnteringContext;reanimatedID=P++;constructor(t,e,s,p){super(t,e),this._options=p,this._displayName=s,N&&(this.state={settledProps:{}}),n.IS_JEST&&(this.jestAnimatedStyle={value:{}},this.jestAnimatedProps={value:{}}),this._configureSharedTransition(!0);const h=this.props.entering,l=this.context?.current;l||this._configureLayoutAnimation(o.LayoutAnimationType.ENTERING,h)}componentDidMount(){if(super.componentDidMount(),n.IS_WEB||(this._NativeEventsManager=new f.NativeEventsManager(this,this._options)),this._NativeEventsManager?.attachEvents(),this._updateAnimatedStylesAndProps(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),N){const t=this.getComponentViewTag();-1!==t&&c.PropsRegistryGarbageCollector.registerView(t,this)}if(this._options?.jsProps?.length&&T.default.registerComponent(this,this._options.jsProps),this._configureLayoutAnimation(o.LayoutAnimationType.LAYOUT,this.props.layout),this._configureLayoutAnimation(o.LayoutAnimationType.EXITING,this.props.exiting),n.IS_WEB&&this._componentDOMRef){const t=this._componentDOMRef,e=t.dummyClone;for(;e?.firstChild;)t.appendChild(e.firstChild);if(delete t.dummyClone,this.props.exiting&&(0,y.saveSnapshot)(t),!this.props.entering)return void(this._isFirstRender=!1);if((0,y.getReducedMotionFromConfig)(this.props.entering))return this._isFirstRender=!1,void this.props.entering.callbackV?.(!0);const s=this.context?.current;s?t.style&&(t.style.visibility='initial'):(0,y.startWebLayoutAnimation)(this.props,t,o.LayoutAnimationType.ENTERING)}this._isFirstRender=!1}componentWillUnmount(){if(super.componentWillUnmount(),this._NativeEventsManager?.detachEvents(),this._detachStyles(),this._InlinePropManager.detachInlineProps(),N){const t=this.getComponentViewTag();-1!==t&&c.PropsRegistryGarbageCollector.unregisterView(t)}this._options?.jsProps?.length&&T.default.unregisterComponent(this);const t=this.props.exiting;if(n.IS_WEB&&this._componentDOMRef&&t){if((0,y.getReducedMotionFromConfig)(t))return void t.callbackV?.(!0);(0,u.addHTMLMutationObserver)(),(0,y.startWebLayoutAnimation)(this.props,this._componentDOMRef,o.LayoutAnimationType.EXITING)}}_syncStylePropsBackToReact(t){N&&this.setState(e=>({settledProps:{...e.settledProps,...t}}))}_detachStyles(){const t=this.getComponentViewTag();if(-1!==t){for(const e of this._animatedStyles)e.viewDescriptors.remove(t);for(const e of this._animatedProps)e?.viewDescriptors?.remove(t)}}setNativeProps(t){this._options?.setNativeProps?this._options.setNativeProps(this._componentRef,t):this._componentRef?.setNativeProps?.(t)}_handleAnimatedStylesUpdate(t,e,s){const{viewTag:o,shadowNodeWrapper:p}=this._getViewInfo(),h=new Set(e),l=t=>t.viewDescriptors.has(o);if(t){if(1===e.length&&1===t.length&&e[0]===t[0]&&l(t[0]))return;for(const s of t){e.some(t=>!(t!==s||!l(t))&&(h.delete(t),!0))||s.viewDescriptors.remove(o)}}h.forEach(t=>{t.viewDescriptors.add({tag:o,shadowNodeWrapper:p},t.styleUpdaterContainer),n.IS_JEST&&(Object.assign(s.value,t.initial.value),t.jestAnimatedValues.current=s)})}_updateAnimatedStylesAndProps(){this._handleAnimatedStylesUpdate(this._prevAnimatedStyles,this._animatedStyles,this.jestAnimatedStyle),this._handleAnimatedStylesUpdate(this._prevAnimatedProps,this._animatedProps,this.jestAnimatedProps)}componentDidUpdate(t,e,s){if(this._configureLayoutAnimation(o.LayoutAnimationType.LAYOUT,this.props.layout,t.layout),this._configureLayoutAnimation(o.LayoutAnimationType.EXITING,this.props.exiting,t.exiting),this._configureSharedTransition(),this._NativeEventsManager?.updateEvents(t),this._updateAnimatedStylesAndProps(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),n.IS_WEB&&this.props.exiting&&this._componentDOMRef&&(0,y.saveSnapshot)(this._componentDOMRef),n.IS_WEB&&s&&this.props.layout){if((0,y.getReducedMotionFromConfig)(this.props.layout))return void this.props.layout.callbackV?.(!0);(0,y.tryActivateLayoutTransition)(this.props,this._componentDOMRef,s)}}_updateStyles(t){const e=(0,v.filterStyles)((0,v.flattenArray)(t.style??[]));this._prevAnimatedStyles=this._animatedStyles,this._animatedStyles=e.animatedStyles;const s=(0,v.filterStyles)((0,v.flattenArray)(t.animatedProps??[]));if(this._prevAnimatedProps=this._animatedProps,this._animatedProps=s.animatedStyles,s.cssStyle){const e={...t,...s.cssStyle};delete e.style,delete e.animatedProps,this._cssStyle=e}else this._cssStyle=e.cssStyle??{}}_configureLayoutAnimation(t,e,p){n.IS_WEB||e===p||(0,A.updateLayoutAnimations)(t===o.LayoutAnimationType.ENTERING?this.reanimatedID:this.getComponentViewTag(),t,e&&(0,s.maybeBuild)(e))}_configureSharedTransition(t){if(!(0,l.getStaticFeatureFlag)('ENABLE_SHARED_ELEMENT_TRANSITIONS'))return;if(!this.props.sharedTransitionTag)return void(this._sharedTransitionTag&&((0,A.updateLayoutAnimations)(t?this.reanimatedID:this.getComponentViewTag(),t?o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION_NATIVE_ID:o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION,void 0,void 0,void 0),this._sharedTransitionTag=void 0));this._sharedTransitionTag=this.props.sharedTransitionTag;const e=this.props.sharedTransitionStyle??this._sharedTransition??new _.SharedTransition;this._sharedTransition!==e&&((0,A.updateLayoutAnimations)(t?this.reanimatedID:this.getComponentViewTag(),t?o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION_NATIVE_ID:o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION,(0,s.maybeBuild)(e),void 0,this.props.sharedTransitionTag),this._sharedTransition=e)}getSnapshotBeforeUpdate(){return n.IS_WEB&&this.props.layout&&this._componentDOMRef?.getBoundingClientRect?this._componentDOMRef.getBoundingClientRect():null}render(){const t=this._PropsFilter.filterNonAnimatedProps(this);n.IS_JEST&&(t.jestAnimatedStyle=this.jestAnimatedStyle,t.jestAnimatedProps=this.jestAnimatedProps),this._isFirstRender&&n.IS_WEB&&t.entering&&!(0,y.getReducedMotionFromConfig)(t.entering)&&(t.style=Array.isArray(t.style)?t.style.concat([{visibility:'hidden'}]):{...t.style??{},visibility:'hidden'});const s=this.context?.current;let o,p;return n.IS_JEST?p={jestInlineStyle:this.props.style&&L(this.props.style),jestAnimatedStyle:this.jestAnimatedStyle,jestAnimatedProps:this.jestAnimatedProps}:s||n.IS_WEB||(o=`${this.reanimatedID}`),'RadialGradient'!==this.ChildComponent.displayName&&'LinearGradient'!==this.ChildComponent.displayName||void 0===t.children&&(t.children=(0,I.jsx)(e.Fragment,{})),N?super.render({nativeID:o,...t,...this.state.settledProps,style:[...(0,v.flattenArray)(t.style),this.state.settledProps],...p}):super.render({nativeID:o,...t,...p})}}function L(t){return t?Array.isArray(t)?t.filter(t=>!(t&&'viewDescriptors'in t)).map(t=>Array.isArray(t)?L(t):t):t?.viewDescriptors?{}:t:t}},1143,[1144,35,1169,1032,1110,1170,1177,1105,1227,1232,1250,1257,1258,1259,1262,1265,1267,1264,320]);
1266
- __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),u=r(d[4]),l=r(d[5]);const _=1e9,c=(0,u.getStaticFeatureFlag)('USE_ANIMATION_BACKEND'),A=(function({_worklet_14066200087475_init_data:t,TAG_OFFSET:n}){const s=function(t,s,o){s.addListener(t+n,()=>{g._notifyAboutProgress(t,s.value),o()})};return s.__closure={TAG_OFFSET:n},s.__workletHash=0xccb0adc0bb3,s.__initData=t,s})({_worklet_14066200087475_init_data:{code:"function startObservingProgress_reactNativeReanimated_animationsManagerJs1(tag,sharedValue,scheduleFlush){const{TAG_OFFSET}=this.__closure;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value);scheduleFlush();});}"},TAG_OFFSET:_}),h=(function({_worklet_10519792981855_init_data:t,TAG_OFFSET:n}){const s=function(t,s,o,u=!1){s.removeListener(t+n),g._notifyAboutEnd(t,u),o()};return s.__closure={TAG_OFFSET:n},s.__workletHash=0x9915486175f,s.__initData=t,s})({_worklet_10519792981855_init_data:{code:"function stopObservingProgress_reactNativeReanimated_animationsManagerJs2(tag,sharedValue,scheduleFlush,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);scheduleFlush();}"},TAG_OFFSET:_}),v=(function({_worklet_13857133375907_init_data:t,USE_ANIMATION_BACKEND:n,makeMutableUI:s,stopObservingProgress:o,withStyleAnimation:u,LayoutAnimationType:l,startObservingProgress:_}){const c=function(){const t=new Map,c=new Map;let A=!1;const h=()=>{n||A||(A=!0,globalThis.requestAnimationFrameFinalizer(()=>{A=!1,g._maybeFlushUIUpdatesQueue()}))};return{start(n,A,v,b){const f=b(v);let F=f.animations;const T=t.get(n);T&&(F={...T,...f.animations}),t.set(n,F);let y=c.get(n);void 0===y?(y=s(f.initialValues),c.set(n,y)):(o(n,y,h),y._value=f.initialValues);const O=u(F);O.callback=s=>{if(s){t.delete(n),c.delete(n);const s=A===l.EXITING;o(n,y,h,s)}f.callback&&f.callback(void 0!==s&&s)},_(n,y,h),y.value=O},stop(t){const n=c.get(t);n&&o(t,n,h)}}};return c.__closure={USE_ANIMATION_BACKEND:n,makeMutableUI:s,stopObservingProgress:o,withStyleAnimation:u,LayoutAnimationType:l,startObservingProgress:_},c.__workletHash=0xc9a5d8331a3,c.__initData=t,c})({_worklet_13857133375907_init_data:{code:"function createLayoutAnimationManager_reactNativeReanimated_animationsManagerJs3(){const{USE_ANIMATION_BACKEND,makeMutableUI,stopObservingProgress,withStyleAnimation,LayoutAnimationType,startObservingProgress}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();let flushRequested=false;const scheduleFlush=function(){if(USE_ANIMATION_BACKEND||flushRequested){return;}flushRequested=true;globalThis.requestAnimationFrameFinalizer(function(){flushRequested=false;global._maybeFlushUIUpdatesQueue();});};return{start:function(tag,type,yogaValues,config){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,scheduleFlush);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,scheduleFlush,shouldRemoveView);}if(style.callback){style.callback(finished===undefined?false:finished);}};startObservingProgress(tag,value,scheduleFlush);value.value=animation;},stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}stopObservingProgress(tag,value,scheduleFlush);}};}"},USE_ANIMATION_BACKEND:c,makeMutableUI:l.makeMutableUI,stopObservingProgress:h,withStyleAnimation:n.withStyleAnimation,LayoutAnimationType:o.LayoutAnimationType,startObservingProgress:A}),b={code:"function reactNativeReanimated_animationsManagerJs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}"};s.SHOULD_BE_USE_WEB||(0,t.runOnUISync)((function({_worklet_12746540537052_init_data:t,createLayoutAnimationManager:n}){const s=function(){g.LayoutAnimationsManager=n()};return s.__closure={createLayoutAnimationManager:n},s.__workletHash=0xb97c90554dc,s.__initData=t,s})({_worklet_12746540537052_init_data:b,createLayoutAnimationManager:v}))},1144,[1013,1145,1032,1110,1105,1149]);
1265
+ __d(function(g,r,i,a,m,_e,d){'use strict';function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}}),r(d[0]);var e=r(d[1]),s=r(d[2]),n=r(d[3]),o=r(d[4]),p=r(d[5]),h=t(r(d[6])),l=r(d[7]),_=r(d[8]),y=r(d[9]),u=r(d[10]),c=r(d[11]),A=r(d[12]),S=r(d[13]),T=t(r(d[14])),f=r(d[15]),E=r(d[16]),v=r(d[17]),I=r(d[18]);let P=0;n.IS_WEB&&(0,y.configureWebLayoutAnimations)();const N=(0,l.getStaticFeatureFlag)('FORCE_REACT_RENDER_FOR_SETTLED_ANIMATIONS')&&!(0,l.getStaticFeatureFlag)('USE_ANIMATION_BACKEND')&&!n.IS_WEB;class R extends h.default{_animatedStyles=[];_prevAnimatedStyles=[];_animatedProps=[];_prevAnimatedProps=[];_isFirstRender=!0;jestAnimatedStyle={value:{}};jestAnimatedProps={value:{}};_InlinePropManager=new S.InlinePropManager;_PropsFilter=new E.PropsFilter;static contextType=p.SkipEnteringContext;reanimatedID=P++;constructor(t,e,s,p){super(t,e),this._options=p,this._displayName=s,N&&(this.state={settledProps:{}}),n.IS_JEST&&(this.jestAnimatedStyle={value:{}},this.jestAnimatedProps={value:{}}),this._configureSharedTransition(!0);const h=this.props.entering,l=this.context?.current;l||this._configureLayoutAnimation(o.LayoutAnimationType.ENTERING,h)}componentDidMount(){if(super.componentDidMount(),n.IS_WEB||(this._NativeEventsManager=new f.NativeEventsManager(this,this._options)),this._NativeEventsManager?.attachEvents(),this._updateAnimatedStylesAndProps(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),N){const t=this.getComponentViewTag();-1!==t&&c.PropsRegistryGarbageCollector.registerView(t,this)}if(this._options?.jsProps?.length&&T.default.registerComponent(this,this._options.jsProps),this._configureLayoutAnimation(o.LayoutAnimationType.LAYOUT,this.props.layout),this._configureLayoutAnimation(o.LayoutAnimationType.EXITING,this.props.exiting),n.IS_WEB&&this._componentDOMRef){const t=this._componentDOMRef,e=t.dummyClone;for(;e?.firstChild;)t.appendChild(e.firstChild);if(delete t.dummyClone,this.props.exiting&&(0,y.saveSnapshot)(t),!this.props.entering)return void(this._isFirstRender=!1);if((0,y.getReducedMotionFromConfig)(this.props.entering))return this._isFirstRender=!1,void this.props.entering.callbackV?.(!0);const s=this.context?.current;s?t.style&&(t.style.visibility='initial'):(0,y.startWebLayoutAnimation)(this.props,t,o.LayoutAnimationType.ENTERING)}this._isFirstRender=!1}componentWillUnmount(){if(super.componentWillUnmount(),this._NativeEventsManager?.detachEvents(),this._detachStyles(),this._InlinePropManager.detachInlineProps(),N){const t=this.getComponentViewTag();-1!==t&&c.PropsRegistryGarbageCollector.unregisterView(t)}this._options?.jsProps?.length&&T.default.unregisterComponent(this);const t=this.props.exiting;if(n.IS_WEB&&this._componentDOMRef&&t){if((0,y.getReducedMotionFromConfig)(t))return void t.callbackV?.(!0);(0,u.addHTMLMutationObserver)(),(0,y.startWebLayoutAnimation)(this.props,this._componentDOMRef,o.LayoutAnimationType.EXITING)}}_syncStylePropsBackToReact(t){N&&this.setState(e=>({settledProps:{...e.settledProps,...t}}))}_detachStyles(){const t=this.getComponentViewTag();if(-1!==t){for(const e of this._animatedStyles)e.viewDescriptors.remove(t);for(const e of this._animatedProps)e?.viewDescriptors?.remove(t)}}setNativeProps(t){this._options?.setNativeProps?this._options.setNativeProps(this._componentRef,t):this._componentRef?.setNativeProps?.(t)}_handleAnimatedStylesUpdate(t,e,s){const{viewTag:o,shadowNodeWrapper:p}=this._getViewInfo(),h=new Set(e),l=t=>t.viewDescriptors.has(o);if(t){if(1===e.length&&1===t.length&&e[0]===t[0]&&l(t[0]))return;for(const s of t){e.some(t=>!(t!==s||!l(t))&&(h.delete(t),!0))||s.viewDescriptors.remove(o)}}h.forEach(t=>{t.viewDescriptors.add({tag:o,shadowNodeWrapper:p},t.styleUpdaterContainer),n.IS_JEST&&(Object.assign(s.value,t.initial.value),t.jestAnimatedValues.current=s)})}_updateAnimatedStylesAndProps(){this._handleAnimatedStylesUpdate(this._prevAnimatedStyles,this._animatedStyles,this.jestAnimatedStyle),this._handleAnimatedStylesUpdate(this._prevAnimatedProps,this._animatedProps,this.jestAnimatedProps)}componentDidUpdate(t,e,s){if(this._configureLayoutAnimation(o.LayoutAnimationType.LAYOUT,this.props.layout,t.layout),this._configureLayoutAnimation(o.LayoutAnimationType.EXITING,this.props.exiting,t.exiting),this._configureSharedTransition(),this._NativeEventsManager?.updateEvents(t),this._updateAnimatedStylesAndProps(),this._InlinePropManager.attachInlineProps(this,this._getViewInfo()),n.IS_WEB&&this.props.exiting&&this._componentDOMRef&&(0,y.saveSnapshot)(this._componentDOMRef),n.IS_WEB&&s&&this.props.layout){if((0,y.getReducedMotionFromConfig)(this.props.layout))return void this.props.layout.callbackV?.(!0);(0,y.tryActivateLayoutTransition)(this.props,this._componentDOMRef,s)}}_updateStyles(t){const e=(0,v.filterStyles)((0,v.flattenArray)(t.style??[]));this._prevAnimatedStyles=this._animatedStyles,this._animatedStyles=e.animatedStyles;const s=(0,v.filterStyles)((0,v.flattenArray)(t.animatedProps??[]));if(this._prevAnimatedProps=this._animatedProps,this._animatedProps=s.animatedStyles,s.cssStyle){const e={...t,...s.cssStyle};delete e.style,delete e.animatedProps,this._cssStyle=e}else this._cssStyle=e.cssStyle??{}}_configureLayoutAnimation(t,e,p){n.IS_WEB||e===p||(0,A.updateLayoutAnimations)(t===o.LayoutAnimationType.ENTERING?this.reanimatedID:this.getComponentViewTag(),t,e&&(0,s.maybeBuild)(e))}_configureSharedTransition(t){if(!(0,l.getStaticFeatureFlag)('ENABLE_SHARED_ELEMENT_TRANSITIONS'))return;if(!this.props.sharedTransitionTag)return void(this._sharedTransitionTag&&((0,A.updateLayoutAnimations)(t?this.reanimatedID:this.getComponentViewTag(),t?o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION_NATIVE_ID:o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION,void 0,void 0,void 0),this._sharedTransitionTag=void 0));this._sharedTransitionTag=this.props.sharedTransitionTag;const e=this.props.sharedTransitionStyle??this._sharedTransition??new _.SharedTransition;this._sharedTransition!==e&&((0,A.updateLayoutAnimations)(t?this.reanimatedID:this.getComponentViewTag(),t?o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION_NATIVE_ID:o.LayoutAnimationType.SHARED_ELEMENT_TRANSITION,(0,s.maybeBuild)(e),void 0,this.props.sharedTransitionTag),this._sharedTransition=e)}getSnapshotBeforeUpdate(){return n.IS_WEB&&this.props.layout&&this._componentDOMRef?.getBoundingClientRect?this._componentDOMRef.getBoundingClientRect():null}render(){const t=this._PropsFilter.filterNonAnimatedProps(this);n.IS_JEST&&(t.jestAnimatedStyle=this.jestAnimatedStyle,t.jestAnimatedProps=this.jestAnimatedProps),this._isFirstRender&&n.IS_WEB&&t.entering&&!(0,y.getReducedMotionFromConfig)(t.entering)&&(t.style=Array.isArray(t.style)?t.style.concat([{visibility:'hidden'}]):{...t.style??{},visibility:'hidden'});const s=this.context?.current;let o,p;return n.IS_JEST?p={jestInlineStyle:this.props.style&&D(this.props.style),jestAnimatedStyle:this.jestAnimatedStyle,jestAnimatedProps:this.jestAnimatedProps}:s||n.IS_WEB||(o=`${this.reanimatedID}`),'RadialGradient'!==this.ChildComponent.displayName&&'LinearGradient'!==this.ChildComponent.displayName||void 0===t.children&&(t.children=(0,I.jsx)(e.Fragment,{})),N?super.render({nativeID:o,...t,...this.state.settledProps,style:[...(0,v.flattenArray)(t.style),this.state.settledProps],...p}):super.render({nativeID:o,...t,...p})}}function D(t){return t?Array.isArray(t)?t.filter(t=>!(t&&'viewDescriptors'in t)).map(t=>Array.isArray(t)?D(t):t):t?.viewDescriptors?{}:t:t}},1143,[1144,35,1169,1032,1110,1170,1177,1105,1227,1232,1250,1257,1258,1259,1262,1265,1267,1264,320]);
1266
+ __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),u=r(d[5]);const c=1e9,_=(0,l.getStaticFeatureFlag)('USE_ANIMATION_BACKEND'),A=(function({_worklet_14066200087475_init_data:t,TAG_OFFSET:n}){const o=function(t,o,s){o.addListener(t+n,()=>{g._notifyAboutProgress(t,o.value),s()})};return o.__closure={TAG_OFFSET:n},o.__workletHash=0xccb0adc0bb3,o.__initData=t,o})({_worklet_14066200087475_init_data:{code:"function startObservingProgress_reactNativeReanimated_animationsManagerJs1(tag,sharedValue,scheduleFlush){const{TAG_OFFSET}=this.__closure;sharedValue.addListener(tag+TAG_OFFSET,function(){global._notifyAboutProgress(tag,sharedValue.value);scheduleFlush();});}"},TAG_OFFSET:c}),F=(function({_worklet_10519792981855_init_data:t,TAG_OFFSET:n}){const o=function(t,o,s,l=!1){o.removeListener(t+n),g._notifyAboutEnd(t,l),s()};return o.__closure={TAG_OFFSET:n},o.__workletHash=0x9915486175f,o.__initData=t,o})({_worklet_10519792981855_init_data:{code:"function stopObservingProgress_reactNativeReanimated_animationsManagerJs2(tag,sharedValue,scheduleFlush,removeView=false){const{TAG_OFFSET}=this.__closure;sharedValue.removeListener(tag+TAG_OFFSET);global._notifyAboutEnd(tag,removeView);scheduleFlush();}"},TAG_OFFSET:c}),T=(function({_worklet_6563267147235_init_data:t,USE_ANIMATION_BACKEND:n,makeMutableUI:o,stopObservingProgress:s,withStyleAnimation:l,LayoutAnimationType:u,startObservingProgress:c,TAG_OFFSET:_,cancelAnimation:A}){const F=function(){const t=new Map,F=new Map;let T=!1;const v=()=>{n||T||(T=!0,globalThis.requestAnimationFrameFinalizer(()=>{T=!1,g._maybeFlushUIUpdatesQueue()}))};return{start(n,_,A,T){const h=T(A);let b=h.animations;const f=t.get(n);f&&(b={...f,...h.animations}),t.set(n,b);let y=F.get(n);void 0===y?(y=o(h.initialValues),F.set(n,y)):(s(n,y,v),y._value=h.initialValues);const O=l(b,o=>{if(o){t.delete(n),F.delete(n);const o=_===u.EXITING;s(n,y,v,o)}h.callback&&h.callback(o)});c(n,y,v),y.value=O},stop(n){const o=F.get(n);o&&(o.removeListener(n+_),A(o),t.delete(n),F.delete(n))}}};return F.__closure={USE_ANIMATION_BACKEND:n,makeMutableUI:o,stopObservingProgress:s,withStyleAnimation:l,LayoutAnimationType:u,startObservingProgress:c,TAG_OFFSET:_,cancelAnimation:A},F.__workletHash=6563267147235,F.__initData=t,F})({_worklet_6563267147235_init_data:{code:"function createLayoutAnimationManager_reactNativeReanimated_animationsManagerJs3(){const{USE_ANIMATION_BACKEND,makeMutableUI,stopObservingProgress,withStyleAnimation,LayoutAnimationType,startObservingProgress,TAG_OFFSET,cancelAnimation}=this.__closure;const currentAnimationForTag=new Map();const mutableValuesForTag=new Map();let flushRequested=false;const scheduleFlush=function(){if(USE_ANIMATION_BACKEND||flushRequested){return;}flushRequested=true;globalThis.requestAnimationFrameFinalizer(function(){flushRequested=false;global._maybeFlushUIUpdatesQueue();});};return{start:function(tag,type,yogaValues,config){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,scheduleFlush);value._value=style.initialValues;}const animation=withStyleAnimation(currentAnimation,function(finished){if(finished){currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);const shouldRemoveView=type===LayoutAnimationType.EXITING;stopObservingProgress(tag,value,scheduleFlush,shouldRemoveView);}if(style.callback){style.callback(finished);}});startObservingProgress(tag,value,scheduleFlush);value.value=animation;},stop:function(tag){const value=mutableValuesForTag.get(tag);if(!value){return;}value.removeListener(tag+TAG_OFFSET);cancelAnimation(value);currentAnimationForTag.delete(tag);mutableValuesForTag.delete(tag);}};}"},USE_ANIMATION_BACKEND:_,makeMutableUI:u.makeMutableUI,stopObservingProgress:F,withStyleAnimation:n.withStyleAnimation,LayoutAnimationType:s.LayoutAnimationType,startObservingProgress:A,TAG_OFFSET:c,cancelAnimation:n.cancelAnimation}),v={code:"function reactNativeReanimated_animationsManagerJs4(){const{createLayoutAnimationManager}=this.__closure;global.LayoutAnimationsManager=createLayoutAnimationManager();}"};o.SHOULD_BE_USE_WEB||(0,t.runOnUISync)((function({_worklet_12746540537052_init_data:t,createLayoutAnimationManager:n}){const o=function(){g.LayoutAnimationsManager=n()};return o.__closure={createLayoutAnimationManager:n},o.__workletHash=0xb97c90554dc,o.__initData=t,o})({_worklet_12746540537052_init_data:v,createLayoutAnimationManager:T}))},1144,[1013,1145,1032,1110,1105,1149]);
1267
1267
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withClamp",{enumerable:!0,get:function(){return n.withClamp}}),Object.defineProperty(e,"withDecay",{enumerable:!0,get:function(){return t.withDecay}}),Object.defineProperty(e,"withDelay",{enumerable:!0,get:function(){return u.withDelay}}),Object.defineProperty(e,"withRepeat",{enumerable:!0,get:function(){return o.withRepeat}}),Object.defineProperty(e,"withSequence",{enumerable:!0,get:function(){return f.withSequence}}),Object.defineProperty(e,"GentleSpringConfig",{enumerable:!0,get:function(){return p.GentleSpringConfig}}),Object.defineProperty(e,"GentleSpringConfigWithDuration",{enumerable:!0,get:function(){return p.GentleSpringConfigWithDuration}}),Object.defineProperty(e,"Reanimated3DefaultSpringConfig",{enumerable:!0,get:function(){return p.Reanimated3DefaultSpringConfig}}),Object.defineProperty(e,"Reanimated3DefaultSpringConfigWithDuration",{enumerable:!0,get:function(){return p.Reanimated3DefaultSpringConfigWithDuration}}),Object.defineProperty(e,"SnappySpringConfig",{enumerable:!0,get:function(){return p.SnappySpringConfig}}),Object.defineProperty(e,"SnappySpringConfigWithDuration",{enumerable:!0,get:function(){return p.SnappySpringConfigWithDuration}}),Object.defineProperty(e,"WigglySpringConfig",{enumerable:!0,get:function(){return p.WigglySpringConfig}}),Object.defineProperty(e,"WigglySpringConfigWithDuration",{enumerable:!0,get:function(){return p.WigglySpringConfigWithDuration}}),Object.defineProperty(e,"withSpring",{enumerable:!0,get:function(){return p.withSpring}}),Object.defineProperty(e,"withStyleAnimation",{enumerable:!0,get:function(){return c.withStyleAnimation}}),Object.defineProperty(e,"withTiming",{enumerable:!0,get:function(){return l.withTiming}}),Object.defineProperty(e,"cancelAnimation",{enumerable:!0,get:function(){return b.cancelAnimation}}),Object.defineProperty(e,"defineAnimation",{enumerable:!0,get:function(){return b.defineAnimation}}),Object.defineProperty(e,"initialUpdaterRun",{enumerable:!0,get:function(){return b.initialUpdaterRun}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),o=r(d[3]),f=r(d[4]),p=r(d[5]),c=r(d[6]),l=r(d[7]),b=r(d[8])},1145,[1146,1153,1158,1159,1160,1161,1165,1166,1147]);
1268
1268
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withClamp",{enumerable:!0,get:function(){return t}});var n=r(d[0]),o=r(d[1]);const t=(function({_worklet_8069500317376_init_data:n,defineAnimation:o,_worklet_11055536105172_init_data:t,recognizePrefixSuffix:u,logger:f,getReduceMotionForAnimation:l}){const c=function(n,c){return o(c,(function({_worklet_11055536105172_init_data:n,_animationToClamp:o,config:t,recognizePrefixSuffix:u,logger:f,getReduceMotionForAnimation:l}){const c=function(){const n='function'==typeof o?o():o,c=void 0===t.min?void 0:u(t.min).strippedValue,p=void 0===t.max?void 0:u(t.max).strippedValue;return{isHigherOrder:!0,onFrame:function(o,t){const l=n.onFrame(n,t);if(void 0===n.current)return f.warn("Error inside 'withClamp' animation, the inner animation has invalid current value"),!0;{const{prefix:t,strippedValue:f,suffix:l}=u(n.current);let s;s=void 0!==p&&p<f?p:void 0!==c&&c>f?c:f,o.current='number'==typeof n.current?s:`${void 0===t?'':t}${s}${void 0===l?'':l}`}return l},onStart:function(o,u,l,c){o.current=u,o.previousAnimation=n;const p=c?.previousAnimation;void 0!==t.max&&void 0!==t.min&&t.max<t.min&&f.warn('Wrong config was provided to withClamp. Min value is bigger than max'),n.onStart(n,p?.current||u,l,p)},current:n.current,callback:o=>{n.callback&&n.callback(o)},previousAnimation:null,reduceMotion:l(t.reduceMotion)}};return c.__closure={_animationToClamp:o,config:t,recognizePrefixSuffix:u,logger:f,getReduceMotionForAnimation:l},c.__workletHash=0xa0e114d66d4,c.__initData=n,c})({_worklet_11055536105172_init_data:t,_animationToClamp:c,config:n,recognizePrefixSuffix:u,logger:f,getReduceMotionForAnimation:l}))};return c.__closure={defineAnimation:o,_worklet_11055536105172_init_data:t,recognizePrefixSuffix:u,logger:f,getReduceMotionForAnimation:l},c.__workletHash=8069500317376,c.__initData=n,c})({_worklet_8069500317376_init_data:{code:"function reactNativeReanimated_clampJs2(config,_animationToClamp){const{defineAnimation,_worklet_11055536105172_init_data,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;return defineAnimation(_animationToClamp,function reactNativeReanimated_clampJs1Factory({_worklet_11055536105172_init_data:_worklet_11055536105172_init_data,_animationToClamp:_animationToClamp,config:config,recognizePrefixSuffix:recognizePrefixSuffix,logger:logger,getReduceMotionForAnimation:getReduceMotionForAnimation}){const reactNativeReanimated_clampJs1=function(){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&&strippedMax<strippedValue){newValue=strippedMax;}else if(strippedMin!==undefined&&strippedMin>strippedValue){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.max<config.min){logger.warn('Wrong config was provided to withClamp. Min value is bigger than max');}animationToClamp.onStart(animationToClamp,(animationBeforeClamped===null||animationBeforeClamped===void 0?void 0:animationBeforeClamped.current)||value,now,animationBeforeClamped);}const callback=function(finished){if(animationToClamp.callback){animationToClamp.callback(finished);}};return{isHigherOrder:true,onFrame:clampOnFrame,onStart:onStart,current:animationToClamp.current,callback:callback,previousAnimation:null,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};};reactNativeReanimated_clampJs1.__closure={_animationToClamp:_animationToClamp,config:config,recognizePrefixSuffix:recognizePrefixSuffix,logger:logger,getReduceMotionForAnimation:getReduceMotionForAnimation};reactNativeReanimated_clampJs1.__workletHash=11055536105172;reactNativeReanimated_clampJs1.__initData=_worklet_11055536105172_init_data;return reactNativeReanimated_clampJs1;}({_worklet_11055536105172_init_data:_worklet_11055536105172_init_data,_animationToClamp:_animationToClamp,config:config,recognizePrefixSuffix:recognizePrefixSuffix,logger:logger,getReduceMotionForAnimation:getReduceMotionForAnimation}));}"},defineAnimation:o.defineAnimation,_worklet_11055536105172_init_data:{code:"function reactNativeReanimated_clampJs1(){const{_animationToClamp,config,recognizePrefixSuffix,logger,getReduceMotionForAnimation}=this.__closure;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&&strippedMax<strippedValue){newValue=strippedMax;}else if(strippedMin!==undefined&&strippedMin>strippedValue){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.max<config.min){logger.warn('Wrong config was provided to withClamp. Min value is bigger than max');}animationToClamp.onStart(animationToClamp,(animationBeforeClamped===null||animationBeforeClamped===void 0?void 0:animationBeforeClamped.current)||value,now,animationBeforeClamped);}const callback=function(finished){if(animationToClamp.callback){animationToClamp.callback(finished);}};return{isHigherOrder:true,onFrame:clampOnFrame,onStart:onStart,current:animationToClamp.current,callback:callback,previousAnimation:null,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"},recognizePrefixSuffix:o.recognizePrefixSuffix,logger:n.logger,getReduceMotionForAnimation:o.getReduceMotionForAnimation})},1146,[1032,1147]);
1269
1269
  __d(function(g,r,_i,_a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isValidLayoutAnimationProp",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"assertEasingIsWorklet",{enumerable:!0,get:function(){return l}}),e.initialUpdaterRun=function(t){s.current=!0;const i=t();return s.current=!1,i},Object.defineProperty(e,"recognizePrefixSuffix",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getReduceMotionFromConfig",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getReduceMotionForAnimation",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"defineAnimation",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"cancelAnimation",{enumerable:!0,get:function(){return y}});var t=r(d[0]),i=r(d[1]),n=r(d[2]),a=r(d[3]),o=r(d[4]),u=r(d[5]);const s={current:!1},c=(0,t.createSerializable)({current:!1});t.serializableMappingCache.set(s,c);const _=(function({_worklet_6433531961713_init_data:t,LAYOUT_ANIMATION_SUPPORTED_PROPS:i}){const n=function(t){return t in i};return n.__closure={LAYOUT_ANIMATION_SUPPORTED_PROPS:i},n.__workletHash=6433531961713,n.__initData=t,n})({_worklet_6433531961713_init_data:{code:"function isValidLayoutAnimationProp_reactNativeReanimated_utilJs1(prop){const{LAYOUT_ANIMATION_SUPPORTED_PROPS}=this.__closure;return prop in LAYOUT_ANIMATION_SUPPORTED_PROPS;}"},LAYOUT_ANIMATION_SUPPORTED_PROPS:{originX:!0,originY:!0,width:!0,height:!0,borderRadius:!0,globalOriginX:!0,globalOriginY:!0,opacity:!0,transform:!0,backgroundColor:!0}}),l=(function({_worklet_1290699946524_init_data:t,RuntimeKind:i,SHOULD_BE_USE_WEB:n,isWorkletFunction:a}){const o=function(t){if(globalThis.__RUNTIME_KIND===i.ReactNative&&!n&&!t?.factory&&!a(t))throw new Error('[Reanimated] The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.')};return o.__closure={RuntimeKind:i,SHOULD_BE_USE_WEB:n,isWorkletFunction:a},o.__workletHash=1290699946524,o.__initData=t,o})({_worklet_1290699946524_init_data:{code:"function assertEasingIsWorklet_reactNativeReanimated_utilJs2(easing){const{RuntimeKind,SHOULD_BE_USE_WEB,isWorkletFunction}=this.__closure;if(globalThis.__RUNTIME_KIND!==RuntimeKind.ReactNative){return;}if(SHOULD_BE_USE_WEB){return;}if(easing!==null&&easing!==void 0&&easing.factory){return;}if(!isWorkletFunction(easing)){throw new Error('[Reanimated] The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.');}}"},RuntimeKind:t.RuntimeKind,SHOULD_BE_USE_WEB:n.SHOULD_BE_USE_WEB,isWorkletFunction:t.isWorkletFunction});const f=(function({_worklet_12820712716502_init_data:t}){const i=function(t){if('string'==typeof t){const i=t.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!i)throw new Error("[Reanimated] Couldn't parse animation value.");const n=i[1],a=i[4],o=i[2]+(i[3]??'');return{prefix:n,suffix:a,strippedValue:parseFloat(o)}}return{strippedValue:t}};return i.__closure={},i.__workletHash=0xba90e06f8d6,i.__initData=t,i})({_worklet_12820712716502_init_data:{code:"function recognizePrefixSuffix_reactNativeReanimated_utilJs3(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 Error(\"[Reanimated] 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};}}"}}),p=o.ReducedMotionManager.uiValue,v=(function({_worklet_9218816022141_init_data:t,ReduceMotion:i,isReduceMotionOnUI:n}){const a=function(t){return t&&t!==i.System?t===i.Always:n.value};return a.__closure={ReduceMotion:i,isReduceMotionOnUI:n},a.__workletHash=9218816022141,a.__initData=t,a})({_worklet_9218816022141_init_data:{code:"function getReduceMotionFromConfig_reactNativeReanimated_utilJs4(config){const{ReduceMotion,isReduceMotionOnUI}=this.__closure;return!config||config===ReduceMotion.System?isReduceMotionOnUI.value:config===ReduceMotion.Always;}"},ReduceMotion:a.ReduceMotion,isReduceMotionOnUI:p}),A=(function({_worklet_4956957273507_init_data:t,getReduceMotionFromConfig:i}){const n=function(t){if(t)return i(t)};return n.__closure={getReduceMotionFromConfig:i},n.__workletHash=4956957273507,n.__initData=t,n})({_worklet_4956957273507_init_data:{code:"function getReduceMotionForAnimation_reactNativeReanimated_utilJs5(config){const{getReduceMotionFromConfig}=this.__closure;if(!config){return undefined;}return getReduceMotionFromConfig(config);}"},getReduceMotionFromConfig:v}),R=(function({_worklet_12489618165961_init_data:t,addMatrices:i,scaleMatrix:n,subtractMatrices:a}){const o=function(t,o,u){return i(o,n(a(u,o),t))};return o.__closure={addMatrices:i,scaleMatrix:n,subtractMatrices:a},o.__workletHash=0xb5bf74110c9,o.__initData=t,o})({_worklet_12489618165961_init_data:{code:"function applyProgressToMatrix_reactNativeReanimated_utilJs6(progress,a,b){const{addMatrices,scaleMatrix,subtractMatrices}=this.__closure;return addMatrices(a,scaleMatrix(subtractMatrices(b,a),progress));}"},addMatrices:u.addMatrices,scaleMatrix:u.scaleMatrix,subtractMatrices:u.subtractMatrices}),M=(function({_worklet_7101026900556_init_data:t}){const i=function(t,i,n){return i+t*(n-i)};return i.__closure={},i.__workletHash=7101026900556,i.__initData=t,i})({_worklet_7101026900556_init_data:{code:"function applyProgressToNumber_reactNativeReanimated_utilJs7(progress,a,b){return a+progress*(b-a);}"}}),x=(function({_worklet_6884630105099_init_data:t,getReduceMotionFromConfig:i,recognizePrefixSuffix:n,isColor:a,toLinearSpace:o,convertToRGBA:u,clampRGBA:s,rgbaArrayToRGBAColor:c,toGammaSpace:_,decomposeMatrixIntoMatricesAndAngles:l,applyProgressToMatrix:f,applyProgressToNumber:p,getRotationMatrix:v,multiplyMatrices:A,flatten:R,isAffineMatrixFlat:M}){const x=function(t){const x=t.onStart,h=t.onFrame;if(t.isHigherOrder)return void(t.onStart=(t,n,a,o)=>(void 0===t.reduceMotion&&(t.reduceMotion=i()),x(t,n,a,o)));const S=Object.assign({},t);delete S.callback;const y=(t,i,a,o)=>{const{prefix:u,suffix:s,strippedValue:c}=n(i);t.__prefix=u,t.__suffix=s,t.strippedCurrent=c;const{strippedValue:_}=n(t.toValue);if(t.current=c,t.startValue=c,t.toValue=_,o&&o!==t){const{prefix:t,suffix:i,strippedValue:a}=n(o.current);o.current=a,o.__prefix=t,o.__suffix=i}x(t,c,a,o),t.current=(t.__prefix??'')+t.current+(t.__suffix??''),o&&o!==t&&(o.current=(o.__prefix??'')+o.current+(o.__suffix??''))},k=(t,i)=>{t.current=t.strippedCurrent;const n=h(t,i);return t.strippedCurrent=t.current,t.current=(t.__prefix??'')+t.current+(t.__suffix??''),n},O=['R','G','B','A'],b=(t,i,n,l)=>{let f,p,v;const A=[];a(i)&&(p=o(u(t.current)),f=o(u(i)),t.toValue&&(v=o(u(t.toValue)))),O.forEach((i,a)=>{t[i]=Object.assign({},S),t[i].current=p[a],t[i].toValue=v?v[a]:void 0,t[i].onStart(t[i],f[a],n,l?l[i]:void 0),A.push(t[i].current)}),t.unroundedCurrent=A,s(A),t.current=c(_(A))},E=(t,i)=>{const n=[];let a=!0;return t.current=t.nonscaledCurrent,O.forEach(o=>{const u=t[o].onFrame(t[o],i);a=a&&u,n.push(t[o].current)}),s(n),t.nonscaledCurrent=n,t.current=c(_(n)),a},T=(t,i,n,a)=>{const o=t.toValue;t.startMatrices=l(i),t.stopMatrices=l(o),t[0]=Object.assign({},S),t[0].current=0,t[0].toValue=100,t[0].onStart(t[0],0,n,a?a[0]:void 0),t.current=i},w=(t,i)=>{let n=!0;const a=t[0].onFrame(t[0],i);n=n&&a;const o=t[0].current/100,u=[];['translationMatrix','scaleMatrix','skewMatrix'].forEach((i,n)=>u.push(f(o,t.startMatrices[i],t.stopMatrices[i])));const[s,c,_]=u,l=[];['x','y','z'].forEach((i,n)=>{const a=p(o,t.startMatrices['r'+i],t.stopMatrices['r'+i]);l.push(v(a,i))});const[M,x,h]=l,S=A(M,A(x,h)),y=R(A(A(c,A(_,S)),s));return t.current=y,n},V=(t,i,n,a)=>{i.forEach((i,o)=>{t[o]=Object.assign({},S),t[o].current=i,t[o].toValue=t.toValue[o],t[o].onStart(t[o],i,n,a?a[o]:void 0)}),t.current=[...i]},N=(t,i)=>{let n=!0;return t.current.forEach((a,o)=>{const u=t[o].onFrame(t[o],i);n=n&&u,t.current[o]=t[o].current}),n},F=(t,i,n,a)=>{for(const o in i)t[o]=Object.assign({},S),t[o].onStart=t.onStart,t[o].current=i[o],t[o].toValue=t.toValue[o],t[o].onStart(t[o],i[o],n,a?a[o]:void 0);t.current=i},U=(t,i)=>{let n=!0;const a={};for(const o in t.current){const u=t[o].onFrame(t[o],i);n=n&&u,a[o]=t[o].current}return t.current=a,n};t.onStart=(t,n,o,u)=>(void 0===t.reduceMotion&&(t.reduceMotion=i()),t.reduceMotion?(void 0!==t.toValue?t.current=t.toValue:x(t,n,o,u),t.startTime=0,void(t.onFrame=()=>!0)):a(n)?(b(t,n,o,u),void(t.onFrame=E)):M(n)?(T(t,n,o,u),void(t.onFrame=w)):Array.isArray(n)?(V(t,n,o,u),void(t.onFrame=N)):'string'==typeof n?(y(t,n,o,u),void(t.onFrame=k)):'object'==typeof n&&null!==n?(F(t,n,o,u),void(t.onFrame=U)):void x(t,n,o,u))};return x.__closure={getReduceMotionFromConfig:i,recognizePrefixSuffix:n,isColor:a,toLinearSpace:o,convertToRGBA:u,clampRGBA:s,rgbaArrayToRGBAColor:c,toGammaSpace:_,decomposeMatrixIntoMatricesAndAngles:l,applyProgressToMatrix:f,applyProgressToNumber:p,getRotationMatrix:v,multiplyMatrices:A,flatten:R,isAffineMatrixFlat:M},x.__workletHash=6884630105099,x.__initData=t,x})({_worklet_6884630105099_init_data:{code:"function decorateAnimation_reactNativeReanimated_utilJs8(animation){const{getReduceMotionFromConfig,recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,clampRGBA,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.unroundedCurrent=res;clampRGBA(res);animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const res=[];let finished=true;animation.current=animation.nonscaledCurrent;tab.forEach(function(i){const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;res.push(animation[i].current);});clampRGBA(res);animation.nonscaledCurrent=res;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);};}"},getReduceMotionFromConfig:v,recognizePrefixSuffix:f,isColor:i.isColor,toLinearSpace:i.toLinearSpace,convertToRGBA:i.convertToRGBA,clampRGBA:i.clampRGBA,rgbaArrayToRGBAColor:i.rgbaArrayToRGBAColor,toGammaSpace:i.toGammaSpace,decomposeMatrixIntoMatricesAndAngles:u.decomposeMatrixIntoMatricesAndAngles,applyProgressToMatrix:R,applyProgressToNumber:M,getRotationMatrix:u.getRotationMatrix,multiplyMatrices:u.multiplyMatrices,flatten:u.flatten,isAffineMatrixFlat:u.isAffineMatrixFlat}),h=(function({_worklet_2430273465728_init_data:t,RuntimeKind:i,IN_STYLE_UPDATER:n,_worklet_14703534120414_init_data:a,decorateAnimation:o,SHOULD_BE_USE_WEB:u}){const s=function(t,s){if(globalThis.__RUNTIME_KIND===i.ReactNative&&n.current)return t;const c=(function({_worklet_14703534120414_init_data:t,factory:i,decorateAnimation:n}){const a=function(){const t=i();return n(t),t};return a.__closure={factory:i,decorateAnimation:n},a.__workletHash=0xd5f6eed9dde,a.__initData=t,a})({_worklet_14703534120414_init_data:a,factory:s,decorateAnimation:o});return globalThis.__RUNTIME_KIND!==i.ReactNative||u?c():(c.__isAnimationDefinition=!0,c)};return s.__closure={RuntimeKind:i,IN_STYLE_UPDATER:n,_worklet_14703534120414_init_data:a,decorateAnimation:o,SHOULD_BE_USE_WEB:u},s.__workletHash=2430273465728,s.__initData=t,s})({_worklet_2430273465728_init_data:{code:"function defineAnimation_reactNativeReanimated_utilJs10(starting,factory){const{RuntimeKind,IN_STYLE_UPDATER,_worklet_14703534120414_init_data,decorateAnimation,SHOULD_BE_USE_WEB}=this.__closure;if(globalThis.__RUNTIME_KIND===RuntimeKind.ReactNative&&IN_STYLE_UPDATER.current){return starting;}const create=function defineAnimation_reactNativeReanimated_utilJs10({_worklet_14703534120414_init_data:_worklet_14703534120414_init_data,factory:factory,decorateAnimation:decorateAnimation}){const reactNativeReanimated_utilJs9=function(){const animation=factory();decorateAnimation(animation);return animation;};reactNativeReanimated_utilJs9.__closure={factory:factory,decorateAnimation:decorateAnimation};reactNativeReanimated_utilJs9.__workletHash=14703534120414;reactNativeReanimated_utilJs9.__initData=_worklet_14703534120414_init_data;return reactNativeReanimated_utilJs9;}({_worklet_14703534120414_init_data:_worklet_14703534120414_init_data,factory:factory,decorateAnimation:decorateAnimation});if(globalThis.__RUNTIME_KIND!==RuntimeKind.ReactNative||SHOULD_BE_USE_WEB){return create();}create.__isAnimationDefinition=true;return create;}"},RuntimeKind:t.RuntimeKind,IN_STYLE_UPDATER:s,_worklet_14703534120414_init_data:{code:"function reactNativeReanimated_utilJs9(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}"},decorateAnimation:x,SHOULD_BE_USE_WEB:n.SHOULD_BE_USE_WEB}),S=(function({_worklet_9545730948209_init_data:t,RuntimeKind:i,scheduleOnUI:n,_worklet_26771732208_init_data:a}){const o=function(t){globalThis.__RUNTIME_KIND!==i.ReactNative?t.value=t.value:n((function({_worklet_26771732208_init_data:t,sharedValue:i}){const n=function(){i.value=i.value};return n.__closure={sharedValue:i},n.__workletHash=26771732208,n.__initData=t,n})({_worklet_26771732208_init_data:a,sharedValue:t}))};return o.__closure={RuntimeKind:i,scheduleOnUI:n,_worklet_26771732208_init_data:a},o.__workletHash=9545730948209,o.__initData=t,o})({_worklet_9545730948209_init_data:{code:"function cancelAnimationNative_reactNativeReanimated_utilJs12(sharedValue){const{RuntimeKind,scheduleOnUI,_worklet_26771732208_init_data}=this.__closure;if(globalThis.__RUNTIME_KIND!==RuntimeKind.ReactNative){sharedValue.value=sharedValue.value;}else{scheduleOnUI(function cancelAnimationNative_reactNativeReanimated_utilJs12({_worklet_26771732208_init_data:_worklet_26771732208_init_data,sharedValue:sharedValue}){const reactNativeReanimated_utilJs11=function(){sharedValue.value=sharedValue.value;};reactNativeReanimated_utilJs11.__closure={sharedValue:sharedValue};reactNativeReanimated_utilJs11.__workletHash=26771732208;reactNativeReanimated_utilJs11.__initData=_worklet_26771732208_init_data;return reactNativeReanimated_utilJs11;}({_worklet_26771732208_init_data:_worklet_26771732208_init_data,sharedValue:sharedValue}));}}"},RuntimeKind:t.RuntimeKind,scheduleOnUI:t.scheduleOnUI,_worklet_26771732208_init_data:{code:"function reactNativeReanimated_utilJs11(){const{sharedValue}=this.__closure;sharedValue.value=sharedValue.value;}"}});const y=n.SHOULD_BE_USE_WEB?function(t){t.value=t.value}:S},1147,[1013,1041,1032,1110,1148,1152]);
@@ -1284,7 +1284,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{v
1284
1284
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withSpring",{enumerable:!0,get:function(){return l}});var n=r(d[0]),t=r(d[1]),o=r(d[2]);const l=(function({_worklet_10725281669831_init_data:n,defineAnimation:t,_worklet_12888193502494_init_data:o,GentleSpringConfig:l,GentleSpringConfigWithDuration:s,safeMergeConfigs:u,checkIfConfigIsValid:c,underDampedSpringCalculations:p,criticallyDampedSpringCalculations:f,isAnimationTerminatingCalculation:v,calculateNewStiffnessToMatchDuration:C,initialCalculations:A,scaleZetaToMatchClamps:T,getEnergy:y,getReduceMotionForAnimation:_}){const S=function(n,S,h){return t(n,(function({_worklet_12888193502494_init_data:n,GentleSpringConfig:t,GentleSpringConfigWithDuration:o,safeMergeConfigs:l,userConfig:s,checkIfConfigIsValid:u,underDampedSpringCalculations:c,criticallyDampedSpringCalculations:p,isAnimationTerminatingCalculation:f,calculateNewStiffnessToMatchDuration:v,initialCalculations:C,scaleZetaToMatchClamps:A,getEnergy:T,toValue:y,callback:_,getReduceMotionForAnimation:S}){const h=function(){const n={...t,...o,overshootClamping:!1,energyThreshold:6e-9,velocity:0,reduceMotion:void 0,clamp:void 0},h=l({...n,useDuration:!(!s?.duration&&!s?.dampingRatio),skipAnimation:!1},s);function M(n,t){return n?.lastTimestamp&&n?.startTimestamp&&n?.toValue===t.toValue&&n?.duration===t.duration&&n?.dampingRatio===t.dampingRatio}return h.skipAnimation=!u(h),0===h.duration&&(h.skipAnimation=!0),{onFrame:function(n,t){const{toValue:o,current:l}=n;if(h.skipAnimation)return n.current=o,n.lastTimestamp=0,!0;const{lastTimestamp:s,velocity:u}=n,v=Math.min(Math.max(t-s,0),64);n.lastTimestamp=t;const C=v/1e3,A=u,T=l-o,{zeta:y,omega0:_,omega1:S}=n,{position:M,velocity:D}=y<1?c(n,{zeta:y,v0:A,x0:T,omega0:_,omega1:S,t:C}):p(n,{v0:A,x0:T,omega0:_,t:C});return n.current=M,n.velocity=D,!!f(n,h)&&(n.velocity=0,n.current=o,n.lastTimestamp=0,!0)},onStart:function(n,t,o,l){n.current=t;let s=h.stiffness;const u=M(l,n),c=h.duration,p=u?l?.startValue:t-n.toValue;n.startValue=p,n.velocity=l?(u?l?.velocity:l?.velocity+h.velocity)||0:h.velocity||0;const f=Number(n.toValue);if((f>t&&n.velocity<0||f<t&&n.velocity>0)&&(n.velocity=0),u)n.zeta=l?.zeta||0,n.omega0=l?.omega0||0,n.omega1=l?.omega1||0;else{if(h.useDuration){const t=u?c-((l?.lastTimestamp||0)-(l?.startTimestamp||0)):c;h.duration=t,s=v(p,h,n.velocity),h.stiffness=s}const{zeta:t,omega0:o,omega1:f}=C(s,h);n.zeta=t,n.omega0=o,n.omega1=f,void 0!==h.clamp&&(n.zeta=A(n,h.clamp))}const y=T(p,h.velocity,h.stiffness,h.mass);n.initialEnergy=y,n.lastTimestamp=l?.lastTimestamp||o,n.startTimestamp=u&&l?.startTimestamp||o},toValue:y,velocity:h.velocity||0,current:y,startValue:0,callback:_,lastTimestamp:0,startTimestamp:0,zeta:0,omega0:0,omega1:0,initialEnergy:0,reduceMotion:S(h.reduceMotion)}};return h.__closure={GentleSpringConfig:t,GentleSpringConfigWithDuration:o,safeMergeConfigs:l,userConfig:s,checkIfConfigIsValid:u,underDampedSpringCalculations:c,criticallyDampedSpringCalculations:p,isAnimationTerminatingCalculation:f,calculateNewStiffnessToMatchDuration:v,initialCalculations:C,scaleZetaToMatchClamps:A,getEnergy:T,toValue:y,callback:_,getReduceMotionForAnimation:S},h.__workletHash=0xbb8c4320d1e,h.__initData=n,h})({_worklet_12888193502494_init_data:o,GentleSpringConfig:l,GentleSpringConfigWithDuration:s,safeMergeConfigs:u,userConfig:S,checkIfConfigIsValid:c,underDampedSpringCalculations:p,criticallyDampedSpringCalculations:f,isAnimationTerminatingCalculation:v,calculateNewStiffnessToMatchDuration:C,initialCalculations:A,scaleZetaToMatchClamps:T,getEnergy:y,toValue:n,callback:h,getReduceMotionForAnimation:_}))};return S.__closure={defineAnimation:t,_worklet_12888193502494_init_data:o,GentleSpringConfig:l,GentleSpringConfigWithDuration:s,safeMergeConfigs:u,checkIfConfigIsValid:c,underDampedSpringCalculations:p,criticallyDampedSpringCalculations:f,isAnimationTerminatingCalculation:v,calculateNewStiffnessToMatchDuration:C,initialCalculations:A,scaleZetaToMatchClamps:T,getEnergy:y,getReduceMotionForAnimation:_},S.__workletHash=0x9c12c9aa2c7,S.__initData=n,S})({_worklet_10725281669831_init_data:{code:"function reactNativeReanimated_springJs2(toValue,userConfig,callback){const{defineAnimation,_worklet_12888193502494_init_data,GentleSpringConfig,GentleSpringConfigWithDuration,safeMergeConfigs,checkIfConfigIsValid,underDampedSpringCalculations,criticallyDampedSpringCalculations,isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration,initialCalculations,scaleZetaToMatchClamps,getEnergy,getReduceMotionForAnimation}=this.__closure;return defineAnimation(toValue,function reactNativeReanimated_springJs1Factory({_worklet_12888193502494_init_data:_worklet_12888193502494_init_data,GentleSpringConfig:GentleSpringConfig,GentleSpringConfigWithDuration:GentleSpringConfigWithDuration,safeMergeConfigs:safeMergeConfigs,userConfig:userConfig,checkIfConfigIsValid:checkIfConfigIsValid,underDampedSpringCalculations:underDampedSpringCalculations,criticallyDampedSpringCalculations:criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration:calculateNewStiffnessToMatchDuration,initialCalculations:initialCalculations,scaleZetaToMatchClamps:scaleZetaToMatchClamps,getEnergy:getEnergy,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation}){const reactNativeReanimated_springJs1=function(){const defaultConfig={...GentleSpringConfig,...GentleSpringConfigWithDuration,overshootClamping:false,energyThreshold:6e-9,velocity:0,reduceMotion:undefined,clamp:undefined};const config=safeMergeConfigs({...defaultConfig,useDuration:!!(userConfig!==null&&userConfig!==void 0&&userConfig.duration||userConfig!==null&&userConfig!==void 0&&userConfig.dampingRatio),skipAnimation:false},userConfig);config.skipAnimation=!checkIfConfigIsValid(config);if(config.duration===0){config.skipAnimation=true;}function springOnFrame(animation,now){const{toValue:toValue,current:current}=animation;if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(Math.max(now-lastTimestamp,0),64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=velocity;const x0=current-toValue;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;if(isAnimationTerminatingCalculation(animation,config)){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;let stiffness=config.stiffness;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:value-animation.toValue;animation.startValue=x0;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;}const toValueNum=Number(animation.toValue);if(toValueNum>value&&animation.velocity<0||toValueNum<value&&animation.velocity>0){animation.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;stiffness=calculateNewStiffnessToMatchDuration(x0,config,animation.velocity);config.stiffness=stiffness;}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(stiffness,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}const initialEnergy=getEnergy(x0,config.velocity,config.stiffness,config.mass);animation.initialEnergy=initialEnergy;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,initialEnergy:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};};reactNativeReanimated_springJs1.__closure={GentleSpringConfig:GentleSpringConfig,GentleSpringConfigWithDuration:GentleSpringConfigWithDuration,safeMergeConfigs:safeMergeConfigs,userConfig:userConfig,checkIfConfigIsValid:checkIfConfigIsValid,underDampedSpringCalculations:underDampedSpringCalculations,criticallyDampedSpringCalculations:criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration:calculateNewStiffnessToMatchDuration,initialCalculations:initialCalculations,scaleZetaToMatchClamps:scaleZetaToMatchClamps,getEnergy:getEnergy,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation};reactNativeReanimated_springJs1.__workletHash=12888193502494;reactNativeReanimated_springJs1.__initData=_worklet_12888193502494_init_data;return reactNativeReanimated_springJs1;}({_worklet_12888193502494_init_data:_worklet_12888193502494_init_data,GentleSpringConfig:GentleSpringConfig,GentleSpringConfigWithDuration:GentleSpringConfigWithDuration,safeMergeConfigs:safeMergeConfigs,userConfig:userConfig,checkIfConfigIsValid:checkIfConfigIsValid,underDampedSpringCalculations:underDampedSpringCalculations,criticallyDampedSpringCalculations:criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration:calculateNewStiffnessToMatchDuration,initialCalculations:initialCalculations,scaleZetaToMatchClamps:scaleZetaToMatchClamps,getEnergy:getEnergy,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation}));}"},defineAnimation:n.defineAnimation,_worklet_12888193502494_init_data:{code:"function reactNativeReanimated_springJs1(){const{GentleSpringConfig,GentleSpringConfigWithDuration,safeMergeConfigs,userConfig,checkIfConfigIsValid,underDampedSpringCalculations,criticallyDampedSpringCalculations,isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration,initialCalculations,scaleZetaToMatchClamps,getEnergy,toValue,callback,getReduceMotionForAnimation}=this.__closure;var _userConfig,_userConfig2;const defaultConfig={...GentleSpringConfig,...GentleSpringConfigWithDuration,overshootClamping:false,energyThreshold:6e-9,velocity:0,reduceMotion:undefined,clamp:undefined};const config=safeMergeConfigs({...defaultConfig,useDuration:!!((_userConfig=userConfig)!==null&&_userConfig!==void 0&&_userConfig.duration||(_userConfig2=userConfig)!==null&&_userConfig2!==void 0&&_userConfig2.dampingRatio),skipAnimation:false},userConfig);config.skipAnimation=!checkIfConfigIsValid(config);if(config.duration===0){config.skipAnimation=true;}function springOnFrame(animation,now){const{toValue:toValue,current:current}=animation;if(config.skipAnimation){animation.current=toValue;animation.lastTimestamp=0;return true;}const{lastTimestamp:lastTimestamp,velocity:velocity}=animation;const deltaTime=Math.min(Math.max(now-lastTimestamp,0),64);animation.lastTimestamp=now;const t=deltaTime/1000;const v0=velocity;const x0=current-toValue;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;if(isAnimationTerminatingCalculation(animation,config)){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;let stiffness=config.stiffness;const triggeredTwice=isTriggeredTwice(previousAnimation,animation);const duration=config.duration;const x0=triggeredTwice?previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.startValue:value-animation.toValue;animation.startValue=x0;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;}const toValueNum=Number(animation.toValue);if(toValueNum>value&&animation.velocity<0||toValueNum<value&&animation.velocity>0){animation.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;stiffness=calculateNewStiffnessToMatchDuration(x0,config,animation.velocity);config.stiffness=stiffness;}const{zeta:zeta,omega0:omega0,omega1:omega1}=initialCalculations(stiffness,config);animation.zeta=zeta;animation.omega0=omega0;animation.omega1=omega1;if(config.clamp!==undefined){animation.zeta=scaleZetaToMatchClamps(animation,config.clamp);}}const initialEnergy=getEnergy(x0,config.velocity,config.stiffness,config.mass);animation.initialEnergy=initialEnergy;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,initialEnergy:0,reduceMotion:getReduceMotionForAnimation(config.reduceMotion)};}"},GentleSpringConfig:t.GentleSpringConfig,GentleSpringConfigWithDuration:t.GentleSpringConfigWithDuration,safeMergeConfigs:o.safeMergeConfigs,checkIfConfigIsValid:o.checkIfConfigIsValid,underDampedSpringCalculations:o.underDampedSpringCalculations,criticallyDampedSpringCalculations:o.criticallyDampedSpringCalculations,isAnimationTerminatingCalculation:o.isAnimationTerminatingCalculation,calculateNewStiffnessToMatchDuration:o.calculateNewStiffnessToMatchDuration,initialCalculations:o.initialCalculations,scaleZetaToMatchClamps:o.scaleZetaToMatchClamps,getEnergy:o.getEnergy,getReduceMotionForAnimation:n.getReduceMotionForAnimation})},1162,[1147,1163,1164]);
1285
1285
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Reanimated3DefaultSpringConfig",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Reanimated3DefaultSpringConfigWithDuration",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"WigglySpringConfig",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"WigglySpringConfigWithDuration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"GentleSpringConfig",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"GentleSpringConfigWithDuration",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"SnappySpringConfig",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"SnappySpringConfigWithDuration",{enumerable:!0,get:function(){return c}});const n={damping:10,mass:1,stiffness:100},t={duration:1333,dampingRatio:.5},o={damping:90,mass:4,stiffness:900},u={duration:550,dampingRatio:.75},f={damping:120,mass:4,stiffness:900},p={duration:550,dampingRatio:1},s={damping:110,mass:4,stiffness:900,overshootClamping:!0},c={duration:550,dampingRatio:.92,overshootClamping:!0}},1163,[]);
1286
1286
  __d(function(g,r,i,a,_m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"checkIfConfigIsValid",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"safeMergeConfigs",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"initialCalculations",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"scaleZetaToMatchClamps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getEnergy",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"calculateNewStiffnessToMatchDuration",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"criticallyDampedSpringCalculations",{enumerable:!0,get:function(){return m}}),Object.defineProperty(e,"underDampedSpringCalculations",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"isAnimationTerminatingCalculation",{enumerable:!0,get:function(){return f}});const t=(function({_worklet_221282826167_init_data:t,logger:n}){const o=function(t){let o='';return['stiffness','damping','dampingRatio','mass','energyThreshold'].forEach(n=>{const s=t[n];s<=0&&(o+=`, ${n} must be grater than zero but got ${s}`)}),t.duration<0&&(o+=`, duration can't be negative, got ${t.duration}`),t.clamp?.min&&t.clamp?.max&&t.clamp.min>t.clamp.max&&(o+=`, clamp.min should be lower than clamp.max, got clamp: {min: ${t.clamp.min}, max: ${t.clamp.max}} `),''!==o&&n.warn('Invalid spring config'+o),''===o};return o.__closure={logger:n},o.__workletHash=221282826167,o.__initData=t,o})({_worklet_221282826167_init_data:{code:"function checkIfConfigIsValid_reactNativeReanimated_springUtilsJs1(config){const{logger}=this.__closure;var _config$clamp,_config$clamp2;let errorMessage='';['stiffness','damping','dampingRatio','mass','energyThreshold'].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==='';}"},logger:r(d[0]).logger}),n=(function({_worklet_13079180228228_init_data:t}){const n=function(t,n){if(!n)return t;const o=Object.fromEntries(Object.entries(n).filter(([,t])=>void 0!==t));return{...t,...o}};return n.__closure={},n.__workletHash=0xbe53be43684,n.__initData=t,n})({_worklet_13079180228228_init_data:{code:"function safeMergeConfigs_reactNativeReanimated_springUtilsJs2(defaults,userConfig){if(!userConfig){return defaults;}const filtered=Object.fromEntries(Object.entries(userConfig).filter(function([,v]){return v!==undefined;}));return{...defaults,...filtered};}"}}),o=(function({_worklet_12836269530028_init_data:t}){const n=function({min:t,max:n,func:o,precision:s,maxIterations:c=20}){const l=o(n)>=o(t)?1:-1;let u=c,m=(n+t)/2;for(;Math.abs(o(m))>s&&u>0;)u-=1,o(m)*l<0?t=m:n=m,m=(t+n)/2;return m};return n.__closure={},n.__workletHash=0xbacad491bac,n.__initData=t,n})({_worklet_12836269530028_init_data:{code:"function bisectRoot_reactNativeReanimated_springUtilsJs3({min:min,max:max,func:func,precision:precision,maxIterations=20}){const direction=func(max)>=func(min)?1:-1;let idx=maxIterations;let current=(max+min)/2;while(Math.abs(func(current))>precision&&idx>0){idx-=1;if(func(current)*direction<0){min=current;}else{max=current;}current=(min+max)/2;}return current;}"}}),s=(function({_worklet_5803807490395_init_data:t}){const n=function(t=0,n){if(n.skipAnimation)return{zeta:0,omega0:0,omega1:0};if(n.useDuration){const{mass:o,dampingRatio:s}=n,c=Math.sqrt(t/o);return{zeta:s,omega0:c,omega1:s<1?c*Math.sqrt(1-s**2):0}}{const{damping:t,mass:o,stiffness:s}=n,c=t/(2*Math.sqrt(s*o)),l=Math.sqrt(s/o);return{zeta:c,omega0:l,omega1:c<1?l*Math.sqrt(1-c**2):0}}};return n.__closure={},n.__workletHash=5803807490395,n.__initData=t,n})({_worklet_5803807490395_init_data:{code:"function initialCalculations_reactNativeReanimated_springUtilsJs4(stiffness=0,config){if(config.skipAnimation){return{zeta:0,omega0:0,omega1:0};}if(config.useDuration){const{mass:m,dampingRatio:zeta}=config;const omega0=Math.sqrt(stiffness/m);const omega1=zeta<1?omega0*Math.sqrt(1-zeta**2):0;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=zeta<1?omega0*Math.sqrt(1-zeta**2):0;return{zeta:zeta,omega0:omega0,omega1:omega1};}}"}}),c=(function({_worklet_7321811696421_init_data:t}){const n=function(t,n){const{zeta:o,toValue:s,startValue:c}=t,l=Number(s);if(0===c)return o;const[u,m]=c<=0?[n.min,n.max]:[n.max,n.min],_=void 0!==m?Math.abs((m-l)/c):void 0,f=void 0!==u?Math.abs((u-l)/c):void 0,p=[void 0!==_?Math.abs(Math.log(_)/Math.PI):void 0,void 0!==f?Math.abs(Math.log(f)/(2*Math.PI)):void 0].filter(t=>void 0!==t);return Math.max(...p,o)};return n.__closure={},n.__workletHash=7321811696421,n.__initData=t,n})({_worklet_7321811696421_init_data:{code:"function scaleZetaToMatchClamps_reactNativeReanimated_springUtilsJs5(animation,clamp){const{zeta:zeta,toValue:toValue,startValue:startValue}=animation;const toValueNum=Number(toValue);if(startValue===0){return zeta;}const[firstBound,secondBound]=startValue<=0?[clamp.min,clamp.max]:[clamp.max,clamp.min];const relativeExtremum1=secondBound!==undefined?Math.abs((secondBound-toValueNum)/startValue):undefined;const relativeExtremum2=firstBound!==undefined?Math.abs((firstBound-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);}"}}),l=(function({_worklet_17220470263105_init_data:t}){const n=function(t,n,o,s){return.5*o*t**2+.5*s*n**2};return n.__closure={},n.__workletHash=0xfa974034d41,n.__initData=t,n})({_worklet_17220470263105_init_data:{code:"function getEnergy_reactNativeReanimated_springUtilsJs6(displacement,velocity,stiffness,mass){const potentialEnergy=0.5*stiffness*displacement**2;const kineticEnergy=0.5*mass*velocity**2;return potentialEnergy+kineticEnergy;}"}}),u=(function({_worklet_4150803222832_init_data:t,_worklet_11588433980840_init_data:n,getEnergy:o,bisectRoot:s}){const c=function(t,c,l){if(c.skipAnimation)return 0;const{dampingRatio:u,energyThreshold:m,mass:_,duration:f}=c,p=(function({_worklet_11588433980840_init_data:t,targetDuration:n,m:o,zeta:s,x0:c,v0:l,getEnergy:u,threshold:m}){const _=function(t){const _=1.5*n/1e3,f=Math.sqrt(t/o)*s,p=(c+(l+c*f)*_)*Math.exp(-f*_),h=(c+(l+c*f)*_)*Math.exp(-f*_)*-f+(l+c*f)*Math.exp(-f*_),x=u(c,l,t,o);return u(p,h,t,o)/x-m};return _.__closure={targetDuration:n,m:o,zeta:s,x0:c,v0:l,getEnergy:u,threshold:m},_.__workletHash=0xa8a247dada8,_.__initData=t,_})({_worklet_11588433980840_init_data:n,targetDuration:f,m:_,zeta:u,x0:t,v0:l,getEnergy:o,threshold:m}),h=.001*c.energyThreshold;return s({min:Number.EPSILON,max:8e3,func:p,precision:h,maxIterations:100})};return c.__closure={_worklet_11588433980840_init_data:n,getEnergy:o,bisectRoot:s},c.__workletHash=4150803222832,c.__initData=t,c})({_worklet_4150803222832_init_data:{code:"function calculateNewStiffnessToMatchDuration_reactNativeReanimated_springUtilsJs8(x0,config,v0){const{_worklet_11588433980840_init_data,getEnergy,bisectRoot}=this.__closure;if(config.skipAnimation){return 0;}const{dampingRatio:zeta,energyThreshold:threshold,mass:m,duration:targetDuration}=config;const energyDiffForStiffness=function calculateNewStiffnessToMatchDuration_reactNativeReanimated_springUtilsJs8({_worklet_11588433980840_init_data:_worklet_11588433980840_init_data,targetDuration:targetDuration,m:m,zeta:zeta,x0:x0,v0:v0,getEnergy:getEnergy,threshold:threshold}){const reactNativeReanimated_springUtilsJs7=function(stiffness){const perceptualCoefficient=1.5;const MILLISECONDS_IN_SECOND=1000;const settlingDuration=targetDuration*perceptualCoefficient/MILLISECONDS_IN_SECOND;const omega0=Math.sqrt(stiffness/m)*zeta;const xtk=(x0+(v0+x0*omega0)*settlingDuration)*Math.exp(-omega0*settlingDuration);const vtk=(x0+(v0+x0*omega0)*settlingDuration)*Math.exp(-omega0*settlingDuration)*-omega0+(v0+x0*omega0)*Math.exp(-omega0*settlingDuration);const e0=getEnergy(x0,v0,stiffness,m);const etk=getEnergy(xtk,vtk,stiffness,m);const energyFraction=etk/e0;return energyFraction-threshold;};reactNativeReanimated_springUtilsJs7.__closure={targetDuration:targetDuration,m:m,zeta:zeta,x0:x0,v0:v0,getEnergy:getEnergy,threshold:threshold};reactNativeReanimated_springUtilsJs7.__workletHash=11588433980840;reactNativeReanimated_springUtilsJs7.__initData=_worklet_11588433980840_init_data;return reactNativeReanimated_springUtilsJs7;}({_worklet_11588433980840_init_data:_worklet_11588433980840_init_data,targetDuration:targetDuration,m:m,zeta:zeta,x0:x0,v0:v0,getEnergy:getEnergy,threshold:threshold});const precision=config.energyThreshold*1e-3;return bisectRoot({min:Number.EPSILON,max:8e3,func:energyDiffForStiffness,precision:precision,maxIterations:100});}"},_worklet_11588433980840_init_data:{code:"function reactNativeReanimated_springUtilsJs7(stiffness){const{targetDuration,m,zeta,x0,v0,getEnergy,threshold}=this.__closure;const perceptualCoefficient=1.5;const MILLISECONDS_IN_SECOND=1000;const settlingDuration=targetDuration*perceptualCoefficient/MILLISECONDS_IN_SECOND;const omega0=Math.sqrt(stiffness/m)*zeta;const xtk=(x0+(v0+x0*omega0)*settlingDuration)*Math.exp(-omega0*settlingDuration);const vtk=(x0+(v0+x0*omega0)*settlingDuration)*Math.exp(-omega0*settlingDuration)*-omega0+(v0+x0*omega0)*Math.exp(-omega0*settlingDuration);const e0=getEnergy(x0,v0,stiffness,m);const etk=getEnergy(xtk,vtk,stiffness,m);const energyFraction=etk/e0;return energyFraction-threshold;}"},getEnergy:l,bisectRoot:o}),m=(function({_worklet_813182177167_init_data:t}){const n=function(t,n){const{toValue:o}=t,{v0:s,x0:c,omega0:l,t:u}=n,m=Math.exp(-l*u);return{position:o+m*(c+(s+l*c)*u),velocity:m*-l*(c+(s+l*c)*u)+m*(s+l*c)}};return n.__closure={},n.__workletHash=813182177167,n.__initData=t,n})({_worklet_813182177167_init_data:{code:"function criticallyDampedSpringCalculations_reactNativeReanimated_springUtilsJs9(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*-omega0*(x0+(v0+omega0*x0)*t)+criticallyDampedEnvelope*(v0+omega0*x0);return{position:criticallyDampedPosition,velocity:criticallyDampedVelocity};}"}}),_=(function({_worklet_10005016466840_init_data:t}){const n=function(t,n){const{toValue:o}=t,{zeta:s,t:c,omega0:l,omega1:u,x0:m,v0:_}=n,f=Math.sin(u*c),p=Math.cos(u*c),h=Math.exp(-s*l*c),x=h*(f*((_+s*l*m)/u)+m*p);return{position:o+x,velocity:-s*l*x+h*(p*(_+s*l*m)-u*m*f)}};return n.__closure={},n.__workletHash=0x9197973d598,n.__initData=t,n})({_worklet_10005016466840_init_data:{code:"function underDampedSpringCalculations_reactNativeReanimated_springUtilsJs10(animation,precalculatedValues){const{toValue:toValue}=animation;const{zeta:zeta,t:t,omega0:omega0,omega1:omega1,x0:x0,v0:v0}=precalculatedValues;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};}"}}),f=(function({_worklet_4898375016678_init_data:t,getEnergy:n}){const o=function(t,o){const{toValue:s,velocity:c,startValue:l,current:u,initialEnergy:m}=t;if(o.overshootClamping){const t=l>=0?s:s+l,n=t+Math.abs(l);if(u<t||u>n)return!0}const _=n(s-u,c,o.stiffness,o.mass);return 0===m||_/m<=o.energyThreshold};return o.__closure={getEnergy:n},o.__workletHash=4898375016678,o.__initData=t,o})({_worklet_4898375016678_init_data:{code:"function isAnimationTerminatingCalculation_reactNativeReanimated_springUtilsJs11(animation,config){const{getEnergy}=this.__closure;const{toValue:toValue,velocity:velocity,startValue:startValue,current:current,initialEnergy:initialEnergy}=animation;if(config.overshootClamping){const leftBound=startValue>=0?toValue:toValue+startValue;const rightBound=leftBound+Math.abs(startValue);if(current<leftBound||current>rightBound){return true;}}const currentEnergy=getEnergy(toValue-current,velocity,config.stiffness,config.mass);return initialEnergy===0||currentEnergy/initialEnergy<=config.energyThreshold;}"},getEnergy:l})},1164,[1032]);
1287
- __d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withStyleAnimation",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]);const l=(function({_worklet_11004623829338_init_data:t}){const n=function(t,n){return(Array.isArray(n)?n:[n]).reduce((t,n)=>Array.isArray(t)&&'number'==typeof n||null!==t&&'object'==typeof t&&n in t?t[n]:void 0,t)};return n.__closure={},n.__workletHash=0xa0236b1b95a,n.__initData=t,n})({_worklet_11004623829338_init_data:{code:"function resolvePath_reactNativeReanimated_styleAnimationJs1(obj,path){const keys=Array.isArray(path)?path:[path];return keys.reduce(function(acc,current){if(Array.isArray(acc)&&typeof current==='number'){return acc[current];}else if(acc!==null&&typeof acc==='object'&&current in acc){return acc[current];}return undefined;},obj);}"}}),s=(function({_worklet_15386539109961_init_data:t}){const n=function(t,n,i){const o=Array.isArray(n)?n:[n];let l=t;for(let t=0;t<o.length-1;t++)o[t]in l||('number'==typeof o[t+1]?l[o[t]]=[]:l[o[t]]={}),l=l[o[t]];l[o[o.length-1]]=i};return n.__closure={},n.__workletHash=0xdfe7532ae49,n.__initData=t,n})({_worklet_15386539109961_init_data:{code:"function setPath_reactNativeReanimated_styleAnimationJs2(obj,path,value){const keys=Array.isArray(path)?path:[path];let currObj=obj;for(let i=0;i<keys.length-1;i++){currObj=currObj;if(!(keys[i]in currObj)){if(typeof keys[i+1]==='number'){currObj[keys[i]]=[];}else{currObj[keys[i]]={};}}currObj=currObj[keys[i]];}currObj[keys[keys.length-1]]=value;}"}}),c=(function({_worklet_16967997374903_init_data:t,defineAnimation:n,_worklet_16813428542450_init_data:i,ColorProperties:o,setPath:l,processColor:s,resolvePath:c,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h}){const _=function(t){return n({},(function({_worklet_16813428542450_init_data:t,ColorProperties:n,setPath:i,processColor:o,styleAnimations:l,resolvePath:s,__DEV__:c,logger:u,isValidLayoutAnimationProp:y,withTiming:p}){const h=function(){return{isHigherOrder:!0,onFrame:(t,l)=>{let s=!1;const c=[{value:t.styleAnimations,path:[]}];for(;c.length>0;){const u=c.pop();if(Array.isArray(u.value))for(let t=0;t<u.value.length;t++)c.push({value:u.value[t],path:u.path.concat(t)});else if('object'==typeof u.value&&void 0===u.value.onFrame)for(const t of Object.keys(u.value))c.push({value:u.value[t],path:u.path.concat(t)});else{const c=u.value;if(c.finished)continue;c.onFrame(c,l)?(c.finished=!0,c.callback&&c.callback(!0)):s=!0;const y=n.includes(u.path[0])||'boxShadow'===u.path[0]&&u.path.length>2&&'color'===u.path[2];i(t.current,u.path,y?o(c.current):c.current)}}return!s},onStart:(t,n,o,h)=>{const _=[{value:l,path:[]}];for(;_.length>0;){const l=_.pop();if(Array.isArray(l.value))for(let t=0;t<l.value.length;t++)_.push({value:l.value[t],path:l.path.concat(t)});else if('object'==typeof l.value&&void 0===l.value.onStart)for(const t of Object.keys(l.value))_.push({value:l.value[t],path:l.path.concat(t)});else{const _=s(h?.styleAnimations,l.path);let f,A=s(n,l.path);if(_&&!A&&(A=_.current),c){void 0===A&&u.warn(`Initial values for animation are missing for property ${l.path.join('.')}`);const t=l.path[0];'string'!=typeof t||y(t.trim())||u.warn(`'${t}' property is not officially supported for layout animations. It may not work as expected.`)}i(t.current,l.path,A),'object'==typeof l.value&&l.value.onStart?f=l.value:(f=p(l.value,{duration:0}),i(t.styleAnimations,l.path,f)),f.onStart(f,A,o,_)}}},current:{},styleAnimations:l,callback:t=>{if(!t){const t=[l];for(;t.length>0;){const n=t.pop();if(Array.isArray(n))for(const i of n)t.push(i);else if('object'==typeof n&&void 0===n.onStart)for(const i of Object.values(n))t.push(i);else{const t=n;!t.finished&&t.callback&&t.callback(!1)}}}}}};return h.__closure={ColorProperties:n,setPath:i,processColor:o,styleAnimations:l,resolvePath:s,__DEV__:c,logger:u,isValidLayoutAnimationProp:y,withTiming:p},h.__workletHash=0xf4aae6f8bf2,h.__initData=t,h})({_worklet_16813428542450_init_data:i,ColorProperties:o,setPath:l,processColor:s,styleAnimations:t,resolvePath:c,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h}))};return _.__closure={defineAnimation:n,_worklet_16813428542450_init_data:i,ColorProperties:o,setPath:l,processColor:s,resolvePath:c,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h},_.__workletHash=0xf6eab74c1b7,_.__initData=t,_})({_worklet_16967997374903_init_data:{code:"function withStyleAnimation_reactNativeReanimated_styleAnimationJs4(styleAnimations){const{defineAnimation,_worklet_16813428542450_init_data,ColorProperties,setPath,processColor,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,withTiming}=this.__closure;return defineAnimation({},function withStyleAnimation_reactNativeReanimated_styleAnimationJs4({_worklet_16813428542450_init_data:_worklet_16813428542450_init_data,ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming}){const reactNativeReanimated_styleAnimationJs3=function(){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;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onFrame===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const currentStyleAnimation=currentEntry.value;if(currentStyleAnimation.finished){continue;}const finished=currentStyleAnimation.onFrame(currentStyleAnimation,now);if(finished){currentStyleAnimation.finished=true;if(currentStyleAnimation.callback){currentStyleAnimation.callback(true);}}else{stillGoing=true;}const isAnimatingColorProp=ColorProperties.includes(currentEntry.path[0])||currentEntry.path[0]==='boxShadow'&&currentEntry.path.length>2&&currentEntry.path[2]==='color';setPath(animation.current,currentEntry.path,isAnimatingColorProp?processColor(currentStyleAnimation.current):currentStyleAnimation.current);}}return!stillGoing;};const onStart=function(animation,value,now,previousAnimation){const entriesToCheck=[{value:styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onStart===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const prevAnimation=resolvePath(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.styleAnimations,currentEntry.path);let prevVal=resolvePath(value,currentEntry.path);if(prevAnimation&&!prevVal){prevVal=prevAnimation.current;}if(__DEV__){if(prevVal===undefined){logger.warn(\"Initial values for animation are missing for property \"+currentEntry.path.join('.'));}const propName=currentEntry.path[0];if(typeof propName==='string'&&!isValidLayoutAnimationProp(propName.trim())){logger.warn(\"'\"+propName+\"' property is not officially supported for layout animations. It may not work as expected.\");}}setPath(animation.current,currentEntry.path,prevVal);let currentAnimation;if(typeof currentEntry.value!=='object'||!currentEntry.value.onStart){currentAnimation=withTiming(currentEntry.value,{duration:0});setPath(animation.styleAnimations,currentEntry.path,currentAnimation);}else{currentAnimation=currentEntry.value;}currentAnimation.onStart(currentAnimation,prevVal,now,prevAnimation);}}};const callback=function(finished){if(!finished){const animationsToCheck=[styleAnimations];while(animationsToCheck.length>0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&&currentAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&&currentStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};};reactNativeReanimated_styleAnimationJs3.__closure={ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming};reactNativeReanimated_styleAnimationJs3.__workletHash=16813428542450;reactNativeReanimated_styleAnimationJs3.__initData=_worklet_16813428542450_init_data;return reactNativeReanimated_styleAnimationJs3;}({_worklet_16813428542450_init_data:_worklet_16813428542450_init_data,ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming}));}"},defineAnimation:o.defineAnimation,_worklet_16813428542450_init_data:{code:"function reactNativeReanimated_styleAnimationJs3(){const{ColorProperties,setPath,processColor,styleAnimations,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,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;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onFrame===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const currentStyleAnimation=currentEntry.value;if(currentStyleAnimation.finished){continue;}const finished=currentStyleAnimation.onFrame(currentStyleAnimation,now);if(finished){currentStyleAnimation.finished=true;if(currentStyleAnimation.callback){currentStyleAnimation.callback(true);}}else{stillGoing=true;}const isAnimatingColorProp=ColorProperties.includes(currentEntry.path[0])||currentEntry.path[0]==='boxShadow'&&currentEntry.path.length>2&&currentEntry.path[2]==='color';setPath(animation.current,currentEntry.path,isAnimatingColorProp?processColor(currentStyleAnimation.current):currentStyleAnimation.current);}}return!stillGoing;};const onStart=function(animation,value,now,previousAnimation){const entriesToCheck=[{value:styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onStart===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const prevAnimation=resolvePath(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.styleAnimations,currentEntry.path);let prevVal=resolvePath(value,currentEntry.path);if(prevAnimation&&!prevVal){prevVal=prevAnimation.current;}if(__DEV__){if(prevVal===undefined){logger.warn(\"Initial values for animation are missing for property \"+currentEntry.path.join('.'));}const propName=currentEntry.path[0];if(typeof propName==='string'&&!isValidLayoutAnimationProp(propName.trim())){logger.warn(\"'\"+propName+\"' property is not officially supported for layout animations. It may not work as expected.\");}}setPath(animation.current,currentEntry.path,prevVal);let currentAnimation;if(typeof currentEntry.value!=='object'||!currentEntry.value.onStart){currentAnimation=withTiming(currentEntry.value,{duration:0});setPath(animation.styleAnimations,currentEntry.path,currentAnimation);}else{currentAnimation=currentEntry.value;}currentAnimation.onStart(currentAnimation,prevVal,now,prevAnimation);}}};const callback=function(finished){if(!finished){const animationsToCheck=[styleAnimations];while(animationsToCheck.length>0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&&currentAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&&currentStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}"},ColorProperties:t.ColorProperties,setPath:s,processColor:n.processColor,resolvePath:l,__DEV__:!1,logger:n.logger,isValidLayoutAnimationProp:o.isValidLayoutAnimationProp,withTiming:i.withTiming})},1165,[1041,1032,1166,1147]);
1287
+ __d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withStyleAnimation",{enumerable:!0,get:function(){return s}});var t=r(d[0]),n=r(d[1]),i=r(d[2]),o=r(d[3]);const l=(function({_worklet_11004623829338_init_data:t}){const n=function(t,n){return(Array.isArray(n)?n:[n]).reduce((t,n)=>Array.isArray(t)&&'number'==typeof n||null!==t&&'object'==typeof t&&n in t?t[n]:void 0,t)};return n.__closure={},n.__workletHash=0xa0236b1b95a,n.__initData=t,n})({_worklet_11004623829338_init_data:{code:"function resolvePath_reactNativeReanimated_styleAnimationJs1(obj,path){const keys=Array.isArray(path)?path:[path];return keys.reduce(function(acc,current){if(Array.isArray(acc)&&typeof current==='number'){return acc[current];}else if(acc!==null&&typeof acc==='object'&&current in acc){return acc[current];}return undefined;},obj);}"}}),c=(function({_worklet_15386539109961_init_data:t}){const n=function(t,n,i){const o=Array.isArray(n)?n:[n];let l=t;for(let t=0;t<o.length-1;t++)o[t]in l||('number'==typeof o[t+1]?l[o[t]]=[]:l[o[t]]={}),l=l[o[t]];l[o[o.length-1]]=i};return n.__closure={},n.__workletHash=0xdfe7532ae49,n.__initData=t,n})({_worklet_15386539109961_init_data:{code:"function setPath_reactNativeReanimated_styleAnimationJs2(obj,path,value){const keys=Array.isArray(path)?path:[path];let currObj=obj;for(let i=0;i<keys.length-1;i++){currObj=currObj;if(!(keys[i]in currObj)){if(typeof keys[i+1]==='number'){currObj[keys[i]]=[];}else{currObj[keys[i]]={};}}currObj=currObj[keys[i]];}currObj[keys[keys.length-1]]=value;}"}}),s=(function({_worklet_12101254352542_init_data:t,defineAnimation:n,_worklet_16631291077387_init_data:i,ColorProperties:o,setPath:l,processColor:c,resolvePath:s,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h}){const _=function(t,_){return n({},(function({_worklet_16631291077387_init_data:t,ColorProperties:n,setPath:i,processColor:o,styleAnimations:l,resolvePath:c,__DEV__:s,logger:u,isValidLayoutAnimationProp:y,withTiming:p,callback:h}){const _=function(){return{isHigherOrder:!0,onFrame:(t,l)=>{let c=!1;const s=[{value:t.styleAnimations,path:[]}];for(;s.length>0;){const u=s.pop();if(Array.isArray(u.value))for(let t=0;t<u.value.length;t++)s.push({value:u.value[t],path:u.path.concat(t)});else if('object'==typeof u.value&&void 0===u.value.onFrame)for(const t of Object.keys(u.value))s.push({value:u.value[t],path:u.path.concat(t)});else{const s=u.value;if(s.finished)continue;s.onFrame(s,l)?(s.finished=!0,s.callback&&s.callback(!0)):c=!0;const y=n.includes(u.path[0])||'boxShadow'===u.path[0]&&u.path.length>2&&'color'===u.path[2];i(t.current,u.path,y?o(s.current):s.current)}}return!c},onStart:(t,n,o,h)=>{const _=[{value:l,path:[]}];for(;_.length>0;){const l=_.pop();if(Array.isArray(l.value))for(let t=0;t<l.value.length;t++)_.push({value:l.value[t],path:l.path.concat(t)});else if('object'==typeof l.value&&void 0===l.value.onStart)for(const t of Object.keys(l.value))_.push({value:l.value[t],path:l.path.concat(t)});else{const _=c(h?.styleAnimations,l.path);let f,A=c(n,l.path);if(_&&!A&&(A=_.current),s){void 0===A&&u.warn(`Initial values for animation are missing for property ${l.path.join('.')}`);const t=l.path[0];'string'!=typeof t||y(t.trim())||u.warn(`'${t}' property is not officially supported for layout animations. It may not work as expected.`)}i(t.current,l.path,A),'object'==typeof l.value&&l.value.onStart?f=l.value:(f=p(l.value,{duration:0}),i(t.styleAnimations,l.path,f)),f.onStart(f,A,o,_)}}},current:{},styleAnimations:l,callback:t=>{if(!t){const t=[l];for(;t.length>0;){const n=t.pop();if(Array.isArray(n))for(const i of n)t.push(i);else if('object'==typeof n&&void 0===n.onStart)for(const i of Object.values(n))t.push(i);else{const t=n;!t.finished&&t.callback&&t.callback(!1)}}}h?.(t)}}};return _.__closure={ColorProperties:n,setPath:i,processColor:o,styleAnimations:l,resolvePath:c,__DEV__:s,logger:u,isValidLayoutAnimationProp:y,withTiming:p,callback:h},_.__workletHash=0xf204632630b,_.__initData=t,_})({_worklet_16631291077387_init_data:i,ColorProperties:o,setPath:l,processColor:c,styleAnimations:t,resolvePath:s,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h,callback:_}))};return _.__closure={defineAnimation:n,_worklet_16631291077387_init_data:i,ColorProperties:o,setPath:l,processColor:c,resolvePath:s,__DEV__:u,logger:y,isValidLayoutAnimationProp:p,withTiming:h},_.__workletHash=0xb018af78e9e,_.__initData=t,_})({_worklet_12101254352542_init_data:{code:"function withStyleAnimation_reactNativeReanimated_styleAnimationJs4(styleAnimations,callback){const{defineAnimation,_worklet_16631291077387_init_data,ColorProperties,setPath,processColor,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,withTiming}=this.__closure;return defineAnimation({},function withStyleAnimation_reactNativeReanimated_styleAnimationJs4({_worklet_16631291077387_init_data:_worklet_16631291077387_init_data,ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming,callback:callback}){const reactNativeReanimated_styleAnimationJs3=function(){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;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onFrame===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const currentStyleAnimation=currentEntry.value;if(currentStyleAnimation.finished){continue;}const finished=currentStyleAnimation.onFrame(currentStyleAnimation,now);if(finished){currentStyleAnimation.finished=true;if(currentStyleAnimation.callback){currentStyleAnimation.callback(true);}}else{stillGoing=true;}const isAnimatingColorProp=ColorProperties.includes(currentEntry.path[0])||currentEntry.path[0]==='boxShadow'&&currentEntry.path.length>2&&currentEntry.path[2]==='color';setPath(animation.current,currentEntry.path,isAnimatingColorProp?processColor(currentStyleAnimation.current):currentStyleAnimation.current);}}return!stillGoing;};const onStart=function(animation,value,now,previousAnimation){const entriesToCheck=[{value:styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onStart===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const prevAnimation=resolvePath(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.styleAnimations,currentEntry.path);let prevVal=resolvePath(value,currentEntry.path);if(prevAnimation&&!prevVal){prevVal=prevAnimation.current;}if(__DEV__){if(prevVal===undefined){logger.warn(\"Initial values for animation are missing for property \"+currentEntry.path.join('.'));}const propName=currentEntry.path[0];if(typeof propName==='string'&&!isValidLayoutAnimationProp(propName.trim())){logger.warn(\"'\"+propName+\"' property is not officially supported for layout animations. It may not work as expected.\");}}setPath(animation.current,currentEntry.path,prevVal);let currentAnimation;if(typeof currentEntry.value!=='object'||!currentEntry.value.onStart){currentAnimation=withTiming(currentEntry.value,{duration:0});setPath(animation.styleAnimations,currentEntry.path,currentAnimation);}else{currentAnimation=currentEntry.value;}currentAnimation.onStart(currentAnimation,prevVal,now,prevAnimation);}}};const styleAnimationCallback=function(finished){if(!finished){const animationsToCheck=[styleAnimations];while(animationsToCheck.length>0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&&currentAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&&currentStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}callback===null||callback===void 0||callback(finished);};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:styleAnimationCallback};};reactNativeReanimated_styleAnimationJs3.__closure={ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming,callback:callback};reactNativeReanimated_styleAnimationJs3.__workletHash=16631291077387;reactNativeReanimated_styleAnimationJs3.__initData=_worklet_16631291077387_init_data;return reactNativeReanimated_styleAnimationJs3;}({_worklet_16631291077387_init_data:_worklet_16631291077387_init_data,ColorProperties:ColorProperties,setPath:setPath,processColor:processColor,styleAnimations:styleAnimations,resolvePath:resolvePath,__DEV__:__DEV__,logger:logger,isValidLayoutAnimationProp:isValidLayoutAnimationProp,withTiming:withTiming,callback:callback}));}"},defineAnimation:o.defineAnimation,_worklet_16631291077387_init_data:{code:"function reactNativeReanimated_styleAnimationJs3(){const{ColorProperties,setPath,processColor,styleAnimations,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,withTiming,callback}=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;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onFrame===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const currentStyleAnimation=currentEntry.value;if(currentStyleAnimation.finished){continue;}const finished=currentStyleAnimation.onFrame(currentStyleAnimation,now);if(finished){currentStyleAnimation.finished=true;if(currentStyleAnimation.callback){currentStyleAnimation.callback(true);}}else{stillGoing=true;}const isAnimatingColorProp=ColorProperties.includes(currentEntry.path[0])||currentEntry.path[0]==='boxShadow'&&currentEntry.path.length>2&&currentEntry.path[2]==='color';setPath(animation.current,currentEntry.path,isAnimatingColorProp?processColor(currentStyleAnimation.current):currentStyleAnimation.current);}}return!stillGoing;};const onStart=function(animation,value,now,previousAnimation){const entriesToCheck=[{value:styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index<currentEntry.value.length;index++){entriesToCheck.push({value:currentEntry.value[index],path:currentEntry.path.concat(index)});}}else if(typeof currentEntry.value==='object'&&currentEntry.value.onStart===undefined){for(const key of Object.keys(currentEntry.value)){entriesToCheck.push({value:currentEntry.value[key],path:currentEntry.path.concat(key)});}}else{const prevAnimation=resolvePath(previousAnimation===null||previousAnimation===void 0?void 0:previousAnimation.styleAnimations,currentEntry.path);let prevVal=resolvePath(value,currentEntry.path);if(prevAnimation&&!prevVal){prevVal=prevAnimation.current;}if(__DEV__){if(prevVal===undefined){logger.warn(\"Initial values for animation are missing for property \"+currentEntry.path.join('.'));}const propName=currentEntry.path[0];if(typeof propName==='string'&&!isValidLayoutAnimationProp(propName.trim())){logger.warn(\"'\"+propName+\"' property is not officially supported for layout animations. It may not work as expected.\");}}setPath(animation.current,currentEntry.path,prevVal);let currentAnimation;if(typeof currentEntry.value!=='object'||!currentEntry.value.onStart){currentAnimation=withTiming(currentEntry.value,{duration:0});setPath(animation.styleAnimations,currentEntry.path,currentAnimation);}else{currentAnimation=currentEntry.value;}currentAnimation.onStart(currentAnimation,prevVal,now,prevAnimation);}}};const styleAnimationCallback=function(finished){var _callback;if(!finished){const animationsToCheck=[styleAnimations];while(animationsToCheck.length>0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation==='object'&&currentAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&&currentStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}(_callback=callback)===null||_callback===void 0||_callback(finished);};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:styleAnimationCallback};}"},ColorProperties:t.ColorProperties,setPath:c,processColor:n.processColor,resolvePath:l,__DEV__:!1,logger:n.logger,isValidLayoutAnimationProp:o.isValidLayoutAnimationProp,withTiming:i.withTiming})},1165,[1041,1032,1166,1147]);
1288
1288
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"withTiming",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);const o=(function({_worklet_7022678487610_init_data:t,__DEV__:n,assertEasingIsWorklet:o,defineAnimation:s,_worklet_11349255384920_init_data:u,Easing:c,getReduceMotionForAnimation:l}){const _=function(t,_,f){return n&&_?.easing&&o(_.easing),s(t,(function({_worklet_11349255384920_init_data:t,Easing:n,userConfig:o,toValue:s,callback:u,getReduceMotionForAnimation:c}){const l=function(){const t={duration:300,easing:n.inOut(n.quad)};return o&&Object.keys(o).forEach(n=>t[n]=o[n]),{type:'timing',onFrame:function(n,o){const{toValue:s,startTime:u,startValue:c}=n,l=o-u;if(l>=t.duration)return n.startTime=0,n.current=s,!0;const _=n.easing(l/t.duration);return n.current=c+(s-c)*_,!1},onStart:function(n,o,u,c){c&&'timing'===c.type&&c.toValue===s&&c.startTime?(n.startTime=c.startTime,n.startValue=c.startValue):(n.startTime=u,n.startValue=o),n.current=o,'object'==typeof t.easing?n.easing=t.easing.factory():n.easing=t.easing},progress:0,toValue:s,startValue:0,startTime:0,easing:()=>0,current:s,callback:u,reduceMotion:c(o?.reduceMotion)}};return l.__closure={Easing:n,userConfig:o,toValue:s,callback:u,getReduceMotionForAnimation:c},l.__workletHash=0xa527455ef58,l.__initData=t,l})({_worklet_11349255384920_init_data:u,Easing:c,userConfig:_,toValue:t,callback:f,getReduceMotionForAnimation:l}))};return _.__closure={__DEV__:n,assertEasingIsWorklet:o,defineAnimation:s,_worklet_11349255384920_init_data:u,Easing:c,getReduceMotionForAnimation:l},_.__workletHash=7022678487610,_.__initData=t,_})({_worklet_7022678487610_init_data:{code:"function reactNativeReanimated_timingJs2(toValue,userConfig,callback){const{__DEV__,assertEasingIsWorklet,defineAnimation,_worklet_11349255384920_init_data,Easing,getReduceMotionForAnimation}=this.__closure;if(__DEV__&&userConfig!==null&&userConfig!==void 0&&userConfig.easing){assertEasingIsWorklet(userConfig.easing);}return defineAnimation(toValue,function reactNativeReanimated_timingJs1Factory({_worklet_11349255384920_init_data:_worklet_11349255384920_init_data,Easing:Easing,userConfig:userConfig,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation}){const reactNativeReanimated_timingJs1=function(){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)};};reactNativeReanimated_timingJs1.__closure={Easing:Easing,userConfig:userConfig,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation};reactNativeReanimated_timingJs1.__workletHash=11349255384920;reactNativeReanimated_timingJs1.__initData=_worklet_11349255384920_init_data;return reactNativeReanimated_timingJs1;}({_worklet_11349255384920_init_data:_worklet_11349255384920_init_data,Easing:Easing,userConfig:userConfig,toValue:toValue,callback:callback,getReduceMotionForAnimation:getReduceMotionForAnimation}));}"},__DEV__:!1,assertEasingIsWorklet:n.assertEasingIsWorklet,defineAnimation:n.defineAnimation,_worklet_11349255384920_init_data:{code:"function reactNativeReanimated_timingJs1(){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)};}"},Easing:t.Easing,getReduceMotionForAnimation:n.getReduceMotionForAnimation})},1166,[1167,1147]);
1289
1289
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EasingNameSymbol",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"Easing",{enumerable:!0,get:function(){return M}});var t=r(d[0]);const _=(function({_worklet_10169431008313_init_data:t}){const _=function(t){return t};return _.__closure={},_.__workletHash=0x93fc152a439,_.__initData=t,_})({_worklet_10169431008313_init_data:{code:"function linear_reactNativeReanimated_EasingJs1(t){return t;}"}}),n=(function({_worklet_13574950385453_init_data:t,Bezier:_}){const n=function(t){return _(.42,0,1,1)(t)};return n.__closure={Bezier:_},n.__workletHash=0xc58aa18772d,n.__initData=t,n})({_worklet_13574950385453_init_data:{code:"function ease_reactNativeReanimated_EasingJs2(t){const{Bezier}=this.__closure;return Bezier(0.42,0,1,1)(t);}"},Bezier:t.Bezier}),o=(function({_worklet_11781588435417_init_data:t}){const _=function(t){return t*t};return _.__closure={},_.__workletHash=0xab71d64c1d9,_.__initData=t,_})({_worklet_11781588435417_init_data:{code:"function quad_reactNativeReanimated_EasingJs3(t){return t*t;}"}}),s=(function({_worklet_420874989599_init_data:t}){const _=function(t){return t*t*t};return _.__closure={},_.__workletHash=420874989599,_.__initData=t,_})({_worklet_420874989599_init_data:{code:"function cubic_reactNativeReanimated_EasingJs4(t){return t*t*t;}"}}),c=(function({_worklet_2239682373178_init_data:t,_worklet_12187764194072_init_data:_}){const n=function(t){return(function({_worklet_12187764194072_init_data:t,n:_}){const n=function(t){return Math.pow(t,_)};return n.__closure={n:_},n.__workletHash=0xb15af5afb18,n.__initData=t,n})({_worklet_12187764194072_init_data:_,n:t})};return n.__closure={_worklet_12187764194072_init_data:_},n.__workletHash=2239682373178,n.__initData=t,n})({_worklet_2239682373178_init_data:{code:"function poly_reactNativeReanimated_EasingJs6(n){const{_worklet_12187764194072_init_data}=this.__closure;return function poly_reactNativeReanimated_EasingJs6({_worklet_12187764194072_init_data:_worklet_12187764194072_init_data,n:n}){const reactNativeReanimated_EasingJs5=function(t){return Math.pow(t,n);};reactNativeReanimated_EasingJs5.__closure={n:n};reactNativeReanimated_EasingJs5.__workletHash=12187764194072;reactNativeReanimated_EasingJs5.__initData=_worklet_12187764194072_init_data;return reactNativeReanimated_EasingJs5;}({_worklet_12187764194072_init_data:_worklet_12187764194072_init_data,n:n});}"},_worklet_12187764194072_init_data:{code:"function reactNativeReanimated_EasingJs5(t){const{n}=this.__closure;return Math.pow(t,n);}"}}),u=(function({_worklet_6057811655898_init_data:t}){const _=function(t){return 1-Math.cos(t*Math.PI/2)};return _.__closure={},_.__workletHash=6057811655898,_.__initData=t,_})({_worklet_6057811655898_init_data:{code:"function sin_reactNativeReanimated_EasingJs7(t){return 1-Math.cos(t*Math.PI/2);}"}}),l=(function({_worklet_8811157154490_init_data:t}){const _=function(t){return 1-Math.sqrt(1-t*t)};return _.__closure={},_.__workletHash=8811157154490,_.__initData=t,_})({_worklet_8811157154490_init_data:{code:"function circle_reactNativeReanimated_EasingJs8(t){return 1-Math.sqrt(1-t*t);}"}}),w=(function({_worklet_16706510166078_init_data:t}){const _=function(t){return Math.pow(2,10*(t-1))};return _.__closure={},_.__workletHash=0xf31c99a983e,_.__initData=t,_})({_worklet_16706510166078_init_data:{code:"function exp_reactNativeReanimated_EasingJs9(t){return Math.pow(2,10*(t-1));}"}}),k=(function({_worklet_1724429585866_init_data:t,_worklet_16971658266951_init_data:_}){const n=function(t=1){const n=t*Math.PI;return(function({_worklet_16971658266951_init_data:t,p:_}){const n=function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*_)};return n.__closure={p:_},n.__workletHash=0xf6f85a98947,n.__initData=t,n})({_worklet_16971658266951_init_data:_,p:n})};return n.__closure={_worklet_16971658266951_init_data:_},n.__workletHash=1724429585866,n.__initData=t,n})({_worklet_1724429585866_init_data:{code:"function elastic_reactNativeReanimated_EasingJs11(bounciness=1){const{_worklet_16971658266951_init_data}=this.__closure;const p=bounciness*Math.PI;return function elastic_reactNativeReanimated_EasingJs11({_worklet_16971658266951_init_data:_worklet_16971658266951_init_data,p:p}){const reactNativeReanimated_EasingJs10=function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);};reactNativeReanimated_EasingJs10.__closure={p:p};reactNativeReanimated_EasingJs10.__workletHash=16971658266951;reactNativeReanimated_EasingJs10.__initData=_worklet_16971658266951_init_data;return reactNativeReanimated_EasingJs10;}({_worklet_16971658266951_init_data:_worklet_16971658266951_init_data,p:p});}"},_worklet_16971658266951_init_data:{code:"function reactNativeReanimated_EasingJs10(t){const{p}=this.__closure;return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*p);}"}}),f=(function({_worklet_5532378209073_init_data:t,_worklet_1903745630811_init_data:_}){const n=function(t=1.70158){return(function({_worklet_1903745630811_init_data:t,s:_}){const n=function(t){return t*t*((_+1)*t-_)};return n.__closure={s:_},n.__workletHash=1903745630811,n.__initData=t,n})({_worklet_1903745630811_init_data:_,s:t})};return n.__closure={_worklet_1903745630811_init_data:_},n.__workletHash=5532378209073,n.__initData=t,n})({_worklet_5532378209073_init_data:{code:"function back_reactNativeReanimated_EasingJs13(s=1.70158){const{_worklet_1903745630811_init_data}=this.__closure;return function back_reactNativeReanimated_EasingJs13({_worklet_1903745630811_init_data:_worklet_1903745630811_init_data,s:s}){const reactNativeReanimated_EasingJs12=function(t){return t*t*((s+1)*t-s);};reactNativeReanimated_EasingJs12.__closure={s:s};reactNativeReanimated_EasingJs12.__workletHash=1903745630811;reactNativeReanimated_EasingJs12.__initData=_worklet_1903745630811_init_data;return reactNativeReanimated_EasingJs12;}({_worklet_1903745630811_init_data:_worklet_1903745630811_init_data,s:s});}"},_worklet_1903745630811_init_data:{code:"function reactNativeReanimated_EasingJs12(t){const{s}=this.__closure;return t*t*((s+1)*t-s);}"}}),h=(function({_worklet_6227633941748_init_data:t}){const _=function(t){if(t<.36363636363636365)return 7.5625*t*t;if(t<.7272727272727273){const _=t-.5454545454545454;return 7.5625*_*_+.75}if(t<.9090909090909091){const _=t-.8181818181818182;return 7.5625*_*_+.9375}const _=t-.9545454545454546;return 7.5625*_*_+.984375};return _.__closure={},_.__workletHash=6227633941748,_.__initData=t,_})({_worklet_6227633941748_init_data:{code:"function bounce_reactNativeReanimated_EasingJs14(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;}"}}),N=(function({_worklet_5777629284029_init_data:t,_worklet_16812750165599_init_data:_,Bezier:n}){const o=function(t,o,s,c){return{factory:(function({_worklet_16812750165599_init_data:t,Bezier:_,x1:n,y1:o,x2:s,y2:c}){const u=function(){return _(n,o,s,c)};return u.__closure={Bezier:_,x1:n,y1:o,x2:s,y2:c},u.__workletHash=0xf4a8600565f,u.__initData=t,u})({_worklet_16812750165599_init_data:_,Bezier:n,x1:t,y1:o,x2:s,y2:c})}};return o.__closure={_worklet_16812750165599_init_data:_,Bezier:n},o.__workletHash=5777629284029,o.__initData=t,o})({_worklet_5777629284029_init_data:{code:"function bezier_reactNativeReanimated_EasingJs16(x1,y1,x2,y2){const{_worklet_16812750165599_init_data,Bezier}=this.__closure;return{factory:function bezier_reactNativeReanimated_EasingJs16({_worklet_16812750165599_init_data:_worklet_16812750165599_init_data,Bezier:Bezier,x1:x1,y1:y1,x2:x2,y2:y2}){const reactNativeReanimated_EasingJs15=function(){return Bezier(x1,y1,x2,y2);};reactNativeReanimated_EasingJs15.__closure={Bezier:Bezier,x1:x1,y1:y1,x2:x2,y2:y2};reactNativeReanimated_EasingJs15.__workletHash=16812750165599;reactNativeReanimated_EasingJs15.__initData=_worklet_16812750165599_init_data;return reactNativeReanimated_EasingJs15;}({_worklet_16812750165599_init_data:_worklet_16812750165599_init_data,Bezier:Bezier,x1:x1,y1:y1,x2:x2,y2:y2})};}"},_worklet_16812750165599_init_data:{code:"function reactNativeReanimated_EasingJs15(){const{Bezier,x1,y1,x2,y2}=this.__closure;return Bezier(x1,y1,x2,y2);}"},Bezier:t.Bezier}),v=(function({_worklet_1286668932581_init_data:t,Bezier:_}){const n=function(t,n,o,s){return _(t,n,o,s)};return n.__closure={Bezier:_},n.__workletHash=1286668932581,n.__initData=t,n})({_worklet_1286668932581_init_data:{code:"function bezierFn_reactNativeReanimated_EasingJs17(x1,y1,x2,y2){const{Bezier}=this.__closure;return Bezier(x1,y1,x2,y2);}"},Bezier:t.Bezier}),E=(function({_worklet_5692504487844_init_data:t}){const _=function(t){return t};return _.__closure={},_.__workletHash=5692504487844,_.__initData=t,_})({_worklet_5692504487844_init_data:{code:"function in__reactNativeReanimated_EasingJs18(easing){return easing;}"}}),J=(function({_worklet_15297387675330_init_data:t,_worklet_2198231836607_init_data:_}){const n=function(t){return(function({_worklet_2198231836607_init_data:t,easing:_}){const n=function(t){return 1-_(1-t)};return n.__closure={easing:_},n.__workletHash=2198231836607,n.__initData=t,n})({_worklet_2198231836607_init_data:_,easing:t})};return n.__closure={_worklet_2198231836607_init_data:_},n.__workletHash=0xde9b35bbec2,n.__initData=t,n})({_worklet_15297387675330_init_data:{code:"function out_reactNativeReanimated_EasingJs20(easing){const{_worklet_2198231836607_init_data}=this.__closure;return function out_reactNativeReanimated_EasingJs20({_worklet_2198231836607_init_data:_worklet_2198231836607_init_data,easing:easing}){const reactNativeReanimated_EasingJs19=function(t){return 1-easing(1-t);};reactNativeReanimated_EasingJs19.__closure={easing:easing};reactNativeReanimated_EasingJs19.__workletHash=2198231836607;reactNativeReanimated_EasingJs19.__initData=_worklet_2198231836607_init_data;return reactNativeReanimated_EasingJs19;}({_worklet_2198231836607_init_data:_worklet_2198231836607_init_data,easing:easing});}"},_worklet_2198231836607_init_data:{code:"function reactNativeReanimated_EasingJs19(t){const{easing}=this.__closure;return 1-easing(1-t);}"}}),R=(function({_worklet_6467848726002_init_data:t,_worklet_2567153952333_init_data:_}){const n=function(t){return(function({_worklet_2567153952333_init_data:t,easing:_}){const n=function(t){return t<.5?_(2*t)/2:1-_(2*(1-t))/2};return n.__closure={easing:_},n.__workletHash=2567153952333,n.__initData=t,n})({_worklet_2567153952333_init_data:_,easing:t})};return n.__closure={_worklet_2567153952333_init_data:_},n.__workletHash=6467848726002,n.__initData=t,n})({_worklet_6467848726002_init_data:{code:"function inOut_reactNativeReanimated_EasingJs22(easing){const{_worklet_2567153952333_init_data}=this.__closure;return function inOut_reactNativeReanimated_EasingJs22({_worklet_2567153952333_init_data:_worklet_2567153952333_init_data,easing:easing}){const reactNativeReanimated_EasingJs21=function(t){if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;};reactNativeReanimated_EasingJs21.__closure={easing:easing};reactNativeReanimated_EasingJs21.__workletHash=2567153952333;reactNativeReanimated_EasingJs21.__initData=_worklet_2567153952333_init_data;return reactNativeReanimated_EasingJs21;}({_worklet_2567153952333_init_data:_worklet_2567153952333_init_data,easing:easing});}"},_worklet_2567153952333_init_data:{code:"function reactNativeReanimated_EasingJs21(t){const{easing}=this.__closure;if(t<0.5){return easing(t*2)/2;}return 1-easing((1-t)*2)/2;}"}}),x=(function({_worklet_10232375283954_init_data:t,_worklet_5084799734468_init_data:_}){const n=function(t=10,n=!0){return(function({_worklet_5084799734468_init_data:t,n:_,roundToNextStep:n}){const o=function(t){const o=Math.min(Math.max(t,0),1)*_;return n?Math.ceil(o)/_:Math.floor(o)/_};return o.__closure={n:_,roundToNextStep:n},o.__workletHash=5084799734468,o.__initData=t,o})({_worklet_5084799734468_init_data:_,n:t,roundToNextStep:n})};return n.__closure={_worklet_5084799734468_init_data:_},n.__workletHash=0x94e691810f2,n.__initData=t,n})({_worklet_10232375283954_init_data:{code:"function steps_reactNativeReanimated_EasingJs24(n=10,roundToNextStep=true){const{_worklet_5084799734468_init_data}=this.__closure;return function steps_reactNativeReanimated_EasingJs24({_worklet_5084799734468_init_data:_worklet_5084799734468_init_data,n:n,roundToNextStep:roundToNextStep}){const reactNativeReanimated_EasingJs23=function(t){const value=Math.min(Math.max(t,0),1)*n;if(roundToNextStep){return Math.ceil(value)/n;}return Math.floor(value)/n;};reactNativeReanimated_EasingJs23.__closure={n:n,roundToNextStep:roundToNextStep};reactNativeReanimated_EasingJs23.__workletHash=5084799734468;reactNativeReanimated_EasingJs23.__initData=_worklet_5084799734468_init_data;return reactNativeReanimated_EasingJs23;}({_worklet_5084799734468_init_data:_worklet_5084799734468_init_data,n:n,roundToNextStep:roundToNextStep});}"},_worklet_5084799734468_init_data:{code:"function reactNativeReanimated_EasingJs23(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;}"}}),p={linear:_,ease:n,quad:o,cubic:s,poly:c,sin:u,circle:l,exp:w,elastic:k,back:f,bounce:h,bezier:N,bezierFn:v,steps:x,in:E,out:J,inOut:R},y=Symbol('easingName');for(const[t,_]of Object.entries(p))Object.defineProperty(_,y,{value:t,configurable:!1,enumerable:!1,writable:!1});const M=p},1167,[1168]);
1290
1290
  __d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Bezier",{enumerable:!0,get:function(){return c}});const t=(function({_worklet_8828646082676_init_data:t}){const i=function(t,i){return 1-3*i+3*t};return i.__closure={},i.__workletHash=8828646082676,i.__initData=t,i})({_worklet_8828646082676_init_data:{code:"function A_reactNativeReanimated_BezierJs1(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1;}"}}),i=(function({_worklet_4203953384949_init_data:t}){const i=function(t,i){return 3*i-6*t};return i.__closure={},i.__workletHash=4203953384949,i.__initData=t,i})({_worklet_4203953384949_init_data:{code:"function B_reactNativeReanimated_BezierJs2(aA1,aA2){return 3.0*aA2-6.0*aA1;}"}}),n=(function({_worklet_8388140024310_init_data:t}){const i=function(t){return 3*t};return i.__closure={},i.__workletHash=8388140024310,i.__initData=t,i})({_worklet_8388140024310_init_data:{code:"function C_reactNativeReanimated_BezierJs3(aA1){return 3.0*aA1;}"}}),_=(function({_worklet_15740570894910_init_data:t,A:i,B:n,C:_}){const l=function(t,l,o){return((i(l,o)*t+n(l,o))*t+_(l))*t};return l.__closure={A:i,B:n,C:_},l.__workletHash=0xe50e323023e,l.__initData=t,l})({_worklet_15740570894910_init_data:{code:"function calcBezier_reactNativeReanimated_BezierJs4(aT,aA1,aA2){const{A,B,C}=this.__closure;return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT;}"},A:t,B:i,C:n}),l=(function({_worklet_4162364291299_init_data:t,A:i,B:n,C:_}){const l=function(t,l,o){return 3*i(l,o)*t*t+2*n(l,o)*t+_(l)};return l.__closure={A:i,B:n,C:_},l.__workletHash=4162364291299,l.__initData=t,l})({_worklet_4162364291299_init_data:{code:"function getSlope_reactNativeReanimated_BezierJs5(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);}"},A:t,B:i,C:n}),o=(function({_worklet_9166841024279_init_data:t,calcBezier:i,SUBDIVISION_PRECISION:n,SUBDIVISION_MAX_ITERATIONS:_}){const l=function(t,l,o,S,c){let s,u,p=0;do{u=l+(o-l)/2,s=i(u,S,c)-t,s>0?o=u:l=u}while(Math.abs(s)>n&&++p<_);return u};return l.__closure={calcBezier:i,SUBDIVISION_PRECISION:n,SUBDIVISION_MAX_ITERATIONS:_},l.__workletHash=9166841024279,l.__initData=t,l})({_worklet_9166841024279_init_data:{code:"function binarySubdivide_reactNativeReanimated_BezierJs6(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&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT;}"},calcBezier:_,SUBDIVISION_PRECISION:1e-7,SUBDIVISION_MAX_ITERATIONS:10}),S=(function({_worklet_13606782449305_init_data:t,NEWTON_ITERATIONS:i,getSlope:n,calcBezier:_}){const l=function(t,l,o,S){for(let c=0;c<i;++c){const i=n(l,o,S);if(0===i)return l;l-=(_(l,o,S)-t)/i}return l};return l.__closure={NEWTON_ITERATIONS:i,getSlope:n,calcBezier:_},l.__workletHash=0xc60136f3699,l.__initData=t,l})({_worklet_13606782449305_init_data:{code:"function newtonRaphsonIterate_reactNativeReanimated_BezierJs7(aX,aGuessT,mX1,mX2){const{NEWTON_ITERATIONS,getSlope,calcBezier}=this.__closure;for(let i=0;i<NEWTON_ITERATIONS;++i){const currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0.0){return aGuessT;}const currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope;}return aGuessT;}"},NEWTON_ITERATIONS:4,getSlope:l,calcBezier:_}),c=(function({_worklet_5402449009101_init_data:t,_worklet_10506866815251_init_data:i,kSplineTableSize:n,calcBezier:_,kSampleStepSize:l,_worklet_8886713262827_init_data:o,getSlope:S,NEWTON_MIN_SLOPE:c,newtonRaphsonIterate:s,binarySubdivide:u,_worklet_10344582928838_init_data:p}){const X=function(t,X,T,k){const N=(function({_worklet_10506866815251_init_data:t}){const i=function(t){return t};return i.__closure={},i.__workletHash=0x98e52107113,i.__initData=t,i})({_worklet_10506866815251_init_data:i});if(!(t>=0&&t<=1&&T>=0&&T<=1))throw new Error('[Reanimated] Bezier x values must be in [0, 1] range.');if(t===X&&T===k)return N;const z=new Array(n);for(let i=0;i<n;++i)z[i]=_(i*l,t,T);const I=(function({_worklet_8886713262827_init_data:t,kSplineTableSize:i,sampleValues:n,kSampleStepSize:_,getSlope:l,mX1:o,mX2:S,NEWTON_MIN_SLOPE:c,newtonRaphsonIterate:s,binarySubdivide:u}){const p=function(t){let p=0,X=1;const T=i-1;for(;X!==T&&n[X]<=t;++X)p+=_;--X;const k=p+(t-n[X])/(n[X+1]-n[X])*_,N=l(k,o,S);return N>=c?s(t,k,o,S):0===N?k:u(t,p,p+_,o,S)};return p.__closure={kSplineTableSize:i,sampleValues:n,kSampleStepSize:_,getSlope:l,mX1:o,mX2:S,NEWTON_MIN_SLOPE:c,newtonRaphsonIterate:s,binarySubdivide:u},p.__workletHash=8886713262827,p.__initData=t,p})({_worklet_8886713262827_init_data:o,kSplineTableSize:n,sampleValues:z,kSampleStepSize:l,getSlope:S,mX1:t,mX2:T,NEWTON_MIN_SLOPE:c,newtonRaphsonIterate:s,binarySubdivide:u});return(function({_worklet_10344582928838_init_data:t,mX1:i,mY1:n,mX2:_,mY2:l,calcBezier:o,getTForX:S}){const c=function(t){return i===n&&_===l?t:0===t?0:1===t?1:o(S(t),n,l)};return c.__closure={mX1:i,mY1:n,mX2:_,mY2:l,calcBezier:o,getTForX:S},c.__workletHash=0x9688930d9c6,c.__initData=t,c})({_worklet_10344582928838_init_data:p,mX1:t,mY1:X,mX2:T,mY2:k,calcBezier:_,getTForX:I})};return X.__closure={_worklet_10506866815251_init_data:i,kSplineTableSize:n,calcBezier:_,kSampleStepSize:l,_worklet_8886713262827_init_data:o,getSlope:S,NEWTON_MIN_SLOPE:c,newtonRaphsonIterate:s,binarySubdivide:u,_worklet_10344582928838_init_data:p},X.__workletHash=5402449009101,X.__initData=t,X})({_worklet_5402449009101_init_data:{code:"function Bezier_reactNativeReanimated_BezierJs11(mX1,mY1,mX2,mY2){const{_worklet_10506866815251_init_data,kSplineTableSize,calcBezier,kSampleStepSize,_worklet_8886713262827_init_data,getSlope,NEWTON_MIN_SLOPE,newtonRaphsonIterate,binarySubdivide,_worklet_10344582928838_init_data}=this.__closure;const LinearEasing=function Bezier_reactNativeReanimated_BezierJs11({_worklet_10506866815251_init_data:_worklet_10506866815251_init_data}){const LinearEasing=function(x){return x;};LinearEasing.__closure={};LinearEasing.__workletHash=10506866815251;LinearEasing.__initData=_worklet_10506866815251_init_data;return LinearEasing;}({_worklet_10506866815251_init_data:_worklet_10506866815251_init_data});if(!(mX1>=0&&mX1<=1&&mX2>=0&&mX2<=1)){throw new Error('[Reanimated] 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<kSplineTableSize;++i){sampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2);}const getTForX=function getTForX_reactNativeReanimated_BezierJs9Factory({_worklet_8886713262827_init_data:_worklet_8886713262827_init_data,kSplineTableSize:kSplineTableSize,sampleValues:sampleValues,kSampleStepSize:kSampleStepSize,getSlope:getSlope,mX1:mX1,mX2:mX2,NEWTON_MIN_SLOPE:NEWTON_MIN_SLOPE,newtonRaphsonIterate:newtonRaphsonIterate,binarySubdivide:binarySubdivide}){const getTForX=function(aX){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);}};getTForX.__closure={kSplineTableSize:kSplineTableSize,sampleValues:sampleValues,kSampleStepSize:kSampleStepSize,getSlope:getSlope,mX1:mX1,mX2:mX2,NEWTON_MIN_SLOPE:NEWTON_MIN_SLOPE,newtonRaphsonIterate:newtonRaphsonIterate,binarySubdivide:binarySubdivide};getTForX.__workletHash=8886713262827;getTForX.__initData=_worklet_8886713262827_init_data;return getTForX;}({_worklet_8886713262827_init_data:_worklet_8886713262827_init_data,kSplineTableSize:kSplineTableSize,sampleValues:sampleValues,kSampleStepSize:kSampleStepSize,getSlope:getSlope,mX1:mX1,mX2:mX2,NEWTON_MIN_SLOPE:NEWTON_MIN_SLOPE,newtonRaphsonIterate:newtonRaphsonIterate,binarySubdivide:binarySubdivide});return function BezierEasing_reactNativeReanimated_BezierJs10Factory({_worklet_10344582928838_init_data:_worklet_10344582928838_init_data,mX1:mX1,mY1:mY1,mX2:mX2,mY2:mY2,calcBezier:calcBezier,getTForX:getTForX}){const BezierEasing=function(x){if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);};BezierEasing.__closure={mX1:mX1,mY1:mY1,mX2:mX2,mY2:mY2,calcBezier:calcBezier,getTForX:getTForX};BezierEasing.__workletHash=10344582928838;BezierEasing.__initData=_worklet_10344582928838_init_data;return BezierEasing;}({_worklet_10344582928838_init_data:_worklet_10344582928838_init_data,mX1:mX1,mY1:mY1,mX2:mX2,mY2:mY2,calcBezier:calcBezier,getTForX:getTForX});}"},_worklet_10506866815251_init_data:{code:"function LinearEasing_reactNativeReanimated_BezierJs8(x){return x;}"},kSplineTableSize:11,calcBezier:_,kSampleStepSize:.1,_worklet_8886713262827_init_data:{code:"function getTForX_reactNativeReanimated_BezierJs9(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);}}"},getSlope:l,NEWTON_MIN_SLOPE:.001,newtonRaphsonIterate:S,binarySubdivide:o,_worklet_10344582928838_init_data:{code:"function BezierEasing_reactNativeReanimated_BezierJs10(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);}"}})},1168,[]);
@@ -1376,7 +1376,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{v
1376
1376
  __d(function(g,r,i,a,m,e,_d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.JumpingTransition=function(s,n){const{translateX:l,translateY:c,scaleX:o,scaleY:p}=n,u=Math.max(Math.abs(l),Math.abs(c))/2,x=c<=0?c-u:-c+u;return{name:s,style:{0:{transform:[{translateX:`${l}px`,translateY:`${c}px`,scale:`${o},${p}`}],easing:t.Easing.exp},50:{transform:[{translateX:l/2+"px",translateY:`${x}px`,scale:`${o},${p}`}]},100:{transform:[{translateX:'0px',translateY:'0px',scale:'1,1'}]}},duration:300}};var t=r(_d[0])},1254,[1167]);
1377
1377
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.LinearTransition=function(t,n){const{translateX:s,translateY:l,scaleX:c,scaleY:o}=n;return{name:t,style:{0:{transform:[{translateX:`${s}px`,translateY:`${l}px`,scale:`${c},${o}`}]}},duration:300}}},1255,[]);
1378
1378
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.SequencedTransition=function(t,n){const{translateX:s,translateY:l,scaleX:c,scaleY:o,reversed:p}=n;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}}},1256,[]);
1379
- __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PropsRegistryGarbageCollector",{enumerable:!0,get:function(){return n}});var t=r(d[0]),s=r(d[1]);const n={viewsCount:0,viewsMap:new Map,intervalId:null,registerView(t,s){this.viewsMap.has(t)||(this.viewsMap.set(t,s),this.viewsCount++,1===this.viewsCount&&this.registerInterval())},unregisterView(t){this.viewsMap.delete(t),this.viewsCount--,0===this.viewsCount&&this.unregisterInterval()},syncPropsBackToReact(){const t=s.ReanimatedModule.getSettledUpdates();for(const{viewTag:s,styleProps:n}of t){if(null===n)continue;const t=this.viewsMap.get(s);o(n),t?._syncStylePropsBackToReact(n)}},registerInterval(){this.intervalId=setInterval(this.syncPropsBackToReact.bind(this),500)},unregisterInterval(){null!==this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}};function o(s){(0,t.unprocessColorsInProps)(s),l(s)}function l(s){Array.isArray(s.boxShadow)&&(s.boxShadow=s.boxShadow.map(s=>({...s,color:(0,t.unprocessColor)(s.color)})))}},1257,[1040,1106]);
1379
+ __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PropsRegistryGarbageCollector",{enumerable:!0,get:function(){return n}});var t=r(d[0]),s=r(d[1]);const n={viewsMap:new Map,intervalId:null,registerView(t,s){this.viewsMap.has(t)||(this.viewsMap.set(t,s),1===this.viewsMap.size&&this.registerInterval())},unregisterView(t){this.viewsMap.delete(t)&&0===this.viewsMap.size&&this.unregisterInterval()},syncPropsBackToReact(){const t=s.ReanimatedModule.getSettledUpdates();for(const{viewTag:s,styleProps:n}of t){if(null===n)continue;const t=this.viewsMap.get(s);o(n),t?._syncStylePropsBackToReact(n)}},registerInterval(){this.intervalId=setInterval(this.syncPropsBackToReact.bind(this),500)},unregisterInterval(){null!==this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}};function o(s){(0,t.unprocessColorsInProps)(s),l(s)}function l(s){Array.isArray(s.boxShadow)&&(s.boxShadow=s.boxShadow.map(s=>({...s,color:(0,t.unprocessColor)(s.color)})))}},1257,[1040,1106]);
1380
1380
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"updateLayoutAnimations",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),u=r(d[2]);let o;if(n.SHOULD_BE_USE_WEB)o=()=>{};else{const n=(function(){const t=[],n=[];return{update(u,o){o?n.push(u):t.push(u),t.length+n.length===1&&this.flush()},flush(){(0,u.configureLayoutAnimationBatch)(t.concat(n)),t.length=0,n.length=0}}})();o=(u,o,c,s,l)=>n.update({viewTag:u,type:o,config:c?(0,t.createSerializable)(c):void 0,sharedTransitionTag:l},s)}},1258,[1013,1032,1171]);
1381
1381
  __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.hasInlineStyles=f,e.getInlineStyle=function(n,s){if(s)return u(n);const o={};for(const[s,p]of Object.entries(n))(0,t.isSharedValue)(p)||'transform'===s&&l(p)||(o[s]=p);return o},Object.defineProperty(e,"InlinePropManager",{enumerable:!0,get:function(){return h}});var t=r(d[0]),n=r(d[1]),s=r(d[2]),o=r(d[3]),p=r(d[4]);function l(t){return!!Array.isArray(t)&&t.some(t=>f(t))}function c(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!0;for(const s of Object.keys(t))if(t[s]!==n[s])return!0;return!1}const u=(function({_worklet_11585428761297_init_data:t,isSharedValue:n}){const s=function(t){if(n(t))return t.value;if(Array.isArray(t))return t.map(s);if(t&&'object'==typeof t){const n={};for(const[o,p]of Object.entries(t))n[o]=s(p);return n}return t};return s.__closure={isSharedValue:n},s.__workletHash=0xa89715daad1,s.__initData=t,s})({_worklet_11585428761297_init_data:{code:"function getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1(styleValue){const getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1=this._recur;const{isSharedValue}=this.__closure;if(isSharedValue(styleValue)){return styleValue.value;}if(Array.isArray(styleValue)){return styleValue.map(getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1);}if(styleValue&&typeof styleValue==='object'){const update={};for(const[key,value]of Object.entries(styleValue)){update[key]=getInlinePropsUpdate_reactNativeReanimated_InlinePropManagerJs1(value);}return update;}return styleValue;}"},isSharedValue:t.isSharedValue});function _(n){const s={};for(const o in n){const c=n[o];if('style'===o){(0,p.flattenArray)(n.style??[]).forEach(n=>{if(n)for(const[o,p]of Object.entries(n))((0,t.isSharedValue)(p)||'transform'===o&&l(p))&&(s[o]=p)})}else(0,t.isSharedValue)(c)&&(s[o]=c)}return s}function f(n){return!!n&&Object.keys(n).some(s=>{const o=n[s];return(0,t.isSharedValue)(o)||'transform'===s&&l(o)})}const P={code:"function reactNativeReanimated_InlinePropManagerJs2(){const{getInlinePropsUpdate,newInlineProps,updateProps,shareableViewDescriptors}=this.__closure;const update=getInlinePropsUpdate(newInlineProps);updateProps(shareableViewDescriptors,update);}"};class h{_inlinePropsViewDescriptors=null;_inlinePropsMapperId=null;_inlineProps={};attachInlineProps(t,p){const l=_(t.props);if(c(l,this._inlineProps)){if(!this._inlinePropsViewDescriptors){this._inlinePropsViewDescriptors=(0,o.makeViewDescriptorsSet)();const{viewTag:t,shadowNodeWrapper:n}=p;this._inlinePropsViewDescriptors.add({tag:t,shadowNodeWrapper:n})}const t=this._inlinePropsViewDescriptors.shareableViewDescriptors,c=(function({_worklet_5061273221373_init_data:t,getInlinePropsUpdate:n,newInlineProps:s,updateProps:o,shareableViewDescriptors:p}){const l=function(){const t=n(s);o(p,t)};return l.__closure={getInlinePropsUpdate:n,newInlineProps:s,updateProps:o,shareableViewDescriptors:p},l.__workletHash=5061273221373,l.__initData=t,l})({_worklet_5061273221373_init_data:P,getInlinePropsUpdate:u,newInlineProps:l,updateProps:s.updateProps,shareableViewDescriptors:t});this._inlineProps=l,this._inlinePropsMapperId&&(0,n.stopMapper)(this._inlinePropsMapperId),this._inlinePropsMapperId=null,Object.keys(l).length&&(this._inlinePropsMapperId=(0,n.startMapper)(c,Object.values(l)))}}detachInlineProps(){this._inlinePropsMapperId&&(0,n.stopMapper)(this._inlinePropsMapperId)}}},1259,[1097,1175,1260,1263,1264]);
1382
1382
  __d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"updateProps",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"updatePropsJestWrapper",{enumerable:!0,get:function(){return t.updatePropsJestWrapper}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},1260,[1261]);
@@ -17092,7 +17092,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t
17092
17092
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return t}});const t=(function({_worklet_14352395092313_init_data:t}){const n=function(t,n,o){return Math.min(Math.max(n,t),o)};return n.__closure={},n.__workletHash=0xd0dad694159,n.__initData=t,n})({_worklet_14352395092313_init_data:{code:"function gorhom_clampJs1(value,lowerBound,upperBound){return Math.min(Math.max(lowerBound,value),upperBound);}"}})},3828,[]);
17093
17093
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"snapPoint",{enumerable:!0,get:function(){return t}});const t=(function({_worklet_14021864397446_init_data:t}){const n=function(t,n,o){const l=t+.2*n,s=o.map(t=>Math.abs(l-t)),c=Math.min.apply(null,s);return o.filter(t=>Math.abs(l-t)===c)[0]};return n.__closure={},n.__workletHash=0xcc0b83f1a86,n.__initData=t,n})({_worklet_14021864397446_init_data:{code:"function gorhom_snapPointJs1(value,velocity,points){const point=value+0.2*velocity;const deltas=points.map(function(p){return Math.abs(point-p);});const minDelta=Math.min.apply(null,deltas);return points.filter(function(p){return Math.abs(point-p)===minDelta;})[0];}"}})},3829,[]);
17094
17094
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useBottomSheetGestureHandlers",{enumerable:!0,get:function(){return n}});var t=r(d[0]),o=r(d[1]);const n=()=>{const n=(0,t.useContext)(o.BottomSheetGestureHandlersContext);if(null===n)throw"'useBottomSheetGestureHandlers' cannot be used out of the BottomSheet!";return n}},3830,[35,3806]);
17095
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAnimatedLayout=function(t,_,f,v,k){const y=(0,e.useMemo)(()=>_+f,[_,f]),T=(0,e.useMemo)(()=>{const e={...u};if(t){const _=t.get();e.containerHeight=v?_.height-y:_.height,e.containerOffset=_.offset}return k&&(e.handleHeight=0),e},[t,v,k,y]),[U]=(0,e.useState)(()=>(0,n.makeMutable)(T));return(0,n.useAnimatedReaction)((function({_worklet_16749227469433_init_data:t,state:e}){const _=()=>e.value.rawContainerHeight;return _.__closure={state:e},_.__workletHash=0xf3bbbc0ea79,_.__initData=t,_})({_worklet_16749227469433_init_data:l,state:U}),(function({_worklet_11904372984444_init_data:t,INITIAL_LAYOUT_VALUE:e,state:_,_worklet_13415680386644_init_data:o,modal:n,verticalInset:s}){const u=function(t,u){t!==u&&t!==e&&_.modify((function({_worklet_13415680386644_init_data:t,modal:e,result:_,verticalInset:o}){const n=function(t){return t.containerHeight=e?_-o:_,t};return n.__closure={modal:e,result:_,verticalInset:o},n.__workletHash=0xc3394dd2654,n.__initData=t,n})({_worklet_13415680386644_init_data:o,modal:n,result:t,verticalInset:s}))};return u.__closure={INITIAL_LAYOUT_VALUE:e,state:_,_worklet_13415680386644_init_data:o,modal:n,verticalInset:s},u.__workletHash=0xad3b3ec4a7c,u.__initData=t,u})({_worklet_11904372984444_init_data:I,INITIAL_LAYOUT_VALUE:s.INITIAL_LAYOUT_VALUE,state:U,_worklet_13415680386644_init_data:c,modal:v,verticalInset:y}),[U,y,v]),(0,n.useAnimatedReaction)((function({_worklet_16586074982495_init_data:t,containerLayoutState:e}){const _=()=>e?.get().height;return _.__closure={containerLayoutState:e},_.__workletHash=0xf15bf1b885f,_.__initData=t,_})({_worklet_16586074982495_init_data:L,containerLayoutState:t}),(function({_worklet_896068907356_init_data:t,INITIAL_LAYOUT_VALUE:e,state:_,_worklet_14187347869363_init_data:o,modal:n,verticalInset:s}){const u=function(t,u){t&&t!==u&&t!==e&&_.modify((function({_worklet_14187347869363_init_data:t,modal:e,result:_,verticalInset:o}){const n=function(t){return t.containerHeight=e?_-o:_,t};return n.__closure={modal:e,result:_,verticalInset:o},n.__workletHash=0xce73fd47eb3,n.__initData=t,n})({_worklet_14187347869363_init_data:o,modal:n,result:t,verticalInset:s}))};return u.__closure={INITIAL_LAYOUT_VALUE:e,state:_,_worklet_14187347869363_init_data:o,modal:n,verticalInset:s},u.__workletHash=896068907356,u.__initData=t,u})({_worklet_896068907356_init_data:w,INITIAL_LAYOUT_VALUE:s.INITIAL_LAYOUT_VALUE,state:U,_worklet_14187347869363_init_data:A,modal:v,verticalInset:y}),[U,y,v]),(0,e.useEffect)(()=>{o.default.addEventListener('change',({window:t})=>{U.modify((function({_worklet_10284813374852_init_data:t,window:e}){const _=function(t){return t.window=e,t};return _.__closure={window:e},_.__workletHash=0x95a9ea5d584,_.__initData=t,_})({_worklet_10284813374852_init_data:h,window:t}))})},[U]),U};var t,e=r(d[0]),_=r(d[1]),o=(t=_)&&t.__esModule?t:{default:t},n=r(d[2]),s=r(d[3]);const u={window:o.default.get('window'),rawContainerHeight:s.INITIAL_LAYOUT_VALUE,containerHeight:s.INITIAL_LAYOUT_VALUE,containerOffset:s.INITIAL_CONTAINER_LAYOUT.offset,handleHeight:s.INITIAL_LAYOUT_VALUE,footerHeight:s.INITIAL_LAYOUT_VALUE,contentHeight:s.INITIAL_LAYOUT_VALUE},l={code:"function gorhom_useAnimatedLayoutJs1(){const{state}=this.__closure;return state.value.rawContainerHeight;}"},c={code:"function gorhom_useAnimatedLayoutJs2(_state){const{modal,result,verticalInset}=this.__closure;_state.containerHeight=modal?result-verticalInset:result;return _state;}"},I={code:"function gorhom_useAnimatedLayoutJs3(result,previous){const{INITIAL_LAYOUT_VALUE,state,_worklet_13415680386644_init_data,modal,verticalInset}=this.__closure;if(result===previous){return;}if(result===INITIAL_LAYOUT_VALUE){return;}state.modify(function gorhom_useAnimatedLayoutJs2Factory({_worklet_13415680386644_init_data:_worklet_13415680386644_init_data,modal:modal,result:result,verticalInset:verticalInset}){const gorhom_useAnimatedLayoutJs2=function(_state){_state.containerHeight=modal?result-verticalInset:result;return _state;};gorhom_useAnimatedLayoutJs2.__closure={modal:modal,result:result,verticalInset:verticalInset};gorhom_useAnimatedLayoutJs2.__workletHash=13415680386644;gorhom_useAnimatedLayoutJs2.__initData=_worklet_13415680386644_init_data;return gorhom_useAnimatedLayoutJs2;}({_worklet_13415680386644_init_data:_worklet_13415680386644_init_data,modal:modal,result:result,verticalInset:verticalInset}));}"},L={code:"function gorhom_useAnimatedLayoutJs4(){const{containerLayoutState}=this.__closure;var _containerLayoutState;return(_containerLayoutState=containerLayoutState)===null||_containerLayoutState===void 0?void 0:_containerLayoutState.get().height;}"},A={code:"function gorhom_useAnimatedLayoutJs5(_state){const{modal,result,verticalInset}=this.__closure;_state.containerHeight=modal?result-verticalInset:result;return _state;}"},w={code:"function gorhom_useAnimatedLayoutJs6(result,previous){const{INITIAL_LAYOUT_VALUE,state,_worklet_14187347869363_init_data,modal,verticalInset}=this.__closure;if(!result||result===previous){return;}if(result===INITIAL_LAYOUT_VALUE){return;}state.modify(function gorhom_useAnimatedLayoutJs5Factory({_worklet_14187347869363_init_data:_worklet_14187347869363_init_data,modal:modal,result:result,verticalInset:verticalInset}){const gorhom_useAnimatedLayoutJs5=function(_state){_state.containerHeight=modal?result-verticalInset:result;return _state;};gorhom_useAnimatedLayoutJs5.__closure={modal:modal,result:result,verticalInset:verticalInset};gorhom_useAnimatedLayoutJs5.__workletHash=14187347869363;gorhom_useAnimatedLayoutJs5.__initData=_worklet_14187347869363_init_data;return gorhom_useAnimatedLayoutJs5;}({_worklet_14187347869363_init_data:_worklet_14187347869363_init_data,modal:modal,result:result,verticalInset:verticalInset}));}"},h={code:"function gorhom_useAnimatedLayoutJs7(_state){const{window}=this.__closure;_state.window=window;return _state;}"}},3831,[35,224,1010,3803]);
17095
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAnimatedLayout=function(t,_,f,v,k){const y=(0,e.useMemo)(()=>_+f,[_,f]),T=(0,e.useMemo)(()=>{const e={...u};if(t){const _=t.get();e.containerHeight=v?_.height-y:_.height,e.containerOffset=_.offset}return k&&(e.handleHeight=0),e},[t,v,k,y]),[U]=(0,e.useState)(()=>(0,n.makeMutable)(T));return(0,n.useAnimatedReaction)((function({_worklet_16749227469433_init_data:t,state:e}){const _=()=>e.value.rawContainerHeight;return _.__closure={state:e},_.__workletHash=0xf3bbbc0ea79,_.__initData=t,_})({_worklet_16749227469433_init_data:l,state:U}),(function({_worklet_11904372984444_init_data:t,INITIAL_LAYOUT_VALUE:e,state:_,_worklet_13415680386644_init_data:o,modal:n,verticalInset:s}){const u=function(t,u){t!==u&&t!==e&&_.modify((function({_worklet_13415680386644_init_data:t,modal:e,result:_,verticalInset:o}){const n=function(t){return t.containerHeight=e?_-o:_,t};return n.__closure={modal:e,result:_,verticalInset:o},n.__workletHash=0xc3394dd2654,n.__initData=t,n})({_worklet_13415680386644_init_data:o,modal:n,result:t,verticalInset:s}))};return u.__closure={INITIAL_LAYOUT_VALUE:e,state:_,_worklet_13415680386644_init_data:o,modal:n,verticalInset:s},u.__workletHash=0xad3b3ec4a7c,u.__initData=t,u})({_worklet_11904372984444_init_data:I,INITIAL_LAYOUT_VALUE:s.INITIAL_LAYOUT_VALUE,state:U,_worklet_13415680386644_init_data:c,modal:v,verticalInset:y}),[U,y,v]),(0,n.useAnimatedReaction)((function({_worklet_16586074982495_init_data:t,containerLayoutState:e}){const _=()=>e?.get().height;return _.__closure={containerLayoutState:e},_.__workletHash=0xf15bf1b885f,_.__initData=t,_})({_worklet_16586074982495_init_data:L,containerLayoutState:t}),(function({_worklet_896068907356_init_data:t,INITIAL_LAYOUT_VALUE:e,state:_,_worklet_14187347869363_init_data:o,modal:n,verticalInset:s}){const u=function(t,u){t&&t!==u&&t!==e&&_.modify((function({_worklet_14187347869363_init_data:t,modal:e,result:_,verticalInset:o}){const n=function(t){return t.containerHeight=e?_-o:_,t};return n.__closure={modal:e,result:_,verticalInset:o},n.__workletHash=0xce73fd47eb3,n.__initData=t,n})({_worklet_14187347869363_init_data:o,modal:n,result:t,verticalInset:s}))};return u.__closure={INITIAL_LAYOUT_VALUE:e,state:_,_worklet_14187347869363_init_data:o,modal:n,verticalInset:s},u.__workletHash=896068907356,u.__initData=t,u})({_worklet_896068907356_init_data:w,INITIAL_LAYOUT_VALUE:s.INITIAL_LAYOUT_VALUE,state:U,_worklet_14187347869363_init_data:A,modal:v,verticalInset:y}),[U,y,v]),(0,e.useEffect)(()=>{const t=o.default.addEventListener('change',({window:t})=>{U.modify((function({_worklet_10284813374852_init_data:t,window:e}){const _=function(t){return t.window=e,t};return _.__closure={window:e},_.__workletHash=0x95a9ea5d584,_.__initData=t,_})({_worklet_10284813374852_init_data:h,window:t}))});return()=>t.remove()},[U]),U};var t,e=r(d[0]),_=r(d[1]),o=(t=_)&&t.__esModule?t:{default:t},n=r(d[2]),s=r(d[3]);const u={window:o.default.get('window'),rawContainerHeight:s.INITIAL_LAYOUT_VALUE,containerHeight:s.INITIAL_LAYOUT_VALUE,containerOffset:s.INITIAL_CONTAINER_LAYOUT.offset,handleHeight:s.INITIAL_LAYOUT_VALUE,footerHeight:s.INITIAL_LAYOUT_VALUE,contentHeight:s.INITIAL_LAYOUT_VALUE},l={code:"function gorhom_useAnimatedLayoutJs1(){const{state}=this.__closure;return state.value.rawContainerHeight;}"},c={code:"function gorhom_useAnimatedLayoutJs2(_state){const{modal,result,verticalInset}=this.__closure;_state.containerHeight=modal?result-verticalInset:result;return _state;}"},I={code:"function gorhom_useAnimatedLayoutJs3(result,previous){const{INITIAL_LAYOUT_VALUE,state,_worklet_13415680386644_init_data,modal,verticalInset}=this.__closure;if(result===previous){return;}if(result===INITIAL_LAYOUT_VALUE){return;}state.modify(function gorhom_useAnimatedLayoutJs2Factory({_worklet_13415680386644_init_data:_worklet_13415680386644_init_data,modal:modal,result:result,verticalInset:verticalInset}){const gorhom_useAnimatedLayoutJs2=function(_state){_state.containerHeight=modal?result-verticalInset:result;return _state;};gorhom_useAnimatedLayoutJs2.__closure={modal:modal,result:result,verticalInset:verticalInset};gorhom_useAnimatedLayoutJs2.__workletHash=13415680386644;gorhom_useAnimatedLayoutJs2.__initData=_worklet_13415680386644_init_data;return gorhom_useAnimatedLayoutJs2;}({_worklet_13415680386644_init_data:_worklet_13415680386644_init_data,modal:modal,result:result,verticalInset:verticalInset}));}"},L={code:"function gorhom_useAnimatedLayoutJs4(){const{containerLayoutState}=this.__closure;var _containerLayoutState;return(_containerLayoutState=containerLayoutState)===null||_containerLayoutState===void 0?void 0:_containerLayoutState.get().height;}"},A={code:"function gorhom_useAnimatedLayoutJs5(_state){const{modal,result,verticalInset}=this.__closure;_state.containerHeight=modal?result-verticalInset:result;return _state;}"},w={code:"function gorhom_useAnimatedLayoutJs6(result,previous){const{INITIAL_LAYOUT_VALUE,state,_worklet_14187347869363_init_data,modal,verticalInset}=this.__closure;if(!result||result===previous){return;}if(result===INITIAL_LAYOUT_VALUE){return;}state.modify(function gorhom_useAnimatedLayoutJs5Factory({_worklet_14187347869363_init_data:_worklet_14187347869363_init_data,modal:modal,result:result,verticalInset:verticalInset}){const gorhom_useAnimatedLayoutJs5=function(_state){_state.containerHeight=modal?result-verticalInset:result;return _state;};gorhom_useAnimatedLayoutJs5.__closure={modal:modal,result:result,verticalInset:verticalInset};gorhom_useAnimatedLayoutJs5.__workletHash=14187347869363;gorhom_useAnimatedLayoutJs5.__initData=_worklet_14187347869363_init_data;return gorhom_useAnimatedLayoutJs5;}({_worklet_14187347869363_init_data:_worklet_14187347869363_init_data,modal:modal,result:result,verticalInset:verticalInset}));}"},h={code:"function gorhom_useAnimatedLayoutJs7(_state){const{window}=this.__closure;_state.window=window;return _state;}"}},3831,[35,224,1010,3803]);
17096
17096
  __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useAnimatedKeyboard",{enumerable:!0,get:function(){return A}});var e=r(d[0]),n=t(r(d[1])),s=t(r(d[2]));r(d[3]);var o=r(d[4]),u=r(d[5]);const h='',c='',_={status:u.KEYBOARD_STATUS.UNDETERMINED,height:0,heightWithinContainer:0,easing:'keyboard',duration:500},S={code:"function gorhom_useAnimatedKeyboardJs1(status,height,duration,easing,bottomOffset){const{state,KEYBOARD_STATUS,temporaryCachedState}=this.__closure;const currentState=state.get();if(status===KEYBOARD_STATUS.SHOWN&&!currentState.target){temporaryCachedState.set({status:status,height:height,duration:duration,easing:easing});return;}temporaryCachedState.set(null);let adjustedHeight=status===KEYBOARD_STATUS.SHOWN?height:currentState.height;if(bottomOffset){adjustedHeight=adjustedHeight+bottomOffset;}state.set(function(state){return{status:status,easing:easing,duration:duration,height:adjustedHeight,target:state.target,heightWithinContainer:state.heightWithinContainer};});}"},l={code:"function gorhom_useAnimatedKeyboardJs2(){const{state}=this.__closure;return state.value.target;}"},f={code:"function gorhom_useAnimatedKeyboardJs3(result,previous){const{temporaryCachedState,handleKeyboardEvent}=this.__closure;if(!result||result===previous){return;}const cachedState=temporaryCachedState.get();if(!cachedState){return;}handleKeyboardEvent(cachedState.status,cachedState.height,cachedState.duration,cachedState.easing);}"},A=()=>{const t=(0,e.useRef)(new Set),A=(0,o.useSharedValue)(_),y=(0,o.useSharedValue)(null),O=(0,e.useCallback)((function({_worklet_15016264894810_init_data:t,state:e,KEYBOARD_STATUS:n,temporaryCachedState:s}){const o=function(t,o,u,h,c){const _=e.get();if(t===n.SHOWN&&!_.target)return void s.set({status:t,height:o,duration:u,easing:h});s.set(null);let S=t===n.SHOWN?o:_.height;c&&(S+=c),e.set(e=>({status:t,easing:h,duration:u,height:S,target:e.target,heightWithinContainer:e.heightWithinContainer}))};return o.__closure={state:e,KEYBOARD_STATUS:n,temporaryCachedState:s},o.__workletHash=0xda83f22895a,o.__initData=t,o})({_worklet_15016264894810_init_data:S,state:A,KEYBOARD_STATUS:u.KEYBOARD_STATUS,temporaryCachedState:y}),[A,y]);return(0,e.useEffect)(()=>{const t=n.default.get('screen').height,e=s.default.addListener(h,e=>{(0,o.runOnUI)(O)(u.KEYBOARD_STATUS.SHOWN,e.endCoordinates.height,e.duration,e.easing,t-e.endCoordinates.height-e.endCoordinates.screenY)}),_=s.default.addListener(c,t=>{(0,o.runOnUI)(O)(u.KEYBOARD_STATUS.HIDDEN,t.endCoordinates.height,t.duration,t.easing)});return()=>{e.remove(),_.remove()}},[O]),(0,o.useAnimatedReaction)((function({_worklet_7588873742592_init_data:t,state:e}){const n=()=>e.value.target;return n.__closure={state:e},n.__workletHash=7588873742592,n.__initData=t,n})({_worklet_7588873742592_init_data:l,state:A}),(function({_worklet_9948191630992_init_data:t,temporaryCachedState:e,handleKeyboardEvent:n}){const s=function(t,s){if(!t||t===s)return;const o=e.get();o&&n(o.status,o.height,o.duration,o.easing)};return s.__closure={temporaryCachedState:e,handleKeyboardEvent:n},s.__workletHash=9948191630992,s.__initData=t,s})({_worklet_9948191630992_init_data:f,temporaryCachedState:y,handleKeyboardEvent:O}),[y,O]),{state:A,textInputNodesRef:t}}},3832,[35,224,412,25,1010,3803]);
17097
17097
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useStableCallback=function(u){const c=(0,t.useRef)();return(0,t.useLayoutEffect)(()=>{c.current=u}),(0,t.useEffect)(()=>()=>{c.current=void 0},[]),(0,t.useCallback)((...t)=>c.current?.(...t),[])};var t=r(d[0])},3833,[35]);
17098
17098
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"usePropsValidator",{enumerable:!0,get:function(){return p}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),s=r(d[2]);const p=({index:e,snapPoints:t,enableDynamicSizing:p,topInset:u,bottomInset:l,containerHeight:c,containerOffset:f})=>{(0,o.useMemo)(()=>{const o=t?'get'in t?t.get():t:[];(0,n.default)(o||p,"'snapPoints' was not provided! please provide at least one snap point."),o.forEach(e=>{const t='number'==typeof e?e:Number.parseInt(e.replace('%',''),10);(0,n.default)(t>0||t===s.INITIAL_SNAP_POINT,`Snap point '${e}' is invalid. if you want to allow user to close the sheet, Please use 'enablePanDownToClose' prop.`)}),(0,n.default)('value'in o||o.length>0||p,"'snapPoints' was provided with no points! please provide at least one snap point."),(0,n.default)('number'==typeof e||void 0===e,"'index' was provided but with wrong type ! expected type is a number."),(0,n.default)(p||'number'!=typeof e||e>=-1&&e<=o.length-1,"'index' was provided but out of the provided snap points range! expected value to be between -1, "+(o.length-1)),(0,n.default)('number'==typeof u||void 0===u,"'topInset' was provided but with wrong type ! expected type is a number."),(0,n.default)('number'==typeof l||void 0===l,"'bottomInset' was provided but with wrong type ! expected type is a number."),(0,n.default)(void 0===c,"'containerHeight' is deprecated, please use 'containerLayoutState'."),(0,n.default)(void 0===f,"'containerHeight' is deprecated, please use 'containerLayoutState'.")},[e,t,u,l,p,c,f])}},3834,[42,35,3835]);
@@ -17819,7 +17819,7 @@ __d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',
17819
17819
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Animated",{enumerable:!0,get:function(){return p}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),l=r(d[2]),c=r(d[3]),u=r(d[4]),f=r(d[5]),s=r(d[6]);const p={...n.default,View:n.default.createAnimatedComponent(s.View),Text:n.default.createAnimatedComponent(f.Text),FlatList:n.default.createAnimatedComponent(o.FlatList),Image:n.default.createAnimatedComponent(l.Image),ScrollView:n.default.createAnimatedComponent(c.ScrollView),SectionList:n.default.createAnimatedComponent(u.SectionList)}},4555,[182,1140,1270,1272,4556,1008,1007]);
17820
17820
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"SectionList",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const u=(0,r(d[1]).createUnistylesElement)(n.default)},4556,[271,315]);
17821
17821
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarCalloutSlot=function(){const o=(0,l.c)(1);let u;o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(t.View,{style:n.slot,collapsable:!1,children:(0,s.jsx)(c.SidebarCalloutViewport,{})}),o[0]=u):u=o[0];return u};var t=r(d[0]),l=r(d[1]);r(d[2]);var o=r(d[3]),c=r(d[4]),s=r(d[5]);const n=o.StyleSheet.create(()=>({slot:{width:"100%"}}))},4557,[1007,471,187,160,4425,320]);
17822
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PrBadge=function(o){const s=(0,c.c)(28),{hint:l,style:h}=o,{t:w}=(0,u.useTranslation)(),[k,b]=(0,p.useState)(!1),v=_e;let y;s[0]!==l.url?(y=o=>{o.stopPropagation(),(0,le.openExternalUrl)(l.url)},s[0]=l.url,s[1]=y):y=s[1];const j=y;let S;s[2]===Symbol.for("react.memo_cache_sentinel")?(S=()=>b(!0),s[2]=S):S=s[2];const P=S;let I;s[3]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b(!1),s[3]=I):I=s[3];const f=I;let x;s[4]!==h?(x=o=>{const{pressed:t}=o;return[Me.badge,h,t&&Me.badgePressed]},s[4]=h,s[5]=x):x=s[5];const B=x;let C;s[6]!==k?(C=k?[Me.text,Me.textHovered]:Me.text,s[6]=k,s[7]=C):C=s[7];const W=C;let R,T,D,K,H,_;if(s[8]!==l.forge||s[9]!==l.number||s[10]!==w){const o=(0,L.getForgePresentation)((0,L.normalizeForge)(l.forge));R=t.Pressable,T="link",D=w("workspace.git.pr.accessibility.pullRequest",{number:l.number,context:o.changeRequestContext}),s[8]=l.forge,s[9]=l.number,s[10]=w,s[11]=R,s[12]=T,s[13]=D}else R=s[11],T=s[12],D=s[13];s[14]!==l.state||s[15]!==k?(K=k?(0,ye.jsx)(Pe,{size:12,uniProps:We}):(0,ye.jsx)(me.PullRequestStateIcon,{state:l.state,size:12}),s[14]=l.state,s[15]=k,s[16]=K):K=s[16];s[17]!==l.number||s[18]!==W?(H=(0,ye.jsx)(n.Text,{style:W,numberOfLines:1,children:l.number}),s[17]=l.number,s[18]=W,s[19]=H):H=s[19];s[20]!==R||s[21]!==j||s[22]!==B||s[23]!==T||s[24]!==D||s[25]!==K||s[26]!==H?(_=(0,ye.jsxs)(R,{accessibilityRole:T,accessibilityLabel:D,hitSlop:4,onPressIn:v,onPress:j,onHoverIn:P,onHoverOut:f,style:B,children:[K,H]}),s[20]=R,s[21]=j,s[22]=B,s[23]=T,s[24]=D,s[25]=K,s[26]=H,s[27]=_):_=s[27];return _},e.SidebarWorkspaceList=function(o){const t=(0,c.c)(37),{workspaceGroups:n,projectIconTargets:s,pinnedGroups:l,projects:p,hasProjectsBeforeFilter:u,hasActiveProjectFilter:w,workspaceEntriesByKey:k,collapsedProjectKeys:b,onToggleProjectCollapsed:v,shortcutIndexByWorkspaceKey:y,groupMode:j,isRefreshing:S,onWorkspacePress:P,onAddProject:I,onImportSession:B,listFooterComponent:W,listHeaderComponent:T,parentGestureRef:H,dragGestureHostActive:_}=o;const A=(0,h.usePathname)(),N=(0,f.useHosts)(),M=(0,ve.useSidebarRowItems)();let E,L;t[0]!==p||t[1]!==M.host?(E=M.host&&(0,D.shouldShowSidebarHostLabels)(p),t[0]=p,t[1]=M.host,t[2]=E):E=t[2];t[3]!==E?(L={enabled:E},t[3]=E,t[4]=L):L=t[4];const V=(0,be.useHostBadges)(L);let O;t[5]!==N?(O=N.map(hr),t[5]=N,t[6]=O):O=t[6];const F=O,z=(0,C.useHostFeatureMap)(F,"workspaceMultiplicity"),U=(0,C.useHostFeatureMap)(F,"workspacePinning"),$=(0,x.useSidebarWorkspacePinController)(),q=(0,K.useSidebarOrderStore)(gr),J=(0,K.useSidebarOrderStore)(ur);let Q;t[7]!==q||t[8]!==J?(Q=o=>{const t=o.map(pr),n=q();(0,G.hasVisibleOrderChanged)({currentOrder:n,reorderedVisibleKeys:t})&&J((0,G.mergeWithRemainder)({currentOrder:n,reorderedVisibleKeys:t}))},t[7]=q,t[8]=J,t[9]=Q):Q=t[9];const X=Q;let Y;t[10]!==s?(Y={projects:s},t[10]=s,t[11]=Y):Y=t[11];const Z=(0,R.useProjectIcons)(Y),ee=u&&0===p.length;let re;t[12]!==b||t[13]!==_||t[14]!==j||t[15]!==X||t[16]!==w||t[17]!==V||t[18]!==W||t[19]!==T||t[20]!==I||t[21]!==B||t[22]!==v||t[23]!==$||t[24]!==P||t[25]!==H||t[26]!==A||t[27]!==l||t[28]!==Z||t[29]!==p||t[30]!==y||t[31]!==ee||t[32]!==z||t[33]!==U||t[34]!==k||t[35]!==n?(re="project"!==j?(0,ye.jsx)(wr,{workspaceGroups:n,pinnedGroups:l,workspaceEntriesByKey:k,projectIconByProjectViewKey:Z,shortcutIndexByWorkspaceKey:y,onWorkspacePress:P,hostBadgeByServerId:V,supportsPinningByServerId:U,onToggleWorkspacePin:$,onPinnedWorkspaceReorder:X,listHeaderComponent:T,sidebarFilterEmpty:ee,parentGestureRef:H,dragGestureHostActive:_}):(0,ye.jsx)(kr,{projects:p,pinnedGroups:l,workspaceEntriesByKey:k,projectIconByProjectViewKey:Z,collapsedProjectKeys:b,onToggleProjectCollapsed:v,shortcutIndexByWorkspaceKey:y,onWorkspacePress:P,onAddProject:I,onImportSession:B,listFooterComponent:W,listHeaderComponent:T,sidebarFilterEmpty:ee,hasActiveProjectFilter:w,parentGestureRef:H,dragGestureHostActive:_,pathname:A,hostBadgeByServerId:V,supportsMultiplicityByServerId:z,supportsPinningByServerId:U,onToggleWorkspacePin:$,onPinnedWorkspaceReorder:X}),t[12]=b,t[13]=_,t[14]=j,t[15]=X,t[16]=w,t[17]=V,t[18]=W,t[19]=T,t[20]=I,t[21]=B,t[22]=v,t[23]=$,t[24]=P,t[25]=H,t[26]=A,t[27]=l,t[28]=Z,t[29]=p,t[30]=y,t[31]=ee,t[32]=z,t[33]=U,t[34]=k,t[35]=n,t[36]=re):re=t[36];return re};var o=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]);r(d[6]),r(d[7]),r(d[8]),r(d[9]);var p=r(d[10]),u=r(d[11]),h=r(d[12]),w=r(d[13]),k=r(d[14]),b=r(d[15]),v=r(d[16]),y=r(d[17]),j=r(d[18]),S=r(d[19]),P=r(d[20]),I=r(d[21]),f=r(d[22]),x=r(d[23]),B=r(d[24]),C=r(d[25]),W=r(d[26]),R=r(d[27]),T=r(d[28]),D=r(d[29]),K=r(d[30]),H=r(d[31]),_=r(d[32]),A=r(d[33]),N=r(d[34]),M=r(d[35]),E=r(d[36]),L=r(d[37]),V=r(d[38]),G=r(d[39]),O=r(d[40]),F=r(d[41]),z=r(d[42]),U=r(d[43]),$=r(d[44]),q=r(d[45]),J=r(d[46]),Q=r(d[47]),X=r(d[48]),Y=r(d[49]),Z=r(d[50]),ee=r(d[51]),re=r(d[52]),oe=r(d[53]),te=r(d[54]),ne=r(d[55]),se=r(d[56]),ae=r(d[57]),ie=r(d[58]),ce=r(d[59]),de=r(d[60]),le=r(d[61]),pe=r(d[62]),ue=r(d[63]),ge=r(d[64]),he=r(d[65]),we=r(d[66]),ke=r(d[67]),be=r(d[68]),ve=r(d[69]),me=r(d[70]),ye=r(d[71]);const je=o=>o.workspaceKey,Se=o=>o.viewKey,Pe=(0,k.withUnistyles)(S.ExternalLink),Ie=(0,k.withUnistyles)(l.LoadingSpinner),fe=(0,k.withUnistyles)(S.Plus),xe=(0,k.withUnistyles)(S.MoreVertical),Be=(0,k.withUnistyles)(S.Trash2),Ce=(0,k.withUnistyles)(S.Settings),We=o=>({color:o.colors.foreground}),Re=o=>({color:o.colors.foregroundMuted});function Te(o){return o.enabled&&o.selection?.serverId===o.serverId&&o.selection.workspaceId===o.workspaceId}function De(o){return o.enabled&&o.project.workspaces.some(t=>t.serverId===o.selection?.serverId&&t.workspaceId===o.selection.workspaceId)}function Ke(o){return o?`${o.serverId}:${o.workspaceId}`:""}function He(o,t){return o?{serverId:t.serverId,workspaceId:t.workspaceId}:null}function _e(o){o.stopPropagation()}function Ae({hovered:o=!1}){return[Cr.projectKebabButton,o&&Cr.projectKebabButtonHovered]}function Ne({isDragging:o,isPressed:t,selected:n,isHovered:s}){return[Cr.workspaceRow,s&&Cr.workspaceRowHovered,n&&Cr.sidebarRowSelected,o&&Cr.workspaceRowDragging,t&&Cr.workspaceRowPressed]}const Me=k.StyleSheet.create(o=>({badge:{flexDirection:"row",alignItems:"center",gap:2},badgePressed:{opacity:.82},text:{fontSize:o.fontSize.sm,fontWeight:o.fontWeight.normal,lineHeight:14,color:o.colors.foregroundMuted,uni__dependencies:[0]},textHovered:{color:o.colors.foreground,uni__dependencies:[0]}}));function Ee(o){const t=(0,c.c)(17),{projectViewKey:n,displayName:l,worktreeTarget:p,settingsTarget:u,projectPath:h,isHovered:w,isMobileBreakpoint:k,isProjectActive:b,onBeginWorkspaceSetup:v,onRemoveProject:y,removeProjectStatus:j}=o,S=w||ge.isNative||k;let P,I,f;return t[0]!==S||t[1]!==l||t[2]!==b||t[3]!==v||t[4]!==n||t[5]!==p?(P=p?(0,ye.jsx)(qe,{displayName:l,onPress:v,visible:S,showShortcutHint:b,testID:`sidebar-project-new-worktree-${n}`}):null,t[0]=S,t[1]=l,t[2]=b,t[3]=v,t[4]=n,t[5]=p,t[6]=P):P=t[6],t[7]!==S||t[8]!==y||t[9]!==h||t[10]!==n||t[11]!==j||t[12]!==u?(I=y?(0,ye.jsx)(s.View,{style:!S&&Cr.projectKebabButtonHidden,pointerEvents:S?"auto":"none",children:(0,ye.jsx)(Fe,{projectViewKey:n,settingsTarget:u,projectPath:h,onRemoveProject:y,removeProjectStatus:j})}):null,t[7]=S,t[8]=y,t[9]=h,t[10]=n,t[11]=j,t[12]=u,t[13]=I):I=t[13],t[14]!==P||t[15]!==I?(f=(0,ye.jsxs)(s.View,{style:Cr.projectTrailingActions,children:[P,I]}),t[14]=P,t[15]=I,t[16]=f):f=t[16],f}const Le=(0,ye.jsx)(Be,{size:14,uniProps:Re}),Ve=(0,ye.jsx)(Ce,{size:14,uniProps:Re}),Ge=(0,ye.jsx)(Pe,{size:14,uniProps:Re});function Oe({hovered:o}){return(0,ye.jsx)(xe,{size:14,uniProps:o?We:Re})}function Fe(o){const t=(0,c.c)(19),{projectViewKey:n,settingsTarget:s,projectPath:l,onRemoveProject:p,removeProjectStatus:h}=o,{t:w}=(0,u.useTranslation)();let k;t[0]!==w?(k=w("sidebar.project.actions.menu"),t[0]=w,t[1]=k):k=t[1];const b=`sidebar-project-kebab-${n}`;let v,y,j,S,P;return t[2]!==k||t[3]!==b?(v=(0,ye.jsx)(N.DropdownMenuTrigger,{hitSlop:8,style:Ae,accessibilityRole:ge.isWeb?void 0:"button",accessibilityLabel:k,testID:b,children:Oe}),t[2]=k,t[3]=b,t[4]=v):v=t[4],t[5]!==w?(y=w("sidebar.project.actions.menu"),t[5]=w,t[6]=y):y=t[6],t[7]!==p||t[8]!==l||t[9]!==n||t[10]!==h||t[11]!==s?(j=(0,ye.jsx)(Ue,{surface:"dropdown",projectViewKey:n,settingsTarget:s,projectPath:l,onRemoveProject:p,removeProjectStatus:h}),t[7]=p,t[8]=l,t[9]=n,t[10]=h,t[11]=s,t[12]=j):j=t[12],t[13]!==y||t[14]!==j?(S=(0,ye.jsx)(N.DropdownMenuContent,{align:"end",width:220,sheetTitle:y,children:j}),t[13]=y,t[14]=j,t[15]=S):S=t[15],t[16]!==v||t[17]!==S?(P=(0,ye.jsxs)(N.DropdownMenu,{compactMode:"sheet",children:[v,S]}),t[16]=v,t[17]=S,t[18]=P):P=t[18],P}function ze(o){const t=(0,c.c)(10);let n,s,l,p;if(t[0]!==o?(({surface:l,children:n,...s}=o),t[0]=o,t[1]=n,t[2]=s,t[3]=l):(n=t[1],s=t[2],l=t[3]),"context"===l){let o;return t[4]!==n||t[5]!==s?(o=(0,ye.jsx)(A.ContextMenuItem,{...s,children:n}),t[4]=n,t[5]=s,t[6]=o):o=t[6],o}return t[7]!==n||t[8]!==s?(p=(0,ye.jsx)(N.DropdownMenuItem,{...s,children:n}),t[7]=n,t[8]=s,t[9]=p):p=t[9],p}function Ue(o){const t=(0,c.c)(40),{surface:n,projectViewKey:s,settingsTarget:l,projectPath:p,onRemoveProject:w,removeProjectStatus:k}=o,{t:b}=(0,u.useTranslation)(),v=(0,E.useToast)();let y;t[0]!==l?(y=()=>{l&&h.router.navigate((0,T.buildProjectSettingsRoute)(l.serverId,l.projectId))},t[0]=l,t[1]=y):y=t[1];const j=y;let S;t[2]!==p?(S=(0,ge.getIsElectron)()&&p.trim().length>0,t[2]=p,t[3]=S):S=t[3];const P=S;let I;t[4]!==p||t[5]!==b||t[6]!==v?(I=()=>{const o=p.trim();0!==o.length&&(0,he.getDesktopHost)()?.window?.openNew?.({pendingOpenProjectPath:o})?.catch(o=>{console.warn("[sidebar] openNew failed",o),v.error(b("sidebar.project.actions.openNewWindowFailed"))})},t[4]=p,t[5]=b,t[6]=v,t[7]=I):I=t[7];const f=I;let x,B;t[8]!==j||t[9]!==s||t[10]!==l||t[11]!==n||t[12]!==b?(x=l?(0,ye.jsx)(ze,{surface:n,testID:`sidebar-project-menu-open-settings-${s}`,leading:Ve,onSelect:j,children:b("sidebar.project.actions.openSettings")}):null,t[8]=j,t[9]=s,t[10]=l,t[11]=n,t[12]=b,t[13]=x):x=t[13],t[14]!==P||t[15]!==f||t[16]!==s||t[17]!==n||t[18]!==b?(B=P?(0,ye.jsx)(ze,{surface:n,testID:`sidebar-project-menu-open-new-window-${s}`,leading:Ge,onSelect:f,children:b("sidebar.project.actions.openNewWindow")}):null,t[14]=P,t[15]=f,t[16]=s,t[17]=n,t[18]=b,t[19]=B):B=t[19];const C=`sidebar-project-menu-open-folder-${s}`;let W;t[20]!==p||t[21]!==n||t[22]!==C?(W=(0,ye.jsx)(we.OpenInFileManagerMenuItem,{surface:n,path:p,testID:C}),t[20]=p,t[21]=n,t[22]=C,t[23]=W):W=t[23];const R=`sidebar-project-menu-remove-${s}`;let D,K,H,_;return t[24]!==b?(D=b("sidebar.project.actions.removing"),t[24]=b,t[25]=D):D=t[25],t[26]!==b?(K=b("sidebar.project.actions.remove"),t[26]=b,t[27]=K):K=t[27],t[28]!==w||t[29]!==k||t[30]!==n||t[31]!==K||t[32]!==R||t[33]!==D?(H=(0,ye.jsx)(ze,{surface:n,testID:R,leading:Le,status:k,pendingLabel:D,onSelect:w,children:K}),t[28]=w,t[29]=k,t[30]=n,t[31]=K,t[32]=R,t[33]=D,t[34]=H):H=t[34],t[35]!==H||t[36]!==x||t[37]!==B||t[38]!==W?(_=(0,ye.jsxs)(ye.Fragment,{children:[x,B,W,H]}),t[35]=H,t[36]=x,t[37]=B,t[38]=W,t[39]=_):_=t[39],_}function $e(o){const t=(0,c.c)(35),{workspace:s,backdrop:l,isHovered:p,isTouchPlatform:h,isCreating:w,showShortcutBadge:k,shortcutNumber:b,archiveLabel:v,archiveStatus:y,archivePendingLabel:j,archiveShortcutKeys:S,onArchive:P,onMarkAsRead:I,onMarkAsUnread:f,onCopyBranchName:x,onCopyPath:B,onRename:C,isPinned:W,onTogglePin:R}=o,T=s.workspaceDirectory??s.projectRootPath,{t:D}=(0,u.useTranslation)(),K=(0,ee.useSidebarWorkspaceTrailing)(),H=k&&null!==b,_=Boolean(P);let A;t[0]!==p||t[1]!==h||t[2]!==H||t[3]!==_||t[4]!==K||t[5]!==s?(A=(0,Q.resolveTrailingActionVisibility)({workspace:s,trailing:K,hasArchiveAction:_,isHovered:p,isTouchPlatform:h,showShortcut:H}),t[0]=p,t[1]=h,t[2]=H,t[3]=_,t[4]=K,t[5]=s,t[6]=A):A=t[6];const{trailingPresentation:N,showKebab:M,showScrim:E,renderSlot:L,reserveSlotWidth:V}=A,G=(0,X.useOpenKebabMenuVisibility)(M);let O,F,U;return t[7]!==w||t[8]!==D?(O=w?(0,ye.jsx)(n.Text,{style:Cr.workspaceCreatingText,children:D("sidebar.workspace.status.creating")}):null,t[7]=w,t[8]=D,t[9]=O):O=t[9],t[10]!==v||t[11]!==j||t[12]!==S||t[13]!==y||t[14]!==l||t[15]!==W||t[16]!==G||t[17]!==P||t[18]!==x||t[19]!==B||t[20]!==I||t[21]!==f||t[22]!==C||t[23]!==R||t[24]!==L||t[25]!==V||t[26]!==E||t[27]!==K||t[28]!==N||t[29]!==s||t[30]!==T?(F=L?(0,ye.jsxs)(Q.SidebarWorkspaceTrailingActionSlot,{reserveWidth:V,children:[(0,ye.jsx)(Q.SidebarWorkspaceTrailingActionBase,{presentation:N,children:(0,ye.jsx)(ee.SidebarWorkspaceTrailingContent,{workspace:s,trailing:K})}),(0,ye.jsx)(Q.SidebarWorkspaceTrailingActionOverlay,{visible:G.showKebab,scrimBackdrop:E?l:void 0,children:P?(0,ye.jsx)(z.SidebarWorkspaceMenu,{...G.menuProps,workspaceKey:s.workspaceKey,serverId:s.serverId,workspaceId:s.workspaceId,workspaceLabels:s.labels,onCopyPath:B,onCopyBranchName:x,onRename:C,onMarkAsRead:I,onMarkAsUnread:f,onArchive:P,archiveLabel:v,archiveStatus:y,archivePendingLabel:j,archiveShortcutKeys:S,isPinned:W,onTogglePin:R,openInFileManagerPath:T}):null})]}):null,t[10]=v,t[11]=j,t[12]=S,t[13]=y,t[14]=l,t[15]=W,t[16]=G,t[17]=P,t[18]=x,t[19]=B,t[20]=I,t[21]=f,t[22]=C,t[23]=R,t[24]=L,t[25]=V,t[26]=E,t[27]=K,t[28]=N,t[29]=s,t[30]=T,t[31]=F):F=t[31],t[32]!==O||t[33]!==F?(U=(0,ye.jsxs)(ye.Fragment,{children:[O,F]}),t[32]=O,t[33]=F,t[34]=U):U=t[34],U}function qe(o){const l=(0,c.c)(36),{displayName:p,onPress:h,visible:w,loading:k,testID:b,showShortcutHint:v}=o,y=void 0!==k&&k,j=void 0!==v&&v,{t:S}=(0,u.useTranslation)(),P=(0,se.useShortcutKeys)("new-worktree");let I;l[0]!==y||l[1]!==w?(I=o=>{const{hovered:t,pressed:n}=o;return[Cr.projectIconActionButton,!w&&Cr.projectIconActionButtonHidden,(Boolean(t)||n)&&!y&&Cr.projectIconActionButtonHovered]},l[0]=y,l[1]=w,l[2]=I):I=l[2];const f=I;let x;l[3]!==h?(x=o=>{o.stopPropagation(),h()},l[3]=h,l[4]=x):x=l[4];const B=x,C=w?"auto":"none",W=!w;let R,T,D,K,H,_,A,N,M,E;return l[5]!==p||l[6]!==S?(R=S("sidebar.workspace.actions.createWorkspaceFor",{projectName:p}),l[5]=p,l[6]=S,l[7]=R):R=l[7],l[8]!==y?(T=o=>{const{hovered:t,pressed:n}=o;return y?(0,ye.jsx)(Ie,{size:14,uniProps:Re}):(0,ye.jsx)(fe,{size:15,uniProps:t||n?We:Re})},l[8]=y,l[9]=T):T=l[9],l[10]!==B||l[11]!==y||l[12]!==f||l[13]!==R||l[14]!==T||l[15]!==b?(D=(0,ye.jsx)(t.Pressable,{style:f,onPress:B,disabled:y,accessibilityRole:ge.isWeb?void 0:"button",accessibilityLabel:R,testID:b,children:T}),l[10]=B,l[11]=y,l[12]=f,l[13]=R,l[14]=T,l[15]=b,l[16]=D):D=l[16],l[17]!==W||l[18]!==D?(K=(0,ye.jsx)(te.TooltipTrigger,{asChild:!0,disabled:W,children:D}),l[17]=W,l[18]=D,l[19]=K):K=l[19],l[20]!==S?(H=S("sidebar.workspace.actions.newWorkspace"),l[20]=S,l[21]=H):H=l[21],l[22]!==H?(_=(0,ye.jsx)(n.Text,{style:Cr.projectActionTooltipText,children:H}),l[22]=H,l[23]=_):_=l[23],l[24]!==P||l[25]!==j?(A=j&&P?(0,ye.jsx)(ne.Shortcut,{chord:P,style:Cr.projectActionTooltipShortcut}):null,l[24]=P,l[25]=j,l[26]=A):A=l[26],l[27]!==_||l[28]!==A?(N=(0,ye.jsx)(te.TooltipContent,{side:"bottom",align:"center",offset:8,children:(0,ye.jsxs)(s.View,{style:Cr.projectActionTooltipRow,children:[_,A]})}),l[27]=_,l[28]=A,l[29]=N):N=l[29],l[30]!==K||l[31]!==N?(M=(0,ye.jsxs)(te.Tooltip,{delayDuration:0,enabledOnDesktop:!0,enabledOnMobile:!1,children:[K,N]}),l[30]=K,l[31]=N,l[32]=M):M=l[32],l[33]!==M||l[34]!==C?(E=(0,ye.jsx)(s.View,{style:Cr.projectTrailingControlSlot,pointerEvents:C,children:M}),l[33]=M,l[34]=C,l[35]=E):E=l[35],E}function Je(o){const l=(0,c.c)(16),{project:p,displayName:w,worktreeTarget:k,onWorkspacePress:b}=o,{t:v}=(0,u.useTranslation)();let y;l[0]!==w||l[1]!==b||l[2]!==k.iconWorkingDir||l[3]!==k.projectId||l[4]!==k.serverId?(y=()=>{b?.(),h.router.navigate((0,T.buildNewWorkspaceRoute)({serverId:k.serverId,sourceDirectory:k.iconWorkingDir,displayName:w,projectId:k.projectId}))},l[0]=w,l[1]=b,l[2]=k.iconWorkingDir,l[3]=k.projectId,l[4]=k.serverId,l[5]=y):y=l[5];const j=y,P=Qe;let I;l[6]!==w||l[7]!==v?(I=v("sidebar.workspace.actions.createWorkspaceFor",{projectName:w}),l[6]=w,l[7]=v,l[8]=I):I=l[8];const f=`sidebar-project-new-workspace-row-${p.viewKey}`;let x,B;return l[9]!==v?(x=o=>{const{hovered:t,pressed:c}=o;return(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(s.View,{style:Cr.newWorkspaceGhostIconSlot,children:(0,ye.jsx)(re.DensityIcon,{icon:S.Plus,size:"sm",color:t||c?"foreground":"foregroundMuted"})}),(0,ye.jsx)(n.Text,{style:t||c?Cr.newWorkspaceGhostTextHovered:Cr.newWorkspaceGhostText,numberOfLines:1,children:v("sidebar.workspace.actions.newWorkspace")})]})},l[9]=v,l[10]=x):x=l[10],l[11]!==j||l[12]!==I||l[13]!==f||l[14]!==x?(B=(0,ye.jsx)(t.Pressable,{accessibilityRole:ge.isWeb?void 0:"button",accessibilityLabel:I,onPress:j,style:P,testID:f,children:x}),l[11]=j,l[12]=I,l[13]=f,l[14]=x,l[15]=B):B=l[15],B}function Qe(o){const{hovered:t,pressed:n}=o,s=void 0!==t&&t;return[Cr.newWorkspaceGhostRow,s&&!n&&Cr.newWorkspaceGhostRowHovered,n&&Cr.newWorkspaceGhostRowPressed]}function Xe({project:o,displayName:t,iconDataUri:c,statusBucket:l,selected:u=!1,chevron:w,onPress:k,worktreeTarget:b,isProjectActive:y=!1,onWorkspacePress:j,onWorktreeCreated:S,shortcutNumber:P=null,showShortcutBadge:I=!1,drag:f,isDragging:x,isArchiving:B=!1,menuController:C,onRemoveProject:R,removeProjectStatus:D="idle",dragHandleProps:K}){const[H,_]=(0,p.useState)(!1),[N,E]=(0,p.useState)(!1),[L,V]=(0,p.useState)(!1),G=(0,W.useIsCompactFormFactor)(),O=(0,ke.useLocalDaemonServerId)(),F=(0,ce.resolveSidebarProjectLocalPath)(o,O),z=o.hosts[0]??null,$=(0,p.useCallback)(()=>{b&&(j?.(),h.router.navigate((0,T.buildNewWorkspaceRoute)({serverId:b.serverId,sourceDirectory:b.iconWorkingDir,displayName:t,projectId:b.projectId})))},[t,j,b]),q=(0,U.useLongPressDragInteraction)({drag:f,menuController:C}),{role:J,tabIndex:X,"aria-roledescription":Y,...Z}=K?.attributes??{},ee=(0,p.useCallback)(()=>{q.didLongPressRef.current?q.didLongPressRef.current=!1:k()},[q.didLongPressRef,k]),re=(0,p.useCallback)(()=>{L||_(!0)},[L]),te=(0,p.useCallback)(()=>_(!1),[]),ne=(0,p.useCallback)(o=>{V(o),o&&_(!1)},[]),se=(0,p.useCallback)(o=>{E(!0),q.handlePressIn(o)},[q]),ae=(0,p.useCallback)(()=>{E(!1),q.handlePressOut()},[q]),ie=(0,p.useCallback)(({pressed:o})=>[Cr.projectRow,x&&Cr.projectRowDragging,u&&Cr.sidebarRowSelected,H&&Cr.projectRowHovered,o&&Cr.projectRowPressed],[x,u,H]),de=(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsxs)(s.View,{style:Cr.projectRowLeft,children:[(0,ye.jsx)(M.ProjectLeadingVisual,{displayName:t,iconDataUri:c,statusBucket:l,projectViewKey:o.viewKey,backdrop:(0,v.getSidebarRowBackdrop)({isDragging:x,isPressed:N,selected:u,isHovered:H}),chevron:w,showChevron:H&&null!==w,isArchiving:B}),(0,ye.jsx)(s.View,{style:Cr.projectTitleGroup,children:(0,ye.jsx)(n.Text,{style:Cr.projectTitle,numberOfLines:1,children:t})})]}),(0,ye.jsx)(Ee,{projectViewKey:o.viewKey,displayName:t,worktreeTarget:b,settingsTarget:z,projectPath:F,isHovered:H,isMobileBreakpoint:G,isProjectActive:y,onBeginWorkspaceSetup:$,onRemoveProject:R,removeProjectStatus:D}),I&&null!==P?(0,ye.jsx)(s.View,{style:Cr.projectShortcutBadgeOverlay,pointerEvents:"none",children:(0,ye.jsx)(Q.SidebarWorkspaceShortcutBadge,{number:P})}):null]});return R?(0,ye.jsxs)(A.ContextMenu,{open:L,onOpenChange:ne,children:[(0,ye.jsx)(s.View,{...Z,...K?.listeners,ref:K?.setActivatorNodeRef,onPointerEnter:re,onPointerLeave:te,children:(0,ye.jsx)(A.ContextMenuTrigger,{enabledOnMobile:!1,accessibilityRole:"button",style:ie,highlightStyle:Cr.projectRowPressed,onPressIn:se,onTouchMove:q.handleTouchMove,onPressOut:ae,onPress:ee,testID:`sidebar-project-row-${o.viewKey}`,children:de})}),(0,ye.jsx)(A.ContextMenuContent,{align:"start",width:220,testID:`sidebar-project-context-menu-${o.viewKey}`,children:(0,ye.jsx)(Ue,{surface:"context",projectViewKey:o.viewKey,settingsTarget:z,projectPath:F,onRemoveProject:R,removeProjectStatus:D})})]}):(0,ye.jsx)(s.View,{...Z,...K?.listeners,ref:K?.setActivatorNodeRef,onPointerEnter:re,onPointerLeave:te,children:(0,ye.jsx)(oe.PressHighlight,{accessibilityRole:"button",style:ie,highlightStyle:Cr.projectRowPressed,onPressIn:se,onTouchMove:q.handleTouchMove,onPressOut:ae,onPress:ee,testID:`sidebar-project-row-${o.viewKey}`,children:de})})}function Ye({workspace:o,hostBadge:t,leadingProjectName:n,leadingProjectIconDataUri:c,selected:l,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,isArchiving:y,isCreating:j=!1,dragHandleProps:S,menuController:P,archiveLabel:I,archiveStatus:f="idle",archivePendingLabel:x,onArchive:B,onCopyBranchName:C,onCopyPath:R,onRename:T,onMarkAsRead:D,onMarkAsUnread:K,archiveShortcutKeys:H,isPinned:_,onTogglePin:A,reserveIdleStatusIndicatorSpace:N=!0}){const M=(0,W.useIsCompactFormFactor)(),[E,L]=(0,p.useState)(!1),V=ge.isNative||M,G=(0,U.useLongPressDragInteraction)({drag:k,menuController:P}),{role:O,tabIndex:F,"aria-roledescription":$,...q}=S?.attributes??{},J=(0,p.useCallback)(()=>{G.didLongPressRef.current?G.didLongPressRef.current=!1:w()},[G.didLongPressRef,w]),X=(0,p.useCallback)(o=>{L(!0),G.handlePressIn(o)},[G]),Y=(0,p.useCallback)(()=>{L(!1),G.handlePressOut()},[G]),ee=(0,p.useMemo)(()=>({selected:l}),[l]);return(0,ye.jsx)(Q.SidebarWorkspaceRowFrame,{workspace:o,isDragging:b,children:({isHovered:p,contextMenuOpen:w,onContextMenuOpenChange:k,hoverHandlers:P})=>{const W=!V?(0,Z.selectWorkspaceServiceSummary)(o.scripts):null,M=Ne({isDragging:b,isPressed:E,selected:l,isHovered:p}),L=(0,v.getSidebarRowBackdrop)({isDragging:b,isPressed:E,selected:l,isHovered:p});return(0,ye.jsx)(s.View,{...q,...S?.listeners,ref:S?.setActivatorNodeRef,style:Cr.workspaceRowContainer,...P,children:(0,ye.jsx)(z.SidebarWorkspaceContextMenu,{contextMenuOpen:w,onContextMenuOpenChange:k,workspace:o,leadingProjectName:n,hostBadgeLabel:t?.label,workspaceKey:o.workspaceKey,onCopyPath:R,onCopyBranchName:C,onRename:T,onMarkAsRead:D,onMarkAsUnread:K,onArchive:B,archiveLabel:I,archiveStatus:f,archivePendingLabel:x,archiveShortcutKeys:H,isPinned:_,onTogglePin:A,openInFileManagerPath:o.workspaceDirectory,disabled:y,"aria-selected":l,accessibilityRole:"button",accessibilityState:ee,style:M,highlightStyle:Cr.workspaceRowPressed,onPressIn:X,onTouchMove:G.handleTouchMove,onPressOut:Y,onPress:J,testID:`sidebar-workspace-row-${o.workspaceKey}`,children:(0,ye.jsx)(Q.SidebarWorkspaceRowContent,{workspace:o,hostBadge:t,leadingProjectName:n,leadingProjectIconDataUri:c,serviceSummary:W,backdrop:L,isHovered:p,isLoading:y||j,isCreating:j,shortcutNumber:u,showShortcutBadge:h,reserveIdleStatusIndicatorSpace:N,children:(0,ye.jsx)($e,{workspace:o,backdrop:L,isHovered:p,isTouchPlatform:V,isCreating:j,showShortcutBadge:h,shortcutNumber:u,archiveLabel:I,archiveStatus:f,archivePendingLabel:x,archiveShortcutKeys:H,onArchive:B,onCopyBranchName:C,onCopyPath:R,onRename:T,onMarkAsRead:D,onMarkAsUnread:K,isPinned:_,onTogglePin:A})})})})}})}function Ze(o){const t=(0,c.c)(79),{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:h,selected:w,shortcutNumber:k,showShortcutBadge:b,onPress:v,drag:S,isDragging:P,dragHandleProps:I,canCopyBranchName:f,canPin:x,onToggleWorkspacePin:B,reserveIdleStatusIndicatorSpace:C,isCreating:W}=o,R=void 0===C||C,T=void 0!==W&&W,{t:D}=(0,u.useTranslation)(),K=(0,E.useToast)(),[H,_]=(0,p.useState)(!1),[A,N]=(0,p.useState)(!1),M=null!==n.archivingAt||H;let L;t[0]!==w||t[1]!==n?(L=()=>{(0,de.redirectIfArchivingActiveWorkspace)({serverId:n.serverId,workspaceId:n.workspaceId,activeWorkspaceSelection:He(w,n)})},t[0]=w,t[1]=n,t[2]=L):L=t[2];const G=L,O=n.serverId,F=n.workspaceId,z=n.workspaceKind,U=n.name;let $,q;t[3]!==n?($=(0,V.toWorktreeArchiveRisk)(n),t[3]=n,t[4]=$):$=t[4],t[5]!==G||t[6]!==$||t[7]!==n.name||t[8]!==n.serverId||t[9]!==n.workspaceId||t[10]!==n.workspaceKind?(q={serverId:O,workspaceId:F,workspaceKind:z,name:U,...$,onArchiveStarted:G,onSetHiding:_},t[5]=G,t[6]=$,t[7]=n.name,t[8]=n.serverId,t[9]=n.workspaceId,t[10]=n.workspaceKind,t[11]=q):q=t[11];const J=(0,pe.useWorkspaceArchive)(q);let Q;t[12]!==J||t[13]!==M?(Q=()=>{M||J.archive()},t[12]=J,t[13]=M,t[14]=Q):Q=t[14];const X=Q,Y=(0,j.useWorkspaceClipboardActions)();let Z;t[15]!==Y||t[16]!==n?(Z=()=>{Y.copyPath(n)},t[15]=Y,t[16]=n,t[17]=Z):Z=t[17];const ee=Z;let re;t[18]!==Y||t[19]!==n?(re=()=>{Y.copyBranchName(n)},t[18]=Y,t[19]=n,t[20]=re):re=t[20];const oe=re;let te;t[21]===Symbol.for("react.memo_cache_sentinel")?(te=()=>{N(!0)},t[21]=te):te=t[21];const ne=te;let ce;t[22]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{N(!1)},t[22]=ce):ce=t[22];const le=ce,ue=null!=n.pinnedAt;let ge;t[23]!==B||t[24]!==n?(ge=()=>{B(n)},t[23]=B,t[24]=n,t[25]=ge):ge=t[25];const he=x?ge:void 0,we=(0,se.useShortcutKeys)("archive-workspace");let ke;t[26]!==n.serverId||t[27]!==n.workspaceId?(ke={serverId:n.serverId,workspaceId:n.workspaceId},t[26]=n.serverId,t[27]=n.workspaceId,t[28]=ke):ke=t[28];const{hasClearableAttention:be,canMarkUnread:ve,clearAttention:me,markUnread:je}=(0,ie.useWorkspaceReadState)(ke);let Se;t[29]!==me||t[30]!==K?(Se=()=>{me().catch(o=>{K.error(o instanceof Error?o.message:"Failed to mark workspace as read")})},t[29]=me,t[30]=K,t[31]=Se):Se=t[31];const Pe=Se;let Ie;t[32]!==je||t[33]!==K?(Ie=()=>{je().catch(o=>{K.error(o instanceof Error?o.message:"Failed to mark workspace as unread")})},t[32]=je,t[33]=K,t[34]=Ie):Ie=t[34];const fe=Ie,xe=`workspace-archive-${n.workspaceKey}`;let Be;t[35]===Symbol.for("react.memo_cache_sentinel")?(Be=["workspace.archive"],t[35]=Be):Be=t[35];const Ce=w&&!M;let We,Re,Te;t[36]!==X?(We=()=>(X(),!0),t[36]=X,t[37]=We):We=t[37],t[38]!==xe||t[39]!==Ce||t[40]!==We?(Re={handlerId:xe,actions:Be,enabled:Ce,priority:0,handle:We},t[38]=xe,t[39]=Ce,t[40]=We,t[41]=Re):Re=t[41],(0,ae.useKeyboardActionHandler)(Re),t[42]!==D?(Te=D("sidebar.workspace.actions.archive"),t[42]=D,t[43]=Te):Te=t[43];const De=M?"pending":"idle";let Ke;t[44]!==D?(Ke=D("sidebar.workspace.actions.archiving"),t[44]=D,t[45]=Ke):Ke=t[45];const _e=f?oe:void 0,Ae=be?Pe:void 0,Ne=ve?fe:void 0,Me=w?we:null;let Ee;t[46]!==S||t[47]!==I||t[48]!==X||t[49]!==ee||t[50]!==s||t[51]!==M||t[52]!==T||t[53]!==P||t[54]!==ue||t[55]!==h||t[56]!==l||t[57]!==v||t[58]!==he||t[59]!==R||t[60]!==w||t[61]!==k||t[62]!==b||t[63]!==Te||t[64]!==De||t[65]!==Ke||t[66]!==_e||t[67]!==Ae||t[68]!==Ne||t[69]!==Me||t[70]!==n?(Ee=(0,ye.jsx)(Ye,{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:h,selected:w,shortcutNumber:k,showShortcutBadge:b,onPress:v,drag:S,isDragging:P,isArchiving:M,isCreating:T,dragHandleProps:I,menuController:null,archiveLabel:Te,archiveStatus:De,archivePendingLabel:Ke,onArchive:X,onCopyBranchName:_e,onCopyPath:ee,onRename:ne,onMarkAsRead:Ae,onMarkAsUnread:Ne,archiveShortcutKeys:Me,isPinned:ue,onTogglePin:he,reserveIdleStatusIndicatorSpace:R}),t[46]=S,t[47]=I,t[48]=X,t[49]=ee,t[50]=s,t[51]=M,t[52]=T,t[53]=P,t[54]=ue,t[55]=h,t[56]=l,t[57]=v,t[58]=he,t[59]=R,t[60]=w,t[61]=k,t[62]=b,t[63]=Te,t[64]=De,t[65]=Ke,t[66]=_e,t[67]=Ae,t[68]=Ne,t[69]=Me,t[70]=n,t[71]=Ee):Ee=t[71];const Le=`sidebar-workspace-rename-modal-${n.workspaceKey}`;let Ve,Ge;return t[72]!==A||t[73]!==Le||t[74]!==n?(Ve=(0,ye.jsx)(y.WorkspaceRenameModal,{visible:A,workspace:n,onClose:le,testID:Le}),t[72]=A,t[73]=Le,t[74]=n,t[75]=Ve):Ve=t[75],t[76]!==Ee||t[77]!==Ve?(Ge=(0,ye.jsxs)(ye.Fragment,{children:[Ee,Ve]}),t[76]=Ee,t[77]=Ve,t[78]=Ge):Ge=t[78],Ge}function er(o){const t=(0,c.c)(25),{workspace:n,workspaceEntry:s,hostBadge:l,leadingProjectName:p,leadingProjectIconDataUri:u,shortcutNumber:h,showShortcutBadge:k,canCopyBranchName:b,canPin:v,onToggleWorkspacePin:y,reserveIdleStatusIndicatorSpace:j,isCreating:S,selectionEnabled:P,activeWorkspaceSelection:I,drag:f,isDragging:x,dragHandleProps:B}=o,C=void 0===j||j,W=void 0!==S&&S,R=void 0!==x&&x;let T;t[0]!==n.serverId||t[1]!==n.workspaceId?(T=()=>{n.serverId&&(0,w.navigateToWorkspace)({serverId:n.serverId,workspaceId:n.workspaceId})},t[0]=n.serverId,t[1]=n.workspaceId,t[2]=T):T=t[2];const D=T;let K,H;return t[3]!==I||t[4]!==P||t[5]!==n.serverId||t[6]!==n.workspaceId?(K=Te({selection:I,serverId:n.serverId,workspaceId:n.workspaceId,enabled:P}),t[3]=I,t[4]=P,t[5]=n.serverId,t[6]=n.workspaceId,t[7]=K):K=t[7],t[8]!==b||t[9]!==v||t[10]!==f||t[11]!==B||t[12]!==D||t[13]!==l||t[14]!==W||t[15]!==R||t[16]!==u||t[17]!==p||t[18]!==y||t[19]!==C||t[20]!==h||t[21]!==k||t[22]!==K||t[23]!==s?(H=(0,ye.jsx)(tr,{workspaceEntry:s,hostBadge:l,leadingProjectName:p,leadingProjectIconDataUri:u,shortcutNumber:h,showShortcutBadge:k,canCopyBranchName:b,canPin:v,onToggleWorkspacePin:y,reserveIdleStatusIndicatorSpace:C,isCreating:W,selected:K,onPress:D,drag:f,isDragging:R,dragHandleProps:B}),t[8]=b,t[9]=v,t[10]=f,t[11]=B,t[12]=D,t[13]=l,t[14]=W,t[15]=R,t[16]=u,t[17]=p,t[18]=y,t[19]=C,t[20]=h,t[21]=k,t[22]=K,t[23]=s,t[24]=H):H=t[24],H}function rr(o,t){const n=Te({selection:o.activeWorkspaceSelection,serverId:o.workspace.serverId,workspaceId:o.workspace.workspaceId,enabled:o.selectionEnabled}),s=Te({selection:t.activeWorkspaceSelection,serverId:t.workspace.serverId,workspaceId:t.workspace.workspaceId,enabled:t.selectionEnabled});return o.workspace===t.workspace&&o.workspaceEntry===t.workspaceEntry&&o.hostBadge===t.hostBadge&&o.leadingProjectName===t.leadingProjectName&&o.leadingProjectIconDataUri===t.leadingProjectIconDataUri&&(!t.showShortcutBadge||o.shortcutNumber===t.shortcutNumber)&&o.showShortcutBadge===t.showShortcutBadge&&o.canCopyBranchName===t.canCopyBranchName&&o.canPin===t.canPin&&o.onToggleWorkspacePin===t.onToggleWorkspacePin&&o.reserveIdleStatusIndicatorSpace===t.reserveIdleStatusIndicatorSpace&&o.isCreating===t.isCreating&&o.onWorkspacePress===t.onWorkspacePress&&o.drag===t.drag&&o.isDragging===t.isDragging&&o.dragHandleProps===t.dragHandleProps&&n===s}const or=(0,p.memo)(er,rr);function tr(o){const t=(0,c.c)(17),{workspaceEntry:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:p,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,dragHandleProps:v,canCopyBranchName:y,canPin:j,onToggleWorkspacePin:S,reserveIdleStatusIndicatorSpace:P,isCreating:I,selected:f}=o,x=void 0===P||P,B=void 0!==I&&I;if(!n)return null;let C;return t[0]!==y||t[1]!==j||t[2]!==k||t[3]!==v||t[4]!==s||t[5]!==B||t[6]!==b||t[7]!==p||t[8]!==l||t[9]!==w||t[10]!==S||t[11]!==x||t[12]!==f||t[13]!==u||t[14]!==h||t[15]!==n?(C=(0,ye.jsx)(Ze,{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:p,selected:f,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,dragHandleProps:v,canCopyBranchName:y,canPin:j,onToggleWorkspacePin:S,reserveIdleStatusIndicatorSpace:x,isCreating:B}),t[0]=y,t[1]=j,t[2]=k,t[3]=v,t[4]=s,t[5]=B,t[6]=b,t[7]=p,t[8]=l,t[9]=w,t[10]=S,t[11]=x,t[12]=f,t[13]=u,t[14]=h,t[15]=n,t[16]=C):C=t[16],C}function nr(o){const t=(0,c.c)(86),{project:n,workspaceEntriesByKey:l,collapsed:h,displayName:w,iconDataUri:k,selectionEnabled:b,showShortcutBadges:v,shortcutIndexByWorkspaceKey:y,onToggleCollapsed:j,onWorkspacePress:S,parentGestureRef:P,onWorkspaceReorder:x,useNestable:B,dragGestureHostActive:C,manualSort:W,onWorktreeCreated:R,drag:T,isDragging:K,dragHandleProps:H,creatingWorkspaceIds:_,activeWorkspaceSelection:A,hostBadgeByServerId:N,supportsMultiplicityByServerId:M,supportsPinningByServerId:L,onToggleWorkspacePin:V}=o;let G;t[0]!==l?(G={kind:"workspaces",getStatusBucket:o=>l.get(o.workspaceKey).statusBucket},t[0]=l,t[1]=G):G=t[1];const F=G,{visibleItems:z,expanded:U,canToggle:$,toggleExpanded:Q}=(0,J.useLimitedSidebarGroup)(n.workspaces,F),X=A?.serverId??null,Y="online"===(0,f.useHostRuntimeConnectionStatus)(X??"")?X:null;let Z;t[2]!==h||t[3]!==Y||t[4]!==n||t[5]!==M?(Z=(0,ce.buildSidebarProjectRowModel)({project:n,collapsed:h,supportsMultiplicityByServerId:M,preferredServerId:Y}),t[2]=h,t[3]=Y,t[4]=n,t[5]=M,t[6]=Z):Z=t[6];const ee=Z;let re;t[7]!==h||t[8]!==n.workspaces?(re={workspaces:n.workspaces,enabled:h},t[7]=h,t[8]=n.workspaces,t[9]=re):re=t[9];const oe=(0,D.useSidebarProjectStatusBucket)(re);let te;t[10]!==A||t[11]!==n||t[12]!==b?(te=De({selection:A,project:n,enabled:b}),t[10]=A,t[11]=n,t[12]=b,t[13]=te):te=t[13];const ne=te;let se;t[14]!==A||t[15]!==_||t[16]!==N||t[17]!==V||t[18]!==S||t[19]!==n.projectKind||t[20]!==b||t[21]!==y||t[22]!==v||t[23]!==L||t[24]!==l?(se=(o,t)=>(0,ye.jsx)(or,{workspace:o,workspaceEntry:l.get(o.workspaceKey)??null,hostBadge:N.get(o.serverId)??null,shortcutNumber:y.get(o.workspaceKey)??null,showShortcutBadge:v,canCopyBranchName:"git"===n.projectKind,canPin:!0===L.get(o.serverId),onToggleWorkspacePin:V,isCreating:_.has(o.workspaceId),selectionEnabled:b,activeWorkspaceSelection:A,onWorkspacePress:S,drag:t?.drag,isDragging:t?.isDragging,dragHandleProps:t?.dragHandleProps},o.workspaceKey),t[14]=A,t[15]=_,t[16]=N,t[17]=V,t[18]=S,t[19]=n.projectKind,t[20]=b,t[21]=y,t[22]=v,t[23]=L,t[24]=l,t[25]=se):se=t[25];const ae=se;let ie;t[26]!==ae?(ie=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return ae(t,{drag:n,isDragging:s,dragHandleProps:c})},t[26]=ae,t[27]=ie):ie=t[27];const de=ie;let le;t[28]!==x||t[29]!==n.viewKey?(le=o=>{x(n.viewKey,o)},t[28]=x,t[29]=n.viewKey,t[30]=le):le=t[30];const pe=le,ge=(0,E.useToast)(),{t:he}=(0,u.useTranslation)(),[we,ke]=(0,p.useState)(!1);let be;t[31]!==w||t[32]!==we||t[33]!==n.hosts||t[34]!==he||t[35]!==ge?(be=()=>{we||(async()=>{if(!await(0,O.confirmDialog)({title:he("sidebar.project.confirmations.removeTitle"),message:he("sidebar.project.confirmations.removeMessage",{projectName:w}),confirmLabel:he("sidebar.project.confirmations.removeConfirm"),cancelLabel:he("sidebar.project.confirmations.cancel"),destructive:!0}))return;ke(!0);const o=(0,ue.getCurrentProjectRemoveReadiness)({hosts:n.hosts});if("needs_host_update"===o.kind)return ge.error(he("sidebar.project.toasts.updateHostToRemove")),void ke(!1);(0,ue.removeProjectFromHosts)({targets:o.targets,getClient:sr}).then(o=>"host_disconnected"===o.kind?(ge.error(he("sidebar.project.toasts.hostDisconnected")),null):("failed"===o.kind&&ge.error(he("sidebar.project.toasts.removeFailed")),null)).catch(o=>{ge.error(o instanceof Error?o.message:he("sidebar.project.toasts.removeFailed"))}).finally(()=>{ke(!1)})})()},t[31]=w,t[32]=we,t[33]=n.hosts,t[34]=he,t[35]=ge,t[36]=be):be=t[36];const ve=be;let me;t[37]!==j||t[38]!==n.viewKey?(me=()=>{j(n.viewKey)},t[37]=j,t[38]=n.viewKey,t[39]=me):me=t[39];const Se=me;let Pe=null;if(!h)if(n.workspaces.length>0){let o,c,l;t[40]!==A||t[41]!==C||t[42]!==pe||t[43]!==W||t[44]!==P||t[45]!==n.viewKey||t[46]!==de||t[47]!==ae||t[48]!==B||t[49]!==z?(o=W?(0,ye.jsx)(I.DraggableList,{testID:`sidebar-workspace-list-${n.viewKey}`,data:z,keyExtractor:je,renderItem:de,onDragEnd:pe,extraData:Ke(A),scrollEnabled:!1,useDragHandle:!0,nestable:B,simultaneousGestureRef:P,gestureHostPresented:C,containerStyle:Cr.workspaceListContainer}):(0,ye.jsx)(s.View,{testID:`sidebar-workspace-list-${n.viewKey}`,style:Cr.workspaceListContainer,children:z.map(o=>ae(o))}),t[40]=A,t[41]=C,t[42]=pe,t[43]=W,t[44]=P,t[45]=n.viewKey,t[46]=de,t[47]=ae,t[48]=B,t[49]=z,t[50]=o):o=t[50],t[51]!==$||t[52]!==n.viewKey||t[53]!==Q||t[54]!==U?(c=$?(0,ye.jsx)(q.SidebarGroupToggleRow,{expanded:U,onPress:Q,testID:`sidebar-project-show-more-${n.viewKey}`}):null,t[51]=$,t[52]=n.viewKey,t[53]=Q,t[54]=U,t[55]=c):c=t[55],t[56]!==o||t[57]!==c?(l=(0,ye.jsxs)(ye.Fragment,{children:[o,c]}),t[56]=o,t[57]=c,t[58]=l):l=t[58],Pe=l}else if("new_workspace"===ee.trailingAction.kind){let o;t[59]!==w||t[60]!==S||t[61]!==n||t[62]!==ee.trailingAction.target?(o=(0,ye.jsx)(Je,{project:n,displayName:w,worktreeTarget:ee.trailingAction.target,onWorkspacePress:S}),t[59]=w,t[60]=S,t[61]=n,t[62]=ee.trailingAction.target,t[63]=o):o=t[63],Pe=o}const Ie=Pe?Cr.projectBlockExpanded:void 0,fe="new_workspace"===ee.trailingAction.kind?ee.trailingAction.target:null,xe=we?"pending":"idle";let Be,Ce;return t[64]!==ne||t[65]!==oe||t[66]!==w||t[67]!==T||t[68]!==H||t[69]!==ve||t[70]!==Se||t[71]!==k||t[72]!==K||t[73]!==we||t[74]!==S||t[75]!==R||t[76]!==n||t[77]!==ee.chevron||t[78]!==fe||t[79]!==xe?(Be=(0,ye.jsx)(Xe,{project:n,displayName:w,iconDataUri:k,statusBucket:oe,selected:!1,chevron:ee.chevron,onPress:Se,worktreeTarget:fe,isProjectActive:ne,onWorkspacePress:S,onWorktreeCreated:R,drag:T,isDragging:K,isArchiving:we,menuController:null,onRemoveProject:ve,removeProjectStatus:xe,dragHandleProps:H}),t[64]=ne,t[65]=oe,t[66]=w,t[67]=T,t[68]=H,t[69]=ve,t[70]=Se,t[71]=k,t[72]=K,t[73]=we,t[74]=S,t[75]=R,t[76]=n,t[77]=ee.chevron,t[78]=fe,t[79]=xe,t[80]=Be):Be=t[80],t[81]!==w||t[82]!==Pe||t[83]!==Ie||t[84]!==Be?(Ce=(0,ye.jsxs)(s.View,{role:"group",accessibilityLabel:w,style:Ie,children:[Be,Pe]}),t[81]=w,t[82]=Pe,t[83]=Ie,t[84]=Be,t[85]=Ce):Ce=t[85],Ce}function sr(o){return(0,f.getHostRuntimeStore)().getClient(o)}function ar(o,t){return o.project===t.project&&cr(o,t)&&o.collapsed===t.collapsed&&o.displayName===t.displayName&&o.iconDataUri===t.iconDataUri&&o.selectionEnabled===t.selectionEnabled&&o.showShortcutBadges===t.showShortcutBadges&&ir(o,t)&&o.hostBadgeByServerId===t.hostBadgeByServerId&&o.supportsMultiplicityByServerId===t.supportsMultiplicityByServerId&&o.supportsPinningByServerId===t.supportsPinningByServerId&&o.onToggleWorkspacePin===t.onToggleWorkspacePin&&o.onToggleCollapsed===t.onToggleCollapsed&&o.onWorkspacePress===t.onWorkspacePress&&o.parentGestureRef===t.parentGestureRef&&o.onWorkspaceReorder===t.onWorkspaceReorder&&o.useNestable===t.useNestable&&o.dragGestureHostActive===t.dragGestureHostActive&&o.manualSort===t.manualSort&&o.onWorktreeCreated===t.onWorktreeCreated&&o.drag===t.drag&&o.isDragging===t.isDragging&&o.dragHandleProps===t.dragHandleProps&&o.creatingWorkspaceIds===t.creatingWorkspaceIds&&o.activeWorkspaceSelection?.serverId===t.activeWorkspaceSelection?.serverId&&dr(o,t)}function ir(o,t){return!t.showShortcutBadges||o.shortcutIndexByWorkspaceKey===t.shortcutIndexByWorkspaceKey||t.project.workspaces.every(({workspaceKey:n})=>o.shortcutIndexByWorkspaceKey.get(n)===t.shortcutIndexByWorkspaceKey.get(n))}function cr(o,t){return o.workspaceEntriesByKey===t.workspaceEntriesByKey||t.project.workspaces.every(({workspaceKey:n})=>o.workspaceEntriesByKey.get(n)===t.workspaceEntriesByKey.get(n))}function dr(o,t){const n=De({selection:o.activeWorkspaceSelection,project:o.project,enabled:o.selectionEnabled});return n===De({selection:t.activeWorkspaceSelection,project:t.project,enabled:t.selectionEnabled})&&(!n||Ke(o.activeWorkspaceSelection)===Ke(t.activeWorkspaceSelection))}const lr=(0,p.memo)(nr,ar);function pr(o){return o.workspaceKey}function ur(o){return o.setPinnedWorkspaceOrder}function gr(o){return o.getPinnedWorkspaceOrder}function hr(o){return o.serverId}function wr(o){const t=(0,c.c)(20),{workspaceGroups:n,pinnedGroups:s,workspaceEntriesByKey:l,projectIconByProjectViewKey:p,shortcutIndexByWorkspaceKey:u,onWorkspacePress:h,hostBadgeByServerId:w,supportsPinningByServerId:k,onToggleWorkspacePin:b,onPinnedWorkspaceReorder:v,listHeaderComponent:y,sidebarFilterEmpty:j,parentGestureRef:S,dragGestureHostActive:P}=o,I=(0,_.useShowShortcutBadges)();let f;if(t[0]!==s.pinnedChats||t[1]!==l){let o;t[3]!==l?(o=o=>{const t=l.get(o.workspaceKey);return t?[t]:[]},t[3]=l,t[4]=o):o=t[4],f=s.pinnedChats.flatMap(o),t[0]=s.pinnedChats,t[1]=l,t[2]=f}else f=t[2];const x=f;let B;return t[5]!==u||t[6]!==P||t[7]!==w||t[8]!==y||t[9]!==v||t[10]!==b||t[11]!==h||t[12]!==S||t[13]!==x||t[14]!==p||t[15]!==I||t[16]!==j||t[17]!==k||t[18]!==n?(B=(0,ye.jsx)(F.SidebarStatusWorkspaceList,{groups:n,pinnedWorkspaces:x,projectIconByProjectViewKey:p,shortcutIndexByWorkspaceKey:u,showShortcutBadges:I,onWorkspacePress:h,hostBadgeByServerId:w,supportsPinningByServerId:k,onToggleWorkspacePin:b,onPinnedWorkspaceReorder:v,listHeaderComponent:y,sidebarFilterEmpty:j,parentGestureRef:S,dragGestureHostActive:P}),t[5]=u,t[6]=P,t[7]=w,t[8]=y,t[9]=v,t[10]=b,t[11]=h,t[12]=S,t[13]=x,t[14]=p,t[15]=I,t[16]=j,t[17]=k,t[18]=n,t[19]=B):B=t[19],B}function kr(t){const n=(0,c.c)(86),{projects:l,pinnedGroups:h,workspaceEntriesByKey:k,projectIconByProjectViewKey:b,collapsedProjectKeys:v,onToggleProjectCollapsed:y,shortcutIndexByWorkspaceKey:j,onWorkspacePress:S,onAddProject:f,onImportSession:x,listFooterComponent:C,listHeaderComponent:W,sidebarFilterEmpty:R,hasActiveProjectFilter:D,parentGestureRef:A,dragGestureHostActive:N,pathname:M,hostBadgeByServerId:E,supportsMultiplicityByServerId:L,supportsPinningByServerId:V,onToggleWorkspacePin:O,onPinnedWorkspaceReorder:F}=t,{t:z}=(0,u.useTranslation)(),U=(0,H.useSidebarViewStore)(Br),[Q,X]=(0,p.useState)(xr);let Z;n[0]===Symbol.for("react.memo_cache_sentinel")?(Z=new Map,n[0]=Z):Z=n[0];const ee=(0,p.useRef)(Z),re=(0,_.useShowShortcutBadges)(),oe=(0,B.useSidebarCollapsedSectionsStore)(fr),te=(0,B.useSidebarCollapsedSectionsStore)(Ir),ne=(0,H.useSidebarViewStore)(Pr),se=(0,K.useSidebarOrderStore)(Sr),ae=(0,K.useSidebarOrderStore)(jr),ie=(0,K.useSidebarOrderStore)(yr),ce=(0,K.useSidebarOrderStore)(mr);let de;n[1]!==M?(de=M&&(0,T.parseHostWorkspaceRouteFromPathname)(M),n[1]=M,n[2]=de):de=n[2];const le=Boolean(de),pe=(0,w.useActiveWorkspaceSelection)(),{pinnedChats:ue,unpinnedProjects:he}=h,{visibleItems:we,expanded:ke,canToggle:be,toggleExpanded:ve}=(0,J.useLimitedSidebarGroup)(ue);let me;n[3]!==A?(me=A?{simultaneousHandlers:A}:void 0,n[3]=A,n[4]=me):me=n[4];const Pe=me;let Ie,fe,xe,Be,Ce;n[5]===Symbol.for("react.memo_cache_sentinel")?(Ie=()=>{const o=ee.current;return()=>{for(const t of o.values())clearTimeout(t);o.clear()}},fe=[],n[5]=Ie,n[6]=fe):(Ie=n[5],fe=n[6]),(0,p.useEffect)(Ie,fe),n[7]!==Q||n[8]!==l?(xe=()=>{if(0===Q.size)return;const o=new Set;for(const t of l)for(const n of t.workspaces)o.add(n.workspaceId);const t=Array.from(Q).filter(t=>!o.has(t));if(0!==t.length){for(const o of t){const t=ee.current.get(o);t&&(clearTimeout(t),ee.current.delete(o))}X(o=>{const n=new Set(o);for(const o of t)n.delete(o);return n})}},Be=[Q,l],n[7]=Q,n[8]=l,n[9]=xe,n[10]=Be):(xe=n[9],Be=n[10]),(0,p.useEffect)(xe,Be),n[11]!==ie||n[12]!==ce?(Ce=o=>{const t=o.map(vr),n=ie();(0,G.hasVisibleOrderChanged)({currentOrder:n,reorderedVisibleKeys:t})&&ce((0,G.mergeWithRemainder)({currentOrder:n,reorderedVisibleKeys:t}))},n[11]=ie,n[12]=ce,n[13]=Ce):Ce=n[13];const We=Ce;let Re;n[14]!==se||n[15]!==ae?(Re=(o,t)=>{const n=t.map(br),s=se(o);(0,G.hasVisibleOrderChanged)({currentOrder:s,reorderedVisibleKeys:n})&&ae(o,(0,G.mergeWithRemainder)({currentOrder:s,reorderedVisibleKeys:n}))},n[14]=se,n[15]=ae,n[16]=Re):Re=n[16];const Te=Re;let De;n[17]===Symbol.for("react.memo_cache_sentinel")?(De=o=>{X(t=>{const n=new Set(t);return n.add(o),n});const t=ee.current.get(o);t&&clearTimeout(t),ee.current.set(o,setTimeout(()=>{ee.current.delete(o),X(t=>{if(!t.has(o))return t;const n=new Set(t);return n.delete(o),n})},3e3))},n[17]=De):De=n[17];const He=De;let _e;n[18]!==pe||n[19]!==v||n[20]!==Q||n[21]!==N||n[22]!==Te||n[23]!==E||n[24]!==ne||n[25]!==y||n[26]!==O||n[27]!==S||n[28]!==A||n[29]!==b||n[30]!==le||n[31]!==j||n[32]!==re||n[33]!==L||n[34]!==V||n[35]!==k?(_e=(o,t)=>(0,ye.jsx)(lr,{project:o,workspaceEntriesByKey:k,collapsed:v.has(o.viewKey),displayName:o.projectName,iconDataUri:b.get(o.viewKey)??null,selectionEnabled:le,showShortcutBadges:re,shortcutIndexByWorkspaceKey:j,onToggleCollapsed:y,onWorkspacePress:S,manualSort:ne,parentGestureRef:A,onWorkspaceReorder:Te,useNestable:ge.isNative,dragGestureHostActive:N,onWorktreeCreated:He,drag:t.drag,isDragging:t.isDragging,dragHandleProps:t.dragHandleProps,creatingWorkspaceIds:Q,activeWorkspaceSelection:pe,hostBadgeByServerId:E,supportsMultiplicityByServerId:L,supportsPinningByServerId:V,onToggleWorkspacePin:O},o.viewKey),n[18]=pe,n[19]=v,n[20]=Q,n[21]=N,n[22]=Te,n[23]=E,n[24]=ne,n[25]=y,n[26]=O,n[27]=S,n[28]=A,n[29]=b,n[30]=le,n[31]=j,n[32]=re,n[33]=L,n[34]=V,n[35]=k,n[36]=_e):_e=n[36];const Ae=_e;let Ne;n[37]!==Ae?(Ne=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return Ae(t,{drag:n,isDragging:s,dragHandleProps:c})},n[37]=Ae,n[38]=Ne):Ne=n[38];const Me=Ne;let Ee;n[39]!==pe||n[40]!==Q||n[41]!==E||n[42]!==O||n[43]!==S||n[44]!==b||n[45]!==le||n[46]!==j||n[47]!==re||n[48]!==V||n[49]!==k?(Ee=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return(0,ye.jsx)(or,{workspace:t,workspaceEntry:k.get(t.workspaceKey)??null,hostBadge:E.get(t.serverId)??null,leadingProjectName:t.projectName,leadingProjectIconDataUri:b.get(t.projectViewKey)??null,shortcutNumber:j.get(t.workspaceKey)??null,showShortcutBadge:re,canCopyBranchName:"git"===t.projectKind,canPin:!0===V.get(t.serverId),onToggleWorkspacePin:O,isCreating:Q.has(t.workspaceId),selectionEnabled:le,activeWorkspaceSelection:pe,onWorkspacePress:S,drag:n,isDragging:s,dragHandleProps:c})},n[39]=pe,n[40]=Q,n[41]=E,n[42]=O,n[43]=S,n[44]=b,n[45]=le,n[46]=j,n[47]=re,n[48]=V,n[49]=k,n[50]=Ee):Ee=n[50];const Le=Ee;let Ve;n[51]!==pe||n[52]!==N||n[53]!==We||n[54]!==f||n[55]!==x||n[56]!==A||n[57]!==l.length||n[58]!==Me||n[59]!==he?(Ve=0===l.length?(0,ye.jsx)(Y.SidebarProjectEmptyState,{onAddProject:f,onImportSession:x}):(0,ye.jsx)(I.DraggableList,{testID:"sidebar-project-list",data:he,keyExtractor:Se,renderItem:Me,onDragEnd:We,extraData:Ke(pe),scrollEnabled:!1,useDragHandle:!0,nestable:ge.isNative,simultaneousGestureRef:A,gestureHostPresented:N,containerStyle:Cr.projectListContainer}),n[51]=pe,n[52]=N,n[53]=We,n[54]=f,n[55]=x,n[56]=A,n[57]=l.length,n[58]=Me,n[59]=he,n[60]=Ve):Ve=n[60];const Ge=Ve;let Oe;n[61]!==pe||n[62]!==be||n[63]!==N||n[64]!==F||n[65]!==A||n[66]!==ue.length||n[67]!==ke||n[68]!==oe||n[69]!==Le||n[70]!==z||n[71]!==ve||n[72]!==te||n[73]!==we?(Oe=ue.length>0?(0,ye.jsxs)(s.View,{style:Cr.pinnedSection,testID:"sidebar-pinned-section",children:[(0,ye.jsx)($.SidebarSectionHeader,{title:z("sidebar.pinned.title"),collapsed:oe,onToggle:te,testID:"sidebar-pinned-section-header"}),oe?null:(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)(I.DraggableList,{testID:"sidebar-pinned-list",data:we,keyExtractor:je,renderItem:Le,onDragEnd:F,extraData:Ke(pe),scrollEnabled:!1,useDragHandle:!0,nestable:ge.isNative,simultaneousGestureRef:A,gestureHostPresented:N,containerStyle:Cr.workspaceListContainer}),be?(0,ye.jsx)(q.SidebarGroupToggleRow,{expanded:ke,onPress:ve,testID:"sidebar-pinned-show-more"}):null]})]}):null,n[61]=pe,n[62]=be,n[63]=N,n[64]=F,n[65]=A,n[66]=ue.length,n[67]=ke,n[68]=oe,n[69]=Le,n[70]=z,n[71]=ve,n[72]=te,n[73]=we,n[74]=Oe):Oe=n[74];const Fe=he.length>0||U||D||R?W:null;let ze,Ue;n[75]!==Ge||n[76]!==R?(ze=R?(0,ye.jsx)(Y.SidebarFilterEmptyState,{}):Ge,n[75]=Ge,n[76]=R,n[77]=ze):ze=n[77],n[78]!==C||n[79]!==Oe||n[80]!==Fe||n[81]!==ze?(Ue=(0,ye.jsxs)(ye.Fragment,{children:[Oe,Fe,ze,C]}),n[78]=C,n[79]=Oe,n[80]=Fe,n[81]=ze,n[82]=Ue):Ue=n[82];const $e=Ue;let qe;return n[83]!==$e||n[84]!==Pe?(qe=(0,ye.jsx)(s.View,{style:Cr.container,children:ge.isNative?(0,ye.jsx)(P.NestableScrollContainer,{...Pe,style:Cr.list,contentContainerStyle:Cr.listContent,showsVerticalScrollIndicator:!1,testID:"sidebar-project-workspace-list-scroll",children:$e}):(0,ye.jsx)(o.ScrollView,{style:Cr.list,contentContainerStyle:Cr.listContent,showsVerticalScrollIndicator:!1,testID:"sidebar-project-workspace-list-scroll",children:$e})}),n[83]=$e,n[84]=Pe,n[85]=qe):qe=n[85],qe}function br(o){return o.workspaceKey}function vr(o){return o.viewKey}function mr(o){return o.setProjectOrder}function yr(o){return o.getProjectOrder}function jr(o){return o.setWorkspaceOrder}function Sr(o){return o.getWorkspaceOrder}function Pr(o){return"manual"===o.workspaceSort}function Ir(o){return o.togglePinnedCollapsed}function fr(o){return o.collapsedPinned}function xr(){return new Set}function Br(o){return o.hostFilters.length>0}const Cr=k.StyleSheet.create(o=>({container:{flex:1},list:{flex:1},listContent:{paddingHorizontal:o.spacing[2],paddingTop:2,paddingBottom:o.spacing[4],uni__dependencies:[0]},projectListContainer:{width:"100%"},pinnedSection:{marginBottom:o.spacing[1],uni__dependencies:[0]},projectBlockExpanded:{paddingBottom:o.spacing[3],uni__dependencies:[0]},workspaceListContainer:{},newWorkspaceGhostRow:{minHeight:b.density.rowHeight,marginBottom:o.spacing[.5],paddingVertical:o.spacing[2],paddingLeft:o.spacing[4],paddingRight:o.spacing[3],borderRadius:o.borderRadius.lg,flexDirection:"row",alignItems:"center",gap:o.spacing[2],userSelect:"none",uni__dependencies:[0]},newWorkspaceGhostRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},newWorkspaceGhostRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},newWorkspaceGhostIconSlot:{width:(0,b.densityIconBox)("md"),height:(0,b.densityIconBox)("md"),alignItems:"center",justifyContent:"center",flexShrink:0},newWorkspaceGhostText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.base,minWidth:0,flexShrink:1,uni__dependencies:[0]},newWorkspaceGhostTextHovered:{fontSize:o.fontSize.base,minWidth:0,flexShrink:1,color:o.colors.foreground,uni__dependencies:[0]},projectRow:{position:"relative",minHeight:b.density.rowHeight,paddingVertical:o.spacing[2],paddingHorizontal:o.spacing[2],borderRadius:o.borderRadius.lg,marginBottom:o.spacing[1],flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:o.spacing[2],userSelect:"none",uni__dependencies:[0]},projectRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},projectRowDragging:{backgroundColor:o.colors.surface2,borderWidth:1,borderColor:o.colors.border,transform:[{scale:1.02}],zIndex:3,...o.shadow.md,uni__dependencies:[0]},projectRowLeft:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flex:1,minWidth:0,uni__dependencies:[0]},projectTitleGroup:{flexDirection:"row",alignItems:"center",gap:o.spacing[1],flex:1,minWidth:0,uni__dependencies:[0]},projectTitle:{color:o.colors.foregroundMuted,fontSize:o.fontSize.base,fontWeight:"400",minWidth:0,flexShrink:1,uni__dependencies:[0]},projectActionButton:{flexDirection:"row",alignItems:"center",gap:o.spacing[1],paddingHorizontal:o.spacing[2],paddingVertical:o.spacing[1],borderRadius:o.borderRadius.md,flexShrink:0,uni__dependencies:[0]},projectActionButtonHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectActionButtonText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,uni__dependencies:[0]},projectIconActionButton:{width:24,height:24,borderRadius:o.borderRadius.md,alignItems:"center",justifyContent:"center",flexShrink:0,uni__dependencies:[0]},projectIconActionButtonHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectIconActionButtonHidden:{opacity:0},projectTrailingActions:{flexDirection:"row",alignItems:"center",gap:2,flexShrink:0,marginRight:-6},projectKebabButton:{width:24,height:24,borderRadius:o.borderRadius.md,alignItems:"center",justifyContent:"center",flexShrink:0,uni__dependencies:[0]},projectKebabButtonHidden:{opacity:0},projectKebabButtonHovered:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},projectTrailingControlSlot:{width:24,height:24,alignItems:"center",justifyContent:"center",flexShrink:0},projectActionTooltipRow:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],uni__dependencies:[0]},projectActionTooltipText:{color:o.colors.foreground,fontSize:o.fontSize.base,uni__dependencies:[0]},projectActionTooltipShortcut:{},projectShortcutBadgeOverlay:{position:"absolute",top:o.spacing[2]+1,right:o.spacing[2],uni__dependencies:[0]},workspaceRow:{minHeight:b.density.rowHeight,marginBottom:o.spacing[.5],paddingVertical:o.spacing[2],paddingLeft:o.spacing[2],paddingRight:o.spacing[3],borderRadius:o.borderRadius.lg,flexDirection:"column",alignItems:"stretch",justifyContent:"center",gap:o.spacing[1],userSelect:"none",uni__dependencies:[0]},workspaceRowMain:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:o.spacing[2],width:"100%",uni__dependencies:[0]},workspaceRowLeft:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flex:1,minWidth:0,uni__dependencies:[0]},workspaceRowRight:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flexShrink:0,uni__dependencies:[0]},workspaceRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},workspaceRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},workspaceRowDragging:{backgroundColor:o.colors.surface2,borderWidth:1,borderColor:o.colors.border,transform:[{scale:1.02}],zIndex:3,...o.shadow.md,uni__dependencies:[0]},sidebarRowSelected:{backgroundColor:o.colors.surfaceSidebarSelected,uni__dependencies:[0]},workspaceRowContainer:{position:"relative"},workspaceStatusDot:{position:"relative",width:14,height:16,borderRadius:o.borderRadius.full,flexShrink:0,alignItems:"center",justifyContent:"center",uni__dependencies:[0]},workspaceArchivingOverlay:{...k.StyleSheet.absoluteFill,borderRadius:o.borderRadius.lg,backgroundColor:`${o.colors.surface0}cc`,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:o.spacing[2],zIndex:1,uni__dependencies:[0]},workspaceArchivingText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,fontWeight:"600",uni__dependencies:[0]},workspaceBranchText:{color:o.colors.foreground,fontSize:o.fontSize.base,fontWeight:"400",lineHeight:20,opacity:.76,flex:1,minWidth:0,uni__dependencies:[0]},workspaceBranchTextCreating:{opacity:.92},workspaceBranchTextHovered:{opacity:1},workspacePrBadgeRow:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],paddingLeft:14+o.spacing[2],uni__dependencies:[0]},workspaceCreatingText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,flexShrink:0,uni__dependencies:[0]},kebabButton:{padding:2,borderRadius:4,marginLeft:2},kebabButtonHovered:{backgroundColor:o.colors.surface2,uni__dependencies:[0]}}))},4558,[1272,1009,1008,1007,471,3351,187,275,436,223,35,965,474,3362,160,3944,4559,4560,4406,1350,4562,4585,3525,4595,4491,4209,1349,4322,4217,4487,4340,4370,4596,4597,3917,4599,1005,4303,4404,4601,3536,4602,4631,4638,4521,4635,4636,4607,4630,4603,4608,4626,3943,4598,3926,3945,4503,4604,4605,4495,4400,3663,4403,4643,992,993,4632,4366,4644,4499,4611,320]);
17822
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PrBadge=function(o){const s=(0,c.c)(28),{hint:l,style:h}=o,{t:w}=(0,u.useTranslation)(),[k,b]=(0,p.useState)(!1),v=Ae;let y;s[0]!==l.url?(y=o=>{o.stopPropagation(),(0,pe.openExternalUrl)(l.url)},s[0]=l.url,s[1]=y):y=s[1];const j=y;let S;s[2]===Symbol.for("react.memo_cache_sentinel")?(S=()=>b(!0),s[2]=S):S=s[2];const P=S;let I;s[3]===Symbol.for("react.memo_cache_sentinel")?(I=()=>b(!1),s[3]=I):I=s[3];const f=I;let x;s[4]!==h?(x=o=>{const{pressed:t}=o;return[Ee.badge,h,t&&Ee.badgePressed]},s[4]=h,s[5]=x):x=s[5];const B=x;let W;s[6]!==k?(W=k?[Ee.text,Ee.textHovered]:Ee.text,s[6]=k,s[7]=W):W=s[7];const C=W;let R,T,D,H,K,_;if(s[8]!==l.forge||s[9]!==l.number||s[10]!==w){const o=(0,L.getForgePresentation)((0,L.normalizeForge)(l.forge));R=t.Pressable,T="link",D=w("workspace.git.pr.accessibility.pullRequest",{number:l.number,context:o.changeRequestContext}),s[8]=l.forge,s[9]=l.number,s[10]=w,s[11]=R,s[12]=T,s[13]=D}else R=s[11],T=s[12],D=s[13];s[14]!==l.state||s[15]!==k?(H=k?(0,je.jsx)(Ie,{size:12,uniProps:Re}):(0,je.jsx)(ye.PullRequestStateIcon,{state:l.state,size:12}),s[14]=l.state,s[15]=k,s[16]=H):H=s[16];s[17]!==l.number||s[18]!==C?(K=(0,je.jsx)(n.Text,{style:C,numberOfLines:1,children:l.number}),s[17]=l.number,s[18]=C,s[19]=K):K=s[19];s[20]!==R||s[21]!==j||s[22]!==B||s[23]!==T||s[24]!==D||s[25]!==H||s[26]!==K?(_=(0,je.jsxs)(R,{accessibilityRole:T,accessibilityLabel:D,hitSlop:4,onPressIn:v,onPress:j,onHoverIn:P,onHoverOut:f,style:B,children:[H,K]}),s[20]=R,s[21]=j,s[22]=B,s[23]=T,s[24]=D,s[25]=H,s[26]=K,s[27]=_):_=s[27];return _},e.SidebarWorkspaceList=function(o){const t=(0,c.c)(37),{workspaceGroups:n,projectIconTargets:s,pinnedGroups:l,projects:p,hasProjectsBeforeFilter:u,hasActiveProjectFilter:w,workspaceEntriesByKey:k,collapsedProjectKeys:b,onToggleProjectCollapsed:v,shortcutIndexByWorkspaceKey:y,groupMode:j,isRefreshing:S,onWorkspacePress:P,onAddProject:I,onImportSession:B,listFooterComponent:C,listHeaderComponent:T,parentGestureRef:K,dragGestureHostActive:_}=o;const A=(0,h.usePathname)(),N=(0,f.useHosts)(),M=(0,me.useSidebarRowItems)();let E,L;t[0]!==p||t[1]!==M.host?(E=M.host&&(0,D.shouldShowSidebarHostLabels)(p),t[0]=p,t[1]=M.host,t[2]=E):E=t[2];t[3]!==E?(L={enabled:E},t[3]=E,t[4]=L):L=t[4];const V=(0,ve.useHostBadges)(L);let O;t[5]!==N?(O=N.map(wr),t[5]=N,t[6]=O):O=t[6];const F=O,z=(0,W.useHostFeatureMap)(F,"workspaceMultiplicity"),U=(0,W.useHostFeatureMap)(F,"workspacePinning"),$=(0,x.useSidebarWorkspacePinController)(),q=(0,H.useSidebarOrderStore)(hr),J=(0,H.useSidebarOrderStore)(gr);let Q;t[7]!==q||t[8]!==J?(Q=o=>{const t=o.map(ur),n=q();(0,G.hasVisibleOrderChanged)({currentOrder:n,reorderedVisibleKeys:t})&&J((0,G.mergeWithRemainder)({currentOrder:n,reorderedVisibleKeys:t}))},t[7]=q,t[8]=J,t[9]=Q):Q=t[9];const X=Q;let Y;t[10]!==s?(Y={projects:s},t[10]=s,t[11]=Y):Y=t[11];const Z=(0,R.useProjectIcons)(Y),ee=u&&0===p.length;let re;t[12]!==b||t[13]!==_||t[14]!==j||t[15]!==X||t[16]!==w||t[17]!==V||t[18]!==C||t[19]!==T||t[20]!==I||t[21]!==B||t[22]!==v||t[23]!==$||t[24]!==P||t[25]!==K||t[26]!==A||t[27]!==l||t[28]!==Z||t[29]!==p||t[30]!==y||t[31]!==ee||t[32]!==z||t[33]!==U||t[34]!==k||t[35]!==n?(re="project"!==j?(0,je.jsx)(kr,{workspaceGroups:n,pinnedGroups:l,workspaceEntriesByKey:k,projectIconByProjectViewKey:Z,shortcutIndexByWorkspaceKey:y,onWorkspacePress:P,hostBadgeByServerId:V,supportsPinningByServerId:U,onToggleWorkspacePin:$,onPinnedWorkspaceReorder:X,listHeaderComponent:T,sidebarFilterEmpty:ee,parentGestureRef:K,dragGestureHostActive:_}):(0,je.jsx)(br,{projects:p,pinnedGroups:l,workspaceEntriesByKey:k,projectIconByProjectViewKey:Z,collapsedProjectKeys:b,onToggleProjectCollapsed:v,shortcutIndexByWorkspaceKey:y,onWorkspacePress:P,onAddProject:I,onImportSession:B,listFooterComponent:C,listHeaderComponent:T,sidebarFilterEmpty:ee,hasActiveProjectFilter:w,parentGestureRef:K,dragGestureHostActive:_,pathname:A,hostBadgeByServerId:V,supportsMultiplicityByServerId:z,supportsPinningByServerId:U,onToggleWorkspacePin:$,onPinnedWorkspaceReorder:X}),t[12]=b,t[13]=_,t[14]=j,t[15]=X,t[16]=w,t[17]=V,t[18]=C,t[19]=T,t[20]=I,t[21]=B,t[22]=v,t[23]=$,t[24]=P,t[25]=K,t[26]=A,t[27]=l,t[28]=Z,t[29]=p,t[30]=y,t[31]=ee,t[32]=z,t[33]=U,t[34]=k,t[35]=n,t[36]=re):re=t[36];return re};var o=r(d[0]),t=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]);r(d[6]),r(d[7]),r(d[8]),r(d[9]);var p=r(d[10]),u=r(d[11]),h=r(d[12]),w=r(d[13]),k=r(d[14]),b=r(d[15]),v=r(d[16]),y=r(d[17]),j=r(d[18]),S=r(d[19]),P=r(d[20]),I=r(d[21]),f=r(d[22]),x=r(d[23]),B=r(d[24]),W=r(d[25]),C=r(d[26]),R=r(d[27]),T=r(d[28]),D=r(d[29]),H=r(d[30]),K=r(d[31]),_=r(d[32]),A=r(d[33]),N=r(d[34]),M=r(d[35]),E=r(d[36]),L=r(d[37]),V=r(d[38]),G=r(d[39]),O=r(d[40]),F=r(d[41]),z=r(d[42]),U=r(d[43]),$=r(d[44]),q=r(d[45]),J=r(d[46]),Q=r(d[47]),X=r(d[48]),Y=r(d[49]),Z=r(d[50]),ee=r(d[51]),re=r(d[52]),oe=r(d[53]),te=r(d[54]),ne=r(d[55]),se=r(d[56]),ae=r(d[57]),ie=r(d[58]),ce=r(d[59]),de=r(d[60]),le=r(d[61]),pe=r(d[62]),ue=r(d[63]),ge=r(d[64]),he=r(d[65]),we=r(d[66]),ke=r(d[67]),be=r(d[68]),ve=r(d[69]),me=r(d[70]),ye=r(d[71]),je=r(d[72]);const Se=o=>o.workspaceKey,Pe=o=>o.viewKey,Ie=(0,k.withUnistyles)(S.ExternalLink),fe=(0,k.withUnistyles)(l.LoadingSpinner),xe=(0,k.withUnistyles)(S.Plus),Be=(0,k.withUnistyles)(S.MoreVertical),We=(0,k.withUnistyles)(S.Trash2),Ce=(0,k.withUnistyles)(S.Settings),Re=o=>({color:o.colors.foreground}),Te=o=>({color:o.colors.foregroundMuted});function De(o){return o.enabled&&o.selection?.serverId===o.serverId&&o.selection.workspaceId===o.workspaceId}function He(o){return o.enabled&&o.project.workspaces.some(t=>t.serverId===o.selection?.serverId&&t.workspaceId===o.selection.workspaceId)}function Ke(o){return o?`${o.serverId}:${o.workspaceId}`:""}function _e(o,t){return o?{serverId:t.serverId,workspaceId:t.workspaceId}:null}function Ae(o){o.stopPropagation()}function Ne({hovered:o=!1}){return[Cr.projectKebabButton,o&&Cr.projectKebabButtonHovered]}function Me({isDragging:o,isPressed:t,selected:n,isHovered:s}){return[Cr.workspaceRow,s&&Cr.workspaceRowHovered,n&&Cr.sidebarRowSelected,o&&Cr.workspaceRowDragging,t&&Cr.workspaceRowPressed]}const Ee=k.StyleSheet.create(o=>({badge:{flexDirection:"row",alignItems:"center",gap:2},badgePressed:{opacity:.82},text:{fontSize:o.fontSize.sm,fontWeight:o.fontWeight.normal,lineHeight:14,color:o.colors.foregroundMuted,uni__dependencies:[0]},textHovered:{color:o.colors.foreground,uni__dependencies:[0]}}));function Le(o){const t=(0,c.c)(17),{projectViewKey:n,displayName:l,worktreeTarget:p,settingsTarget:u,projectPath:h,isHovered:w,isMobileBreakpoint:k,isProjectActive:b,onBeginWorkspaceSetup:v,onRemoveProject:y,removeProjectStatus:j}=o,S=w||he.isNative||k;let P,I,f;return t[0]!==S||t[1]!==l||t[2]!==b||t[3]!==v||t[4]!==n||t[5]!==p?(P=p?(0,je.jsx)(Je,{displayName:l,onPress:v,visible:S,showShortcutHint:b,testID:`sidebar-project-new-worktree-${n}`}):null,t[0]=S,t[1]=l,t[2]=b,t[3]=v,t[4]=n,t[5]=p,t[6]=P):P=t[6],t[7]!==S||t[8]!==y||t[9]!==h||t[10]!==n||t[11]!==j||t[12]!==u?(I=y?(0,je.jsx)(s.View,{style:!S&&Cr.projectKebabButtonHidden,pointerEvents:S?"auto":"none",children:(0,je.jsx)(ze,{projectViewKey:n,settingsTarget:u,projectPath:h,onRemoveProject:y,removeProjectStatus:j})}):null,t[7]=S,t[8]=y,t[9]=h,t[10]=n,t[11]=j,t[12]=u,t[13]=I):I=t[13],t[14]!==P||t[15]!==I?(f=(0,je.jsxs)(s.View,{style:Cr.projectTrailingActions,children:[P,I]}),t[14]=P,t[15]=I,t[16]=f):f=t[16],f}const Ve=(0,je.jsx)(We,{size:14,uniProps:Te}),Ge=(0,je.jsx)(Ce,{size:14,uniProps:Te}),Oe=(0,je.jsx)(Ie,{size:14,uniProps:Te});function Fe({hovered:o}){return(0,je.jsx)(Be,{size:14,uniProps:o?Re:Te})}function ze(o){const t=(0,c.c)(19),{projectViewKey:n,settingsTarget:s,projectPath:l,onRemoveProject:p,removeProjectStatus:h}=o,{t:w}=(0,u.useTranslation)();let k;t[0]!==w?(k=w("sidebar.project.actions.menu"),t[0]=w,t[1]=k):k=t[1];const b=`sidebar-project-kebab-${n}`;let v,y,j,S,P;return t[2]!==k||t[3]!==b?(v=(0,je.jsx)(N.DropdownMenuTrigger,{hitSlop:8,style:Ne,accessibilityRole:he.isWeb?void 0:"button",accessibilityLabel:k,testID:b,children:Fe}),t[2]=k,t[3]=b,t[4]=v):v=t[4],t[5]!==w?(y=w("sidebar.project.actions.menu"),t[5]=w,t[6]=y):y=t[6],t[7]!==p||t[8]!==l||t[9]!==n||t[10]!==h||t[11]!==s?(j=(0,je.jsx)($e,{surface:"dropdown",projectViewKey:n,settingsTarget:s,projectPath:l,onRemoveProject:p,removeProjectStatus:h}),t[7]=p,t[8]=l,t[9]=n,t[10]=h,t[11]=s,t[12]=j):j=t[12],t[13]!==y||t[14]!==j?(S=(0,je.jsx)(N.DropdownMenuContent,{align:"end",width:220,sheetTitle:y,children:j}),t[13]=y,t[14]=j,t[15]=S):S=t[15],t[16]!==v||t[17]!==S?(P=(0,je.jsxs)(N.DropdownMenu,{compactMode:"sheet",children:[v,S]}),t[16]=v,t[17]=S,t[18]=P):P=t[18],P}function Ue(o){const t=(0,c.c)(10);let n,s,l,p;if(t[0]!==o?(({surface:l,children:n,...s}=o),t[0]=o,t[1]=n,t[2]=s,t[3]=l):(n=t[1],s=t[2],l=t[3]),"context"===l){let o;return t[4]!==n||t[5]!==s?(o=(0,je.jsx)(A.ContextMenuItem,{...s,children:n}),t[4]=n,t[5]=s,t[6]=o):o=t[6],o}return t[7]!==n||t[8]!==s?(p=(0,je.jsx)(N.DropdownMenuItem,{...s,children:n}),t[7]=n,t[8]=s,t[9]=p):p=t[9],p}function $e(o){const t=(0,c.c)(40),{surface:n,projectViewKey:s,settingsTarget:l,projectPath:p,onRemoveProject:w,removeProjectStatus:k}=o,{t:b}=(0,u.useTranslation)(),v=(0,E.useToast)();let y;t[0]!==l?(y=()=>{l&&h.router.navigate((0,T.buildProjectSettingsRoute)(l.serverId,l.projectId))},t[0]=l,t[1]=y):y=t[1];const j=y;let S;t[2]!==p?(S=(0,he.getIsElectron)()&&p.trim().length>0,t[2]=p,t[3]=S):S=t[3];const P=S;let I;t[4]!==p||t[5]!==b||t[6]!==v?(I=()=>{const o=p.trim();0!==o.length&&(0,we.getDesktopHost)()?.window?.openNew?.({pendingOpenProjectPath:o})?.catch(o=>{console.warn("[sidebar] openNew failed",o),v.error(b("sidebar.project.actions.openNewWindowFailed"))})},t[4]=p,t[5]=b,t[6]=v,t[7]=I):I=t[7];const f=I;let x,B;t[8]!==j||t[9]!==s||t[10]!==l||t[11]!==n||t[12]!==b?(x=l?(0,je.jsx)(Ue,{surface:n,testID:`sidebar-project-menu-open-settings-${s}`,leading:Ge,onSelect:j,children:b("sidebar.project.actions.openSettings")}):null,t[8]=j,t[9]=s,t[10]=l,t[11]=n,t[12]=b,t[13]=x):x=t[13],t[14]!==P||t[15]!==f||t[16]!==s||t[17]!==n||t[18]!==b?(B=P?(0,je.jsx)(Ue,{surface:n,testID:`sidebar-project-menu-open-new-window-${s}`,leading:Oe,onSelect:f,children:b("sidebar.project.actions.openNewWindow")}):null,t[14]=P,t[15]=f,t[16]=s,t[17]=n,t[18]=b,t[19]=B):B=t[19];const W=`sidebar-project-menu-open-folder-${s}`;let C;t[20]!==p||t[21]!==n||t[22]!==W?(C=(0,je.jsx)(ke.OpenInFileManagerMenuItem,{surface:n,path:p,testID:W}),t[20]=p,t[21]=n,t[22]=W,t[23]=C):C=t[23];const R=`sidebar-project-menu-remove-${s}`;let D,H,K,_;return t[24]!==b?(D=b("sidebar.project.actions.removing"),t[24]=b,t[25]=D):D=t[25],t[26]!==b?(H=b("sidebar.project.actions.remove"),t[26]=b,t[27]=H):H=t[27],t[28]!==w||t[29]!==k||t[30]!==n||t[31]!==H||t[32]!==R||t[33]!==D?(K=(0,je.jsx)(Ue,{surface:n,testID:R,leading:Ve,status:k,pendingLabel:D,onSelect:w,children:H}),t[28]=w,t[29]=k,t[30]=n,t[31]=H,t[32]=R,t[33]=D,t[34]=K):K=t[34],t[35]!==K||t[36]!==x||t[37]!==B||t[38]!==C?(_=(0,je.jsxs)(je.Fragment,{children:[x,B,C,K]}),t[35]=K,t[36]=x,t[37]=B,t[38]=C,t[39]=_):_=t[39],_}function qe(o){const t=(0,c.c)(35),{workspace:s,backdrop:l,isHovered:p,isTouchPlatform:h,isCreating:w,showShortcutBadge:k,shortcutNumber:b,archiveLabel:v,archiveStatus:y,archivePendingLabel:j,archiveShortcutKeys:S,onArchive:P,onMarkAsRead:I,onMarkAsUnread:f,onCopyBranchName:x,onCopyPath:B,onRename:W,isPinned:C,onTogglePin:R}=o,T=s.workspaceDirectory??s.projectRootPath,{t:D}=(0,u.useTranslation)(),H=(0,re.useSidebarWorkspaceTrailing)(),K=k&&null!==b,_=Boolean(P);let A;t[0]!==p||t[1]!==h||t[2]!==K||t[3]!==_||t[4]!==H||t[5]!==s?(A=(0,X.resolveTrailingActionVisibility)({workspace:s,trailing:H,hasArchiveAction:_,isHovered:p,isTouchPlatform:h,showShortcut:K}),t[0]=p,t[1]=h,t[2]=K,t[3]=_,t[4]=H,t[5]=s,t[6]=A):A=t[6];const{trailingPresentation:N,showKebab:M,showScrim:E,renderSlot:L,reserveSlotWidth:V}=A,G=(0,Y.useOpenKebabMenuVisibility)(M);let O,F,U;return t[7]!==w||t[8]!==D?(O=w?(0,je.jsx)(n.Text,{style:Cr.workspaceCreatingText,children:D("sidebar.workspace.status.creating")}):null,t[7]=w,t[8]=D,t[9]=O):O=t[9],t[10]!==v||t[11]!==j||t[12]!==S||t[13]!==y||t[14]!==l||t[15]!==C||t[16]!==G||t[17]!==P||t[18]!==x||t[19]!==B||t[20]!==I||t[21]!==f||t[22]!==W||t[23]!==R||t[24]!==L||t[25]!==V||t[26]!==E||t[27]!==H||t[28]!==N||t[29]!==s||t[30]!==T?(F=L?(0,je.jsxs)(X.SidebarWorkspaceTrailingActionSlot,{reserveWidth:V,children:[(0,je.jsx)(X.SidebarWorkspaceTrailingActionBase,{presentation:N,children:(0,je.jsx)(re.SidebarWorkspaceTrailingContent,{workspace:s,trailing:H})}),(0,je.jsx)(X.SidebarWorkspaceTrailingActionOverlay,{visible:G.showKebab,scrimBackdrop:E?l:void 0,children:P?(0,je.jsx)(z.SidebarWorkspaceMenu,{...G.menuProps,workspaceKey:s.workspaceKey,serverId:s.serverId,workspaceId:s.workspaceId,workspaceLabels:s.labels,onCopyPath:B,onCopyBranchName:x,onRename:W,onMarkAsRead:I,onMarkAsUnread:f,onArchive:P,archiveLabel:v,archiveStatus:y,archivePendingLabel:j,archiveShortcutKeys:S,isPinned:C,onTogglePin:R,openInFileManagerPath:T}):null})]}):null,t[10]=v,t[11]=j,t[12]=S,t[13]=y,t[14]=l,t[15]=C,t[16]=G,t[17]=P,t[18]=x,t[19]=B,t[20]=I,t[21]=f,t[22]=W,t[23]=R,t[24]=L,t[25]=V,t[26]=E,t[27]=H,t[28]=N,t[29]=s,t[30]=T,t[31]=F):F=t[31],t[32]!==O||t[33]!==F?(U=(0,je.jsxs)(je.Fragment,{children:[O,F]}),t[32]=O,t[33]=F,t[34]=U):U=t[34],U}function Je(o){const l=(0,c.c)(36),{displayName:p,onPress:h,visible:w,loading:k,testID:b,showShortcutHint:v}=o,y=void 0!==k&&k,j=void 0!==v&&v,{t:S}=(0,u.useTranslation)(),P=(0,ae.useShortcutKeys)("new-worktree");let I;l[0]!==y||l[1]!==w?(I=o=>{const{hovered:t,pressed:n}=o;return[Cr.projectIconActionButton,!w&&Cr.projectIconActionButtonHidden,(Boolean(t)||n)&&!y&&Cr.projectIconActionButtonHovered]},l[0]=y,l[1]=w,l[2]=I):I=l[2];const f=I;let x;l[3]!==h?(x=o=>{o.stopPropagation(),h()},l[3]=h,l[4]=x):x=l[4];const B=x,W=w?"auto":"none",C=!w;let R,T,D,H,K,_,A,N,M,E;return l[5]!==p||l[6]!==S?(R=S("sidebar.workspace.actions.createWorkspaceFor",{projectName:p}),l[5]=p,l[6]=S,l[7]=R):R=l[7],l[8]!==y?(T=o=>{const{hovered:t,pressed:n}=o;return y?(0,je.jsx)(fe,{size:14,uniProps:Te}):(0,je.jsx)(xe,{size:15,uniProps:t||n?Re:Te})},l[8]=y,l[9]=T):T=l[9],l[10]!==B||l[11]!==y||l[12]!==f||l[13]!==R||l[14]!==T||l[15]!==b?(D=(0,je.jsx)(t.Pressable,{style:f,onPress:B,disabled:y,accessibilityRole:he.isWeb?void 0:"button",accessibilityLabel:R,testID:b,children:T}),l[10]=B,l[11]=y,l[12]=f,l[13]=R,l[14]=T,l[15]=b,l[16]=D):D=l[16],l[17]!==C||l[18]!==D?(H=(0,je.jsx)(ne.TooltipTrigger,{asChild:!0,disabled:C,children:D}),l[17]=C,l[18]=D,l[19]=H):H=l[19],l[20]!==S?(K=S("sidebar.workspace.actions.newWorkspace"),l[20]=S,l[21]=K):K=l[21],l[22]!==K?(_=(0,je.jsx)(n.Text,{style:Cr.projectActionTooltipText,children:K}),l[22]=K,l[23]=_):_=l[23],l[24]!==P||l[25]!==j?(A=j&&P?(0,je.jsx)(se.Shortcut,{chord:P,style:Cr.projectActionTooltipShortcut}):null,l[24]=P,l[25]=j,l[26]=A):A=l[26],l[27]!==_||l[28]!==A?(N=(0,je.jsx)(ne.TooltipContent,{side:"bottom",align:"center",offset:8,children:(0,je.jsxs)(s.View,{style:Cr.projectActionTooltipRow,children:[_,A]})}),l[27]=_,l[28]=A,l[29]=N):N=l[29],l[30]!==H||l[31]!==N?(M=(0,je.jsxs)(ne.Tooltip,{delayDuration:0,enabledOnDesktop:!0,enabledOnMobile:!1,children:[H,N]}),l[30]=H,l[31]=N,l[32]=M):M=l[32],l[33]!==M||l[34]!==W?(E=(0,je.jsx)(s.View,{style:Cr.projectTrailingControlSlot,pointerEvents:W,children:M}),l[33]=M,l[34]=W,l[35]=E):E=l[35],E}function Qe(o){const l=(0,c.c)(16),{project:p,displayName:w,worktreeTarget:k,onWorkspacePress:b}=o,{t:v}=(0,u.useTranslation)();let y;l[0]!==w||l[1]!==b||l[2]!==k.iconWorkingDir||l[3]!==k.projectId||l[4]!==k.serverId?(y=()=>{b?.(),h.router.navigate((0,T.buildNewWorkspaceRoute)({serverId:k.serverId,sourceDirectory:k.iconWorkingDir,displayName:w,projectId:k.projectId}))},l[0]=w,l[1]=b,l[2]=k.iconWorkingDir,l[3]=k.projectId,l[4]=k.serverId,l[5]=y):y=l[5];const j=y,P=Xe;let I;l[6]!==w||l[7]!==v?(I=v("sidebar.workspace.actions.createWorkspaceFor",{projectName:w}),l[6]=w,l[7]=v,l[8]=I):I=l[8];const f=`sidebar-project-new-workspace-row-${p.viewKey}`;let x,B;return l[9]!==v?(x=o=>{const{hovered:t,pressed:c}=o;return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(s.View,{style:Cr.newWorkspaceGhostIconSlot,children:(0,je.jsx)(oe.DensityIcon,{icon:S.Plus,size:"sm",color:t||c?"foreground":"foregroundMuted"})}),(0,je.jsx)(n.Text,{style:t||c?Cr.newWorkspaceGhostTextHovered:Cr.newWorkspaceGhostText,numberOfLines:1,children:v("sidebar.workspace.actions.newWorkspace")})]})},l[9]=v,l[10]=x):x=l[10],l[11]!==j||l[12]!==I||l[13]!==f||l[14]!==x?(B=(0,je.jsx)(t.Pressable,{accessibilityRole:he.isWeb?void 0:"button",accessibilityLabel:I,onPress:j,style:P,testID:f,children:x}),l[11]=j,l[12]=I,l[13]=f,l[14]=x,l[15]=B):B=l[15],B}function Xe(o){const{hovered:t,pressed:n}=o,s=void 0!==t&&t;return[Cr.newWorkspaceGhostRow,s&&!n&&Cr.newWorkspaceGhostRowHovered,n&&Cr.newWorkspaceGhostRowPressed]}function Ye({project:o,displayName:t,iconDataUri:c,statusBucket:l,selected:u=!1,chevron:w,onPress:k,worktreeTarget:b,isProjectActive:y=!1,onWorkspacePress:j,onWorktreeCreated:S,shortcutNumber:P=null,showShortcutBadge:I=!1,drag:f,isDragging:x,isArchiving:B=!1,menuController:W,onRemoveProject:R,removeProjectStatus:D="idle",dragHandleProps:H}){const[K,_]=(0,p.useState)(!1),[N,E]=(0,p.useState)(!1),[L,V]=(0,p.useState)(!1),G=(0,C.useIsCompactFormFactor)(),O=(0,be.useLocalDaemonServerId)(),F=(0,de.resolveSidebarProjectLocalPath)(o,O),z=o.hosts[0]??null,$=(0,p.useCallback)(()=>{b&&(j?.(),h.router.navigate((0,T.buildNewWorkspaceRoute)({serverId:b.serverId,sourceDirectory:b.iconWorkingDir,displayName:t,projectId:b.projectId})))},[t,j,b]),q=(0,U.useLongPressDragInteraction)({drag:f,menuController:W}),{role:J,tabIndex:Q,"aria-roledescription":Y,...Z}=H?.attributes??{},ee=(0,p.useCallback)(()=>{q.didLongPressRef.current?q.didLongPressRef.current=!1:k()},[q.didLongPressRef,k]),re=(0,p.useCallback)(()=>{L||_(!0)},[L]),oe=(0,p.useCallback)(()=>_(!1),[]),ne=(0,p.useCallback)(o=>{V(o),o&&_(!1)},[]),se=(0,p.useCallback)(o=>{E(!0),q.handlePressIn(o)},[q]),ae=(0,p.useCallback)(()=>{E(!1),q.handlePressOut()},[q]),ie=(0,p.useCallback)(({pressed:o})=>[Cr.projectRow,x&&Cr.projectRowDragging,u&&Cr.sidebarRowSelected,K&&Cr.projectRowHovered,o&&Cr.projectRowPressed],[x,u,K]),ce=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(s.View,{style:Cr.projectRowLeft,children:[(0,je.jsx)(M.ProjectLeadingVisual,{displayName:t,iconDataUri:c,statusBucket:l,projectViewKey:o.viewKey,backdrop:(0,v.getSidebarRowBackdrop)({isDragging:x,isPressed:N,selected:u,isHovered:K}),chevron:w,showChevron:K&&null!==w,isArchiving:B}),(0,je.jsx)(s.View,{style:Cr.projectTitleGroup,children:(0,je.jsx)(n.Text,{style:Cr.projectTitle,numberOfLines:1,children:t})})]}),(0,je.jsx)(Le,{projectViewKey:o.viewKey,displayName:t,worktreeTarget:b,settingsTarget:z,projectPath:F,isHovered:K,isMobileBreakpoint:G,isProjectActive:y,onBeginWorkspaceSetup:$,onRemoveProject:R,removeProjectStatus:D}),I&&null!==P?(0,je.jsx)(s.View,{style:Cr.projectShortcutBadgeOverlay,pointerEvents:"none",children:(0,je.jsx)(X.SidebarWorkspaceShortcutBadge,{number:P})}):null]});return R?(0,je.jsxs)(A.ContextMenu,{open:L,onOpenChange:ne,children:[(0,je.jsx)(s.View,{...Z,...H?.listeners,ref:H?.setActivatorNodeRef,onPointerEnter:re,onPointerLeave:oe,children:(0,je.jsx)(A.ContextMenuTrigger,{enabledOnMobile:!1,accessibilityRole:"button",style:ie,highlightStyle:Cr.projectRowPressed,onPressIn:se,onTouchMove:q.handleTouchMove,onPressOut:ae,onPress:ee,testID:`sidebar-project-row-${o.viewKey}`,children:ce})}),(0,je.jsx)(A.ContextMenuContent,{align:"start",width:220,testID:`sidebar-project-context-menu-${o.viewKey}`,children:(0,je.jsx)($e,{surface:"context",projectViewKey:o.viewKey,settingsTarget:z,projectPath:F,onRemoveProject:R,removeProjectStatus:D})})]}):(0,je.jsx)(s.View,{...Z,...H?.listeners,ref:H?.setActivatorNodeRef,onPointerEnter:re,onPointerLeave:oe,children:(0,je.jsx)(te.PressHighlight,{accessibilityRole:"button",style:ie,highlightStyle:Cr.projectRowPressed,onPressIn:se,onTouchMove:q.handleTouchMove,onPressOut:ae,onPress:ee,testID:`sidebar-project-row-${o.viewKey}`,children:ce})})}function Ze({workspace:o,hostBadge:t,leadingProjectName:n,leadingProjectIconDataUri:c,selected:l,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,isArchiving:y,isCreating:j=!1,dragHandleProps:S,menuController:P,archiveLabel:I,archiveStatus:f="idle",archivePendingLabel:x,onArchive:B,onCopyBranchName:W,onCopyPath:R,onRename:T,onMarkAsRead:D,onMarkAsUnread:H,archiveShortcutKeys:K,isPinned:_,onTogglePin:A,reserveIdleStatusIndicatorSpace:N=!0}){const M=(0,C.useIsCompactFormFactor)(),[E,L]=(0,p.useState)(!1),V=he.isNative||M,G=(0,U.useLongPressDragInteraction)({drag:k,menuController:P}),{role:O,tabIndex:F,"aria-roledescription":$,...q}=S?.attributes??{},J=(0,p.useCallback)(()=>{G.didLongPressRef.current?G.didLongPressRef.current=!1:w()},[G.didLongPressRef,w]),Q=(0,p.useCallback)(o=>{L(!0),G.handlePressIn(o)},[G]),Y=(0,p.useCallback)(()=>{L(!1),G.handlePressOut()},[G]),Z=(0,p.useMemo)(()=>({selected:l}),[l]);return(0,je.jsx)(X.SidebarWorkspaceRowFrame,{workspace:o,isDragging:b,children:({isHovered:p,contextMenuOpen:w,onContextMenuOpenChange:k,hoverHandlers:P})=>{const C=!V?(0,ee.selectWorkspaceServiceSummary)(o.scripts):null,M=Me({isDragging:b,isPressed:E,selected:l,isHovered:p}),L=(0,v.getSidebarRowBackdrop)({isDragging:b,isPressed:E,selected:l,isHovered:p});return(0,je.jsx)(s.View,{...q,...S?.listeners,ref:S?.setActivatorNodeRef,style:Cr.workspaceRowContainer,...P,children:(0,je.jsx)(z.SidebarWorkspaceContextMenu,{contextMenuOpen:w,onContextMenuOpenChange:k,workspace:o,leadingProjectName:n,hostBadgeLabel:t?.label,workspaceKey:o.workspaceKey,onCopyPath:R,onCopyBranchName:W,onRename:T,onMarkAsRead:D,onMarkAsUnread:H,onArchive:B,archiveLabel:I,archiveStatus:f,archivePendingLabel:x,archiveShortcutKeys:K,isPinned:_,onTogglePin:A,openInFileManagerPath:o.workspaceDirectory,disabled:y,"aria-selected":l,accessibilityRole:"button",accessibilityState:Z,style:M,highlightStyle:Cr.workspaceRowPressed,onPressIn:Q,onTouchMove:G.handleTouchMove,onPressOut:Y,onPress:J,testID:`sidebar-workspace-row-${o.workspaceKey}`,children:(0,je.jsx)(X.SidebarWorkspaceRowContent,{workspace:o,hostBadge:t,leadingProjectName:n,leadingProjectIconDataUri:c,serviceSummary:C,backdrop:L,isHovered:p,isLoading:y||j,isCreating:j,shortcutNumber:u,showShortcutBadge:h,reserveIdleStatusIndicatorSpace:N,children:(0,je.jsx)(qe,{workspace:o,backdrop:L,isHovered:p,isTouchPlatform:V,isCreating:j,showShortcutBadge:h,shortcutNumber:u,archiveLabel:I,archiveStatus:f,archivePendingLabel:x,archiveShortcutKeys:K,onArchive:B,onCopyBranchName:W,onCopyPath:R,onRename:T,onMarkAsRead:D,onMarkAsUnread:H,isPinned:_,onTogglePin:A})})})})}})}function er(o){const t=(0,c.c)(79),{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:h,selected:w,shortcutNumber:k,showShortcutBadge:b,onPress:v,drag:S,isDragging:P,dragHandleProps:I,canCopyBranchName:f,canPin:x,onToggleWorkspacePin:B,reserveIdleStatusIndicatorSpace:W,isCreating:C}=o,R=void 0===W||W,T=void 0!==C&&C,{t:D}=(0,u.useTranslation)(),H=(0,E.useToast)(),[K,_]=(0,p.useState)(!1),[A,N]=(0,p.useState)(!1),M=null!==n.archivingAt||K;let L;t[0]!==w||t[1]!==n?(L=()=>{(0,le.redirectIfArchivingActiveWorkspace)({serverId:n.serverId,workspaceId:n.workspaceId,activeWorkspaceSelection:_e(w,n)})},t[0]=w,t[1]=n,t[2]=L):L=t[2];const G=L,O=n.serverId,F=n.workspaceId,z=n.workspaceKind,U=n.name;let $,q;t[3]!==n?($=(0,V.toWorktreeArchiveRisk)(n),t[3]=n,t[4]=$):$=t[4],t[5]!==G||t[6]!==$||t[7]!==n.name||t[8]!==n.serverId||t[9]!==n.workspaceId||t[10]!==n.workspaceKind?(q={serverId:O,workspaceId:F,workspaceKind:z,name:U,...$,onArchiveStarted:G,onSetHiding:_},t[5]=G,t[6]=$,t[7]=n.name,t[8]=n.serverId,t[9]=n.workspaceId,t[10]=n.workspaceKind,t[11]=q):q=t[11];const J=(0,ue.useWorkspaceArchive)(q);let Q;t[12]!==J||t[13]!==M?(Q=()=>{M||J.archive()},t[12]=J,t[13]=M,t[14]=Q):Q=t[14];const X=Q,Y=(0,j.useWorkspaceClipboardActions)();let Z;t[15]!==Y||t[16]!==n?(Z=()=>{Y.copyPath(n)},t[15]=Y,t[16]=n,t[17]=Z):Z=t[17];const ee=Z;let re;t[18]!==Y||t[19]!==n?(re=()=>{Y.copyBranchName(n)},t[18]=Y,t[19]=n,t[20]=re):re=t[20];const oe=re;let te;t[21]===Symbol.for("react.memo_cache_sentinel")?(te=()=>{N(!0)},t[21]=te):te=t[21];const ne=te;let se;t[22]===Symbol.for("react.memo_cache_sentinel")?(se=()=>{N(!1)},t[22]=se):se=t[22];const de=se,pe=null!=n.pinnedAt;let ge;t[23]!==B||t[24]!==n?(ge=()=>{B(n)},t[23]=B,t[24]=n,t[25]=ge):ge=t[25];const he=x?ge:void 0,we=(0,ae.useShortcutKeys)("archive-workspace");let ke;t[26]!==n.serverId||t[27]!==n.workspaceId?(ke={serverId:n.serverId,workspaceId:n.workspaceId},t[26]=n.serverId,t[27]=n.workspaceId,t[28]=ke):ke=t[28];const{hasClearableAttention:be,canMarkUnread:ve,clearAttention:me,markUnread:ye}=(0,ce.useWorkspaceReadState)(ke);let Se;t[29]!==me||t[30]!==H?(Se=()=>{me().catch(o=>{H.error(o instanceof Error?o.message:"Failed to mark workspace as read")})},t[29]=me,t[30]=H,t[31]=Se):Se=t[31];const Pe=Se;let Ie;t[32]!==ye||t[33]!==H?(Ie=()=>{ye().catch(o=>{H.error(o instanceof Error?o.message:"Failed to mark workspace as unread")})},t[32]=ye,t[33]=H,t[34]=Ie):Ie=t[34];const fe=Ie,xe=`workspace-archive-${n.workspaceKey}`;let Be;t[35]===Symbol.for("react.memo_cache_sentinel")?(Be=["workspace.archive"],t[35]=Be):Be=t[35];const We=w&&!M;let Ce,Re,Te;t[36]!==X?(Ce=()=>(X(),!0),t[36]=X,t[37]=Ce):Ce=t[37],t[38]!==xe||t[39]!==We||t[40]!==Ce?(Re={handlerId:xe,actions:Be,enabled:We,priority:0,handle:Ce},t[38]=xe,t[39]=We,t[40]=Ce,t[41]=Re):Re=t[41],(0,ie.useKeyboardActionHandler)(Re),t[42]!==D?(Te=D("sidebar.workspace.actions.archive"),t[42]=D,t[43]=Te):Te=t[43];const De=M?"pending":"idle";let He;t[44]!==D?(He=D("sidebar.workspace.actions.archiving"),t[44]=D,t[45]=He):He=t[45];const Ke=f?oe:void 0,Ae=be?Pe:void 0,Ne=ve?fe:void 0,Me=w?we:null;let Ee;t[46]!==S||t[47]!==I||t[48]!==X||t[49]!==ee||t[50]!==s||t[51]!==M||t[52]!==T||t[53]!==P||t[54]!==pe||t[55]!==h||t[56]!==l||t[57]!==v||t[58]!==he||t[59]!==R||t[60]!==w||t[61]!==k||t[62]!==b||t[63]!==Te||t[64]!==De||t[65]!==He||t[66]!==Ke||t[67]!==Ae||t[68]!==Ne||t[69]!==Me||t[70]!==n?(Ee=(0,je.jsx)(Ze,{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:h,selected:w,shortcutNumber:k,showShortcutBadge:b,onPress:v,drag:S,isDragging:P,isArchiving:M,isCreating:T,dragHandleProps:I,menuController:null,archiveLabel:Te,archiveStatus:De,archivePendingLabel:He,onArchive:X,onCopyBranchName:Ke,onCopyPath:ee,onRename:ne,onMarkAsRead:Ae,onMarkAsUnread:Ne,archiveShortcutKeys:Me,isPinned:pe,onTogglePin:he,reserveIdleStatusIndicatorSpace:R}),t[46]=S,t[47]=I,t[48]=X,t[49]=ee,t[50]=s,t[51]=M,t[52]=T,t[53]=P,t[54]=pe,t[55]=h,t[56]=l,t[57]=v,t[58]=he,t[59]=R,t[60]=w,t[61]=k,t[62]=b,t[63]=Te,t[64]=De,t[65]=He,t[66]=Ke,t[67]=Ae,t[68]=Ne,t[69]=Me,t[70]=n,t[71]=Ee):Ee=t[71];const Le=`sidebar-workspace-rename-modal-${n.workspaceKey}`;let Ve,Ge;return t[72]!==A||t[73]!==Le||t[74]!==n?(Ve=(0,je.jsx)(y.WorkspaceRenameModal,{visible:A,workspace:n,onClose:de,testID:Le}),t[72]=A,t[73]=Le,t[74]=n,t[75]=Ve):Ve=t[75],t[76]!==Ee||t[77]!==Ve?(Ge=(0,je.jsxs)(je.Fragment,{children:[Ee,Ve]}),t[76]=Ee,t[77]=Ve,t[78]=Ge):Ge=t[78],Ge}function rr(o){const t=(0,c.c)(25),{workspace:n,workspaceEntry:s,hostBadge:l,leadingProjectName:p,leadingProjectIconDataUri:u,shortcutNumber:h,showShortcutBadge:k,canCopyBranchName:b,canPin:v,onToggleWorkspacePin:y,reserveIdleStatusIndicatorSpace:j,isCreating:S,selectionEnabled:P,activeWorkspaceSelection:I,drag:f,isDragging:x,dragHandleProps:B}=o,W=void 0===j||j,C=void 0!==S&&S,R=void 0!==x&&x;let T;t[0]!==n.serverId||t[1]!==n.workspaceId?(T=()=>{n.serverId&&(0,w.navigateToWorkspace)({serverId:n.serverId,workspaceId:n.workspaceId})},t[0]=n.serverId,t[1]=n.workspaceId,t[2]=T):T=t[2];const D=T;let H,K;return t[3]!==I||t[4]!==P||t[5]!==n.serverId||t[6]!==n.workspaceId?(H=De({selection:I,serverId:n.serverId,workspaceId:n.workspaceId,enabled:P}),t[3]=I,t[4]=P,t[5]=n.serverId,t[6]=n.workspaceId,t[7]=H):H=t[7],t[8]!==b||t[9]!==v||t[10]!==f||t[11]!==B||t[12]!==D||t[13]!==l||t[14]!==C||t[15]!==R||t[16]!==u||t[17]!==p||t[18]!==y||t[19]!==W||t[20]!==h||t[21]!==k||t[22]!==H||t[23]!==s?(K=(0,je.jsx)(nr,{workspaceEntry:s,hostBadge:l,leadingProjectName:p,leadingProjectIconDataUri:u,shortcutNumber:h,showShortcutBadge:k,canCopyBranchName:b,canPin:v,onToggleWorkspacePin:y,reserveIdleStatusIndicatorSpace:W,isCreating:C,selected:H,onPress:D,drag:f,isDragging:R,dragHandleProps:B}),t[8]=b,t[9]=v,t[10]=f,t[11]=B,t[12]=D,t[13]=l,t[14]=C,t[15]=R,t[16]=u,t[17]=p,t[18]=y,t[19]=W,t[20]=h,t[21]=k,t[22]=H,t[23]=s,t[24]=K):K=t[24],K}function or(o,t){const n=De({selection:o.activeWorkspaceSelection,serverId:o.workspace.serverId,workspaceId:o.workspace.workspaceId,enabled:o.selectionEnabled}),s=De({selection:t.activeWorkspaceSelection,serverId:t.workspace.serverId,workspaceId:t.workspace.workspaceId,enabled:t.selectionEnabled});return o.workspace===t.workspace&&o.workspaceEntry===t.workspaceEntry&&o.hostBadge===t.hostBadge&&o.leadingProjectName===t.leadingProjectName&&o.leadingProjectIconDataUri===t.leadingProjectIconDataUri&&(!t.showShortcutBadge||o.shortcutNumber===t.shortcutNumber)&&o.showShortcutBadge===t.showShortcutBadge&&o.canCopyBranchName===t.canCopyBranchName&&o.canPin===t.canPin&&o.onToggleWorkspacePin===t.onToggleWorkspacePin&&o.reserveIdleStatusIndicatorSpace===t.reserveIdleStatusIndicatorSpace&&o.isCreating===t.isCreating&&o.onWorkspacePress===t.onWorkspacePress&&o.drag===t.drag&&o.isDragging===t.isDragging&&o.dragHandleProps===t.dragHandleProps&&n===s}const tr=(0,p.memo)(rr,or);function nr(o){const t=(0,c.c)(17),{workspaceEntry:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:p,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,dragHandleProps:v,canCopyBranchName:y,canPin:j,onToggleWorkspacePin:S,reserveIdleStatusIndicatorSpace:P,isCreating:I,selected:f}=o,x=void 0===P||P,B=void 0!==I&&I;if(!n)return null;let W;return t[0]!==y||t[1]!==j||t[2]!==k||t[3]!==v||t[4]!==s||t[5]!==B||t[6]!==b||t[7]!==p||t[8]!==l||t[9]!==w||t[10]!==S||t[11]!==x||t[12]!==f||t[13]!==u||t[14]!==h||t[15]!==n?(W=(0,je.jsx)(er,{workspace:n,hostBadge:s,leadingProjectName:l,leadingProjectIconDataUri:p,selected:f,shortcutNumber:u,showShortcutBadge:h,onPress:w,drag:k,isDragging:b,dragHandleProps:v,canCopyBranchName:y,canPin:j,onToggleWorkspacePin:S,reserveIdleStatusIndicatorSpace:x,isCreating:B}),t[0]=y,t[1]=j,t[2]=k,t[3]=v,t[4]=s,t[5]=B,t[6]=b,t[7]=p,t[8]=l,t[9]=w,t[10]=S,t[11]=x,t[12]=f,t[13]=u,t[14]=h,t[15]=n,t[16]=W):W=t[16],W}function sr(o){const t=(0,c.c)(86),{project:n,workspaceEntriesByKey:l,collapsed:h,displayName:w,iconDataUri:k,selectionEnabled:b,showShortcutBadges:v,shortcutIndexByWorkspaceKey:y,onToggleCollapsed:j,onWorkspacePress:S,parentGestureRef:P,onWorkspaceReorder:x,useNestable:B,dragGestureHostActive:W,manualSort:C,onWorktreeCreated:R,drag:T,isDragging:H,dragHandleProps:K,creatingWorkspaceIds:_,activeWorkspaceSelection:A,hostBadgeByServerId:N,supportsMultiplicityByServerId:M,supportsPinningByServerId:L,onToggleWorkspacePin:V}=o;let G;t[0]!==l?(G=(0,J.createWorkspaceVisibilityPolicy)(l),t[0]=l,t[1]=G):G=t[1];const F=G,{visibleItems:z,expanded:U,canToggle:$,toggleExpanded:X}=(0,Q.useLimitedSidebarGroup)(n.workspaces,F),Y=A?.serverId??null,Z="online"===(0,f.useHostRuntimeConnectionStatus)(Y??"")?Y:null;let ee;t[2]!==h||t[3]!==Z||t[4]!==n||t[5]!==M?(ee=(0,de.buildSidebarProjectRowModel)({project:n,collapsed:h,supportsMultiplicityByServerId:M,preferredServerId:Z}),t[2]=h,t[3]=Z,t[4]=n,t[5]=M,t[6]=ee):ee=t[6];const re=ee;let oe;t[7]!==h||t[8]!==n.workspaces?(oe={workspaces:n.workspaces,enabled:h},t[7]=h,t[8]=n.workspaces,t[9]=oe):oe=t[9];const te=(0,D.useSidebarProjectStatusBucket)(oe);let ne;t[10]!==A||t[11]!==n||t[12]!==b?(ne=He({selection:A,project:n,enabled:b}),t[10]=A,t[11]=n,t[12]=b,t[13]=ne):ne=t[13];const se=ne;let ae;t[14]!==A||t[15]!==_||t[16]!==N||t[17]!==V||t[18]!==S||t[19]!==n.projectKind||t[20]!==b||t[21]!==y||t[22]!==v||t[23]!==L||t[24]!==l?(ae=(o,t)=>(0,je.jsx)(tr,{workspace:o,workspaceEntry:l.get(o.workspaceKey)??null,hostBadge:N.get(o.serverId)??null,shortcutNumber:y.get(o.workspaceKey)??null,showShortcutBadge:v,canCopyBranchName:"git"===n.projectKind,canPin:!0===L.get(o.serverId),onToggleWorkspacePin:V,isCreating:_.has(o.workspaceId),selectionEnabled:b,activeWorkspaceSelection:A,onWorkspacePress:S,drag:t?.drag,isDragging:t?.isDragging,dragHandleProps:t?.dragHandleProps},o.workspaceKey),t[14]=A,t[15]=_,t[16]=N,t[17]=V,t[18]=S,t[19]=n.projectKind,t[20]=b,t[21]=y,t[22]=v,t[23]=L,t[24]=l,t[25]=ae):ae=t[25];const ie=ae;let ce;t[26]!==ie?(ce=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return ie(t,{drag:n,isDragging:s,dragHandleProps:c})},t[26]=ie,t[27]=ce):ce=t[27];const le=ce;let pe;t[28]!==x||t[29]!==n.viewKey?(pe=o=>{x(n.viewKey,o)},t[28]=x,t[29]=n.viewKey,t[30]=pe):pe=t[30];const ue=pe,he=(0,E.useToast)(),{t:we}=(0,u.useTranslation)(),[ke,be]=(0,p.useState)(!1);let ve;t[31]!==w||t[32]!==ke||t[33]!==n.hosts||t[34]!==we||t[35]!==he?(ve=()=>{ke||(async()=>{if(!await(0,O.confirmDialog)({title:we("sidebar.project.confirmations.removeTitle"),message:we("sidebar.project.confirmations.removeMessage",{projectName:w}),confirmLabel:we("sidebar.project.confirmations.removeConfirm"),cancelLabel:we("sidebar.project.confirmations.cancel"),destructive:!0}))return;be(!0);const o=(0,ge.getCurrentProjectRemoveReadiness)({hosts:n.hosts});if("needs_host_update"===o.kind)return he.error(we("sidebar.project.toasts.updateHostToRemove")),void be(!1);(0,ge.removeProjectFromHosts)({targets:o.targets,getClient:ar}).then(o=>"host_disconnected"===o.kind?(he.error(we("sidebar.project.toasts.hostDisconnected")),null):("failed"===o.kind&&he.error(we("sidebar.project.toasts.removeFailed")),null)).catch(o=>{he.error(o instanceof Error?o.message:we("sidebar.project.toasts.removeFailed"))}).finally(()=>{be(!1)})})()},t[31]=w,t[32]=ke,t[33]=n.hosts,t[34]=we,t[35]=he,t[36]=ve):ve=t[36];const me=ve;let ye;t[37]!==j||t[38]!==n.viewKey?(ye=()=>{j(n.viewKey)},t[37]=j,t[38]=n.viewKey,t[39]=ye):ye=t[39];const Pe=ye;let Ie=null;if(!h)if(n.workspaces.length>0){let o,c,l;t[40]!==A||t[41]!==W||t[42]!==ue||t[43]!==C||t[44]!==P||t[45]!==n.viewKey||t[46]!==le||t[47]!==ie||t[48]!==B||t[49]!==z?(o=C?(0,je.jsx)(I.DraggableList,{testID:`sidebar-workspace-list-${n.viewKey}`,data:z,keyExtractor:Se,renderItem:le,onDragEnd:ue,extraData:Ke(A),scrollEnabled:!1,useDragHandle:!0,nestable:B,simultaneousGestureRef:P,gestureHostPresented:W,containerStyle:Cr.workspaceListContainer}):(0,je.jsx)(s.View,{testID:`sidebar-workspace-list-${n.viewKey}`,style:Cr.workspaceListContainer,children:z.map(o=>ie(o))}),t[40]=A,t[41]=W,t[42]=ue,t[43]=C,t[44]=P,t[45]=n.viewKey,t[46]=le,t[47]=ie,t[48]=B,t[49]=z,t[50]=o):o=t[50],t[51]!==$||t[52]!==n.viewKey||t[53]!==X||t[54]!==U?(c=$?(0,je.jsx)(q.SidebarGroupToggleRow,{expanded:U,onPress:X,testID:`sidebar-project-show-more-${n.viewKey}`}):null,t[51]=$,t[52]=n.viewKey,t[53]=X,t[54]=U,t[55]=c):c=t[55],t[56]!==o||t[57]!==c?(l=(0,je.jsxs)(je.Fragment,{children:[o,c]}),t[56]=o,t[57]=c,t[58]=l):l=t[58],Ie=l}else if("new_workspace"===re.trailingAction.kind){let o;t[59]!==w||t[60]!==S||t[61]!==n||t[62]!==re.trailingAction.target?(o=(0,je.jsx)(Qe,{project:n,displayName:w,worktreeTarget:re.trailingAction.target,onWorkspacePress:S}),t[59]=w,t[60]=S,t[61]=n,t[62]=re.trailingAction.target,t[63]=o):o=t[63],Ie=o}const fe=Ie?Cr.projectBlockExpanded:void 0,xe="new_workspace"===re.trailingAction.kind?re.trailingAction.target:null,Be=ke?"pending":"idle";let We,Ce;return t[64]!==se||t[65]!==te||t[66]!==w||t[67]!==T||t[68]!==K||t[69]!==me||t[70]!==Pe||t[71]!==k||t[72]!==H||t[73]!==ke||t[74]!==S||t[75]!==R||t[76]!==n||t[77]!==re.chevron||t[78]!==xe||t[79]!==Be?(We=(0,je.jsx)(Ye,{project:n,displayName:w,iconDataUri:k,statusBucket:te,selected:!1,chevron:re.chevron,onPress:Pe,worktreeTarget:xe,isProjectActive:se,onWorkspacePress:S,onWorktreeCreated:R,drag:T,isDragging:H,isArchiving:ke,menuController:null,onRemoveProject:me,removeProjectStatus:Be,dragHandleProps:K}),t[64]=se,t[65]=te,t[66]=w,t[67]=T,t[68]=K,t[69]=me,t[70]=Pe,t[71]=k,t[72]=H,t[73]=ke,t[74]=S,t[75]=R,t[76]=n,t[77]=re.chevron,t[78]=xe,t[79]=Be,t[80]=We):We=t[80],t[81]!==w||t[82]!==Ie||t[83]!==fe||t[84]!==We?(Ce=(0,je.jsxs)(s.View,{role:"group",accessibilityLabel:w,style:fe,children:[We,Ie]}),t[81]=w,t[82]=Ie,t[83]=fe,t[84]=We,t[85]=Ce):Ce=t[85],Ce}function ar(o){return(0,f.getHostRuntimeStore)().getClient(o)}function ir(o,t){return o.project===t.project&&dr(o,t)&&o.collapsed===t.collapsed&&o.displayName===t.displayName&&o.iconDataUri===t.iconDataUri&&o.selectionEnabled===t.selectionEnabled&&o.showShortcutBadges===t.showShortcutBadges&&cr(o,t)&&o.hostBadgeByServerId===t.hostBadgeByServerId&&o.supportsMultiplicityByServerId===t.supportsMultiplicityByServerId&&o.supportsPinningByServerId===t.supportsPinningByServerId&&o.onToggleWorkspacePin===t.onToggleWorkspacePin&&o.onToggleCollapsed===t.onToggleCollapsed&&o.onWorkspacePress===t.onWorkspacePress&&o.parentGestureRef===t.parentGestureRef&&o.onWorkspaceReorder===t.onWorkspaceReorder&&o.useNestable===t.useNestable&&o.dragGestureHostActive===t.dragGestureHostActive&&o.manualSort===t.manualSort&&o.onWorktreeCreated===t.onWorktreeCreated&&o.drag===t.drag&&o.isDragging===t.isDragging&&o.dragHandleProps===t.dragHandleProps&&o.creatingWorkspaceIds===t.creatingWorkspaceIds&&o.activeWorkspaceSelection?.serverId===t.activeWorkspaceSelection?.serverId&&lr(o,t)}function cr(o,t){return!t.showShortcutBadges||o.shortcutIndexByWorkspaceKey===t.shortcutIndexByWorkspaceKey||t.project.workspaces.every(({workspaceKey:n})=>o.shortcutIndexByWorkspaceKey.get(n)===t.shortcutIndexByWorkspaceKey.get(n))}function dr(o,t){return o.workspaceEntriesByKey===t.workspaceEntriesByKey||t.project.workspaces.every(({workspaceKey:n})=>o.workspaceEntriesByKey.get(n)===t.workspaceEntriesByKey.get(n))}function lr(o,t){const n=He({selection:o.activeWorkspaceSelection,project:o.project,enabled:o.selectionEnabled});return n===He({selection:t.activeWorkspaceSelection,project:t.project,enabled:t.selectionEnabled})&&(!n||Ke(o.activeWorkspaceSelection)===Ke(t.activeWorkspaceSelection))}const pr=(0,p.memo)(sr,ir);function ur(o){return o.workspaceKey}function gr(o){return o.setPinnedWorkspaceOrder}function hr(o){return o.getPinnedWorkspaceOrder}function wr(o){return o.serverId}function kr(o){const t=(0,c.c)(20),{workspaceGroups:n,pinnedGroups:s,workspaceEntriesByKey:l,projectIconByProjectViewKey:p,shortcutIndexByWorkspaceKey:u,onWorkspacePress:h,hostBadgeByServerId:w,supportsPinningByServerId:k,onToggleWorkspacePin:b,onPinnedWorkspaceReorder:v,listHeaderComponent:y,sidebarFilterEmpty:j,parentGestureRef:S,dragGestureHostActive:P}=o,I=(0,_.useShowShortcutBadges)();let f;if(t[0]!==s.pinnedChats||t[1]!==l){let o;t[3]!==l?(o=o=>{const t=l.get(o.workspaceKey);return t?[t]:[]},t[3]=l,t[4]=o):o=t[4],f=s.pinnedChats.flatMap(o),t[0]=s.pinnedChats,t[1]=l,t[2]=f}else f=t[2];const x=f;let B;return t[5]!==u||t[6]!==P||t[7]!==w||t[8]!==y||t[9]!==v||t[10]!==b||t[11]!==h||t[12]!==S||t[13]!==x||t[14]!==p||t[15]!==I||t[16]!==j||t[17]!==k||t[18]!==n?(B=(0,je.jsx)(F.SidebarStatusWorkspaceList,{groups:n,pinnedWorkspaces:x,projectIconByProjectViewKey:p,shortcutIndexByWorkspaceKey:u,showShortcutBadges:I,onWorkspacePress:h,hostBadgeByServerId:w,supportsPinningByServerId:k,onToggleWorkspacePin:b,onPinnedWorkspaceReorder:v,listHeaderComponent:y,sidebarFilterEmpty:j,parentGestureRef:S,dragGestureHostActive:P}),t[5]=u,t[6]=P,t[7]=w,t[8]=y,t[9]=v,t[10]=b,t[11]=h,t[12]=S,t[13]=x,t[14]=p,t[15]=I,t[16]=j,t[17]=k,t[18]=n,t[19]=B):B=t[19],B}function br(t){const n=(0,c.c)(86),{projects:l,pinnedGroups:h,workspaceEntriesByKey:k,projectIconByProjectViewKey:b,collapsedProjectKeys:v,onToggleProjectCollapsed:y,shortcutIndexByWorkspaceKey:j,onWorkspacePress:S,onAddProject:f,onImportSession:x,listFooterComponent:W,listHeaderComponent:C,sidebarFilterEmpty:R,hasActiveProjectFilter:D,parentGestureRef:A,dragGestureHostActive:N,pathname:M,hostBadgeByServerId:E,supportsMultiplicityByServerId:L,supportsPinningByServerId:V,onToggleWorkspacePin:O,onPinnedWorkspaceReorder:F}=t,{t:z}=(0,u.useTranslation)(),U=(0,K.useSidebarViewStore)(Wr),[J,X]=(0,p.useState)(Br);let Y;n[0]===Symbol.for("react.memo_cache_sentinel")?(Y=new Map,n[0]=Y):Y=n[0];const ee=(0,p.useRef)(Y),re=(0,_.useShowShortcutBadges)(),oe=(0,B.useSidebarCollapsedSectionsStore)(xr),te=(0,B.useSidebarCollapsedSectionsStore)(fr),ne=(0,K.useSidebarViewStore)(Ir),se=(0,H.useSidebarOrderStore)(Pr),ae=(0,H.useSidebarOrderStore)(Sr),ie=(0,H.useSidebarOrderStore)(jr),ce=(0,H.useSidebarOrderStore)(yr);let de;n[1]!==M?(de=M&&(0,T.parseHostWorkspaceRouteFromPathname)(M),n[1]=M,n[2]=de):de=n[2];const le=Boolean(de),pe=(0,w.useActiveWorkspaceSelection)(),{pinnedChats:ue,unpinnedProjects:ge}=h,{visibleItems:we,expanded:ke,canToggle:be,toggleExpanded:ve}=(0,Q.useLimitedSidebarGroup)(ue);let me;n[3]!==A?(me=A?{simultaneousHandlers:A}:void 0,n[3]=A,n[4]=me):me=n[4];const ye=me;let Ie,fe,xe,Be,We;n[5]===Symbol.for("react.memo_cache_sentinel")?(Ie=()=>{const o=ee.current;return()=>{for(const t of o.values())clearTimeout(t);o.clear()}},fe=[],n[5]=Ie,n[6]=fe):(Ie=n[5],fe=n[6]),(0,p.useEffect)(Ie,fe),n[7]!==J||n[8]!==l?(xe=()=>{if(0===J.size)return;const o=new Set;for(const t of l)for(const n of t.workspaces)o.add(n.workspaceId);const t=Array.from(J).filter(t=>!o.has(t));if(0!==t.length){for(const o of t){const t=ee.current.get(o);t&&(clearTimeout(t),ee.current.delete(o))}X(o=>{const n=new Set(o);for(const o of t)n.delete(o);return n})}},Be=[J,l],n[7]=J,n[8]=l,n[9]=xe,n[10]=Be):(xe=n[9],Be=n[10]),(0,p.useEffect)(xe,Be),n[11]!==ie||n[12]!==ce?(We=o=>{const t=o.map(mr),n=ie();(0,G.hasVisibleOrderChanged)({currentOrder:n,reorderedVisibleKeys:t})&&ce((0,G.mergeWithRemainder)({currentOrder:n,reorderedVisibleKeys:t}))},n[11]=ie,n[12]=ce,n[13]=We):We=n[13];const Ce=We;let Re;n[14]!==se||n[15]!==ae?(Re=(o,t)=>{const n=t.map(vr),s=se(o);(0,G.hasVisibleOrderChanged)({currentOrder:s,reorderedVisibleKeys:n})&&ae(o,(0,G.mergeWithRemainder)({currentOrder:s,reorderedVisibleKeys:n}))},n[14]=se,n[15]=ae,n[16]=Re):Re=n[16];const Te=Re;let De;n[17]===Symbol.for("react.memo_cache_sentinel")?(De=o=>{X(t=>{const n=new Set(t);return n.add(o),n});const t=ee.current.get(o);t&&clearTimeout(t),ee.current.set(o,setTimeout(()=>{ee.current.delete(o),X(t=>{if(!t.has(o))return t;const n=new Set(t);return n.delete(o),n})},3e3))},n[17]=De):De=n[17];const He=De;let _e;n[18]!==pe||n[19]!==v||n[20]!==J||n[21]!==N||n[22]!==Te||n[23]!==E||n[24]!==ne||n[25]!==y||n[26]!==O||n[27]!==S||n[28]!==A||n[29]!==b||n[30]!==le||n[31]!==j||n[32]!==re||n[33]!==L||n[34]!==V||n[35]!==k?(_e=(o,t)=>(0,je.jsx)(pr,{project:o,workspaceEntriesByKey:k,collapsed:v.has(o.viewKey),displayName:o.projectName,iconDataUri:b.get(o.viewKey)??null,selectionEnabled:le,showShortcutBadges:re,shortcutIndexByWorkspaceKey:j,onToggleCollapsed:y,onWorkspacePress:S,manualSort:ne,parentGestureRef:A,onWorkspaceReorder:Te,useNestable:he.isNative,dragGestureHostActive:N,onWorktreeCreated:He,drag:t.drag,isDragging:t.isDragging,dragHandleProps:t.dragHandleProps,creatingWorkspaceIds:J,activeWorkspaceSelection:pe,hostBadgeByServerId:E,supportsMultiplicityByServerId:L,supportsPinningByServerId:V,onToggleWorkspacePin:O},o.viewKey),n[18]=pe,n[19]=v,n[20]=J,n[21]=N,n[22]=Te,n[23]=E,n[24]=ne,n[25]=y,n[26]=O,n[27]=S,n[28]=A,n[29]=b,n[30]=le,n[31]=j,n[32]=re,n[33]=L,n[34]=V,n[35]=k,n[36]=_e):_e=n[36];const Ae=_e;let Ne;n[37]!==Ae?(Ne=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return Ae(t,{drag:n,isDragging:s,dragHandleProps:c})},n[37]=Ae,n[38]=Ne):Ne=n[38];const Me=Ne;let Ee;n[39]!==pe||n[40]!==J||n[41]!==E||n[42]!==O||n[43]!==S||n[44]!==b||n[45]!==le||n[46]!==j||n[47]!==re||n[48]!==V||n[49]!==k?(Ee=o=>{const{item:t,drag:n,isActive:s,dragHandleProps:c}=o;return(0,je.jsx)(tr,{workspace:t,workspaceEntry:k.get(t.workspaceKey)??null,hostBadge:E.get(t.serverId)??null,leadingProjectName:t.projectName,leadingProjectIconDataUri:b.get(t.projectViewKey)??null,shortcutNumber:j.get(t.workspaceKey)??null,showShortcutBadge:re,canCopyBranchName:"git"===t.projectKind,canPin:!0===V.get(t.serverId),onToggleWorkspacePin:O,isCreating:J.has(t.workspaceId),selectionEnabled:le,activeWorkspaceSelection:pe,onWorkspacePress:S,drag:n,isDragging:s,dragHandleProps:c})},n[39]=pe,n[40]=J,n[41]=E,n[42]=O,n[43]=S,n[44]=b,n[45]=le,n[46]=j,n[47]=re,n[48]=V,n[49]=k,n[50]=Ee):Ee=n[50];const Le=Ee;let Ve;n[51]!==pe||n[52]!==N||n[53]!==Ce||n[54]!==f||n[55]!==x||n[56]!==A||n[57]!==l.length||n[58]!==Me||n[59]!==ge?(Ve=0===l.length?(0,je.jsx)(Z.SidebarProjectEmptyState,{onAddProject:f,onImportSession:x}):(0,je.jsx)(I.DraggableList,{testID:"sidebar-project-list",data:ge,keyExtractor:Pe,renderItem:Me,onDragEnd:Ce,extraData:Ke(pe),scrollEnabled:!1,useDragHandle:!0,nestable:he.isNative,simultaneousGestureRef:A,gestureHostPresented:N,containerStyle:Cr.projectListContainer}),n[51]=pe,n[52]=N,n[53]=Ce,n[54]=f,n[55]=x,n[56]=A,n[57]=l.length,n[58]=Me,n[59]=ge,n[60]=Ve):Ve=n[60];const Ge=Ve;let Oe;n[61]!==pe||n[62]!==be||n[63]!==N||n[64]!==F||n[65]!==A||n[66]!==ue.length||n[67]!==ke||n[68]!==oe||n[69]!==Le||n[70]!==z||n[71]!==ve||n[72]!==te||n[73]!==we?(Oe=ue.length>0?(0,je.jsxs)(s.View,{style:Cr.pinnedSection,testID:"sidebar-pinned-section",children:[(0,je.jsx)($.SidebarSectionHeader,{title:z("sidebar.pinned.title"),collapsed:oe,onToggle:te,testID:"sidebar-pinned-section-header"}),oe?null:(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(I.DraggableList,{testID:"sidebar-pinned-list",data:we,keyExtractor:Se,renderItem:Le,onDragEnd:F,extraData:Ke(pe),scrollEnabled:!1,useDragHandle:!0,nestable:he.isNative,simultaneousGestureRef:A,gestureHostPresented:N,containerStyle:Cr.workspaceListContainer}),be?(0,je.jsx)(q.SidebarGroupToggleRow,{expanded:ke,onPress:ve,testID:"sidebar-pinned-show-more"}):null]})]}):null,n[61]=pe,n[62]=be,n[63]=N,n[64]=F,n[65]=A,n[66]=ue.length,n[67]=ke,n[68]=oe,n[69]=Le,n[70]=z,n[71]=ve,n[72]=te,n[73]=we,n[74]=Oe):Oe=n[74];const Fe=ge.length>0||U||D||R?C:null;let ze,Ue;n[75]!==Ge||n[76]!==R?(ze=R?(0,je.jsx)(Z.SidebarFilterEmptyState,{}):Ge,n[75]=Ge,n[76]=R,n[77]=ze):ze=n[77],n[78]!==W||n[79]!==Oe||n[80]!==Fe||n[81]!==ze?(Ue=(0,je.jsxs)(je.Fragment,{children:[Oe,Fe,ze,W]}),n[78]=W,n[79]=Oe,n[80]=Fe,n[81]=ze,n[82]=Ue):Ue=n[82];const $e=Ue;let qe;return n[83]!==$e||n[84]!==ye?(qe=(0,je.jsx)(s.View,{style:Cr.container,children:he.isNative?(0,je.jsx)(P.NestableScrollContainer,{...ye,style:Cr.list,contentContainerStyle:Cr.listContent,showsVerticalScrollIndicator:!1,testID:"sidebar-project-workspace-list-scroll",children:$e}):(0,je.jsx)(o.ScrollView,{style:Cr.list,contentContainerStyle:Cr.listContent,showsVerticalScrollIndicator:!1,testID:"sidebar-project-workspace-list-scroll",children:$e})}),n[83]=$e,n[84]=ye,n[85]=qe):qe=n[85],qe}function vr(o){return o.workspaceKey}function mr(o){return o.viewKey}function yr(o){return o.setProjectOrder}function jr(o){return o.getProjectOrder}function Sr(o){return o.setWorkspaceOrder}function Pr(o){return o.getWorkspaceOrder}function Ir(o){return"manual"===o.workspaceSort}function fr(o){return o.togglePinnedCollapsed}function xr(o){return o.collapsedPinned}function Br(){return new Set}function Wr(o){return o.hostFilters.length>0}const Cr=k.StyleSheet.create(o=>({container:{flex:1},list:{flex:1},listContent:{paddingHorizontal:o.spacing[2],paddingTop:2,paddingBottom:o.spacing[4],uni__dependencies:[0]},projectListContainer:{width:"100%"},pinnedSection:{marginBottom:o.spacing[1],uni__dependencies:[0]},projectBlockExpanded:{paddingBottom:o.spacing[3],uni__dependencies:[0]},workspaceListContainer:{},newWorkspaceGhostRow:{minHeight:b.density.rowHeight,marginBottom:o.spacing[.5],paddingVertical:o.spacing[2],paddingLeft:o.spacing[4],paddingRight:o.spacing[3],borderRadius:o.borderRadius.lg,flexDirection:"row",alignItems:"center",gap:o.spacing[2],userSelect:"none",uni__dependencies:[0]},newWorkspaceGhostRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},newWorkspaceGhostRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},newWorkspaceGhostIconSlot:{width:(0,b.densityIconBox)("md"),height:(0,b.densityIconBox)("md"),alignItems:"center",justifyContent:"center",flexShrink:0},newWorkspaceGhostText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.base,minWidth:0,flexShrink:1,uni__dependencies:[0]},newWorkspaceGhostTextHovered:{fontSize:o.fontSize.base,minWidth:0,flexShrink:1,color:o.colors.foreground,uni__dependencies:[0]},projectRow:{position:"relative",minHeight:b.density.rowHeight,paddingVertical:o.spacing[2],paddingHorizontal:o.spacing[2],borderRadius:o.borderRadius.lg,marginBottom:o.spacing[1],flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:o.spacing[2],userSelect:"none",uni__dependencies:[0]},projectRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},projectRowDragging:{backgroundColor:o.colors.surface2,borderWidth:1,borderColor:o.colors.border,transform:[{scale:1.02}],zIndex:3,...o.shadow.md,uni__dependencies:[0]},projectRowLeft:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flex:1,minWidth:0,uni__dependencies:[0]},projectTitleGroup:{flexDirection:"row",alignItems:"center",gap:o.spacing[1],flex:1,minWidth:0,uni__dependencies:[0]},projectTitle:{color:o.colors.foregroundMuted,fontSize:o.fontSize.base,fontWeight:"400",minWidth:0,flexShrink:1,uni__dependencies:[0]},projectActionButton:{flexDirection:"row",alignItems:"center",gap:o.spacing[1],paddingHorizontal:o.spacing[2],paddingVertical:o.spacing[1],borderRadius:o.borderRadius.md,flexShrink:0,uni__dependencies:[0]},projectActionButtonHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectActionButtonText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,uni__dependencies:[0]},projectIconActionButton:{width:24,height:24,borderRadius:o.borderRadius.md,alignItems:"center",justifyContent:"center",flexShrink:0,uni__dependencies:[0]},projectIconActionButtonHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},projectIconActionButtonHidden:{opacity:0},projectTrailingActions:{flexDirection:"row",alignItems:"center",gap:2,flexShrink:0,marginRight:-6},projectKebabButton:{width:24,height:24,borderRadius:o.borderRadius.md,alignItems:"center",justifyContent:"center",flexShrink:0,uni__dependencies:[0]},projectKebabButtonHidden:{opacity:0},projectKebabButtonHovered:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},projectTrailingControlSlot:{width:24,height:24,alignItems:"center",justifyContent:"center",flexShrink:0},projectActionTooltipRow:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],uni__dependencies:[0]},projectActionTooltipText:{color:o.colors.foreground,fontSize:o.fontSize.base,uni__dependencies:[0]},projectActionTooltipShortcut:{},projectShortcutBadgeOverlay:{position:"absolute",top:o.spacing[2]+1,right:o.spacing[2],uni__dependencies:[0]},workspaceRow:{minHeight:b.density.rowHeight,marginBottom:o.spacing[.5],paddingVertical:o.spacing[2],paddingLeft:o.spacing[2],paddingRight:o.spacing[3],borderRadius:o.borderRadius.lg,flexDirection:"column",alignItems:"stretch",justifyContent:"center",gap:o.spacing[1],userSelect:"none",uni__dependencies:[0]},workspaceRowMain:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:o.spacing[2],width:"100%",uni__dependencies:[0]},workspaceRowLeft:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flex:1,minWidth:0,uni__dependencies:[0]},workspaceRowRight:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],flexShrink:0,uni__dependencies:[0]},workspaceRowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},workspaceRowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},workspaceRowDragging:{backgroundColor:o.colors.surface2,borderWidth:1,borderColor:o.colors.border,transform:[{scale:1.02}],zIndex:3,...o.shadow.md,uni__dependencies:[0]},sidebarRowSelected:{backgroundColor:o.colors.surfaceSidebarSelected,uni__dependencies:[0]},workspaceRowContainer:{position:"relative"},workspaceStatusDot:{position:"relative",width:14,height:16,borderRadius:o.borderRadius.full,flexShrink:0,alignItems:"center",justifyContent:"center",uni__dependencies:[0]},workspaceArchivingOverlay:{...k.StyleSheet.absoluteFill,borderRadius:o.borderRadius.lg,backgroundColor:`${o.colors.surface0}cc`,alignItems:"center",justifyContent:"center",flexDirection:"row",gap:o.spacing[2],zIndex:1,uni__dependencies:[0]},workspaceArchivingText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,fontWeight:"600",uni__dependencies:[0]},workspaceBranchText:{color:o.colors.foreground,fontSize:o.fontSize.base,fontWeight:"400",lineHeight:20,opacity:.76,flex:1,minWidth:0,uni__dependencies:[0]},workspaceBranchTextCreating:{opacity:.92},workspaceBranchTextHovered:{opacity:1},workspacePrBadgeRow:{flexDirection:"row",alignItems:"center",gap:o.spacing[2],paddingLeft:14+o.spacing[2],uni__dependencies:[0]},workspaceCreatingText:{color:o.colors.foregroundMuted,fontSize:o.fontSize.sm,flexShrink:0,uni__dependencies:[0]},kebabButton:{padding:2,borderRadius:4,marginLeft:2},kebabButtonHovered:{backgroundColor:o.colors.surface2,uni__dependencies:[0]}}))},4558,[1272,1009,1008,1007,471,3351,187,275,436,223,35,965,474,3362,160,3944,4559,4560,4406,1350,4562,4585,3525,4595,4491,4209,1349,4322,4217,4487,4340,4370,4596,4597,3917,4599,1005,4303,4404,4601,3536,4602,4631,4638,4521,4635,4637,4636,4607,4630,4603,4608,4626,3943,4598,3926,3945,4503,4604,4605,4495,4400,3663,4403,4643,992,993,4632,4366,4644,4499,4611,320]);
17823
17823
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getSidebarRowBackdrop=function({isDragging:s=!1,isPressed:c=!1,selected:t=!1,isHovered:u=!1}){return s||c?"surface2":t?"surfaceSidebarSelected":u?"surfaceSidebarHover":"surfaceSidebar"}},4559,[]);
17824
17824
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.WorkspaceRenameModal=function(u){const p=(0,t.c)(19),{visible:w,workspace:b,onClose:k,testID:v}=u,{t:I}=(0,s.useTranslation)();let f;p[0]!==I||p[1]!==b.serverId||p[2]!==b.workspaceId?(f={mutationFn:async t=>{const s=(0,l.getHostRuntimeStore)().getClient(b.serverId);if(!s)throw new Error(I("sidebar.workspace.toasts.hostDisconnected"));await s.setWorkspaceTitle(b.workspaceId,0===t.length?null:t)}},p[0]=I,p[1]=b.serverId,p[2]=b.workspaceId,p[3]=f):f=p[3];const h=(0,n.useMutation)(f).mutateAsync;let y;p[4]!==h?(y=async t=>{await h(t.trim())},p[4]=h,p[5]=y):y=p[5];const M=y;let _;p[6]!==I?(_=I("sidebar.workspace.rename.title"),p[6]=I,p[7]=_):_=p[7];const C=b.title??b.name,D=b.name;let R,j;p[8]!==I?(R=I("sidebar.workspace.rename.submit"),p[8]=I,p[9]=R):R=p[9];p[10]!==M||p[11]!==k||p[12]!==_||p[13]!==C||p[14]!==R||p[15]!==v||p[16]!==w||p[17]!==b.name?(j=(0,c.jsx)(o.AdaptiveRenameModal,{visible:w,title:_,initialValue:C,placeholder:D,submitLabel:R,onClose:k,onSubmit:M,testID:v}),p[10]=M,p[11]=k,p[12]=_,p[13]=C,p[14]=R,p[15]=v,p[16]=w,p[17]=b.name,p[18]=j):j=p[18];return j};var t=r(d[0]);r(d[1]);var s=r(d[2]),n=r(d[3]),o=r(d[4]),l=r(d[5]),c=r(d[6])},4560,[471,35,965,912,4561,3525,320]);
17825
17825
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.AdaptiveRenameModal=function(l){const x=(0,o.c)(71),{visible:v,title:S,initialValue:y,placeholder:_,submitLabel:T,onClose:I,onSubmit:j,validate:z,maxLength:C,testID:D}=l,{t:B}=(0,c.useTranslation)(),[M,R]=(0,s.useState)(y),[E,V]=(0,s.useState)(null),[w,L]=(0,s.useState)(!1),$=(0,s.useRef)(null);let A,P,W,H,k;x[0]!==y||x[1]!==v?(A=()=>{v&&(R(y),V(null),L(!1))},P=[v,y],x[0]=y,x[1]=v,x[2]=A,x[3]=P):(A=x[2],P=x[3]);(0,s.useEffect)(A,P),x[4]!==y||x[5]!==v?(W=()=>{if(!v)return;const t=y.length,n=setTimeout(()=>{const n=$.current;n&&(n.focus(),f.isWeb&&n instanceof HTMLInputElement?n.setSelectionRange(0,t):!f.isWeb&&t>0&&n.replaceText(n.getText(),{start:0,end:t}))},50);return()=>clearTimeout(n)},H=[v,y],x[4]=y,x[5]=v,x[6]=W,x[7]=H):(W=x[6],H=x[7]);(0,s.useEffect)(W,H),x[8]!==B||x[9]!==z?(k=t=>t.trim()?z?z(t):null:B("common.errors.nameRequired"),x[8]=B,x[9]=z,x[10]=k):k=x[10];const q=k;let O;x[11]===Symbol.for("react.memo_cache_sentinel")?(O=t=>{R(t),V(null)},x[11]=O):O=x[11];const F=O;let G;x[12]!==q||x[13]!==M||x[14]!==y||x[15]!==w||x[16]!==I||x[17]!==j||x[18]!==B?(G=async()=>{if(w)return;const t=M;if(t===y)return;const n=q(t);if(n)V(n);else try{L(!0),await j(t),L(!1),I()}catch(t){const n=t;L(!1);const o=n instanceof Error&&n.message?n.message:B("common.errors.unableToSave");V(o)}},x[12]=q,x[13]=M,x[14]=y,x[15]=w,x[16]=I,x[17]=j,x[18]=B,x[19]=G):G=x[19];const J=G;let K;x[20]!==w||x[21]!==I?(K=()=>{w||I()},x[20]=w,x[21]=I,x[22]=K):K=x[22];const N=K;let Q;x[23]!==J?(Q=()=>{J()},x[23]=J,x[24]=Q):Q=x[24];const U=Q;let X;x[25]!==q||x[26]!==M||x[27]!==y||x[28]!==w?(X=w||M===y||null!==q(M),x[25]=q,x[26]=M,x[27]=y,x[28]=w,x[29]=X):X=x[29];const Y=X,Z=D?`${D}-input`:void 0,ee=D?`${D}-error`:void 0,te=D?`${D}-submit`:void 0,ne=D?`${D}-cancel`:void 0;let oe;x[30]!==S?(oe={title:S},x[30]=S,x[31]=oe):oe=x[31];const se=oe,ie=!w;let re,ae,le,ce,de,ue,me,pe,fe;x[32]!==U||x[33]!==y||x[34]!==Z||x[35]!==C||x[36]!==_||x[37]!==ie?(re=(0,b.jsx)(u.AdaptiveTextInput,{ref:$,initialValue:y,onChangeText:F,placeholder:_,autoCapitalize:"none",autoCorrect:!1,editable:ie,maxLength:C,onSubmitEditing:U,style:h.input,testID:Z}),x[32]=U,x[33]=y,x[34]=Z,x[35]=C,x[36]=_,x[37]=ie,x[38]=re):re=x[38];x[39]!==E||x[40]!==ee?(ae=E?(0,b.jsx)(n.Text,{style:h.errorText,testID:ee,children:E}):null,x[39]=E,x[40]=ee,x[41]=ae):ae=x[41];x[42]!==B?(le=B("common.actions.cancel"),x[42]=B,x[43]=le):le=x[43];x[44]!==ne||x[45]!==N||x[46]!==w||x[47]!==le?(ce=(0,b.jsx)(p.Button,{variant:"secondary",size:"sm",style:h.actionButton,onPress:N,disabled:w,testID:ne,children:le}),x[44]=ne,x[45]=N,x[46]=w,x[47]=le,x[48]=ce):ce=x[48];x[49]!==w||x[50]!==T||x[51]!==B?(de=w?B("renameModal.saving"):T??B("renameModal.rename"),x[49]=w,x[50]=T,x[51]=B,x[52]=de):de=x[52];x[53]!==U||x[54]!==Y||x[55]!==te||x[56]!==de?(ue=(0,b.jsx)(p.Button,{variant:"default",size:"sm",style:h.actionButton,onPress:U,disabled:Y,testID:te,children:de}),x[53]=U,x[54]=Y,x[55]=te,x[56]=de,x[57]=ue):ue=x[57];x[58]!==ce||x[59]!==ue?(me=(0,b.jsxs)(t.View,{style:h.actions,children:[ce,ue]}),x[58]=ce,x[59]=ue,x[60]=me):me=x[60];x[61]!==re||x[62]!==ae||x[63]!==me?(pe=(0,b.jsxs)(t.View,{style:h.body,children:[re,ae,me]}),x[61]=re,x[62]=ae,x[63]=me,x[64]=pe):pe=x[64];x[65]!==N||x[66]!==se||x[67]!==pe||x[68]!==D||x[69]!==v?(fe=(0,b.jsx)(u.AdaptiveModalSheet,{visible:v,onClose:N,header:se,testID:D,children:pe}),x[65]=N,x[66]=se,x[67]=pe,x[68]=D,x[69]=v,x[70]=fe):fe=x[70];return fe};var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]);r(d[4]),r(d[5]);var l=r(d[6]),c=r(d[7]),u=r(d[8]),p=r(d[9]),f=r(d[10]),b=r(d[11]);const h=l.StyleSheet.create(t=>({body:{gap:t.spacing[3],paddingBottom:t.spacing[2],uni__dependencies:[0]},input:{backgroundColor:t.colors.surface0,color:t.colors.foreground,paddingVertical:t.spacing[3],paddingHorizontal:t.spacing[3],borderRadius:t.borderRadius.md,borderWidth:1,borderColor:t.colors.border,fontSize:t.fontSize.base,uni__dependencies:[0]},errorText:{color:t.colors.palette.red[300],fontSize:t.fontSize.base,uni__dependencies:[0]},actions:{flexDirection:"row",alignItems:"center",gap:t.spacing[2],uni__dependencies:[0]},actionButton:{flex:1}}))},4561,[1007,1008,471,35,275,187,160,965,3669,3350,992,320]);
@@ -17898,7 +17898,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
17898
17898
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WORKSPACE_LABEL_PAGE_ID",{enumerable:!0,get:function(){return I}}),e.useWorkspaceLabelMenuPages=function(s){const n=(0,t.c)(20),{t:o}=(0,l.useTranslation)();let c;e:{if(!s){c=S;break e}let t,l,u,p,b,k,h;n[0]!==o?(t=o("workspaceLabels.title"),n[0]=o,n[1]=t):t=n[1],n[2]!==s.labels||n[3]!==s.serverId||n[4]!==s.workspaceId?(l=(0,w.jsx)(f,{serverId:s.serverId,workspaceId:s.workspaceId,assignedLabels:s.labels}),n[2]=s.labels,n[3]=s.serverId,n[4]=s.workspaceId,n[5]=l):l=n[5],n[6]!==t||n[7]!==l?(u={id:I,title:t,content:l},n[6]=t,n[7]=l,n[8]=u):u=n[8],n[9]!==o?(p=o("workspaceLabels.create"),n[9]=o,n[10]=p):p=n[10],n[11]!==s.serverId||n[12]!==s.workspaceId?(b=(0,w.jsx)(M,{serverId:s.serverId,workspaceId:s.workspaceId}),n[11]=s.serverId,n[12]=s.workspaceId,n[13]=b):b=n[13],n[14]!==p||n[15]!==b?(k={id:L,title:p,hoverIntent:!1,content:b},n[14]=p,n[15]=b,n[16]=k):k=n[16],n[17]!==u||n[18]!==k?(h=[u,k],n[17]=u,n[18]=k,n[19]=h):h=n[19],c=h}return c};var s=r(d[0]),t=r(d[1]),n=r(d[2]);r(d[3]);var o=r(d[4]),l=r(d[5]),c=r(d[6]),u=r(d[7]),p=r(d[8]),b=r(d[9]),k=r(d[10]),w=r(d[11]);const I="workspaceLabels",L="workspaceLabelsCreate",h=(0,o.withUnistyles)(c.Plus),j=(0,w.jsx)(h,{size:14,uniProps:s=>({color:s.colors.foregroundMuted})}),x=u.WORKSPACE_LABEL_COLORS[0],S=[];function f(s){const o=(0,t.c)(48),{serverId:c,workspaceId:u,assignedLabels:k}=s,{t:I}=(0,l.useTranslation)(),{labels:h,targetHost:x}=(0,b.useWorkspaceLabelProjection)(c);let S;o[0]!==c||o[1]!==u?(S=(0,b.createWorkspaceLabelPickerModel)({mutate:s=>{const{label:t,assigned:n}=s;return b.workspaceLabels.setAssignment({serverId:c,workspaceId:u,label:t,assigned:n})}}),o[0]=c,o[1]=u,o[2]=S):S=o[2];const f=S;let M;o[3]!==k||o[4]!==x?.status||o[5]!==h||o[6]!==f?(M=()=>{f.sync({labels:h,assigned:k,online:"online"===x?.status})},o[3]=k,o[4]=x?.status,o[5]=h,o[6]=f,o[7]=M):M=o[7];const _=x?.status;let C;o[8]!==k||o[9]!==h||o[10]!==f||o[11]!==_?(C=[k,_,h,f],o[8]=k,o[9]=h,o[10]=f,o[11]=_,o[12]=C):C=o[12],(0,n.useEffect)(M,C);const P=(0,n.useSyncExternalStore)(f.subscribe,f.snapshot,f.snapshot),W=!P.online;let y;o[13]!==x?.error||o[14]!==P.error||o[15]!==I?(y=P.error??(x?.error?I("workspaceLabels.errors.load"):null),o[13]=x?.error,o[14]=P.error,o[15]=I,o[16]=y):y=o[16];const D=y;let E;o[17]!==P.pendingNames?(E=new Set(P.pendingNames),o[17]=P.pendingNames,o[18]=E):E=o[18];const O=E;let T;o[19]!==f?(T=(s,t)=>{f.toggle(s,t)},o[19]=f,o[20]=T):T=o[20];const A=T;let H,N,R,z,F,B,K;if(o[21]!==W||o[22]!==O||o[23]!==P.rows||o[24]!==A){let s;o[26]!==W||o[27]!==O||o[28]!==A?(s=s=>(0,w.jsx)(v,{row:s,offline:W,pending:O.has(s.name.toLocaleLowerCase()),onToggle:A},s.name.toLocaleLowerCase()),o[26]=W,o[27]=O,o[28]=A,o[29]=s):s=o[29],H=P.rows.map(s),o[21]=W,o[22]=O,o[23]=P.rows,o[24]=A,o[25]=H}else H=o[25];return o[30]!==P.rows.length?(N=P.rows.length>0?(0,w.jsx)(p.MenuSeparator,{}):null,o[30]=P.rows.length,o[31]=N):N=o[31],o[32]!==I?(R=I("workspaceLabels.create"),o[32]=I,o[33]=R):R=o[33],o[34]!==W||o[35]!==R?(z=(0,w.jsx)(p.MenuSubTrigger,{id:L,leading:j,disabled:W,testID:"workspace-label-picker-create",children:R}),o[34]=W,o[35]=R,o[36]=z):z=o[36],o[37]!==D?(F=D?(0,w.jsx)(p.MenuHint,{testID:"workspace-label-picker-error",children:D}):null,o[37]=D,o[38]=F):F=o[38],o[39]!==x?.status||o[40]!==I?(B="unsupported"===x?.status?(0,w.jsx)(p.MenuHint,{children:I("workspaceLabels.updateHostUse")}):null,o[39]=x?.status,o[40]=I,o[41]=B):B=o[41],o[42]!==z||o[43]!==F||o[44]!==B||o[45]!==H||o[46]!==N?(K=(0,w.jsxs)(w.Fragment,{children:[H,N,z,F,B]}),o[42]=z,o[43]=F,o[44]=B,o[45]=H,o[46]=N,o[47]=K):K=o[47],K}function v(s){const n=(0,t.c)(15),{row:o,offline:l,pending:c,onToggle:u}=s;let b;n[0]!==o.color?(b=(0,w.jsx)(k.WorkspaceLabelDot,{color:o.color}),n[0]=o.color,n[1]=b):b=n[1];const I=b;let L;n[2]!==u||n[3]!==o.assigned||n[4]!==o.color||n[5]!==o.name?(L=()=>u({name:o.name,color:o.color},!o.assigned),n[2]=u,n[3]=o.assigned,n[4]=o.color,n[5]=o.name,n[6]=L):L=n[6];const h=L,j=c?"pending":"idle",x=`workspace-label-picker-row-${o.name}`;let S;return n[7]!==I||n[8]!==l||n[9]!==o.assigned||n[10]!==o.name||n[11]!==h||n[12]!==j||n[13]!==x?(S=(0,w.jsx)(p.MenuItem,{leading:I,selected:o.assigned,disabled:l,status:j,closeOnSelect:!1,onSelect:h,testID:x,children:o.name}),n[7]=I,n[8]=l,n[9]=o.assigned,n[10]=o.name,n[11]=h,n[12]=j,n[13]=x,n[14]=S):S=n[14],S}function M(o){const c=(0,t.c)(37),{serverId:I,workspaceId:L}=o,{t:h}=(0,l.useTranslation)(),j=(0,p.useMenuContext)("WorkspaceLabelCreatePage"),{targetHost:S}=(0,b.useWorkspaceLabelProjection)(I),[f,v]=(0,n.useState)(""),[M,C]=(0,n.useState)(x),[P,W]=(0,n.useState)(!1),[y,D]=(0,n.useState)(null),E="online"!==S?.status;let O;c[0]!==M||c[1]!==j||c[2]!==f||c[3]!==P||c[4]!==I||c[5]!==L?(O=()=>{const s=(0,u.normalizeWorkspaceLabelName)(f);s&&!P&&(W(!0),D(null),b.workspaceLabels.setAssignment({serverId:I,workspaceId:L,label:{name:s,color:M},assigned:!0}).then(()=>j.goBack()).catch(s=>D((0,b.workspaceLabelErrorMessage)(s))).finally(()=>W(!1)))},c[0]=M,c[1]=j,c[2]=f,c[3]=P,c[4]=I,c[5]=L,c[6]=O):O=c[6];const T=O;let A;c[7]!==h?(A=h("workspaceLabels.name"),c[7]=h,c[8]=A):A=c[8];const H=!E&&!P;let N;c[9]!==T||c[10]!==A||c[11]!==H?(N=(0,w.jsx)(p.MenuTextField,{onChangeText:v,placeholder:A,autoFocus:!0,editable:H,onSubmitEditing:T,testID:"workspace-label-picker-create-name"}),c[9]=T,c[10]=A,c[11]=H,c[12]=N):N=c[12];const R=E||P;let z,F,B;c[13]!==M||c[14]!==R?(z=(0,w.jsx)(s.View,{style:_.swatches,children:(0,w.jsx)(k.WorkspaceLabelSwatchRow,{value:M,onChange:C,disabled:R,testID:"workspace-label-picker-create-colors"})}),c[13]=M,c[14]=R,c[15]=z):z=c[15],c[16]===Symbol.for("react.memo_cache_sentinel")?(F=(0,w.jsx)(p.MenuSeparator,{}),c[16]=F):F=c[16],c[17]!==f||c[18]!==E?(B=E||!(0,u.normalizeWorkspaceLabelName)(f),c[17]=f,c[18]=E,c[19]=B):B=c[19];const K=P?"pending":"idle";let U,V,G,$,q;return c[20]!==h?(U=h("workspaceLabels.creating"),c[20]=h,c[21]=U):U=c[21],c[22]!==h?(V=h("workspaceLabels.createConfirm"),c[22]=h,c[23]=V):V=c[23],c[24]!==T||c[25]!==U||c[26]!==V||c[27]!==B||c[28]!==K?(G=(0,w.jsx)(p.MenuItem,{disabled:B,status:K,pendingLabel:U,closeOnSelect:!1,onSelect:T,testID:"workspace-label-picker-create-submit",children:V}),c[24]=T,c[25]=U,c[26]=V,c[27]=B,c[28]=K,c[29]=G):G=c[29],c[30]!==y?($=y?(0,w.jsx)(p.MenuHint,{testID:"workspace-label-picker-error",children:y}):null,c[30]=y,c[31]=$):$=c[31],c[32]!==G||c[33]!==$||c[34]!==N||c[35]!==z?(q=(0,w.jsxs)(w.Fragment,{children:[N,z,F,G,$]}),c[32]=G,c[33]=$,c[34]=N,c[35]=z,c[36]=q):q=c[36],q}const _=o.StyleSheet.create(s=>({swatches:{paddingHorizontal:(0,p.menuRowContentInset)(s),paddingVertical:s.spacing[2],uni__dependencies:[0]}}))},4634,[1007,471,35,187,160,965,1350,3438,3918,3612,4409,320]);
17899
17899
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.SidebarGroupToggleRow=function(u){const b=(0,t.c)(14),{expanded:v,onPress:S,indented:_,testID:y}=u,k=void 0!==_&&_,{t:I}=(0,c.useTranslation)(),j=v?"sidebar.workspace.actions.showLess":"sidebar.workspace.actions.showMore";let H;b[0]!==I||b[1]!==j?(H=I(j),b[0]=I,b[1]=j,b[2]=H):H=b[2];const P=H;let R;b[3]!==k?(R=o=>{const{hovered:n,pressed:s}=o,t=void 0!==n&&n;return[x.row,k&&h.sidebarWorkspaceRowStyles.rowIndented,t&&!s&&x.rowHovered,s&&x.rowPressed]},b[3]=k,b[4]=R):R=b[4];const z=R;let C,D;b[5]!==v||b[6]!==P?(C=s=>{const{hovered:t,pressed:c}=s;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o.View,{style:x.iconSlot,children:(0,w.jsx)(f.DensityIcon,{icon:v?l.ChevronUp:l.ChevronDown,size:"sm",color:t||c?"foreground":"foregroundMuted"})}),(0,w.jsx)(n.Text,{style:t||c?x.textHovered:x.text,numberOfLines:1,children:P})]})},b[5]=v,b[6]=P,b[7]=C):C=b[7];b[8]!==P||b[9]!==S||b[10]!==z||b[11]!==C||b[12]!==y?(D=(0,w.jsx)(s.Pressable,{accessibilityRole:p.isWeb?void 0:"button",accessibilityLabel:P,onPress:S,style:z,testID:y,children:C}),b[8]=P,b[9]=S,b[10]=z,b[11]=C,b[12]=y,b[13]=D):D=b[13];return D};var o=r(d[0]),n=r(d[1]),s=r(d[2]),t=r(d[3]);r(d[4]);var c=r(d[5]);r(d[6]),r(d[7]),r(d[8]);var l=r(d[9]),u=r(d[10]),p=r(d[11]),h=r(d[12]),f=r(d[13]),b=r(d[14]),w=r(d[15]);const x=u.StyleSheet.create(o=>({row:{minHeight:b.density.rowHeight,marginBottom:o.spacing[.5],paddingVertical:o.spacing[2],paddingLeft:o.spacing[2],paddingRight:o.spacing[3],borderRadius:o.borderRadius.lg,flexDirection:"row",alignItems:"center",gap:o.spacing[2],userSelect:"none",uni__dependencies:[0]},rowHovered:{backgroundColor:o.colors.surfaceSidebarHover,uni__dependencies:[0]},rowPressed:{backgroundColor:o.colors.surface2,uni__dependencies:[0]},iconSlot:{width:(0,b.densityIconBox)("md"),height:(0,b.densityIconBox)("md"),alignItems:"center",justifyContent:"center",flexShrink:0},text:{color:o.colors.foregroundMuted,fontSize:o.fontSize.base,minWidth:0,flexShrink:1,uni__dependencies:[0]},textHovered:{color:o.colors.foreground,fontSize:o.fontSize.base,minWidth:0,flexShrink:1,uni__dependencies:[0]}}))},4635,[1007,1008,1009,471,35,965,436,275,187,1350,160,992,4607,3943,3944,320]);
17900
17900
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useLimitedSidebarGroup=function(u,l){const p=(0,t.c)(8),_=void 0===l?c:l,[b,f]=(0,n.useState)(!1);let S;p[0]!==b||p[1]!==u||p[2]!==_?(S=(0,o.selectSidebarGroupVisibility)(u,b,_),p[0]=b,p[1]=u,p[2]=_,p[3]=S):S=p[3];const v=S;let y;p[4]===Symbol.for("react.memo_cache_sentinel")?(y=()=>f(s),p[4]=y):y=p[4];const x=y;let G;p[5]!==b||p[6]!==v?(G={...v,expanded:b,toggleExpanded:x},p[5]=b,p[6]=v,p[7]=G):G=p[7];return G};var t=r(d[0]),n=r(d[1]),o=r(d[2]);const c={kind:"pinned"};function s(t){return!t}},4636,[471,35,4637]);
17901
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.selectSidebarGroupVisibility=function(t,n,s){const c="pinned"===s.kind?20:7,l=t.filter((t,n)=>n<c||"workspaces"===s.kind&&"done"!==s.getStatusBucket(t));return{visibleItems:n?t.slice():l,canToggle:l.length<t.length}}},4637,[]);
17901
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createWorkspaceVisibilityPolicy=function(t){return{kind:"workspaces",getStatusBucket:n=>t.get(n.workspaceKey)?.statusBucket??"done"}},e.selectSidebarGroupVisibility=function(t,n,s){const c="pinned"===s.kind?20:7,o=t.filter((t,n)=>n<c||"workspaces"===s.kind&&"done"!==s.getStatusBucket(t));return{visibleItems:n?t.slice():o,canToggle:o.length<t.length}}},4637,[]);
17902
17902
  __d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useLongPressDragInteraction=function(d){const y=(0,e.c)(18),{drag:h,menuController:_}=d,v=(0,t.useRef)(!1),p=(0,t.useRef)(!1),b=(0,t.useRef)(!1),x=(0,t.useRef)(!1),R=(0,t.useRef)(!1),P=(0,t.useRef)(!1),S=(0,t.useRef)(null),E=(0,t.useRef)(null),M=(0,t.useRef)(null),O=(0,t.useRef)(null);let A;y[0]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{M.current&&(clearTimeout(M.current),M.current=null),O.current&&(clearTimeout(O.current),O.current=null)},y[0]=A):A=y[0];const T=A;let j;y[1]!==_?(j=()=>{_&&S.current&&(_.setAnchorRect({x:S.current.x,y:S.current.y,width:0,height:0}),_.setOpen(!0),P.current=!0,v.current=!0)},y[1]=_,y[2]=j):j=y[2];const L=j,q=f;let w,D,I;y[3]===Symbol.for("react.memo_cache_sentinel")?(w=()=>()=>{T()},D=[T],y[3]=w,y[4]=D):(w=y[3],D=y[4]);(0,t.useEffect)(w,D),y[5]!==h||y[6]!==_||y[7]!==L?(I=()=>{T(),!c.isWeb&&h&&(M.current=setTimeout(()=>{if(R.current||x.current||P.current)return;const e=S.current,t=E.current??e;if(!e||!t)return;const c=t.x-e.x,u=t.y-e.y;Math.sqrt(c*c+u*u)>4||(p.current=!0,b.current=!0,v.current=!0,n.selectionAsync().catch(l),h())},180),_&&(O.current=setTimeout(()=>{if(R.current||x.current||P.current)return;const e=S.current,t=E.current??e;if(!e||!t)return;const c=t.x-e.x,u=t.y-e.y;Math.sqrt(c*c+u*u)>6||(n.selectionAsync().catch(s),L())},450)))},y[5]=h,y[6]=_,y[7]=L,y[8]=I):I=y[8];const X=I;let Y;y[9]===Symbol.for("react.memo_cache_sentinel")?(Y=e=>{b.current&&(x.current=!0,v.current=!0,T(),n.impactAsync(n.ImpactFeedbackStyle.Medium).catch(o))},y[9]=Y):Y=y[9];const k=Y;let z;y[10]===Symbol.for("react.memo_cache_sentinel")?(z=e=>{R.current=!0,v.current=!0,T()},y[10]=z):z=y[10];const C=z;let F;y[11]===Symbol.for("react.memo_cache_sentinel")?(F=e=>{v.current=!0,T()},y[11]=F):F=y[11];const W=F;let B;y[12]!==X?(B=e=>{v.current=!1,p.current=!1,b.current=!1,x.current=!1,R.current=!1,P.current=!1,S.current={x:e.nativeEvent.pageX,y:e.nativeEvent.pageY},E.current={x:e.nativeEvent.pageX,y:e.nativeEvent.pageY},X()},y[12]=X,y[13]=B):B=y[13];const G=B;let H;y[14]===Symbol.for("react.memo_cache_sentinel")?(H=e=>{const t=S.current;if(!t||x.current||P.current)return;const n=e?.nativeEvent?.touches?.[0]??e?.nativeEvent,c=n?.pageX,o=n?.pageY;if("number"!=typeof c||"number"!=typeof o)return;const s={x:c,y:o};E.current=s;const l=s.x-t.x,f=s.y-t.y,d=Math.sqrt(l*l+f*f),y=(0,u.decideLongPressMove)({dragArmed:p.current,didStartDrag:x.current,startPoint:t,currentPoint:s});"vertical_scroll"!==y?"horizontal_swipe"!==y&&"cancel_long_press"!==y?"start_drag"===y&&k({dx:l,dy:f,distance:d}):W({dx:l,dy:f,distance:d}):C({dx:l,dy:f,distance:d})},y[14]=H):H=y[14];const J=H;let K;y[15]===Symbol.for("react.memo_cache_sentinel")?(K=()=>{T(),p.current=!1,b.current=!1,S.current=null,E.current=null},y[15]=K):K=y[15];const N=K;let Q;y[16]!==G?(Q={didLongPressRef:v,handleLongPress:q,handlePressIn:G,handleTouchMove:J,handlePressOut:N},y[16]=G,y[17]=Q):Q=y[17];return Q};var e=r(_d[0]),t=r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),c=r(_d[3]),u=r(_d[4]);function o(){}function s(){}function l(){}function f(){}},4638,[471,35,4639,992,4642]);
17903
17903
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.notificationAsync=async function(e=o.NotificationFeedbackType.Success){if(!c.default?.notificationAsync)throw new t.UnavailabilityError('Haptics','notificationAsync');await c.default.notificationAsync(e)},_e.impactAsync=async function(e=o.ImpactFeedbackStyle.Medium){if(!c.default?.impactAsync)throw new t.UnavailabilityError('Haptic','impactAsync');await c.default.impactAsync(e)},_e.selectionAsync=async function(){if(!c.default?.selectionAsync)throw new t.UnavailabilityError('Haptic','selectionAsync');await c.default.selectionAsync()},_e.performAndroidHapticsAsync=async function(e){return},Object.defineProperty(_e,"NotificationFeedbackType",{enumerable:!0,get:function(){return o.NotificationFeedbackType}}),Object.defineProperty(_e,"ImpactFeedbackStyle",{enumerable:!0,get:function(){return o.ImpactFeedbackStyle}}),Object.defineProperty(_e,"AndroidHaptics",{enumerable:!0,get:function(){return o.AndroidHaptics}});var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e},o=r(d[2])},4639,[4,4640,4641]);
17904
17904
  __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n={[t.NotificationFeedbackType.Success]:[40,100,40],[t.NotificationFeedbackType.Warning]:[50,100,50],[t.NotificationFeedbackType.Error]:[60,100,60,100,60],[t.ImpactFeedbackStyle.Light]:[40],[t.ImpactFeedbackStyle.Medium]:[50],[t.ImpactFeedbackStyle.Heavy]:[60],[t.ImpactFeedbackStyle.Soft]:[35],[t.ImpactFeedbackStyle.Rigid]:[45],selection:[50]};function i(){return'undefined'!=typeof window&&'navigator'in window&&'vibrate'in navigator}function c(){try{const t=document.createElement('label');t.ariaHidden='true',t.style.display='none';const n=document.createElement('input');n.type='checkbox',n.setAttribute('switch',''),t.appendChild(n),document.head.appendChild(t),t.click(),document.head.removeChild(t)}catch{}}const o='undefined'!=typeof window&&window.matchMedia('(pointer: coarse)').matches;function s(t){i()?navigator.vibrate(t):o&&c()}var u={async notificationAsync(s){if(i())return void navigator.vibrate(n[s]);if(!o)return;const u=s===t.NotificationFeedbackType.Error?3:2;for(let t=0;t<u;t++)t>0&&await new Promise(t=>setTimeout(t,120)),c()},async impactAsync(t){s(n[t])},async selectionAsync(){s(n.selection)}}},4640,[4641]);
@@ -95,6 +95,6 @@
95
95
  <body>
96
96
  <noscript>You need to enable JavaScript to run this app.</noscript>
97
97
  <div id="root"></div>
98
- <script src="/_expo/static/js/web/index-b635bff8218cfcb57983de05f96c16ba.js" defer></script>
98
+ <script src="/_expo/static/js/web/index-38317b2dcafbf69ca611aad7da1d61b8.js" defer></script>
99
99
  </body>
100
100
  </html>
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/server",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "Paseo backend server",
5
5
  "files": [
6
6
  "dist/server",
@@ -107,11 +107,11 @@
107
107
  "@agentclientprotocol/sdk": "^0.17.1",
108
108
  "@anthropic-ai/claude-agent-sdk": "0.3.246",
109
109
  "@anthropic-ai/sdk": "^0.104.2",
110
- "@getpaseo/client": "0.13.0",
111
- "@getpaseo/highlight": "0.13.0",
112
- "@getpaseo/plugin": "0.13.0",
113
- "@getpaseo/protocol": "0.13.0",
114
- "@getpaseo/relay": "0.13.0",
110
+ "@getpaseo/client": "0.13.2",
111
+ "@getpaseo/highlight": "0.13.2",
112
+ "@getpaseo/plugin": "0.13.2",
113
+ "@getpaseo/protocol": "0.13.2",
114
+ "@getpaseo/relay": "0.13.2",
115
115
  "@isaacs/ttlcache": "^2.1.4",
116
116
  "@modelcontextprotocol/sdk": "1.29.0",
117
117
  "@opencode-ai/sdk": "1.14.46",