@reviewflow/app 6.34.0 → 7.0.0
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.
- package/client/_expo/static/css/markdown-editor-3b572bc77a92d9255d24e0348c003784.css +1 -0
- package/client/_expo/static/css/text-highlights-a3b03bc69ce61ea0d373e2eafa23ee2c.css +1 -0
- package/client/_expo/static/js/web/{AppEntry-94cb02cfab8f9db88b7d9dc313a64d86.js → AppEntry-897c29aa51493f6c14a9120020b167f5.js} +180 -175
- package/client/_expo/static/js/web/{__common-0fba5c70150594d7fa45ab1f886e35e9.js → __common-3eda3a54d3c4b9a084da74eb57376476.js} +381 -381
- package/client/_expo/static/js/web/{abap-5a1a5db314cfe4ede96f568df4b2ec13.js → abap-11b4fc03d78cfc5bae04bc7908a3fc35.js} +1 -1
- package/client/_expo/static/js/web/{actionscript-3-0ae14b51e421d4a9757e3248b0ad756d.js → actionscript-3-a40aa653409bda76eb3a0d50ed85bb16.js} +1 -1
- package/client/_expo/static/js/web/{ada-51c0515d2a3b7c4aadb48892183c5ddd.js → ada-bf669446f1a2ad2169b7712af328adfb.js} +1 -1
- package/client/_expo/static/js/web/{ahk-bd5b4f1fcb71b4886ad0d2da3320bd60.js → ahk-896a06c0cccac747fd95ea87d3e50b9b.js} +1 -1
- package/client/_expo/static/js/web/{ahk2-98375ad5c61996214ff0392cb6baf63b.js → ahk2-db3788e1c81a4e13710a988aa70fff1d.js} +1 -1
- package/client/_expo/static/js/web/{andromeeda-316ec19ef6f425a415f63046c47b2dcf.js → andromeeda-0e15eeae287a75bf04c989d0a69a64b0.js} +1 -1
- package/client/_expo/static/js/web/{andromeeda-ac290061ed4d7877e451684a7dfde21c.js → andromeeda-14cdb459116fcc805487dccea5301927.js} +1 -1
- package/client/_expo/static/js/web/{angular-ts-903688ea304ba90f6bfd69125f9f851b.js → angular-ts-0ced86ee714fbe878c503b46d5d3dc42.js} +3 -3
- package/client/_expo/static/js/web/{apache-1f925b971071b4b0f8239ed16ea02787.js → apache-d25fbd4eb421deeb1a77b5ce1e9029e0.js} +1 -1
- package/client/_expo/static/js/web/{apex-c090a7796aa5a8ff617174d682d8ff8b.js → apex-33948b2da9663d826ce3ec33922cb408.js} +1 -1
- package/client/_expo/static/js/web/{apl-2716866462af77ba43805b17fe9cae74.js → apl-11320bb6489ad7b49f2342d28a0e0a25.js} +1 -1
- package/client/_expo/static/js/web/{applescript-2a10f4b2db1b60865e8b51a1cdbfe6de.js → applescript-ea5e29e4af9757a7fbf806516e10d391.js} +1 -1
- package/client/_expo/static/js/web/{ara-41c44dcdadb2bbd8f45c8429d99f6ed1.js → ara-c0b81f48a2e53939f07a0887207f5af1.js} +1 -1
- package/client/_expo/static/js/web/{asciidoc-55f9fce95aa24d64fd76126bea71db2b.js → asciidoc-9253dc6b789efd6d185956463775229b.js} +1 -1
- package/client/_expo/static/js/web/{asm-589d7071ff75c87107172abc1d3e26a2.js → asm-d56dffdc37579190f6c52f57335b271d.js} +1 -1
- package/client/_expo/static/js/web/{astro-2b9774c29d1dea821edfc3d9d059a6b0.js → astro-3282f29ae966d547d875e79cf131d985.js} +1 -1
- package/client/_expo/static/js/web/{aurora-x-779726ac3db32f3c849850b2da3e6db2.js → aurora-x-217cd6a4cfbcda582b62a9dcb6096f19.js} +1 -1
- package/client/_expo/static/js/web/{aurora-x-77cf5b430b603f64189484894a08ecc9.js → aurora-x-fcde126e6df22c5c6ea2c709420c7e89.js} +1 -1
- package/client/_expo/static/js/web/{awk-2e62ba664b05db2148cd7c52c7a3d201.js → awk-4c43bb49105f4f6a1b0d697378fedaa9.js} +1 -1
- package/client/_expo/static/js/web/{ayu-dark-7abc71d8028dcce78aec1bdfc6fc8a49.js → ayu-dark-7a191770cff9e88d7aef79723468b05f.js} +1 -1
- package/client/_expo/static/js/web/{ayu-dark-99aa4d7f2297316271be8d08a0390446.js → ayu-dark-7c0d39a28a2842f16b3d3ebf9469a6e7.js} +1 -1
- package/client/_expo/static/js/web/{ayu-light-55dac8016cb589af190e1a9491e3cb8a.js → ayu-light-35cec8f6acd6f4033794359cc5bc29f8.js} +1 -1
- package/client/_expo/static/js/web/{ayu-light-64b80760fa97f98f22a6af3fc1c07be9.js → ayu-light-ec87a9602f3bc33b810dde33e89405b5.js} +1 -1
- package/client/_expo/static/js/web/{ayu-mirage-3a00e1a174371dfc5eb87b7e7a37ee1a.js → ayu-mirage-7b47fd50ba01e5ff754cc64e110324c4.js} +1 -1
- package/client/_expo/static/js/web/{ayu-mirage-981bdd4e99ef28cac600dccaf281072e.js → ayu-mirage-9fa400571fd76235d3e88f13c0e329bd.js} +1 -1
- package/client/_expo/static/js/web/{ballerina-9867e97a92173f7b46f69ff012235f91.js → ballerina-5cb579789fb8a93e8b4557c17d36981e.js} +1 -1
- package/client/_expo/static/js/web/{beancount-691b07622ceae0165f5ffd5f4741e87e.js → beancount-25697fdf6d63bab573ecc21517e4b3cc.js} +1 -1
- package/client/_expo/static/js/web/{berry-0d690a822ea7782374ba989a54db591a.js → berry-fbf3228f6fb4708750bc187cc8269e70.js} +1 -1
- package/client/_expo/static/js/web/{bicep-cc2edf4b135cce21eb53933386d73baa.js → bicep-9176a0976aac63f2f9ed9c269ccc95dd.js} +1 -1
- package/client/_expo/static/js/web/{bird2-c17be2afae2e8c4e77d55ced797438d8.js → bird2-d1e16f05fcccabedaa72a4a198461ef6.js} +1 -1
- package/client/_expo/static/js/web/{blade-ec5000dec960665657f07e9f90bbb749.js → blade-be434587fe00e05d23ea7276f8bc8137.js} +1 -1
- package/client/_expo/static/js/web/{bsl-6f17b93d73dfaac2aee5075e2b2f12b8.js → bsl-2a15dbabc7bbd0049c92a6d710df9778.js} +1 -1
- package/client/_expo/static/js/web/{c3-834199e4ad0f6a901a0a889f26eff235.js → c3-3b206b25a8769e214d09a351480282fa.js} +1 -1
- package/client/_expo/static/js/web/{cadence-490c97bc7949cdf96f9c0f6646024b13.js → cadence-d078fca26babd43215f5c5c6113c3640.js} +1 -1
- package/client/_expo/static/js/web/{cairo-9d179593e855e7289ef5c3407731d642.js → cairo-d902d174f0c316d79e79418b61571a77.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-frappe-cb7d10f6a99ab30ee1169474eca22965.js → catppuccin-frappe-01d289c0e65dbb3429b7b9a29f695519.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-frappe-0eee95699275fde5b73064d6b3e2be54.js → catppuccin-frappe-2d26fab6f152e2dc702577767e3b9d41.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-latte-6618fc303ee2e9e905d3e46980392e98.js → catppuccin-latte-0001bf0d1faba98d2a0551c3128684ef.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-latte-fd13e865e4d3355fd0bc2b5b056f71d4.js → catppuccin-latte-825974cd342e17d0e76dd54714b75ed3.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-macchiato-a0ef0da0842b01279d650eacdb16fd3d.js → catppuccin-macchiato-a8da1f5df2b1fafd1bc3960f0771f609.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-macchiato-09dfa38e53392c30f4336b36686f2731.js → catppuccin-macchiato-b680e7618508a252f5b0550b471cb338.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-mocha-a4c98d047fb1ab6dd3be6578e851ef3a.js → catppuccin-mocha-55a5132e45fe8b72ecab14c5793e78a4.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-mocha-1aa30f2b26b7193ae9e7adbd9f92a465.js → catppuccin-mocha-c94b44a34241e6d0f351623dcc241806.js} +1 -1
- package/client/_expo/static/js/web/{chapel-396abaaffeaac8740f1c3de9e9899aef.js → chapel-9aff8e6323ff4e9b5b8355a0dedcd71b.js} +1 -1
- package/client/_expo/static/js/web/{clarity-754d57a592ef53bef06f2b415ffa717e.js → clarity-3d67215be9ded91eb4be76ef3cbb9a5d.js} +1 -1
- package/client/_expo/static/js/web/{cobol-53bf36874d696d30777c8fc8e2e96514.js → cobol-6e1316d13664b63fbd78c102ac1e72ad.js} +1 -1
- package/client/_expo/static/js/web/{codeowners-e4e86610e89e649468975954c9652f4f.js → codeowners-7a417672e6be786102f9a871119e98ad.js} +1 -1
- package/client/_expo/static/js/web/{codeql-ecd429dc008d9d642dfe14b83ff3f859.js → codeql-67cfb05d300d90310f1278117904b75f.js} +1 -1
- package/client/_expo/static/js/web/{common-lisp-fdfa59b3bf3b33dee0b290f8f1e6db56.js → common-lisp-a97923aac90a9d42e18fdc91ee834db1.js} +1 -1
- package/client/_expo/static/js/web/{coq-a9f640cbf67c287ef72f50fd807310ca.js → coq-420fa432449d9830c407668a75e08764.js} +1 -1
- package/client/_expo/static/js/web/{crystal-c73ba2b43cb0be76f9bb864e95ef899f.js → crystal-09fd910c889db9d580fc04ef9db9e57c.js} +1 -1
- package/client/_expo/static/js/web/{cue-3644a008cbc093b87ce1a90fe92c118a.js → cue-ca81a974cae1c77e1e66718ad46ecd6d.js} +1 -1
- package/client/_expo/static/js/web/{cypher-39ac6993710179ebdf42a330d13af255.js → cypher-04bfe7a89f8199fb5c93445d5c9ce4d3.js} +1 -1
- package/client/_expo/static/js/web/{d-339d7313bf53fb3ed4c8fa62cef9df6c.js → d-98726dae70183be029249eb7f5c50610.js} +1 -1
- package/client/_expo/static/js/web/{dark-plus-f233ec653325ae4455167438ece781f2.js → dark-plus-68e12b88a8ed2e97edb397e26897a20a.js} +1 -1
- package/client/_expo/static/js/web/{dark-plus-8e8821b5b353b6ee9bad8b0b2be88f91.js → dark-plus-875c304a7b34b2ec41f32b786260b1e1.js} +1 -1
- package/client/_expo/static/js/web/{dax-0a5c868ac82608bb63d21a3aa9c154ac.js → dax-80dbf87ba385cd9921db2658a03916c9.js} +1 -1
- package/client/_expo/static/js/web/{desktop-0161c8612779a9f492945ab67cc5e77f.js → desktop-30e9fedc875e850a1c13fafc78804f65.js} +1 -1
- package/client/_expo/static/js/web/{diff-theme-preview-949fef367ba4eb1c6a2cff161a06497e.js → diff-theme-preview-90b85593bccf570cc6403974ec3e264a.js} +1 -1
- package/client/_expo/static/js/web/{diff-viewer-feecc5155c0ffe7b0eca91f3244a4b5d.js → diff-viewer-c8c70a42348c10cfbb3f66afb224ba4d.js} +1 -1
- package/client/_expo/static/js/web/{diff-worker-a54334b6553b464a1679cb22355b002d.js → diff-worker-14ff83adf678d6681c4ddc3447651185.js} +3 -3
- package/client/_expo/static/js/web/{dotenv-f49b146d1f5de73d31b1a5703466d797.js → dotenv-5720c312aaf0f3e0ebe32a3141f3ea9f.js} +1 -1
- package/client/_expo/static/js/web/{dracula-3dadc582f211f9f39234a4a5073a2b6b.js → dracula-4ff1a34fe777984fc34ce4d42390c9e8.js} +1 -1
- package/client/_expo/static/js/web/{dracula-af174ca643c0b5a7cf98a1e9be8a2a63.js → dracula-e63855faf801052f6893e2e80ad8f30d.js} +1 -1
- package/client/_expo/static/js/web/{dracula-soft-9f25d22143dc1fb4983c0eb18a3ed73a.js → dracula-soft-4eddb7a142ae76f4a1613ed6d45b2be2.js} +1 -1
- package/client/_expo/static/js/web/{dracula-soft-9586e1c88036fbb222f8fcacd8f6570d.js → dracula-soft-92d3526d95e0f0a284983fc78a13e4bd.js} +1 -1
- package/client/_expo/static/js/web/{draft-diff-view-8096fb6173e1f7a8dd75346c73448485.js → draft-diff-view-d56568661bbadba6cf2797fc1dee4114.js} +1 -1
- package/client/_expo/static/js/web/{dream-maker-0fea0e767bc744b8254480bb29041db6.js → dream-maker-b1d6dfd4be46d7b470262cbc06cf422e.js} +1 -1
- package/client/_expo/static/js/web/{edge-0318aa909061732cfb2f0cf7aa34c1a5.js → edge-ef8760f553dec35764b61a0ca91334e9.js} +1 -1
- package/client/_expo/static/js/web/{elm-d0144c84e141269c9592972843c8e40c.js → elm-3c340e6a40c81a378ae02e3b14636ed6.js} +1 -1
- package/client/_expo/static/js/web/{emacs-lisp-32f6becb202cfe528dc265129ab7109e.js → emacs-lisp-296a3900bfe76438bb115528837becf4.js} +1 -1
- package/client/_expo/static/js/web/{engine-javascript-0191f2a8795b12247fef68cd80431870.js → engine-javascript-2edcddb3cf829137c28037058ecf58d3.js} +17 -17
- package/client/_expo/static/js/web/{engine-oniguruma-c7fe418351ac9f3534d360e28632c203.js → engine-oniguruma-8deee186ddf09424baff2eeb006e7221.js} +3 -3
- package/client/_expo/static/js/web/{erb-e8fc516a398d3dd022cd76a0fd3940b0.js → erb-c6973e1129ee34132aa7d9a96b054dd4.js} +1 -1
- package/client/_expo/static/js/web/{everforest-dark-6410e810afa276c88b43dfcb84608eec.js → everforest-dark-24a11f76230a2782d539e8ba0ba4847b.js} +1 -1
- package/client/_expo/static/js/web/{everforest-dark-606288b618516fd9723b7effb9443768.js → everforest-dark-e14f8c733ecf6e8dc94014990dde81cd.js} +1 -1
- package/client/_expo/static/js/web/{everforest-light-ebcf5d246442cf14ed92c15aa1da2999.js → everforest-light-0dcaa221619ebf723e5c44706aceb4aa.js} +1 -1
- package/client/_expo/static/js/web/{everforest-light-d58ad4e5747fb0d6465f98d95498275e.js → everforest-light-c05b748703a43cab31eca4b1a8989f6c.js} +1 -1
- package/client/_expo/static/js/web/{fennel-8939a8cacd037cad8c05aed08e475ba9.js → fennel-59e7b5b6a267a7e2fb7f689ee4f5eb38.js} +1 -1
- package/client/_expo/static/js/web/{fish-de0118e40acc86cb02a7dad42b38a688.js → fish-eaafd8937e48508de12f8e57c21f5b96.js} +1 -1
- package/client/_expo/static/js/web/{fluent-d000e927bc195008d20a7fa71b982cf9.js → fluent-7a6c74334c462b0f2b39e009363e8baa.js} +1 -1
- package/client/_expo/static/js/web/{fortran-fixed-form-438ec40eccf80f500892c29c884b3187.js → fortran-fixed-form-b9548a43a9893d47338624b879cf10aa.js} +1 -1
- package/client/_expo/static/js/web/{gdresource-1b850765036aa554412d825d39665ba5.js → gdresource-bfc0ff938a1405a8dbeaa98f0fc2ba81.js} +1 -1
- package/client/_expo/static/js/web/{genie-f6c5213e53cae3cb620916143adf37da.js → genie-bea278fd60061edd728a26f46c577632.js} +1 -1
- package/client/_expo/static/js/web/{gherkin-5cac203f35bdf8b41678ac8dd979ed80.js → gherkin-45ea2198cf06e39007f4c00451b282b9.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-954cf3b9debfc4032ff8a3141bbd3f2f.js → github-dark-4fbb3cff69a721645299223af86b7d52.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-default-b78e29e2649d3c2954c9b64ffb2f664f.js → github-dark-default-72eeebe5cba26176e5a760b53731fd5d.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-default-f477b133ebc9bf2c3d38afcee0f0d528.js → github-dark-default-d4c9920153e9c9699dcba89d1d54d3ab.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-dimmed-775ceb1aa08480a51f0f5445c74fcea1.js → github-dark-dimmed-8edf63b0102ce1a8d88a221f961b98ad.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-dimmed-82e5ba8cf987e2d60fe724c7605a7409.js → github-dark-dimmed-9f6881cbbe2253b8e049c13b80397c34.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-1f898ab606f3fd1fe1600cc845cb3928.js → github-dark-f3ab6e951d4fbd2e6c6cfdc456e34ab6.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-high-contrast-9a1e6492cfd45083fa9eef7ec709b070.js → github-dark-high-contrast-211ddf28988709e0d20d847b7e9efa07.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-high-contrast-45a99233c1e8e33dbaaa8f8a743ed0ac.js → github-dark-high-contrast-cc9693f8ca1c9e462b6861dd1e9f9025.js} +1 -1
- package/client/_expo/static/js/web/{github-light-793d755d894ce7f4c698acf3993ffedb.js → github-light-3a0491c1a8bb007d494a2845f91ecba0.js} +1 -1
- package/client/_expo/static/js/web/{github-light-d3494dc51ff1d217c4ed56b56dbf7f66.js → github-light-9b2f13baee29486878c60254770a3ef0.js} +1 -1
- package/client/_expo/static/js/web/{github-light-default-d7a97b61f6df8184231979d7fe7e3a3a.js → github-light-default-a97f1a2b78040cfbe91bb53e2b5ace55.js} +1 -1
- package/client/_expo/static/js/web/{github-light-default-5b4263e426008d62877a5729002b69a0.js → github-light-default-da4d5951b4469196b428535ca78cc363.js} +1 -1
- package/client/_expo/static/js/web/{github-light-high-contrast-3ca135b2461613367c112c5aaf8eddd2.js → github-light-high-contrast-77bcd23df9c14107c7512f8c16783f0b.js} +1 -1
- package/client/_expo/static/js/web/{github-light-high-contrast-117ff896dd028f8703ee71cd80768bf2.js → github-light-high-contrast-de2b4bd7ea77f525d0922b824a835483.js} +1 -1
- package/client/_expo/static/js/web/{gleam-6b5c12c4a8cd58c728c760b1e6db046e.js → gleam-35169a9afa24cf366575f83244e1683b.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-js-e21726928d52542db0a9fad7d45ae914.js → glimmer-js-af2b6fcae77160be42576e776c3b6934.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-ts-0a02c60321e16e79ac799e5d6e5fe102.js → glimmer-ts-54a3518be2abeb8b87ebbdb76e6947af.js} +1 -1
- package/client/_expo/static/js/web/{gn-159e5eb411a277b11308d8f574285b9a.js → gn-af3628219e4f1ed122e675ab2fc62170.js} +1 -1
- package/client/_expo/static/js/web/{gnuplot-fd1009e2e37897096748130fae5e3326.js → gnuplot-347191a0ce73b4f9378222d87477c4b1.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-hard-1c23721690904cb613cd2130cc793277.js → gruvbox-dark-hard-a797721bc36437a2789f220dd3ee01cb.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-hard-0ff50dab6585622f5190d833563772f0.js → gruvbox-dark-hard-d199777a9884dc3ccf0ae9f351512112.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-medium-cd2b261bb0d8f365885495546e754464.js → gruvbox-dark-medium-6c3b1b25a845f8ab7a5b3a3518c4d2ab.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-medium-019025dd8a9b514223b9b789321244d1.js → gruvbox-dark-medium-e6e82fc2fb2bd57e7af9dd32f5959dea.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-soft-5d78a804455029ec70593dc14e24847c.js → gruvbox-dark-soft-6ca59c959afbc7326f6739c23bf4eecf.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-soft-34c009da726d43d5374d4591a06a754d.js → gruvbox-dark-soft-cd743f0f0a21c49803a36e5672733aab.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-hard-6cec38a400308715570e7a77a54b7507.js → gruvbox-light-hard-061dd41b4ef8aa067a99512090b1629d.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-hard-910419ce272fc93c2af6d0a403f9c127.js → gruvbox-light-hard-62af423720fe2857bb00af9bfa2de513.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-medium-96be58b6969b54058f425e6afb44d19a.js → gruvbox-light-medium-27b0f5f7ec725dd3688bf0386ec5ac78.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-medium-de9357e8055bec36da0fc57c87101f86.js → gruvbox-light-medium-abd4c46849c8281d91f026dad09a3881.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-soft-0c1fe7ca0ee2d1b31f175e2b36cc2e72.js → gruvbox-light-soft-0472cfaa3066613aa98ddd1bf847e00b.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-soft-2eb12316fa165836787e5248a4a11e34.js → gruvbox-light-soft-eb3ebab2493cfdc139d830695b962327.js} +1 -1
- package/client/_expo/static/js/web/{hack-7546819aaaf9576d87829b48fdbd1f3a.js → hack-ce6f308ce4995961ad0ebea198a6fb76.js} +1 -1
- package/client/_expo/static/js/web/{haskell-4eb7df7d58e61549eeb9926d0190a348.js → haskell-b8e61a74226a5610ae2bc4ae0cafee9f.js} +1 -1
- package/client/_expo/static/js/web/{hcl-fbf51433ebc473e2b8bae6ae0991ddb0.js → hcl-cd4407bb4a796194be9774b224cb2634.js} +1 -1
- package/client/_expo/static/js/web/{highlights-8cf56e3c83682766a65937883c50f26c.js → highlights-32fbd93a89a179a36668d12c0bd9e10c.js} +13 -13
- package/client/_expo/static/js/web/{hjson-c41f0c1e5366cf5f7846b04b797bae22.js → hjson-eeb15a8b12b0540f9cccc30247ba36cf.js} +1 -1
- package/client/_expo/static/js/web/{horizon-7e5f27442c32c25430643d79ff15140f.js → horizon-82f9dabdc65e20221746bb05ecde7f06.js} +1 -1
- package/client/_expo/static/js/web/{horizon-0befcccaf6ecbd4b75afb4cc7767493e.js → horizon-b6c2b8ab146fc46ca7e2474bb9d412a9.js} +1 -1
- package/client/_expo/static/js/web/{horizon-bright-f02ee91a4530f54c205cfe6d1f04192f.js → horizon-bright-103a7dc90b191aec4570f7fcab962110.js} +1 -1
- package/client/_expo/static/js/web/{horizon-bright-bd75fccbd253d6c452fe52680dc36653.js → horizon-bright-e7759dacf0d285d05b85fd003de94d85.js} +1 -1
- package/client/_expo/static/js/web/{houston-1f8425c146f471363a3ffd546e02e242.js → houston-4603b2076b591ad072d6de3088943813.js} +1 -1
- package/client/_expo/static/js/web/{houston-0b166ead16029ed31e4657ea7ed65500.js → houston-ce98c86678dbb66fcaa097758da8bcd9.js} +1 -1
- package/client/_expo/static/js/web/{http-67c45d8d1d599b969c20e9e205a25bbe.js → http-6817b83ee2c73c2b229654276b21f905.js} +1 -1
- package/client/_expo/static/js/web/{hurl-4898217af08438c16d04ecf4d0a85f68.js → hurl-3027ea1029f4f6fafded7ad261e44789.js} +1 -1
- package/client/_expo/static/js/web/{hxml-ce08f80219374cc427f6648eacd26d8d.js → hxml-1551339cefbe549da92615ac1fc7e853.js} +1 -1
- package/client/_expo/static/js/web/{hy-3f78ba826a2abea1ccc67808797ed8d0.js → hy-3eb72800748f5700830bd9ebc0fa391c.js} +1 -1
- package/client/_expo/static/js/web/{imba-c9582b0c038164dd0b67e9a1a50054ec.js → imba-62c66d809c81662dfd3e48369bd2d3fb.js} +1 -1
- package/client/_expo/static/js/web/{jinja-ca3e25531a3be9c8cf770d6976796b31.js → jinja-414280bf93992886c7d9d5f64c53dbfe.js} +2 -2
- package/client/_expo/static/js/web/{jison-7aa377816560a6547011508b6e226b2f.js → jison-4211c14d5b1f5322e7fd3e93cc9af02d.js} +1 -1
- package/client/_expo/static/js/web/{json5-e42704327095db6ec138bd656c6bc921.js → json5-467e17fed5c5e1b3ec4fc6041ac0eebb.js} +1 -1
- package/client/_expo/static/js/web/{jsonl-f2266dbf8d14abf3906afd17fad3e24b.js → jsonl-62c9bce9d0abb320974cea35acc717c4.js} +1 -1
- package/client/_expo/static/js/web/{jsonnet-13bf10dda431ac6a80be78e64e0a895c.js → jsonnet-8291371b5d22079eb5383acabd21eed2.js} +1 -1
- package/client/_expo/static/js/web/{jssm-076840c831ffdd24dc6f05c62a6eef56.js → jssm-30cb915f330bad0434d62b19df648f69.js} +1 -1
- package/client/_expo/static/js/web/{just-d7cdf731aec196f8cad28f4076c79931.js → just-83ae1868f1a9e9f1d875759fe4b60eb4.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-dragon-8e2b2f0896e33ab880f70880967f4ebb.js → kanagawa-dragon-67646fd7d1cd3d0228ca211af700bb39.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-dragon-79632d8cdff083c5b850d73b48c9b2b1.js → kanagawa-dragon-b0784b13177a363d5c5789e4a383f7a0.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-lotus-d54f61bcaf0fd0ad6c9f3154e848c18d.js → kanagawa-lotus-e2e5ddbb77ab5729aa6aea44e4cb2ea1.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-lotus-f002031f67e9a35889e488eeb5e692ee.js → kanagawa-lotus-e90f4f51cfcf9dbbf3313b046c99ea30.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-wave-c03d7ace6f709c1dc5db565ff238f309.js → kanagawa-wave-2cd2c0c55871795affa8fd42497f36ed.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-wave-f75a53db69ac2c62ca8b66457c06c38e.js → kanagawa-wave-59cf884a0455e5ac69f3456c5786e6c5.js} +1 -1
- package/client/_expo/static/js/web/{kdl-c318b23b33273b36350bb755d34e40b5.js → kdl-1a8d2175b3455f6d2d863bed2dc77c8c.js} +1 -1
- package/client/_expo/static/js/web/{kotlin-3d319ac9cd31c71d8109d0bbc4b583ae.js → kotlin-b8ee3739ca8b01492b73fee70c9e48e9.js} +1 -1
- package/client/_expo/static/js/web/{kusto-5ea4bf62c1c4272e54f4eb083c670411.js → kusto-7bdbed152908ec8a49cbfe025b53298d.js} +1 -1
- package/client/_expo/static/js/web/{langs-92ececd515503cac84f11ef572239048.js → langs-741d97a041d7fda5a58960c247bf3453.js} +2 -2
- package/client/_expo/static/js/web/{laserwave-978311a0aba63b742531efd66e8d6ae0.js → laserwave-4564a3ef767986c369e8eabbed9ace17.js} +1 -1
- package/client/_expo/static/js/web/{laserwave-222b757ea6aafbb222f2fe3e37266682.js → laserwave-cce06565039a2111b5662d04c322f9cc.js} +1 -1
- package/client/_expo/static/js/web/{lean-38348f94c5753d439c2a32820d857fbc.js → lean-628d81e7486ea3edfcb0c4e6b52b35ee.js} +1 -1
- package/client/_expo/static/js/web/{light-plus-0d78b5be8b32547230e1d2413d07c335.js → light-plus-5126e530d5a0493695822c232175be05.js} +1 -1
- package/client/_expo/static/js/web/{light-plus-96befde995cac93ba54610f544fccb71.js → light-plus-74eb81046d0cf9ab0a8d5c73e792d63a.js} +1 -1
- package/client/_expo/static/js/web/{liquid-338becd22425d4850e46459b6aca4584.js → liquid-8ae6508401d1d4cbc31fc8b832b50a86.js} +1 -1
- package/client/_expo/static/js/web/{llvm-24c4f6ea9ea15a9e2728ff2c42883888.js → llvm-e523d1fa9711d5fd0cc2f5f5b04ae0ba.js} +1 -1
- package/client/_expo/static/js/web/loader-2ed5def74e4ac089ed22d6e22b4e07a4.js +1 -0
- package/client/_expo/static/js/web/{logo-15d8a683da3419da09479c3b32f8f207.js → logo-c4549d6e6fb8f13626c1ec69418eb25b.js} +1 -1
- package/client/_expo/static/js/web/{luau-cb3217b35eef68d17a2ff5f5db965c91.js → luau-a3cec140635ff4ed8e86fcac22701237.js} +1 -1
- package/client/_expo/static/js/web/{marko-12d567db8d4a871275f7c73652ac9725.js → marko-26638044c2ab68f4fafa861376e17aaf.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-bec8789ddc869c6c1a1a20c941cad6d0.js → material-theme-8db4fb8bbb32aaefb79794e8a194d000.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-2b558b3212a6f343c92a1c4ff76bb4f1.js → material-theme-d2e44a2c54d9524aaca09e478eac4fc5.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-darker-ec3d92a977a32971d7496f7d7ade95dd.js → material-theme-darker-1456cf9935fd4dd6a71f11b8cf34bd12.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-darker-025f4f94e6f83295b99479f6cd6315a7.js → material-theme-darker-328a23f3e4de509ea81c509ba493fead.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-lighter-7da4d9970977d7e2d26b6015d1b9d179.js → material-theme-lighter-1a4ad10c5cf4c655e9ea02a1771ca59f.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-lighter-253f54a8352b0eb0f4cc3ad621a75868.js → material-theme-lighter-df33feccb39bdc86bf7fba640867a87c.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-ocean-7998bcbcca5f1a396177a2a94709ab23.js → material-theme-ocean-549f83454993153242ab194825e172be.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-ocean-3b9f28da2ae01f2b0e987825b0513e55.js → material-theme-ocean-87615302fcfb7ba4b040efe0d91d04a7.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-palenight-5c10040ce884dcb92cbafbb71ae8fb87.js → material-theme-palenight-964a518aad2530d29c548c7f274e505c.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-palenight-b140d3335dd80f2fc7ce150ea0c82628.js → material-theme-palenight-fb269e996c81d53c19ee68a01e85d1a4.js} +1 -1
- package/client/_expo/static/js/web/{matlab-6dd19d5bd0644cd331cd49ca0f693a51.js → matlab-50401cde2fd5800f6b03e89823a2c45d.js} +1 -1
- package/client/_expo/static/js/web/{mdc-ffb149269c0d9ccac4dd2442c5d6af9a.js → mdc-95a3d7c731372493e3cdd4cb98e1a7cc.js} +1 -1
- package/client/_expo/static/js/web/{mdx-4e222fd9e2c3985700a8d66bddb60077.js → mdx-c548c69621b9592c158157eb72bbe62b.js} +1 -1
- package/client/_expo/static/js/web/{mermaid-b8a41e08d9abcea7c8c4bf40cb32851c.js → mermaid-7288c7b75824113d1a5d0be38a4df43b.js} +1 -1
- package/client/_expo/static/js/web/{min-dark-a3a347d89c136b64076d75329b278608.js → min-dark-94357e19aba9d3a0f8af41fbb4ff9546.js} +1 -1
- package/client/_expo/static/js/web/{min-dark-d8cea99873305d29354cefd7408e04b7.js → min-dark-e5065dc1a7dfad86f8c70ed92afb478b.js} +1 -1
- package/client/_expo/static/js/web/{min-light-655670ca529c85e051d5793d3d4befc9.js → min-light-29e5c37a4d12af9ed1edf48667fe4344.js} +1 -1
- package/client/_expo/static/js/web/{min-light-6f9e3c45b05613ebe02aaf7ca7c086bb.js → min-light-d6526ca99f70347b993d3687a46829be.js} +1 -1
- package/client/_expo/static/js/web/{mipsasm-c97e1fddbaee00e24d9870fc14841946.js → mipsasm-d74e04d6531c6e48a2072dcc62f7a1c8.js} +1 -1
- package/client/_expo/static/js/web/{mojo-2f0907fc7f64565fb9cc07df8a79e9b2.js → mojo-7c4053bd3bf22cbbbcb86dcc8c74ca8b.js} +1 -1
- package/client/_expo/static/js/web/{monokai-f5003e4d2ebf111bdef370bc781ed67a.js → monokai-84aa549023401ec98169969d5e1dd6ae.js} +1 -1
- package/client/_expo/static/js/web/{monokai-3676f4d27b59d3acc25ab79e5ea62657.js → monokai-e53184be314c57aedfd23eec4d098a54.js} +1 -1
- package/client/_expo/static/js/web/{moonbit-430833ba6e51eea2ec4e3fa03710b805.js → moonbit-447793b385f403f801bb074de5019bd8.js} +1 -1
- package/client/_expo/static/js/web/{move-4bb708ae4e659bc17797514d23a843d8.js → move-16375e952922c4df7365646e54197da9.js} +1 -1
- package/client/_expo/static/js/web/{narrat-321b941937f3216e74e7c52a8209b97d.js → narrat-ddfd49429be462c825cef5e994756fa4.js} +1 -1
- package/client/_expo/static/js/web/{nextflow-750981747c09df350071b5d4f084c2c3.js → nextflow-672e3aeb024b30ddc2a186dc441cc95e.js} +1 -1
- package/client/_expo/static/js/web/{nginx-6f7d9c96ff856b03c82501e3edb3beaa.js → nginx-c516429db4b8293c8826d7a8d33fb72b.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-f3ae6f44635b7e1172ce7abb03739e98.js → night-owl-204803b2cf78765ad1b3e1a3b7914e32.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-4334e8d162f4a9852ea752a98e7252c8.js → night-owl-79e0fc6a114e99d46481e4ea25b4ec50.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-light-8bd3a9cd56984d5e615690bc426eb92e.js → night-owl-light-0f4b61e4fd650643a61b9383f53f1e0a.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-light-9b781165ca37e125fa6a1c6fc5bfc849.js → night-owl-light-4ba3952c382a2c28ea2a44dc38a732ea.js} +1 -1
- package/client/_expo/static/js/web/{nix-85ebefcebfd4a02b97ffa95f2608611a.js → nix-a76d8124532c2f943e69aa2996e3cf13.js} +2 -2
- package/client/_expo/static/js/web/{nord-2adf6eeda907ba2673d67a7e69b24cf6.js → nord-5a9cd8a3400f9c646e791fbcd996fac2.js} +1 -1
- package/client/_expo/static/js/web/{nord-f70c97a87b6b9218e569e23d35471160.js → nord-d05e4cfc48629aea7bae2b17d800f3a5.js} +1 -1
- package/client/_expo/static/js/web/{nsis-76981b07733cf1d8e6f1c1d818bb23c8.js → nsis-22611bfa1cbedd5511e88fa24d224901.js} +1 -1
- package/client/_expo/static/js/web/{nushell-8dfa39120de9d7c12937aa310e5f1bb7.js → nushell-8d9a6bd1f51bd0579b5f17ab29507264.js} +1 -1
- package/client/_expo/static/js/web/{objective-cpp-e1f889bc5b7b72d7a7193d1c6a3f01bc.js → objective-cpp-57226b913ace3e8c08386a39c404ab2b.js} +1 -1
- package/client/_expo/static/js/web/{odin-4508641dd1f03c0cf5403e8dc14e2998.js → odin-272aa703c8470984d7ab5d96a3a8e056.js} +1 -1
- package/client/_expo/static/js/web/{one-dark-pro-8ec7f350263bb701b8988ca8cce01666.js → one-dark-pro-77ac8f30e489071e6a0728e8021abfce.js} +1 -1
- package/client/_expo/static/js/web/{one-dark-pro-ba316d8b59d7d7782e6a1e17af2acbf6.js → one-dark-pro-795faf19546c94b4f062d86c2271e24c.js} +1 -1
- package/client/_expo/static/js/web/{one-light-432d5eab830b782f6b9e303bcb88dca2.js → one-light-8bcdbd38cc90d3fa6aa16cc7689f250d.js} +1 -1
- package/client/_expo/static/js/web/{one-light-c6ef04fb575ca7298edcfaa6767cd845.js → one-light-ffdf699b8fad09a9ff04cffb9314c23e.js} +1 -1
- package/client/_expo/static/js/web/{openscad-517897db7f0685e370041142b3261728.js → openscad-59108667fbcbeede65ad9863dcfc1a77.js} +1 -1
- package/client/_expo/static/js/web/{org-ab91f74381733bd53b76ab687016fadb.js → org-46cbdb7651c15a7a3d23a576f4843a39.js} +1 -1
- package/client/_expo/static/js/web/{pascal-fd595a001b6c199db40d1952d0761c88.js → pascal-35947b93ce8ae572d153e090c4f616dd.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-cca7eb3d3469b32fe1fb835a54954f02.js → pierre-dark-9453cede9edaa261e8e1e20ca0967bd3.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-ae8af261ffbad024849f360ac6f61843.js → pierre-dark-98bda9d3960d919bef064007e2aa1413.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-protanopia-deuteranopia-0eff4ba569dbc24697378976f963bf7e.js → pierre-dark-protanopia-deuteranopia-30c73cfe6692abed0316b8859fafab5a.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-protanopia-deuteranopia-13dcc23ec6933e363801379725b1b4fa.js → pierre-dark-protanopia-deuteranopia-40bc273978f51b06e7016adb0ad0f9be.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-soft-a062cf88076ae0a1d5da5ba4926d6172.js → pierre-dark-soft-2982ada2e6ce7f1614bb449a96d31f84.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-soft-19f9af5e2174d4feba418340b428ddc1.js → pierre-dark-soft-2c1f98f5016a23ce64ad02b06b0ea9dd.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-tritanopia-7a20d4ac8e28a69b0fa604159462c7ec.js → pierre-dark-tritanopia-73adcafcd42e5e7e519aadee9d57489f.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-tritanopia-0bb34f994dcddbc5591ff55f3aea4046.js → pierre-dark-tritanopia-95325b26a787cb8229f5ea6903b15700.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-vibrant-8f74562cfe5df729a753c8c209ad43e4.js → pierre-dark-vibrant-82418de9563580900e8bac6f7679f3a7.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-vibrant-e57a1ac63ce725c7f6afbedb90f86c93.js → pierre-dark-vibrant-d5aba7affc5f1d1edbf5918eb5a80cff.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-3c68ef939716fb53da2c807af5cd7067.js → pierre-light-0490c6cf2713dd39329d273a50b9e57c.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-bf2e3c40ba35d3643c5d6641451f84fc.js → pierre-light-26e8be520de176ba66f345e905010c36.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-protanopia-deuteranopia-5d6a39bbb141419b67ed0e3a9023e48b.js → pierre-light-protanopia-deuteranopia-43b8715928fd07897134a9f30a3ffcd5.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-protanopia-deuteranopia-a17c31a241427e62ab4735fadcb9b2e6.js → pierre-light-protanopia-deuteranopia-ef7f28cd53a6f709af3d46c316451b57.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-soft-03fcbe251ab153176800b07488e319fb.js → pierre-light-soft-023a2feed7f2a007566dcfc97c913c2b.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-soft-71858cfbe99b3a7ddf2f4f29af7cca7d.js → pierre-light-soft-922f76a3c27ca19bf458dc14f977b1c7.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-tritanopia-9f7dc0d1a4aafc3d4bf6615737639644.js → pierre-light-tritanopia-2cfa55880835c87bf40d12d3becd941b.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-tritanopia-fa4b40d6a4f2ce1933bd2c1b5f961aa2.js → pierre-light-tritanopia-7eb50c4fb7acb84ab9077cf609065b6e.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-vibrant-82edbefedc3ea5d6a69f3f85e7649e3b.js → pierre-light-vibrant-29824c9ac1189d270c7482b10a5ff3e0.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-vibrant-644c37c2d2cdd0dd9a5965ed5287146b.js → pierre-light-vibrant-b099005383ea796667c99ee67e21ea58.js} +1 -1
- package/client/_expo/static/js/web/{pkl-afeea1cd991c4bf809e28fc92a8e4124.js → pkl-7219dd1d9d0e992381a8ced9d50568d1.js} +1 -1
- package/client/_expo/static/js/web/{plastic-e6c6632b49f2648da3494255bdcbeb63.js → plastic-00545e84e29dfef0ade700de7861545f.js} +1 -1
- package/client/_expo/static/js/web/{plastic-1211d88806aa526925cd5d9e2fec7e4e.js → plastic-28995c5fee2fc37761d04c7fd87d0e70.js} +1 -1
- package/client/_expo/static/js/web/{plsql-854dceca815b2abb52757b22b4295d87.js → plsql-8a0a22591c66eaaa55eb753f35f471fb.js} +1 -1
- package/client/_expo/static/js/web/{po-36251e6f6cc56fcfb7092ee9c4d8236a.js → po-17f902641b36ca6115fd66ac103cc928.js} +1 -1
- package/client/_expo/static/js/web/{poimandres-1723ff1ab9de2823e2d6a1ae490fb064.js → poimandres-37befe3bce89db46faa869120410de0f.js} +1 -1
- package/client/_expo/static/js/web/{poimandres-b92b136f9ad068def2f11e9b3dd0cccd.js → poimandres-f8196b332b82363e0c7031d2a2ebb0b7.js} +1 -1
- package/client/_expo/static/js/web/{polar-2a1baf1a7eed4e2dc205c7e4f405f65c.js → polar-e55311bcb53591f160c708742f895cbd.js} +1 -1
- package/client/_expo/static/js/web/{powerquery-63e3edb59d4d32673c01b0cb1b73823e.js → powerquery-97e7e40cb22e74de33bb7e30c297ef00.js} +1 -1
- package/client/_expo/static/js/web/{prisma-ac70aaeadb3d63a4475617a2ed2d3fb3.js → prisma-a6bc253c9a4c39c0f7f369289474f194.js} +1 -1
- package/client/_expo/static/js/web/{prolog-dc17d9c09f513766eab93e2bc49052d3.js → prolog-8cb538296d42c2fad55dc1ffc5da728a.js} +1 -1
- package/client/_expo/static/js/web/{proto-5b51052d416d4284a91c5fdc16394469.js → proto-38de3b969670fbff1300ab75062a223c.js} +1 -1
- package/client/_expo/static/js/web/{pull-request-diff-tree-06e9c2bbd0df03b787db5e1f59a698d6.js → pull-request-diff-tree-eb48cf51476ac1992bc618560a2edddc.js} +68 -68
- package/client/_expo/static/js/web/{puppet-63d2b34514427656152763b5c51481c5.js → puppet-b0f77286e36a6ef94b54bda331ebc889.js} +1 -1
- package/client/_expo/static/js/web/{purescript-7f8252eb3bb9d69f171fd5a104839ba1.js → purescript-230c16db5de14c3e0361aa707d15775a.js} +1 -1
- package/client/_expo/static/js/web/{qml-3bf73d2d302627fbdc1e68771c9551dd.js → qml-3c1140d7a22437b74a91afbff2f26fcb.js} +1 -1
- package/client/_expo/static/js/web/{qmldir-6b7852e00b76c4e7f7fb871d8b8bd308.js → qmldir-31ab911acdae11ffe3993a8d11bdbdf9.js} +1 -1
- package/client/_expo/static/js/web/{qss-33e3f55ff634a09db2a0ebbe22c4cb38.js → qss-c13dfc2572be1c9da2ed22fcacec67e3.js} +1 -1
- package/client/_expo/static/js/web/{racket-faaece3bca4554a4fc25bf8350a0048b.js → racket-ff7347552b59fb7b719617fc1a0b7159.js} +1 -1
- package/client/_expo/static/js/web/{razor-b2ddb24d2f403415ff48a46f8dee00c4.js → razor-d4d4fa0f012b46f70340fb7288558e89.js} +1 -1
- package/client/_expo/static/js/web/{rbs-4c7f9047a268da184c94fba94cec367e.js → rbs-a535a88eb08ce642374d87aa9e8f75b0.js} +1 -1
- package/client/_expo/static/js/web/{red-6ebe0ee129715b63a027366efc1e696b.js → red-b8c6ea2c366d09503beb2a14e5939279.js} +1 -1
- package/client/_expo/static/js/web/{red-8041100a8e3f3609ad1eff09f30b29cb.js → red-fafef07e37eb39a3a00eaaaa6099e52c.js} +1 -1
- package/client/_expo/static/js/web/{reg-c20083d5939cd1b5f48606bfe8f4c603.js → reg-c24754648d78d4547421301e253640c6.js} +1 -1
- package/client/_expo/static/js/web/{rel-b5bed032e219fc2aed256edb38aaf1c4.js → rel-dd89ae0ae66bf0f079fffc0a75c4c8da.js} +1 -1
- package/client/_expo/static/js/web/{reviewflow-diff-themes-4e51ce29057933d1da6d32afa005da9b.js → reviewflow-diff-themes-e721241e6420918fa2e48a22563d7c16.js} +1 -1
- package/client/_expo/static/js/web/{riscv-e819579b5e2e154bfe73dc8bbb5bbaac.js → riscv-621636d0fa156a6de176723ade10e46f.js} +1 -1
- package/client/_expo/static/js/web/{ron-e54148420212cd7d414b997608128b8b.js → ron-7175a16d14bb32e70aa9b46217d1637e.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-d81ce4bfe22920bd8decd4e0b674950a.js → rose-pine-252d441a5ae185be1035fc8440619d23.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-9e6040c7aa8f4d368fb55317e339039c.js → rose-pine-a80c557df6e9aa4654a43aa7764a1c62.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-dawn-c30f3b94062de88731e5b57cbbe88301.js → rose-pine-dawn-355c650f6296efa5b99fe99761e82d4e.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-dawn-92f5aae433841783f8b7d5140d236170.js → rose-pine-dawn-97b99a862fb05ed02f276eaf45038c80.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-moon-547013e61ef04d447b84dcaa3a45b762.js → rose-pine-moon-552c85b0114b9b601ffa0bf2923c095b.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-moon-bfa2dfdc4e3823e8129675a7642703af.js → rose-pine-moon-bc4f8d670eff09ee3bbce57d720aca90.js} +1 -1
- package/client/_expo/static/js/web/{rosmsg-997e9f2d0bb865a245b4a69897abefef.js → rosmsg-b180dce9ca4f14fe21dfd57cc73c10c7.js} +1 -1
- package/client/_expo/static/js/web/{rst-cee99eaf0be1ab803ecc2c299bc4ed59.js → rst-84975a7163f7ca37c1e82bddf2c31fd6.js} +1 -1
- package/client/_expo/static/js/web/{sas-00c61049ee37f24f1be07694c3989ce0.js → sas-88251e682eef9d1b74f509a544b5562d.js} +1 -1
- package/client/_expo/static/js/web/{sass-7dd200cded0b1e457cca53b734300773.js → sass-7fe054f0f832b92e45bd52db6ae65c94.js} +1 -1
- package/client/_expo/static/js/web/{scheme-50ed03c83061a66b0ea3d663cd8f3a86.js → scheme-04d1b75fd2172a769173e88b2a6901a2.js} +1 -1
- package/client/_expo/static/js/web/{shaderlab-94c7be453eca302986f606c9e5572285.js → shaderlab-0f0bcf036074a61552026a2b224cf651.js} +1 -1
- package/client/_expo/static/js/web/{shellsession-79633ad727b2b88f8fbf6f394db5e849.js → shellsession-f1604b05ec65fd83af557ef5af6d65ff.js} +1 -1
- package/client/_expo/static/js/web/{shiki-e2dba116d93f6e6924a008176e491d48.js → shiki-d105f8fb52f7afa4022fb0dab783e925.js} +5 -5
- package/client/_expo/static/js/web/{slack-dark-a7eba01ea71ca044aeb0014d9765d26b.js → slack-dark-04c23ef8febeea3cefed724fc1519527.js} +1 -1
- package/client/_expo/static/js/web/{slack-dark-92500a9b2b284caefff1e80288238e5b.js → slack-dark-c254df94236460de14538fd042f2895f.js} +1 -1
- package/client/_expo/static/js/web/{slack-ochin-87b511eb64e44ec7529ccafb726b703d.js → slack-ochin-c7ea482735c5b9a41cd9e450ce1c2f8b.js} +1 -1
- package/client/_expo/static/js/web/{slack-ochin-eaa8e2ceb8c3aef1b92896891079dab0.js → slack-ochin-d336fffa01ad3b3d5f979eee216a3b4c.js} +1 -1
- package/client/_expo/static/js/web/{smalltalk-db4239d872774ffb538b27d659a7f7ad.js → smalltalk-5a0503b195532c3cc96f12301d7476fe.js} +1 -1
- package/client/_expo/static/js/web/{smithy-38d6124eff27540106682d7677c27a05.js → smithy-1392447f4aefee772a50178b07b093bd.js} +1 -1
- package/client/_expo/static/js/web/{snazzy-light-0bdbc90a0681abdd38e3b9a486418044.js → snazzy-light-4ef299211a5738c0b17ffb48ba0ca4a2.js} +1 -1
- package/client/_expo/static/js/web/{snazzy-light-cdcf338401caa2bcc15b6979b8bcca29.js → snazzy-light-c6ce64b57590b16318992b10ac36e5f0.js} +1 -1
- package/client/_expo/static/js/web/{solarized-dark-deab286fde28c5333e4b09738a778ae6.js → solarized-dark-7e6df396a5db36bd1a476a48666c92cb.js} +1 -1
- package/client/_expo/static/js/web/{solarized-dark-020e731746172e5d6f5f40bf56888b7d.js → solarized-dark-ef1ab7380df1b7121ff6f7be3f1e7f9e.js} +1 -1
- package/client/_expo/static/js/web/{solarized-light-e4f6509d1bf6d10ca05170bf67dc85b6.js → solarized-light-4cf419fa8e2f4ed8ab28d56a2115c26e.js} +1 -1
- package/client/_expo/static/js/web/{solarized-light-5e86d68840916b598b9c079edc085fec.js → solarized-light-6ea9a46f27f0541b942b0be497c4e88d.js} +1 -1
- package/client/_expo/static/js/web/{solidity-aa4b8e4b4ff3a33481ef69447fa40eac.js → solidity-0713c199b7bc902b9b0c6a943172cfe0.js} +1 -1
- package/client/_expo/static/js/web/{soy-91123236f02aff9eb58a6366ea7efd13.js → soy-19be2afec7b83020e94e05f1e86015b2.js} +1 -1
- package/client/_expo/static/js/web/{sparql-a8813ff8335cd6e76eaa66d8a8c468f2.js → sparql-7b859bb9164f9cb39c3259f3c35ddcd1.js} +1 -1
- package/client/_expo/static/js/web/{splunk-48c334e996de26850812dbb957dd13c9.js → splunk-801685fcc8716b1b690f7545507c8c34.js} +1 -1
- package/client/_expo/static/js/web/{ssh-config-951432eeb5079cfdfc427e61a78da6b6.js → ssh-config-7a310a978e66357d39401075993042a6.js} +1 -1
- package/client/_expo/static/js/web/{stata-0e5d8b09e45523793becbe0b31ce3665.js → stata-d00260d7d04e1d7b301287018b86aa2d.js} +1 -1
- package/client/_expo/static/js/web/{surrealql-6695debbb0ae98c33c08abc6de202e9a.js → surrealql-e952c179d66c106b9dd7cbeb9f4ee768.js} +1 -1
- package/client/_expo/static/js/web/{svelte-c102361dd143528940e2fb5b606296f6.js → svelte-0d2e1f08a9385a4fe5aec869ef6b03be.js} +1 -1
- package/client/_expo/static/js/web/{synthwave-84-d2af2380835a2fdfb9cebeeca82db735.js → synthwave-84-155898be157f01fed75f76f583df94f2.js} +1 -1
- package/client/_expo/static/js/web/{synthwave-84-8bca41df25c4458854f4c8b93f87e468.js → synthwave-84-cffcddefc398c0a2ae7a104e7b5ca6af.js} +1 -1
- package/client/_expo/static/js/web/{systemd-0311c308ab0380adeeeb9a680495fd6c.js → systemd-788419195b4fa869c54af1c52cd4e4f7.js} +1 -1
- package/client/_expo/static/js/web/{talonscript-6ef233961230fcf45f98329025a357a8.js → talonscript-698583cdc03526655369a13aa6c883e1.js} +1 -1
- package/client/_expo/static/js/web/{tasl-d84f8a1b9ba447b20c948daf64161d29.js → tasl-f9c16afc6699f5d7f63d8d0573a7702c.js} +1 -1
- package/client/_expo/static/js/web/{tcl-8e6e4ca49419e06c1a28270f0a37176b.js → tcl-b72123e02fadb9a88cfb20165b9eeaca.js} +1 -1
- package/client/_expo/static/js/web/{templ-d10557f60714585fccd961fe70199cc0.js → templ-fdaadf4231c96d72794172185017a851.js} +1 -1
- package/client/_expo/static/js/web/{terraform-99ebb275d3199561372650db63cc8c0c.js → terraform-ddd58d0cf3f1767b762187d4b30f13ef.js} +1 -1
- package/client/_expo/static/js/web/themes-0fc66365dfc743903f728ca999561543.js +4 -0
- package/client/_expo/static/js/web/{tokyo-night-8039b49583a35c33f0da1fa033bc0153.js → tokyo-night-4080c722411e480305d484194d42bcf1.js} +1 -1
- package/client/_expo/static/js/web/{tokyo-night-f6812561509f49c35ff913f7203ffc4b.js → tokyo-night-6d19b5260a6e02bd114847a6f0c5107d.js} +1 -1
- package/client/_expo/static/js/web/{toml-a6d185316bdc5e651878c2c5b0bb882d.js → toml-ee640e30979414432fdfae8b77ff3a59.js} +1 -1
- package/client/_expo/static/js/web/{ts-tags-b154df3a10f59775325e8d6bfd14511a.js → ts-tags-b3318e565a6750cd671a26d244d52830.js} +6 -6
- package/client/_expo/static/js/web/{tsv-3aa25e7ec70d489086cc6d7c54dac0b4.js → tsv-0125dbbe6a4c299c4957f139ed8e029c.js} +1 -1
- package/client/_expo/static/js/web/{typespec-1a8439f66bccd685ed725039422ad26e.js → typespec-02f7fd8474b43f4df72adeedebdbe949.js} +1 -1
- package/client/_expo/static/js/web/{typst-6849ae2ac7302d2aa0386428269e9ab0.js → typst-10876e2bd8ec73930ef70450cdb545bc.js} +1 -1
- package/client/_expo/static/js/web/{v-d2264454588ba09354efc69ab9089e29.js → v-19e9565a80a421e9046509d59fd0b05f.js} +1 -1
- package/client/_expo/static/js/web/{vala-3a9aaa20c15ff1a5e0c726b4c901bf53.js → vala-c751198bda156fe0973d89069d897d3d.js} +1 -1
- package/client/_expo/static/js/web/{vesper-99dccb816d774e503e4ce7cd91fd2408.js → vesper-0a6c52567a0c509722bb94d2ac671e48.js} +1 -1
- package/client/_expo/static/js/web/{vesper-f05180d078bba80bc26e1b54fc406a8d.js → vesper-9f2836d385350ac49a9ed8d93d5f7eec.js} +1 -1
- package/client/_expo/static/js/web/{vhdl-f94a21e9562caac488438ad5a71591b4.js → vhdl-7d4f1a9bc3b9558ebdc0f1bf13542a60.js} +1 -1
- package/client/_expo/static/js/web/{viml-0945f40ebc0e89ec44243b99e4486110.js → viml-0050f69f2f48d0cf6b593159072a882b.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-black-843d15d7b3918a9e4bc5db286b52893c.js → vitesse-black-98fb2d3c94ec062586d6bd2d0760fffe.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-black-b2f708913312e449fd2afbdfd0245cd5.js → vitesse-black-a5d3afc47c9df26836c084c54f834721.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-dark-36c70e8267b045b7d24c3876fffdfe70.js → vitesse-dark-186520477bc47aba90b6c2129a717f75.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-dark-43cef13e98d8a50e7653a70451ad0fab.js → vitesse-dark-877fc219d89fc019ba801d103ddeb8c9.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-light-8d2b95a872c8ff1107b5e2f8ffee5663.js → vitesse-light-1628ab44fa1ce6e94aa3ed1036defb95.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-light-50503c1d5c33b6f5fa8458dfd33c5653.js → vitesse-light-9dde9e8a569cfba4e351ee331d2eb8e4.js} +1 -1
- package/client/_expo/static/js/web/{vue-5cc51f35a53992822f872a067dab35cc.js → vue-db8f48fac6788240e6207973ae948607.js} +5 -5
- package/client/_expo/static/js/web/{vue-html-f65dedd4f18ebf1b2eb419d479e269a0.js → vue-html-77e60ebdf29dd857eab4c9326caff85d.js} +1 -1
- package/client/_expo/static/js/web/{vue-vine-a07f93cd31f84c6786b8bcd06e511f5d.js → vue-vine-c2721bd653b01ae0e1dd6d9f54da0256.js} +1 -1
- package/client/_expo/static/js/web/{vyper-61f6fe215a01d2d23b250ae752566c11.js → vyper-6df0c3a4c01db3066621846b83d96e47.js} +1 -1
- package/client/_expo/static/js/web/{wasm-68788ed683c4a240b3b59b15b12830a8.js → wasm-8f1055d8d5844e5b6648b5ce00e7aa01.js} +2 -2
- package/client/_expo/static/js/web/{wasm-a7bfb99b4a88915d4bad43a1436ff341.js → wasm-f588ca266dc470e291c15bcffb7a439e.js} +1 -1
- package/client/_expo/static/js/web/{wenyan-6d56a018fc96756adbbb0ea1c4bcfdaf.js → wenyan-dab7f076def6d9529e11b613bfc367d6.js} +1 -1
- package/client/_expo/static/js/web/{wgsl-355d8d27b43d397819773517325f14bd.js → wgsl-3f24f3779f8b4fac1f7ef41418b6bbe0.js} +1 -1
- package/client/_expo/static/js/web/{wikitext-f9536ebdfec385a7ba9a91f8d4539c65.js → wikitext-199b449187f72f0b907fbaf89c6a6991.js} +1 -1
- package/client/_expo/static/js/web/{wit-5aadab00b6a5e08b32050d72ca8fc9fc.js → wit-3107ca62a8944f4a9e8873e7e1c953a4.js} +1 -1
- package/client/_expo/static/js/web/{wolfram-69f2be6bccb8e4930361e5dde67c8274.js → wolfram-e80ae9afe5e5c3eee6a7e792920f75b9.js} +1 -1
- package/client/_expo/static/js/web/{zenscript-73cc73dffa321a8196fce49f611dc767.js → zenscript-e79ea6d6c839dfce01310c1a81c1027a.js} +1 -1
- package/client/index.html +5 -4
- package/package.json +3 -3
- package/client/_expo/static/css/markdown-editor-dad8ca09a6cab325cb329aec1970dd1e.css +0 -1
- package/client/_expo/static/js/web/loader-575d4f59359a75d5dee59a3da867790e.js +0 -1
- package/client/_expo/static/js/web/themes-a6f3ad44c316d8a518261648bdcdf6b4.js +0 -4
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
__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 $}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),v=r(d[7]),h=r(d[8]),f=r(d[9]);const p=(t,s)=>Object.assign({},s,{height:"100%",colorScheme:t,"--trees-bg-override":"transparent","--trees-fg-override":"var(--color-sharp)","--trees-fg-muted-override":"var(--color-muted)","--trees-bg-muted-override":"var(--color-interactive-soft-hover)","--trees-selected-bg-override":"var(--color-interactive-soft-active)","--trees-selected-fg-override":"var(--color-sharp)","--trees-border-color-override":"var(--color-border-muted)","--trees-indent-guide-bg-override":"var(--color-border-muted)","--trees-input-bg-override":"var(--color-lowered)","--trees-search-bg-override":"var(--color-lowered)","--trees-search-fg-override":"var(--color-sharp)","--trees-accent-override":"var(--tree-brand)","--trees-focus-ring-color-override":"var(--tree-brand)","--trees-status-added-override":"var(--trees-theme-git-added-fg, var(--tree-success))","--trees-status-untracked-override":"var(--trees-theme-git-untracked-fg, var(--tree-success))","--trees-status-modified-override":"var(--trees-theme-git-modified-fg, var(--tree-info))","--trees-status-renamed-override":"var(--trees-theme-git-renamed-fg, var(--tree-warning))","--trees-status-deleted-override":"var(--trees-theme-git-deleted-fg, var(--tree-danger))","--trees-font-family-override":"var(--font-body)","--trees-font-size-override":"var(--text-sm, 13px)","--trees-padding-inline-override":"0px"});function S({accent:t,children:s}){const n={display:"contents",[`--tree-${t}`]:"var(--color-accent)"};return(0,f.jsx)(o.AccentScope,{accent:t,children:(0,f.jsx)("div",{style:n,children:s})})}const P=n=>{const[o,l]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let o=!0;return Promise.resolve((0,t.getResolvedOrResolveTheme)(n)).then(t=>{var c;o&&l({themeName:n,colors:(c=(0,s.themeToTreeStyles)(t),Object.fromEntries(Object.entries(c).filter(([t])=>t.startsWith("--trees-theme-git-"))))})},()=>{o&&l({themeName:n,colors:{}})}),()=>{o=!1}},[n]),o?.themeName===n?o.colors:{}},b=(t,s)=>void 0===s?t.flatMap(({path:t,status:s})=>null===s?[]:[{path:t,status:s}]):Object.entries(s).map(([t,s])=>({path:t,status:s})),w=({additions:t,deletions:s})=>{if(null==t||null==s)return null;const n=`+${String(t)}`,o=`\u2212${String(s)}`;return{text:`${n} ${o}`,title:`${String(t)} added, ${String(s)} removed`,parts:[{text:n,color:"var(--trees-theme-git-added-fg, var(--tree-success))"},{text:" "},{text:o,color:"var(--trees-theme-git-deleted-fg, var(--tree-danger))"}]}},x=(t,{viewedPaths:s,filesByPath:n})=>{const o=n.get(t);return void 0!==o&&(0,h.isOmittedFile)(o)?{text:"left out",title:void 0===o.omitted?"Not in the diff: listed above it":`Not in the diff: ${(0,v.omissionLabel)(o.omitted)}`}:s.has(t)?{text:"viewed",title:"Marked viewed"}:void 0===o?null:w(o)},j=(t,s,n)=>{if(null!==t&&void 0!==s){n.current=!0;try{for(const n of t.getSelectedPaths())n!==s&&t.getItem(n)?.deselect();if(null===s)return;const n=t.getItem(s);null===n||n.isSelected()||n.select()}finally{n.current=!1}}},y=t=>{if(!t.isSearchOpen())return void t.openSearch();const s=t.getFileTreeContainer()?.shadowRoot?.querySelector("[data-file-tree-search-input]");s?.focus(),s?.select()};var $=function({files:t,viewedPaths:s,theme:v,onFilePress:h,selectedPath:w,listing:$=!1,listingStatuses:F,goToFileShortcut:T=!1}){const E=(0,o.useCurrentMode)(),O=P((0,l.diffThemeNames)(v)[E]),R=t.map(({path:t})=>t),k=R.join("\n"),M=[...t.map(({path:t,status:s,omitted:n,additions:o,deletions:c})=>`${s??"omitted"} ${n??""} ${String(o)} ${String(c)} ${t}`),...s,...Object.entries(F??{}).map(([t,s])=>`${s} ${t}`)].join("\n"),N=new Set(s),L=new Map(t.map(t=>[t.path,t])),_=(0,c.useRef)({files:t,listingStatuses:F,onFilePress:h,viewedPaths:N,filesByPath:L,selectedPath:w}),q=(0,c.useRef)(new Set(R)),B=(0,c.useRef)(null),C=(0,c.useRef)(k),D=(0,c.useRef)(!1),{model:G}=(0,n.useFileTree)({paths:R,flattenEmptyDirectories:!0,initialExpansion:$?"closed":"open",density:"compact",icons:{set:"standard",colored:!1},search:!0,fileTreeSearchMode:"hide-non-matches",labels:T?{searchPlaceholder:`Go to file (${u.goToFileShortcutLabel})`}:void 0,gitStatus:b(t,F),renderRowDecoration:({item:t})=>"file"!==t.kind||$?null:x(t.path,_.current),onSelectionChange:t=>{if(D.current)return;const s=t.at(-1);if(void 0!==_.current.selectedPath){const t=void 0!==s&&q.current.has(s)?s:null;return null!==t&&t!==_.current.selectedPath&&_.current.onFilePress(t),void queueMicrotask(()=>{j(B.current,t??_.current.selectedPath,D)})}void 0!==s&&q.current.has(s)&&(_.current.onFilePress(s),queueMicrotask(()=>{B.current?.getItem(s)?.deselect()}))}});return(0,c.useEffect)(()=>{B.current=G,_.current={files:t,listingStatuses:F,onFilePress:h,viewedPaths:N,filesByPath:L,selectedPath:w},q.current=new Set(R)}),(0,c.useEffect)(()=>{const t=_.current.files;C.current!==k&&(C.current=k,G.resetPaths(t.map(({path:t})=>t))),G.setGitStatus(b(t,_.current.listingStatuses)),j(G,_.current.selectedPath,D)},[G,k,M]),(0,c.useEffect)(()=>{j(G,w,D)},[G,w]),(0,c.useEffect)(()=>{if(!T)return;const t=t=>{(0,u.isGoToFileShortcut)(t)&&(t.preventDefault(),t.stopPropagation(),y(G))};return window.addEventListener("keydown",t,!0),()=>{window.removeEventListener("keydown",t,!0)}},[G,T]),(0,f.jsx)(S,{accent:"brand",children:(0,f.jsx)(S,{accent:"success",children:(0,f.jsx)(S,{accent:"info",children:(0,f.jsx)(S,{accent:"warning",children:(0,f.jsx)(S,{accent:"danger",children:(0,f.jsx)(o.AccentScope,{accent:"neutral",children:(0,f.jsx)(n.FileTree,{model:G,style:p(E,O)})})})})})})})}},
|
|
2
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONTEXT_MENU_SLOT_NAME",{enumerable:!0,get:function(){return E.CONTEXT_MENU_SLOT_NAME}}),Object.defineProperty(e,"CONTEXT_MENU_TRIGGER_TYPE",{enumerable:!0,get:function(){return E.CONTEXT_MENU_TRIGGER_TYPE}}),Object.defineProperty(e,"DEFAULT_FILE_TREE_LABELS",{enumerable:!0,get:function(){return _.DEFAULT_FILE_TREE_LABELS}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_ITEM_HEIGHT",{enumerable:!0,get:function(){return o.FILE_TREE_DEFAULT_ITEM_HEIGHT}}),Object.defineProperty(e,"FILE_TREE_DENSITY_PRESETS",{enumerable:!0,get:function(){return R.FILE_TREE_DENSITY_PRESETS}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_STYLE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_TAG_NAME",{enumerable:!0,get:function(){return E.FILE_TREE_TAG_NAME}}),Object.defineProperty(e,"FILE_TREE_UNSAFE_CSS_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}}),Object.defineProperty(e,"FLATTENED_PREFIX",{enumerable:!0,get:function(){return E.FLATTENED_PREFIX}}),Object.defineProperty(e,"FileTree",{enumerable:!0,get:function(){return c.FileTree}}),Object.defineProperty(e,"HEADER_SLOT_NAME",{enumerable:!0,get:function(){return E.HEADER_SLOT_NAME}}),Object.defineProperty(e,"createFileTreeIconResolver",{enumerable:!0,get:function(){return n.createFileTreeIconResolver}}),Object.defineProperty(e,"getBuiltInSpriteSheet",{enumerable:!0,get:function(){return t.getBuiltInSpriteSheet}}),Object.defineProperty(e,"preloadFileTree",{enumerable:!0,get:function(){return c.preloadFileTree}}),Object.defineProperty(e,"prepareFileTreeInput",{enumerable:!0,get:function(){return u.prepareFileTreeInput}}),Object.defineProperty(e,"preparePresortedFileTreeInput",{enumerable:!0,get:function(){return u.preparePresortedFileTreeInput}}),Object.defineProperty(e,"serializeFileTreeSsrPayload",{enumerable:!0,get:function(){return c.serializeFileTreeSsrPayload}}),Object.defineProperty(e,"themeToTreeStyles",{enumerable:!0,get:function(){return T.themeToTreeStyles}});var t=r(d[0]),E=r(d[1]),n=r(d[2]),T=r(d[3]),_=r(d[4]),u=r(d[5]),R=r(d[6]),o=r(d[7]),c=r(d[8])},
|
|
3
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBuiltInFileIconName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getBuiltInSpriteSheet",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isColoredBuiltInIconSet",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"resolveBuiltInFileIconToken",{enumerable:!0,get:function(){return z}});const l="<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"file-tree-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z\" fill=\"currentcolor\"/>\n </symbol>\n <symbol id=\"file-tree-icon-dot\" viewBox=\"0 0 6 6\">\n <circle cx=\"3\" cy=\"3\" r=\"3\" />\n </symbol>\n <symbol id=\"file-tree-icon-file\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n </symbol>\n <symbol id=\"file-tree-icon-lock\" viewBox=\"0 0 16 16\">\n <path fill=\"currentcolor\" d=\"M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10\" />\n </symbol>\n <symbol id=\"file-tree-icon-ellipsis\" viewBox=\"0 0 16 16\">\n <path d=\"M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0\" />\n </symbol>\n</svg>",t=["<symbol id=\"file-tree-builtin-astro\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z\" class=\"bg\" opacity=\".6\"/>\n <path fill=\"currentColor\" d=\"M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-babel\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-biome\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-bootstrap\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z\" class=\"bg\" clip-rule=\"evenodd\" opacity=\".2\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z\" class=\"fg\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-browserslist\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21\"/>\n <path fill=\"currentColor\" d=\"M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13\"/>\n</symbol>","<symbol id=\"file-tree-builtin-bun\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-claude\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-docker\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z\"/>\n <path fill=\"currentColor\" d=\"M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13\" opacity=\".5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-eslint\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-graphql\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-nextjs\" viewBox=\"0 0 16 16\">\n <defs>\n <linearGradient id=\"a\" x1=\"4.522\" x2=\"14\" y1=\"3.943\" y2=\"16\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"currentColor\"/>\n <stop offset=\"1\" stop-color=\"currentColor\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n <path fill=\"currentColor\" d=\"M3 2h1.522v9.09H3z\"/>\n <path fill=\"url(#a)\" d=\"M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z\"/>\n <path fill=\"currentColor\" d=\"M12.172 2h-1.508v9.094h1.508z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-npm\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z\" class=\"vector\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.5 13H13V3H3v10h5V5.5h2.5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-oxc\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-postcss\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8\"/>\n</symbol>","<symbol id=\"file-tree-builtin-prettier\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z\"/>\n <path fill=\"currentColor\" d=\"M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z\" opacity=\".8\"/>\n <path fill=\"currentColor\" d=\"M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z\" opacity=\".6\"/>\n <path fill=\"currentColor\" d=\"M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z\" opacity=\".4\"/>\n</symbol>","<symbol id=\"file-tree-builtin-react\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-sass\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-stylelint\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1\"/>\n <path fill=\"currentColor\" d=\"M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svelte\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svg\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z\"/>\n <path fill=\"currentColor\" d=\"M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1\" opacity=\".5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svgo\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-tailwind\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-terraform\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vite\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vscode\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z\" opacity=\".75\"/>\n <path fill=\"currentColor\" d=\"M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z\" opacity=\".65\"/>\n <path fill=\"currentColor\" d=\"M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vue\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-wasm\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z\" class=\"subtract\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-webpack\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-yml\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-zig\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z\"/>\n <path fill=\"currentColor\" d=\"M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z\"/>\n</symbol>"];function o(l,t){return 0===t.length?l:l.replace("</svg>",`\n ${t.join("\n ")}\n</svg>`)}const n=o(l,["<symbol id=\"file-tree-builtin-bash\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0\" class=\"fg-stroke\"/>\n</symbol>","<symbol id=\"file-tree-builtin-c\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-cpp\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-css\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7\" class=\"vector\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6\"/>\n</symbol>","<symbol id=\"file-tree-builtin-database\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683\"/>\n <path fill=\"currentColor\" d=\"M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z\"/>\n <path fill=\"currentColor\" d=\"M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1\"/>\n</symbol>","<symbol id=\"file-tree-builtin-default\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-font\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-git\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27\"/>\n</symbol>","<symbol id=\"file-tree-builtin-go\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-html\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-image\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z\" opacity=\".3\"/>\n <path fill=\"currentColor\" d=\"M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0\"/>\n</symbol>","<symbol id=\"file-tree-builtin-javascript\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8\"/>\n</symbol>","<symbol id=\"file-tree-builtin-json\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-markdown\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-mcp\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82\"/>\n <path fill=\"currentColor\" d=\"M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16\"/>\n</symbol>","<symbol id=\"file-tree-builtin-python\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65\" class=\"bg\" opacity=\".8\"/>\n <path fill=\"currentColor\" d=\"M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-ruby\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-rust\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-swift\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7\"/>\n</symbol>","<symbol id=\"file-tree-builtin-table\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-text\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z\" class=\"bg\" clip-rule=\"evenodd\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-typescript\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-zip\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z\" class=\"fg\" clip-rule=\"evenodd\"/>\n</symbol>"]),s={minimal:l,standard:n,complete:o(n,t)},c={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},p={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},h={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},b=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),v=new Set(["complete"]);function f(l){return s["none"===l?"minimal":l]}function u(l){return`file-tree-builtin-${l}`}function y(l){return"none"!==l&&v.has(l)}function z(l,t,o){if("minimal"===l||"none"===l)return;const n="complete"===l,s=t.toLowerCase(),v=c[s];if(null!=v&&(n||b.has(v)))return v;for(const l of o){if(n){const t=h[l];if(null!=t)return t}const t=p[l];if(null!=t&&(n||b.has(t)))return t}return"default"}},1230,[]);
|
|
4
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONTEXT_MENU_SLOT_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"CONTEXT_MENU_TRIGGER_TYPE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FILE_TREE_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FILE_TREE_TAG_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FILE_TREE_UNSAFE_CSS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"FLATTENED_PREFIX",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HEADER_SLOT_NAME",{enumerable:!0,get:function(){return o}});const t="file-tree-container",n="data-file-tree-style",E="data-file-tree-unsafe-css",u="data-file-tree-scrollbar-measure",_="data-file-tree-scrollbar-gutter-measured",T="--trees-scrollbar-gutter-measured",c="f::",o="header",f="context-menu",R="context-menu-trigger"},
|
|
5
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createFileTreeIconResolver",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=n=>n.trim().toLowerCase(),s=n=>n.split("/").at(-1)??n,l=n=>{const t=n.toLowerCase().split("."),o=[];for(let n=1;n<t.length;n+=1)o.push(t.slice(n).join("."));return o};function c(n,t){return"string"==typeof n?{name:n,remappedFrom:t}:Object.assign({},n,{remappedFrom:t})}function u(u){const f=(0,t.normalizeFileTreeIcons)(u),p=f.remap,b=new Map;for(const[n,t]of Object.entries(f.byFileName??{}))b.set(n.toLowerCase(),t);const F=new Map;for(const[n,t]of Object.entries(f.byFileExtension??{}))F.set(o(n),t);const j=Object.entries(f.byFileNameContains??{}).map(([n,t])=>[n.toLowerCase(),t]);return{resolveIcon:(t,o)=>{if("file-tree-icon-file"===t&&null!=o){const u=s(o),w=u.toLowerCase(),I=b.get(w);if(null!=I)return c(I,t);for(const[n,o]of j)if(w.includes(n))return c(o,t);const y=l(u);for(const n of y){const o=F.get(n);if(null!=o)return c(o,t)}const C=(0,n.resolveBuiltInFileIconToken)(f.set,u,y);if(null!=C&&"none"!==f.set){if("default"===C){const n=p?.[t];if(null!=n)return c(n,t)}return{name:(0,n.getBuiltInFileIconName)(C),remappedFrom:t,token:C}}}const u=p?.[t];return null==u?{name:t}:c(u,t)}}}},
|
|
6
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return null!=n.spriteSheet||null!=n.remap||null!=n.byFileName||null!=n.byFileExtension||null!=n.byFileNameContains}function t(t){return null==t?{set:"complete",colored:!0}:"string"==typeof t?{set:t,colored:!0}:Object.assign({},t,{set:t.set??(n(t)?"none":"complete"),colored:t.colored??!0})}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeFileTreeIcons",{enumerable:!0,get:function(){return t}})},
|
|
7
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"themeToTreeStyles",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function o(o){const l=(0,t.normalizeThemeColors)(o).colors??{},n="dark"===o.type,s=l["sideBar.background"],c=l["sideBar.foreground"],u=l["sideBarSectionHeader.foreground"],b=l["list.activeSelectionForeground"],h=l["list.hoverBackground"],f=l["list.focusOutline"],k=l["input.background"],v=l["sideBar.border"],p=l["input.border"],B=l["scrollbarSlider.background"],S=l["gitDecoration.addedResourceForeground"],C=l["gitDecoration.modifiedResourceForeground"],y=l["gitDecoration.deletedResourceForeground"],F=t.colorUtils.relativeLuminance(s),_=null!=F?F<.5:n,D=l["list.activeSelectionBackground"],L=l["list.focusBackground"],O=l["editor.selectionBackground"],R=s?.toLowerCase(),T={colorScheme:n?"dark":"light",backgroundColor:s??"",color:c??"",borderColor:"var(--trees-theme-sidebar-border, light-dark(oklch(0% 0 0 / 0.15), oklch(100% 0 0 / 0.15)))","--trees-theme-sidebar-bg":s??"","--trees-theme-sidebar-fg":c??"","--trees-theme-sidebar-header-fg":u??"","--trees-theme-list-active-selection-fg":b??"","--trees-theme-list-hover-bg":h??(_?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"),"--trees-theme-list-active-selection-bg":(null!=D&&D.toLowerCase()===R?L??O:D??O)??"transparent","--trees-theme-focus-ring":f??c??"","--trees-theme-input-bg":k??""};return null!=v&&""!==v&&(T["--trees-theme-sidebar-border"]=v),null!=p&&""!==p&&(T["--trees-theme-input-border"]=p),null!=B&&""!==B&&(T["--trees-theme-scrollbar-thumb"]=B),null!=S&&""!==S&&(T["--trees-theme-git-added-fg"]=S),null!=C&&""!==C&&(T["--trees-theme-git-modified-fg"]=C),null!=y&&""!==y&&(T["--trees-theme-git-deleted-fg"]=y),T}},
|
|
8
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_FILE_TREE_LABELS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"resolveFileTreeLabels",{enumerable:!0,get:function(){return n}});const t=Object.freeze({searchPlaceholder:"Search\u2026",contextMenuTrigger:"Options",renameItem:t=>`Rename ${t}`,gitStatusTitles:Object.freeze({added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"}),containsGitStatusTitle:"Contains git status items"});function n(n){if(null==n)return t;const s=t,u=n.gitStatusTitles;return{searchPlaceholder:n.searchPlaceholder??s.searchPlaceholder,contextMenuTrigger:n.contextMenuTrigger??s.contextMenuTrigger,renameItem:n.renameItem??s.renameItem,gitStatusTitles:null==u?s.gitStatusTitles:{added:u.added??s.gitStatusTitles.added,deleted:u.deleted??s.gitStatusTitles.deleted,ignored:u.ignored??s.gitStatusTitles.ignored,modified:u.modified??s.gitStatusTitles.modified,renamed:u.renamed??s.gitStatusTitles.renamed,untracked:u.untracked??s.gitStatusTitles.untracked},containsGitStatusTitle:n.containsGitStatusTitle??s.containsGitStatusTitle}}},
|
|
9
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"prepareFileTreeInput",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"preparePresortedFileTreeInput",{enumerable:!0,get:function(){return u}});var t=r(d[0]);function n(n,u={}){return t.PathStore.prepareInput(n,u)}function u(n){return t.PathStore.preparePresortedInput(n)}},
|
|
10
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PathStore",{enumerable:!0,get:function(){return I}});var t=r(d[0]),s=r(d[1]),i=r(d[2]),n=r(d[3]),o=r(d[4]),h=r(d[5]),c=r(d[6]),l=r(d[7]),u=r(d[8]),p=r(d[9]),f=r(d[10]),b=r(d[11]);function P(i){const{directories:n,nodes:o,options:h,rootId:c,presortedDirectoryNodeIds:l}=i.snapshot,u=!0===h.flattenEmptyDirectories,p=i=>{const h=o[i];if(null==h||!(0,s.isDirectoryNode)(h))return;const c=n.get(i);if(null==c)throw new Error(`Unknown directory child index for node ${String(i)}`);const l=c.childIds,p=l.length;let f,b=0,P=0;for(let t=0;t<p;t++){const s=l[t];if(null==s)continue;const i=o[s];b+=i.subtreeNodeCount,P+=i.visibleSubtreeCount}if(c.totalChildSubtreeNodeCount=b,c.totalChildVisibleSubtreeCount=P,p>=128&&(0,t.rebuildVisibleChildChunks)(o,c),h.subtreeNodeCount=1+b,u&&1===p){const t=o[l[0]];f=null!=t&&(0,s.isDirectoryNode)(t)?P:1+P}else f=1+P;h.visibleSubtreeCount=f};if(null!=l)for(let t=l.length-1;t>=0;t--)p(l[t]);else for(let t=o.length-1;t>=1;t--)p(t);const f=o[c],b=n.get(c);if(null==f||null==b)return;const P=b.childIds;let C=0,v=0;for(let t=0;t<P.length;t++){const s=P[t];if(null==s)continue;const i=o[s];C+=i.subtreeNodeCount,v+=i.visibleSubtreeCount}b.totalChildSubtreeNodeCount=C,b.totalChildVisibleSubtreeCount=v,(0,t.rebuildVisibleChildChunks)(o,b),f.subtreeNodeCount=1+C,f.visibleSubtreeCount=v}function C(s){const{directories:i,nodes:n,rootId:o}=s.snapshot,h=(0,b.buildSoaNodeStore)(s.snapshot);(0,b.sweepOpenVisibleCountsSoa)(h);const c=h.subtreeNodeCount,l=h.visibleSubtreeCount;for(let t=0;t<n.length;t+=1){const s=n[t];null!=s&&(s.subtreeNodeCount=c[t],s.visibleSubtreeCount=l[t])}for(const[s,h]of i){const i=h.childIds,c=i.length;let l=0,u=0;for(let t=0;t<c;t++){const s=i[t];if(null==s)continue;const o=n[s];l+=o.subtreeNodeCount,u+=o.visibleSubtreeCount}h.totalChildSubtreeNodeCount=l,h.totalChildVisibleSubtreeCount=u,(s===o||c>=128)&&(0,t.rebuildVisibleChildChunks)(n,h)}}function v(t){return"open"===t.initialExpansion&&(null==t.initialExpandedPaths||0===t.initialExpandedPaths.length)}var I=class t{#t;constructor(t={}){const s=(0,i.getBenchmarkInstrumentation)(t),n=(0,i.withBenchmarkPhase)(s,"store.builder.create",()=>new o.PathStoreBuilder(t));if(null!=t.preparedInput){const s=(0,o.getPreparedInputPresortedPaths)(t.preparedInput);null!=s?n.appendPresortedPaths(s,(0,o.getPreparedInputPresortedPathsContainDirectories)(t.preparedInput)):n.appendPreparedPaths((0,o.getPreparedInputEntries)(t.preparedInput),!1)}else{const h=t.paths??[];!0===t.presorted?n.appendPaths(h):n.appendPreparedPaths((0,i.withBenchmarkPhase)(s,"store.preparePathEntries",()=>(0,o.preparePathEntries)(h,t)))}const c=(0,i.withBenchmarkPhase)(s,"store.builder.finish",()=>n.finish({skipSubtreeCountPass:!0})),l=(0,i.withBenchmarkPhase)(s,"store.state.detectAllDirectoriesExpanded",()=>"closed"===(t.initialExpansion??"closed")&&n.didMatchAllInitialExpandedPaths());this.#t=(0,i.withBenchmarkPhase)(s,"store.state.create",()=>(0,h.createPathStoreState)(c,l?"open":t.initialExpansion??"closed",s)),l&&(this.#t.collapseNewDirectoriesByDefault=!0);const p=l?this.#t.snapshot.directories.size-1:(0,i.withBenchmarkPhase)(s,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(t.initialExpandedPaths));l||v(t)||"closed"===(t.initialExpansion??"closed")&&p===this.#t.snapshot.directories.size-1||(t.initialExpandedPaths?.length??0)>0&&(0,i.withBenchmarkPhase)(s,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?!0===t.useSoaCountSweep?(0,i.withBenchmarkPhase)(s,"store.state.initializeOpenVisibleCountsViaSoa",()=>C(this.#t)):(0,i.withBenchmarkPhase)(s,"store.state.initializeOpenVisibleCounts",()=>P(this.#t)):(0,i.withBenchmarkPhase)(s,"store.state.recomputeCounts",()=>(0,u.recomputeCountsRecursive)(this.#t,this.#t.snapshot.rootId))}static preparePaths(t,s={}){return(0,o.preparePaths)(t,s)}static prepareInput(t,s={}){return(0,o.prepareInput)(t,s)}static preparePresortedInput(t){return(0,o.preparePresortedInput)(t)}list(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.list",()=>(0,u.listPaths)(this.#t,t))}add(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.add",()=>{const s=(0,f.getVisibleCount)(this.#t);(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,(0,u.addPath)(this.#t,t)))})}remove(t,s={}){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.remove",()=>{const i=(0,f.getVisibleCount)(this.#t);(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,u.removePath)(this.#t,t,s)))})}move(t,s,n={}){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.move",()=>{const i=(0,f.getVisibleCount)(this.#t),o=(0,u.movePath)(this.#t,t,s,n);null!=o&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,o))})}batch(t){(0,c.batchEvents)(this.#t,()=>{if("function"!=typeof t)for(const s of t)switch(s.type){case"add":this.add(s.path);break;case"remove":this.remove(s.path,{recursive:s.recursive});break;case"move":this.move(s.from,s.to,{collision:s.collision})}else t(this)})}getVisibleCount(){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleCount",()=>(0,f.getVisibleCount)(this.#t))}getVisibleSlice(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleSlice",()=>(0,f.getVisibleSlice)(this.#t,t,s))}getVisibleRowContext(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleRowContext",()=>(0,f.getVisibleRowContext)(this.#t,t))}getVisibleTreeProjection(){return(0,f.getVisibleTreeProjection)(this.#t)}getVisibleTreeProjectionData(t){return(0,f.getVisibleTreeProjectionData)(this.#t,t)}getVisibleIndex(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleIndex",()=>(0,f.getVisibleIndexByPath)(this.#t,t))}getPathInfo(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getPathInfo",()=>{const i=(0,u.findNodeId)(this.#t,t);if(null==i)return null;const n=(0,u.requireNode)(this.#t,i);return{depth:(0,s.getNodeDepth)(n),kind:(0,s.isDirectoryNode)(n)?"directory":"file",path:(0,u.materializeNodePath)(this.#t,i)}})}isExpanded(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.isExpanded",()=>{const s=this.requireDirectoryNodeId(t),i=(0,u.requireNode)(this.#t,s);return(0,h.isDirectoryExpanded)(this.#t,s,i)})}expand(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.expand",()=>{const s=(0,f.getVisibleCount)(this.#t),i=(0,f.expandPath)(this.#t,t);null!=i&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,i))})}collapse(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.collapse",()=>{const s=(0,f.getVisibleCount)(this.#t),i=(0,f.collapsePath)(this.#t,t);null!=i&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,i))})}on(t,s){return(0,c.subscribe)(this.#t,t,s)}getDirectoryLoadState(t){const s=this.requireDirectoryNodeId(t);return(0,h.getDirectoryLoadState)(this.#t,s)}markDirectoryUnloaded(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.markDirectoryUnloaded",()=>{const s=this.requireDirectoryNodeId(t);if((0,u.getDirectoryIndex)(this.#t,s).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${t}"`);const i=(0,f.getVisibleCount)(this.#t);(0,h.markDirectoryUnloadedState)(this.#t,s),(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createMarkDirectoryUnloadedEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],path:t,projectionChanged:this.isDirectoryProjectionVisible(s)})))})}beginChildLoad(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.beginChildLoad",()=>{const s=this.requireDirectoryNodeId(t),i=(0,f.getVisibleCount)(this.#t),n=(0,h.beginDirectoryLoad)(this.#t,s);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createBeginChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],attemptId:n.attemptId,path:t,projectionChanged:this.isDirectoryProjectionVisible(s),reused:n.reused}))),n})}applyChildPatch(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.applyChildPatch",()=>{const i=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==i||"loading"!==(0,h.getDirectoryLoadState)(this.#t,i)||!(0,h.isDirectoryLoadAttemptCurrent)(this.#t,i,t.attemptId))return!1;const n=(0,u.materializeNodePath)(this.#t,i);this.validateChildPatch(n,s);const o=(0,f.getVisibleCount)(this.#t),l=[];for(const t of s.operations){E(n,t);const s=(0,f.getVisibleCount)(this.#t);switch(t.type){case"add":l.push((0,c.finalizeEvent)(this.#t,s,(0,u.addPath)(this.#t,t.path)));break;case"remove":l.push((0,c.finalizeEvent)(this.#t,s,(0,u.removePath)(this.#t,t.path,{recursive:t.recursive})));break;case"move":{const i=(0,u.movePath)(this.#t,t.from,t.to,{collision:t.collision});null!=i&&l.push((0,c.finalizeEvent)(this.#t,s,i));break}}}const p=l.some(t=>t.projectionChanged)||this.isDirectoryProjectionVisible(i);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,o,(0,c.createApplyChildPatchEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,i),affectedNodeIds:[i],attemptId:t.attemptId,childEvents:l,path:(0,u.materializeNodePath)(this.#t,i),projectionChanged:p}))),!0})}completeChildLoad(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.completeChildLoad",()=>{const s=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==s)return!1;const i=(0,f.getVisibleCount)(this.#t),n=(0,h.completeDirectoryLoad)(this.#t,s,t.attemptId);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createCompleteChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],attemptId:t.attemptId,path:(0,u.materializeNodePath)(this.#t,s),projectionChanged:this.isDirectoryProjectionVisible(s),stale:!n}))),n})}failChildLoad(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.failChildLoad",()=>{const i=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==i)return!1;const n=(0,f.getVisibleCount)(this.#t),o=(0,h.failDirectoryLoad)(this.#t,i,t.attemptId,s);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,n,(0,c.createFailChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,i),affectedNodeIds:[i],attemptId:t.attemptId,errorMessage:s,path:(0,u.materializeNodePath)(this.#t,i),projectionChanged:this.isDirectoryProjectionVisible(i),stale:!o}))),o})}cleanup(t={}){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.cleanup",()=>{if(this.#t.transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if((0,p.hasActiveCleanupBlockingLoads)(this.#t))throw new Error("Cleanup cannot run while directory loads are active.");const s=(0,f.getVisibleCount)(this.#t),i=(0,p.cleanupPathStoreState)(this.#t,t.mode??"stable");return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,(0,c.createCleanupEvent)(Object.assign({},i,{affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:!1===i.idsPreserved})))),i})}getNodeCount(){return this.#t.activeNodeCount}initializeExpandedPaths(t){if(null==t||0===t.length)return 0;let i=0;const o=[],c=[];let l=0,p=null;const f=this.#t.snapshot.segmentTable,b=f.valueById,P=this.#t.snapshot.nodes,C=new Map;for(const v of t){null!=p&&v<p&&(p=null,l=0,o.length=0,c.length=0);const t=v.length>0&&47===v.charCodeAt(v.length-1)?v.length-1:v.length;if(0===t){p=v,l=t,o.length=0,c.length=0;continue}let I=0,E=0;if(null!=p){const s=Math.min(t,l);let i=!0;for(let t=0;t<s;t+=1){const s=v.charCodeAt(t);if(s!==p.charCodeAt(t)){i=!1;break}47===s&&(I+=1,E=t+1)}i&&(s===l&&t>s&&47===v.charCodeAt(s)?(I+=1,E=s+1):s===t&&l>s&&47===p.charCodeAt(s)&&(I+=1,E=t+1)),I=Math.min(I,c.length)}let y=0===I?this.#t.snapshot.rootId:c[I-1]??this.#t.snapshot.rootId,w=I,k=!0,N=E;for(;N<=t;){const i=v.indexOf("/",N),h=-1===i||i>t?t:i,l=v.slice(N,h),p=(0,u.getDirectoryIndex)(this.#t,y).childIds,E=w===I?o[w]??0:0;let D,V=E;const S=C.get(l)??(0,n.createSegmentSortKey)(l);C.set(l,S);const x=(t,s)=>{for(V=t;V<s;V+=1){const t=p[V],s=P[t],i=b[s.nameId];if(i===l)return D=t,!0;const o=(0,n.compareSegmentSortKeys)((0,n.getSegmentSortKey)(f,s.nameId),S);if(o>0||0===o&&i>l)return!1}return!1};if(!x(E,p.length)&&E>0&&x(0,E),void 0===D){k=!1;break}const B=(0,u.requireNode)(this.#t,D);if(!(0,s.isDirectoryNode)(B)){k=!1;break}if(o[w]=V,c[w]=D,y=D,w+=1,h===t)break;N=h+1}if(p=v,l=t,o.length=w,c.length=w,k)for(let t=I;t<w;t+=1){const s=c[t];if(null==s)continue;const n=(0,u.requireNode)(this.#t,s);(0,h.isDirectoryExpanded)(this.#t,s,n)||((0,h.setDirectoryExpanded)(this.#t,s,!0,n),i+=1)}else p=null,l=0,o.length=0,c.length=0}return i}hasAllDirectoriesExpanded(){for(const t of this.#t.snapshot.directories.keys()){if(t===this.#t.snapshot.rootId)continue;const s=(0,u.requireNode)(this.#t,t);if(!(0,h.isDirectoryExpanded)(this.#t,t,s))return!1}return!0}requireDirectoryNodeId(t){const i=(0,u.findNodeId)(this.#t,t);if(null==i)throw new Error(`Path does not exist: "${t}"`);const n=(0,u.requireNode)(this.#t,i);if(!(0,s.isDirectoryNode)(n))throw new Error(`Path is not a directory: "${t}"`);return i}resolveActiveDirectoryNodeId(t){try{const i=(0,u.requireNode)(this.#t,t);if(!(0,s.isDirectoryNode)(i))throw new Error(`Node is not a directory: ${String(t)}`);return t}catch{return null}}isDirectoryProjectionVisible(t){let s=t;for(;s!==this.#t.snapshot.rootId;){const t=(0,u.requireNode)(this.#t,s).parentId;if(t!==this.#t.snapshot.rootId){const i=(0,u.requireNode)(this.#t,t),n=(0,l.getFlattenedChildDirectoryId)(this.#t,t);if(!(0,h.isDirectoryExpanded)(this.#t,t,i)&&n!==s)return!1}s=t}return!0}validateChildPatch(s,i){new t({paths:this.list(s),presorted:!0,sort:this.#t.snapshot.options.sort}).batch(i.operations)}};function E(t,s){switch(s.type){case"add":case"remove":if(!s.path.startsWith(t)||s.path===t)throw new Error(`Child patch operation must stay within ${t}: "${s.path}"`);break;case"move":if(!s.from.startsWith(t)||!s.to.startsWith(t)||s.from===t||s.to===t)throw new Error(`Child patch move must stay within ${t}: "${s.from}" -> "${s.to}"`)}}},1237,[1238,1239,1240,1241,1242,1246,1247,1248,1249,1250,1251,1252]);
|
|
11
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"appendChildReference",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"applyChildAggregateDelta",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createDirectoryChildIndex",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createPresortedDirectoryChildIndex",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"ensureChildIdByNameId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ensureChildPositions",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getVisibleChildPrefixCount",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"rebuildDirectoryChildAggregates",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"rebuildVisibleChildChunks",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"selectChildIndexByVisibleIndex",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"updateChildPositionsFrom",{enumerable:!0,get:function(){return h}});const n=5,i=32,t=128;function l(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function o(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function u(n,i){if(null!=i.childIdByNameId)return i.childIdByNameId;const t=new Map;for(const l of i.childIds){const i=n[l];null!=i&&t.set(i.nameId,l)}return i.childIdByNameId=t,t}function c(n){if(null!=n.childPositionById)return n.childPositionById;const i=new Map;for(let t=0;t<n.childIds.length;t++){const l=n.childIds[t];null!=l&&i.set(l,t)}return n.childPositionById=i,i}function s(n,i){null!=n.childPositionById&&n.childPositionById.set(i,n.childIds.length),n.childIds.push(i)}function h(n,i){if(null!=n.childPositionById)for(let t=i;t<n.childIds.length;t++){const i=n.childIds[t];null!=i&&n.childPositionById.set(i,t)}}function b(n,i){let t=0,l=0;for(const o of i.childIds){const i=n[o];null!=i&&(t+=i.subtreeNodeCount,l+=i.visibleSubtreeCount)}i.totalChildSubtreeNodeCount=t,i.totalChildVisibleSubtreeCount=l,y(n,i)}function f(i,t,l,o){if(i.totalChildSubtreeNodeCount+=l,i.totalChildVisibleSubtreeCount+=o,null==i.childVisibleChunkSums||0===o)return;const u=c(i).get(t);if(void 0===u)return;const s=u>>n;i.childVisibleChunkSums[s]+=o}function I(n,t,l){const o=t.childVisibleChunkSums;if(null!=o){let u=l,c=0;for(const s of o){if(u<s){const i=S(n,t,c,u);return Object.assign({},i,{childVisibleIndex:l-i.localVisibleIndex})}u-=s,c+=i}throw new Error(`Visible child index ${String(l)} is out of range`)}let u=l;for(let i=0;i<t.childIds.length;i++){const o=t.childIds[i];if(null==o)continue;const c=n[o];if(null!=c){if(u<c.visibleSubtreeCount)return{childIndex:i,childVisibleIndex:l-u,localVisibleIndex:u};u-=c.visibleSubtreeCount}}throw new Error(`Visible child index ${String(l)} is out of range`)}function C(i,t,l){let o=0;const u=t.childVisibleChunkSums;let c=0;if(null!=u){const i=l>>n;for(let n=0;n<i;n+=1)o+=u[n]??0;c=i<<n}for(let n=c;n<l;n+=1){const l=t.childIds[n];if(null==l)continue;const u=i[l];null!=u&&(o+=u.visibleSubtreeCount)}return o}function y(l,o){if(o.childIds.length<t)return void(o.childVisibleChunkSums=null);const u=Math.ceil(o.childIds.length/i),c=new Int32Array(u);for(let i=0;i<o.childIds.length;i++){const t=o.childIds[i];if(null==t)continue;const u=l[t];null!=u&&(c[i>>n]+=u.visibleSubtreeCount)}o.childVisibleChunkSums=c}function S(n,t,l,o){const u=Math.min(t.childIds.length,l+i);let c=o;for(let i=l;i<u;i++){const l=t.childIds[i];if(null==l)continue;const o=n[l];if(null!=o){if(c<o.visibleSubtreeCount)return{childIndex:i,localVisibleIndex:c};c-=o.visibleSubtreeCount}}throw new Error(`Visible child index ${String(o)} is out of range`)}},
|
|
12
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNodeFlag",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createNodeDepthAndFlags",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNodeDepth",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getNodeFlags",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getNodeKind",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasNodeFlag",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isDirectoryNode",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"setNodeDepth",{enumerable:!0,get:function(){return y}});const t=7,n=3,u=8,o=4;function c(t,u,c=0){return t<<o|c<<n|u}function f(t){return t.depthAndFlags>>>o}function l(t){return(t.depthAndFlags&u)>>n}function p(t){return 0!==(t.depthAndFlags&u)}function b(n){return n.depthAndFlags&t}function s(t,n){return 0!==(b(t)&n)}function h(t,n){t.depthAndFlags|=n}function y(t,n){t.depthAndFlags=c(n,b(t),l(t))}},
|
|
13
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attachBenchmarkInstrumentation",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getBenchmarkInstrumentation",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setBenchmarkCounter",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"withBenchmarkPhase",{enumerable:!0,get:function(){return c}});const n=Symbol("benchmarkInstrumentation");function t(t,u){return null==u||Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:u,writable:!1}),t}function u(t){return null==t?null:t[n]??null}function c(n,t,u){return null==n?u():n.measurePhase(t,u)}function o(n,t,u){Number.isFinite(u)&&null!=n&&n.setCounter(t,u)}},
|
|
14
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t>=48&&t<=57}function n(n){const o=[];let s=0,u=0;for(;u<n.length;){for(;u<n.length&&!t(n.charCodeAt(u));)u+=1;if(u>=n.length)break;u>s&&o.push(n.slice(s,u));let c=0;for(;u<n.length&&t(n.charCodeAt(u));)c=10*c+(n.charCodeAt(u)-48),u+=1;o.push(c),s=u}return(s<n.length||0===o.length)&&o.push(n.slice(s)),o}function o(t){const o=t.toLowerCase();return{lowerValue:o,tokens:n(o)}}function s(t,n){const o=Math.min(t.length,n.length);for(let s=0;s<o;s++){const o=t[s],u=n[s];if(o===u)continue;if("number"==typeof o&&"number"==typeof u)return o<u?-1:1;const c=String(o),l=String(u);if(c!==l)return c<l?-1:1}return t.length!==n.length?t.length<n.length?-1:1:0}function u(t,n){if(1===t.tokens.length&&1===n.tokens.length&&"string"==typeof t.tokens[0]&&"string"==typeof n.tokens[0])return t.lowerValue===n.lowerValue?0:t.lowerValue<n.lowerValue?-1:1;const o=s(t.tokens,n.tokens);return 0!==o?o:t.lowerValue!==n.lowerValue?t.lowerValue<n.lowerValue?-1:1:0}function c(t,n,o){const s=u(o(t),o(n));return 0!==s?s:t===n?0:t<n?-1:1}function l(t,n){return c(t,n,o)}function f(t,n){return n!==t.segments.length-1||t.isDirectory?1:0}function h(t,n){const o=Math.min(t.segments.length,n.segments.length);for(let s=0;s<o;s++){const o=t.segments[s],u=n.segments[s];if(o===u)continue;const c=f(t,s);return c!==f(n,s)?1===c?-1:1:l(o,u)}return t.segments.length!==n.segments.length?t.segments.length<n.segments.length?-1:1:t.isDirectory===n.isDirectory?0:t.isDirectory?-1:1}function y(t,n){return h(t,n)}function p(t,n,s){const u=t=>{const n=s.get(t);if(null!=n)return n;const u=o(t);return s.set(t,u),u},l=Math.min(t.segments.length,n.segments.length);for(let o=0;o<l;o++){const s=t.segments[o],l=n.segments[o];if(s===l)continue;const h=f(t,o);return h!==f(n,o)?1===h?-1:1:c(s,l,u)}return t.segments.length!==n.segments.length?t.segments.length<n.segments.length?-1:1:t.isDirectory===n.isDirectory?0:t.isDirectory?-1:1}function b(t,n){const s=t.sortKeyById[n];if(void 0!==s)return s;const u=o(t.valueById[n]);return t.sortKeyById[n]=u,u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"comparePreparedPaths",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"comparePreparedPathsWithCachedSortKeys",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"compareSegmentSortKeys",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"compareSegmentValues",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createSegmentSortKey",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getSegmentSortKey",{enumerable:!0,get:function(){return b}})},
|
|
15
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PathStoreBuilder",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getPreparedInputEntries",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getPreparedInputPresortedPaths",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getPreparedInputPresortedPathsContainDirectories",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"prepareInput",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"preparePathEntries",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"preparePaths",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"preparePresortedInput",{enumerable:!0,get:function(){return C}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),h=r(d[4]),l=r(d[5]),c=r(d[6]);const p=Symbol("pathStorePreparedInputKind");function u(t,n){return t[p]=n,t}function f(t){return{basename:t.basename,depth:t.segments.length,isDirectory:t.isDirectory,path:t.path,segments:t.segments}}function y(t,n,o){return"default"===o?(0,l.comparePreparedPaths)(t,n):o(f(t),f(n))}function P(){return{depthAndFlags:(0,n.createNodeDepthAndFlags)(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function b(t,n){const o=Math.min(t.length,n.length);for(let s=0;s<o;s++)if(t[s]!==n[s])return s;return o}function I(t){return t.isDirectory?t.segments.length:t.segments.length-1}function D(t,n={}){return x(t,n).map(t=>t.path)}function w(t,n={}){const o=x(t,n);return u({paths:o.map(t=>t.path),preparedPaths:o},"prepared")}function C(t){const n=t.length;let o=!1;for(let s=0;s<n;s+=1){const n=t[s];if(n.length>0&&47===n.charCodeAt(n.length-1)){o=!0;break}}return u({paths:t,presortedPaths:t,presortedPathsContainDirectories:o},"presorted")}function S(t){const n=t,o=n.preparedPaths;if("prepared"===n[p]&&null!=o)return o;if(s=o,!Array.isArray(s)||!s.every(t=>null!=t&&"object"==typeof t&&"string"==typeof t.path&&Array.isArray(t.segments)&&"string"==typeof t.basename&&"boolean"==typeof t.isDirectory))throw new Error("preparedInput must come from PathStore.prepareInput()");var s;return o}function v(t){const n=t;return"presorted"===n[p]&&null!=n.presortedPaths?n.presortedPaths:(o=n.presortedPaths,Array.isArray(o)&&o.every(t=>"string"==typeof t)?n.presortedPaths:null);var o}function N(t){const n=t;return"boolean"==typeof n.presortedPathsContainDirectories?n.presortedPathsContainDirectories:null}function x(t,n={}){const l=(0,s.resolvePathStoreOptions)(n),c=(0,o.getBenchmarkInstrumentation)(n);(0,o.setBenchmarkCounter)(c,"workload.inputFiles",t.length);const p=(0,o.withBenchmarkPhase)(c,"store.preparePathEntries.parse",()=>t.map(t=>(0,h.parseInputPath)(t)));return(0,o.withBenchmarkPhase)(c,"store.preparePathEntries.sort",()=>p.sort((t,n)=>y(t,n,l.sort))),p}var E=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[P()];segmentSortKeyCache=new Map;segmentTable=(0,c.createSegmentTable)();hasDeferredDirectoryIndexes=!1;constructor(n={}){this.instrumentation=(0,o.getBenchmarkInstrumentation)(n),this.options=(0,s.resolvePathStoreOptions)(n);const h=n.initialExpandedPaths??null;if(null==h||0===h.length)this.initialExpandedPathSet=null;else{const t=new Set,n=h.length;for(let o=0;o<n;o+=1){const n=h[o],s=n.length;t.add(s>0&&47===n.charCodeAt(s-1)?n.slice(0,s-1):n)}this.initialExpandedPathSet=t,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,(0,t.createDirectoryChildIndex)())}appendPaths(t){return(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(t.map(t=>(0,h.parseInputPath)(t))))}appendPreparedPaths(t,n=!0){return this.createdDirectoriesAllExpanded=!1,(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(const o of t)this.appendPreparedPath(o,n)}),this}appendPresortedPaths(t,s=null){return(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(!1===s)return void this.appendPresortedFilePaths(t);this.createdDirectoriesAllExpanded=!1;let o=null,l=0;const c=this.nodes,p=this.segmentTable,u=p.idByValue,f=p.valueById,y=this.directoryStack;let P=0,b="",I=0;for(const s of t){if(o===s)throw new Error(`Duplicate path: "${s}"`);const t=s.length>0&&47===s.charCodeAt(s.length-1),h=t?s.length-1:s.length;let p=0,D=0;if(null!=o)if(b.length>0&&s.length>b.length&&s.startsWith(b))p=I,D=b.length;else{const n=Math.min(h,o.length);let l=!0;for(let t=0;t<n;t++){const n=s.charCodeAt(t);if(n!==o.charCodeAt(t)){l=!1;break}47===n&&(p++,D=t+1)}l&&t&&n===h&&o.length>h&&47===o.charCodeAt(h)&&(p++,D=h+1)}P=p,l=p;let w=D,C=s.indexOf("/",w);for(;C>=0&&C<h;){const t=y[P];if(void 0===t)throw new Error("Directory stack underflow while building the path store");l++;const o=s.slice(w,C);let h=u.get(o);void 0===h&&(h=f.length,u.set(o,h),f.push(o));const p=c.length;c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l,0,1),nameId:h,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(s.slice(0,C)),P++,y[P]=p,w=C+1,C=s.indexOf("/",w)}if(t){if(w<h){const t=y[P];if(void 0===t)throw new Error(`Unable to resolve directory parent for "${s}"`);l++;const o=s.slice(w,h);let p=u.get(o);void 0===p&&(p=f.length,u.set(o,p),f.push(o));const b=c.length;c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l,0,1),nameId:p,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),P++,y[P]=b,w=h+1}const t=y[P];if(void 0===t)throw new Error(`Unable to resolve directory node for "${s}"`);this.promoteDirectoryToExplicit(t,s)}else{const t=y[P];if(void 0===t)throw new Error(`Unable to resolve file parent for "${s}"`);const o=s.slice(w);let h=u.get(o);void 0===h&&(h=f.length,u.set(o,h),f.push(o)),c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l+1,0),nameId:h,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1})}w!==b.length&&(b=s.substring(0,w),I=l),o=s}y.length=P+1,null!=o&&(this.lastPreparedPath=(0,h.parseInputPath)(o)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(t){let o=null,s=0;const l=this.nodes,c=this.segmentTable,p=c.idByValue,u=c.valueById,f=this.directoryStack;let y=0,P="",b=0;for(const h of t){if(o===h)throw new Error(`Duplicate path: "${h}"`);const t=h.length;let c=0,I=0;if(null!=o)if(P.length>0&&h.length>P.length&&h.startsWith(P))c=b,I=P.length;else{const n=Math.min(t,o.length);for(let t=0;t<n;t++){const n=h.charCodeAt(t);if(n!==o.charCodeAt(t))break;47===n&&(c++,I=t+1)}}y=c,s=c;let D=I,w=h.indexOf("/",D);for(;w>=0;){const t=f[y];if(void 0===t)throw new Error("Directory stack underflow while building the path store");s++;const o=h.slice(D,w);let c=p.get(o);void 0===c&&(c=u.length,p.set(o,c),u.push(o));const P=l.length;l.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(s,0,1),nameId:c,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(h.slice(0,w)),this.presortedDirectoryNodeIds.push(P),y++,f[y]=P,D=w+1,w=h.indexOf("/",D)}const C=f[y];if(void 0===C)throw new Error(`Unable to resolve file parent for "${h}"`);const S=h.slice(D);let v=p.get(S);void 0===v&&(v=u.length,p.set(S,v),u.push(S)),l.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(s+1,0),nameId:v,parentId:C,subtreeNodeCount:1,visibleSubtreeCount:1}),D!==P.length&&(P=h.substring(0,D),b=s),o=h}f.length=y+1,null!=o&&(this.lastPreparedPath=(0,h.parseInputPath)(o)),this.hasDeferredDirectoryIndexes=!0}finish(t={}){const n=!0===t.skipSubtreeCountPass;return this.hasDeferredDirectoryIndexes?((0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(n)),this.hasDeferredDirectoryIndexes=!1):n||(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&null!=this.initialExpandedPathSet&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(t,n){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),null!=this.lastPreparedPath){if(t.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${t.path}"`);if(n&&("default"===this.options.sort?(0,l.comparePreparedPathsWithCachedSortKeys)(this.lastPreparedPath,t,this.segmentSortKeyCache):y(this.lastPreparedPath,t,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${t.path}"`)}const o=this.lastPreparedPath,s=I(t),h=null==o?0:I(o),c=null==o?0:b(o.segments,t.segments),p=Math.min(c,s,h);this.directoryStack.length=p+1;for(let o=p;o<s;o++){const s=this.directoryStack[this.directoryStack.length-1];if(void 0===s)throw new Error("Directory stack underflow while building the path store");const h=n?this.getOrCreateDirectoryChild(s,t.segments[o]):this.createDirectoryChild(s,t.segments[o]);this.directoryStack.push(h)}if(t.isDirectory){const n=this.directoryStack[this.directoryStack.length-1];if(void 0===n)throw new Error(`Unable to resolve directory node for "${t.path}"`);return this.promoteDirectoryToExplicit(n,t.path),void(this.lastPreparedPath=t)}const u=this.directoryStack[this.directoryStack.length-1];if(void 0===u)throw new Error(`Unable to resolve file parent for "${t.path}"`);n?this.createFileChild(u,t.basename,t.path):this.createFileChildUnchecked(u,t.basename),this.lastPreparedPath=t}recordCreatedDirectoryPath(t){this.createdDirectoriesAllExpanded&&null!=this.initialExpandedPathSet&&(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(t)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(o,s,h){const l=(0,c.internSegment)(this.segmentTable,s),p=this.getDirectoryIndex(o),u=p.childIdByNameId;if(null!=u&&void 0!==u.get(l))throw new Error(`Path collides with an existing entry: "${h}"`);const f=this.nodes[o];if(void 0===f)throw new Error(`Unknown parent node ID: ${String(o)}`);const y=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(f)+1,0),nameId:l,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=u&&u.set(l,y),(0,t.appendChildReference)(p,y),y}createFileChildUnchecked(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o),p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),u}getOrCreateDirectoryChild(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o);if(null!=l.childIdByNameId){const t=l.childIdByNameId.get(h);if(void 0!==t){const o=this.nodes[t];if(null!=o&&!(0,n.isDirectoryNode)(o))throw new Error(`Path collides with an existing file while creating directory "${s}"`);return t}}const p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0,1),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),this.directories.set(u,(0,t.createDirectoryChildIndex)()),u}createDirectoryChild(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o),p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0,1),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),this.directories.set(u,(0,t.createDirectoryChildIndex)()),u}promoteDirectoryToExplicit(t,o){const s=this.nodes[t];if(void 0===s)throw new Error(`Unknown directory node ID: ${String(t)}`);if(!(0,n.isDirectoryNode)(s))throw new Error(`Path is not a directory: "${o}"`);if((0,n.hasNodeFlag)(s,1))throw new Error(`Duplicate path: "${o}"`);(0,n.addNodeFlag)(s,1)}getDirectoryIndex(t){const n=this.directories.get(t);if(void 0!==n)return n;throw new Error(`Unknown directory child index for node ${String(t)}`)}buildPresortedFinish(o){const s=this.nodes,h=this.directories;h.set(0,(0,t.createPresortedDirectoryChildIndex)());let l=-1,c=null;for(let o=1;o<s.length;o++){const p=s[o];if(null==p)continue;if((0,n.isDirectoryNode)(p)){const n=(0,t.createPresortedDirectoryChildIndex)();h.set(o,n),l=o,c=n}let u;p.parentId===l?u=c:(u=h.get(p.parentId),l=p.parentId,c=u??null),null!=u&&u.childIds.push(o)}if(!o)for(let t=s.length-1;t>=1;t--){const n=s[t];if(null==n)continue;const o=s[n.parentId];null!=o&&(o.subtreeNodeCount+=n.subtreeNodeCount,o.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){const o=this.nodes;for(let s=1;s<o.length;s++){const h=o[s];if(null==h)continue;(0,n.isDirectoryNode)(h)&&this.directories.set(s,(0,t.createDirectoryChildIndex)());const l=this.directories.get(h.parentId);null!=l&&(null!=l.childIdByNameId&&l.childIdByNameId.set(h.nameId,s),(0,t.appendChildReference)(l,s))}}computeSubtreeCounts(o){const s=this.nodes[o];if(void 0===s)throw new Error(`Unknown node ID: ${String(o)}`);if(!(0,n.isDirectoryNode)(s))return s.subtreeNodeCount=1,s.visibleSubtreeCount=1,1;const h=this.getDirectoryIndex(o);let l=1;for(const t of h.childIds)l+=this.computeSubtreeCounts(t);return(0,t.rebuildDirectoryChildAggregates)(this.nodes,h),s.subtreeNodeCount=l,s.visibleSubtreeCount=l,l}}},1242,[1238,1239,1240,1243,1244,1241,1245]);
|
|
16
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t={}){return{flattenEmptyDirectories:!1!==t.flattenEmptyDirectories,sort:t.sort??"default"}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolvePathStoreOptions",{enumerable:!0,get:function(){return t}})},
|
|
17
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.length>0&&47===t.charCodeAt(t.length-1),s=n?t.length-1:t.length,u=[];let o=0;for(let n=0;n<s;n++)47===t.charCodeAt(n)&&(u.push(t.slice(o,n)),o=n+1);return u.push(t.slice(o,s)),{hasTrailingSlash:n,segments:u}}function n(n){const{hasTrailingSlash:s,segments:u}=t(n);return{basename:u[u.length-1]??"",isDirectory:s,path:n,segments:u}}function s(n){if(0===n.length)return{requiresDirectory:!1,segments:[]};const{hasTrailingSlash:s,segments:u}=t(n);return{requiresDirectory:s,segments:u}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseInputPath",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parseLookupPath",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"splitCanonicalPath",{enumerable:!0,get:function(){return t}})},
|
|
18
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createSegmentTable",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getSegmentValue",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"internSegment",{enumerable:!0,get:function(){return u}});var t=r(d[0]);function n(){const n=new Map;return n.set("",0),{idByValue:n,valueById:[""],sortKeyById:[(0,t.createSegmentSortKey)("")]}}function u(t,n){const u=t.idByValue.get(n);if(void 0!==u)return u;const o=t.valueById.length;return t.idByValue.set(n,o),t.valueById.push(n),o}function o(t,n){const u=t.valueById[n];if(void 0===u)throw new Error(`Unknown segment ID: ${String(n)}`);return u}},
|
|
19
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"beginDirectoryLoad",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"clearDirectoryLoadInfo",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"completeDirectoryLoad",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"createPathStoreState",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createTransactionFrame",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"failDirectoryLoad",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getDirectoryLoadState",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isDirectoryExpanded",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isDirectoryLoadAttemptCurrent",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"markDirectoryUnloadedState",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"resolveInitialExpansion",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setDirectoryExpanded",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t,n="closed",o=null){const s=c(n);return{activeNodeCount:t.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:s,directoriesOpenByDefault:"open"===s,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:o,listeners:new Map,pathCacheByNodeId:new Map([[t.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:t,transactionStack:[]}}function o(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function c(t){if("number"!=typeof t)return t;if(!Number.isInteger(t)||t<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(t)}`);return t}function s(n,o){return!!(0,t.hasNodeFlag)(o,2)||("open"===n.defaultExpansion||"closed"!==n.defaultExpansion&&(0,t.getNodeDepth)(o)<=n.defaultExpansion)}function u(n,o,c=n.snapshot.nodes[o]){return!(null==c||!(0,t.isDirectoryNode)(c))&&(!(!n.directoriesOpenByDefault||n.hasCollapsedDirectoryOverrides)||!n.collapsedDirectoryIds.has(o)&&(!!n.expandedDirectoryIds.has(o)||s(n,c)))}function l(n,o,c,u=n.snapshot.nodes[o]){if(null==u||!(0,t.isDirectoryNode)(u))return;const l=s(n,u);return c?l?(n.collapsedDirectoryIds.delete(o),void(n.hasCollapsedDirectoryOverrides=n.collapsedDirectoryIds.size>0)):void n.expandedDirectoryIds.add(o):l?(n.collapsedDirectoryIds.add(o),void(n.hasCollapsedDirectoryOverrides=!0)):void n.expandedDirectoryIds.delete(o)}function p(t,n){const o=t.directoryLoadInfoById.get(n);if(null!=o)return o;const c={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return t.directoryLoadInfoById.set(n,c),c}function f(t,n){return t.directoryLoadInfoById.get(n)?.state??"loaded"}function y(t,n){const o=p(t,n);if("loading"===o.state&&null!=o.activeAttemptId)return{attemptId:o.activeAttemptId,nodeId:n,reused:!0};const c=o.nextAttemptId;return o.activeAttemptId=c,o.errorMessage=null,o.nextAttemptId+=1,o.state="loading",{attemptId:c,nodeId:n,reused:!1}}function I(t,n){const o=p(t,n);o.activeAttemptId=null,o.errorMessage=null,o.state="unloaded"}function b(t,n,o){const c=t.directoryLoadInfoById.get(n);return null!=c&&c.activeAttemptId===o&&(c.activeAttemptId=null,c.errorMessage=null,c.state="loaded",!0)}function D(t,n,o){return t.directoryLoadInfoById.get(n)?.activeAttemptId===o}function v(t,n,o,c){const s=t.directoryLoadInfoById.get(n);return null!=s&&s.activeAttemptId===o&&(s.activeAttemptId=null,s.errorMessage=c??null,s.state="error",!0)}function h(t,n){t.directoryLoadInfoById.delete(n)}},
|
|
20
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"batchEvents",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"createAddEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"createApplyChildPatchEvent",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"createBeginChildLoadEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createCleanupEvent",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"createCollapseEvent",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createCompleteChildLoadEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"createExpandEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createFailChildLoadEvent",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"createMarkDirectoryUnloadedEvent",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createMoveEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createRemoveEvent",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"finalizeEvent",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"recordEvent",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"subscribe",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);function o(t,n,o){const c=o,f=t.listeners.get(n);return null!=f?f.add(c):t.listeners.set(n,new Set([c])),()=>{const o=t.listeners.get(n);null!=o&&(o.delete(c),0===o.size&&t.listeners.delete(n))}}function c(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function f(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:t.path,projectionChanged:t.projectionChanged,recursive:t.recursive,visibleCountDelta:null}}function s(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,from:t.from,operation:"move",projectionChanged:t.projectionChanged,to:t.to,visibleCountDelta:null}}function u(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function l(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function h(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function p(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:t.path,projectionChanged:t.projectionChanged,reused:t.reused,visibleCountDelta:null}}function C(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:t.childEvents.some(t=>t.canonicalChanged),childEvents:t.childEvents,operation:"apply-child-patch",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function I(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function v(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,errorMessage:t.errorMessage,operation:"fail-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function b(t){return{activeNodeCountAfter:t.activeNodeCountAfter,activeNodeCountBefore:t.activeNodeCountBefore,affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],cachedPathEntryCountAfter:t.cachedPathEntryCountAfter,cachedPathEntryCountBefore:t.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:t.idsPreserved,loadInfoEntryCountAfter:t.loadInfoEntryCountAfter,loadInfoEntryCountBefore:t.loadInfoEntryCountBefore,mode:t.mode,operation:"cleanup",projectionChanged:t.projectionChanged,reclaimedCachedPathEntryCount:t.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:t.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:t.reclaimedNodeSlotCount,reclaimedSegmentCount:t.reclaimedSegmentCount,segmentCountAfter:t.segmentCountAfter,segmentCountBefore:t.segmentCountBefore,totalNodeSlotCountAfter:t.totalNodeSlotCountAfter,totalNodeSlotCountBefore:t.totalNodeSlotCountBefore,visibleCountDelta:null}}function A(t,n,o){return Object.assign({},o,{visibleCountDelta:w(t)-n})}function j(t,o){const c=w(t),f=(0,n.createTransactionFrame)();t.transactionStack.push(f);try{o()}catch(n){throw E(t,f,!1),n}E(t,f,!0,w(t)-c)}function N(n,o){const c=n.instrumentation;null!=c?(0,t.withBenchmarkPhase)(c,"store.events.record",()=>y(n,o)):y(n,o)}function y(t,n){const o=t.transactionStack[t.transactionStack.length-1]??null;null!=o?(o.events.push(n),B(o,n)):D(t,n)}function E(n,o,c,f=null){if(n.transactionStack.pop()!==o)throw new Error("Transaction stack underflow");if(!c)return;const s=n.transactionStack[n.transactionStack.length-1]??null;if(null!=s){const c=n.instrumentation;return void(null==c?S(s,o):(0,t.withBenchmarkPhase)(c,"store.events.batch.merge",()=>S(s,o)))}const u=P(o,f),l=n.instrumentation;null!=l?(0,t.withBenchmarkPhase)(l,"store.events.batch.commit",()=>D(n,u)):D(n,u)}function P(t,n){return{affectedAncestorIds:[...t.affectedAncestorIds],affectedNodeIds:[...t.affectedNodeIds],canonicalChanged:t.events.some(t=>t.canonicalChanged),events:[...t.events],operation:"batch",projectionChanged:t.events.some(t=>t.projectionChanged),visibleCountDelta:n}}function O(t,n){for(const o of n.affectedAncestorIds)t.affectedAncestorIds.add(o);for(const o of n.affectedNodeIds)t.affectedNodeIds.add(o)}function S(t,n){for(const o of n.events)t.events.push(o);O(t,n)}function B(t,n){for(const o of n.affectedNodeIds)t.affectedNodeIds.add(o);for(const o of n.affectedAncestorIds)t.affectedAncestorIds.add(o)}function D(n,o){const c=n.instrumentation;null!=c?(0,t.withBenchmarkPhase)(c,"store.events.emit",()=>k(n,o)):k(n,o)}function k(t,n){t.listeners.get(n.operation)?.forEach(t=>t(n)),t.listeners.get("*")?.forEach(t=>t(n))}function w(t){return t.snapshot.nodes[t.snapshot.rootId]?.visibleSubtreeCount??0}},
|
|
21
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"collectFlattenedDirectoryChainIds",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getFlattenedChildDirectoryId",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getFlattenedTerminalDirectoryId",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(n,l){if(!0!==n.snapshot.options.flattenEmptyDirectories)return null;const o=n.snapshot.nodes[l];if(null==o||!(0,t.isDirectoryNode)(o)||(0,t.hasNodeFlag)(o,2))return null;const u=n.snapshot.directories.get(l);if(null==u||1!==u.childIds.length)return null;const c=u.childIds[0];if(null==c)return null;const s=n.snapshot.nodes[c];return null!=s&&(0,t.isDirectoryNode)(s)?c:null}function l(t,l){let o=l;for(;;){const l=n(t,o);if(null==l)return o;o=l}}function o(t,l){const o=[l];let u=l;for(;;){const l=n(t,u);if(null==l)return o;o.push(l),u=l}}},
|
|
22
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addPath",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"collectAncestorIds",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"findNodeId",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"findNodeIdBySegments",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"getDirectoryIndex",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"listPaths",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"materializeNodePath",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"movePath",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"recomputeCountsRecursive",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"recomputeCountsUpwardFrom",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"removePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"requireNode",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]);function f(t,n){const o=null==n?t.snapshot.rootId:P(t,n);return null==o?[]:E(t,o)}function I(t,o){const l=(0,s.parseInputPath)(o),c=l.isDirectory?l.segments:l.segments.slice(0,-1),u=R(t,M(t,c)),{createdNodeIds:p,directoryId:f}=B(t,c),I=new Set(p);let b=f;if(l.isDirectory){const s=k(t,f);if((0,n.hasNodeFlag)(s,1))throw new Error(`Path already exists: "${o}"`);(0,n.addNodeFlag)(s,1),t.pathCacheByNodeId.set(f,{path:o,version:t.pathCacheVersion}),I.add(f)}else b=O(t,f,l.basename),I.add(b);v(t,f);const N=R(t,f);return(0,h.createAddEvent)({affectedAncestorIds:S(t,b),affectedNodeIds:[...I],path:o,projectionChanged:J(u,N)})}function b(t,o,s){const l=P(t,o);if(null==l)throw new Error(`Path does not exist: "${o}"`);const c=k(t,l);if((0,n.hasNodeFlag)(c,2))throw new Error("The root node cannot be removed");if((0,n.isDirectoryNode)(c)&&x(t,l).childIds.length>0&&!0!==s.recursive)throw new Error(`Cannot remove a non-empty directory without recursive: "${o}"`);const u=c.parentId,p=R(t,u),f=q(t,l);V(t,u,l,c.nameId),z(t,u),v(t,u);const I=R(t,u);return(0,h.createRemoveEvent)({affectedAncestorIds:S(t,u),affectedNodeIds:f,path:o,projectionChanged:J(p,I),recursive:!0===s.recursive})}function N(o,s,l,u){const p=P(o,s);if(null==p)throw new Error(`Source path does not exist: "${s}"`);const f=k(o,p);if((0,n.hasNodeFlag)(f,2))throw new Error("The root node cannot be moved");const I=u.collision??"error",b=U(o,p,l),N=R(o,f.parentId),y=R(o,b.parentId),C=(0,c.getSegmentValue)(o.snapshot.segmentTable,f.nameId),w=(0,c.internSegment)(o.snapshot.segmentTable,b.basename);if(b.parentId===f.parentId&&C===b.basename)return null;if((0,n.isDirectoryNode)(f)&&W(o,p,b.parentId))throw new Error("Cannot move a directory into one of its descendants");const F=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,x(o,b.parentId)).get(w),E=b.existingNodeId??F??null;if(null!=E&&E!==p&&"skip"===_(o,E,I,(0,n.getNodeKind)(f)))return null;const B=f.parentId;V(o,B,p,f.nameId),f.parentId=b.parentId,f.nameId=w,o.pathCacheByNodeId.delete(p),Q(o,p),A(o,b.parentId,p),z(o,B),o.pathCacheVersion++,v(o,B),b.parentId!==B&&v(o,b.parentId);const j=R(o,B),O=R(o,b.parentId);return(0,h.createMoveEvent)({affectedAncestorIds:[...new Set([...S(o,B),...S(o,b.parentId)])],affectedNodeIds:[p],from:s,projectionChanged:G([N,y],[j,O]),to:D(o,p)})}function y(t,n){const o=t.pathCacheByNodeId.get(n);return null!=o&&o.version===t.pathCacheVersion?o.path:null}function C(t,n,o){return t.pathCacheByNodeId.set(n,{path:o,version:t.pathCacheVersion}),o}function D(t,o){const s=k(t,o),l=y(t,o);if(null!=l)return l;if((0,n.hasNodeFlag)(s,2))return C(t,o,"");const u=D(t,s.parentId),h=(0,c.getSegmentValue)(t.snapshot.segmentTable,s.nameId),p=0===u.length?h:`${u}${h}`;return C(t,o,(0,n.isDirectoryNode)(s)?`${p}/`:p)}function v(t,n){const s=t.instrumentation;null!=s?(0,o.withBenchmarkPhase)(s,"store.recomputeCountsUpwardFrom",()=>Y(t,n)):Y(t,n)}function w(t,o){const s=[[o,0]],{nodes:l,directories:c}=t.snapshot;for(;s.length>0;){const o=s[s.length-1],u=o[0],h=l[u];if(null==h||!(0,n.isDirectoryNode)(h)){X(t,u,h,!0),s.pop();continue}const p=c.get(u);if(null==p||o[1]>=p.childIds.length){X(t,u,h,!0),s.pop();continue}const f=p.childIds[o[1]++];s.push([f,0])}}function S(t,n){const o=[];let s=n;for(;null!=s;){const n=k(t,s);if(o.push(s),s===t.snapshot.rootId)break;s=n.parentId}return o}function P(t,n){if(0===n.length)return t.snapshot.rootId;const o=(0,s.parseLookupPath)(n);return F(t,o.segments,o.requiresDirectory)}function F(o,s,l){let c=o.snapshot.rootId;for(const n of s){const s=o.snapshot.segmentTable.idByValue.get(n);if(void 0===s)return null;const l=x(o,c),u=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,l).get(s);if(void 0===u)return null;c=u}const u=k(o,c);return l&&!(0,n.isDirectoryNode)(u)?null:c}function x(t,n){const o=t.snapshot.directories.get(n);if(void 0===o)throw new Error(`Unknown directory child index for node ${String(n)}`);return o}function k(t,o){const s=t.snapshot.nodes[o];if(void 0===s||(0,n.hasNodeFlag)(s,4))throw new Error(`Unknown node ID: ${String(o)}`);return s}function E(t,o){const s=t.snapshot.nodes[o];if(void 0===s||(0,n.hasNodeFlag)(s,4))return[];if(!(0,n.isDirectoryNode)(s))return[D(t,o)];if(0===x(t,o).childIds.length)return(0,n.hasNodeFlag)(s,1)&&!(0,n.hasNodeFlag)(s,2)?[D(t,o)]:[];const l=[],c=[{childIndex:0,nodeId:o}];for(;c.length>0;){const o=c[c.length-1];if(null==o)break;const s=t.snapshot.nodes[o.nodeId];if(void 0===s||(0,n.hasNodeFlag)(s,4)){c.pop();continue}if(!(0,n.isDirectoryNode)(s)){l.push(D(t,o.nodeId)),c.pop();continue}const u=x(t,o.nodeId);if(0===u.childIds.length){(0,n.hasNodeFlag)(s,1)&&!(0,n.hasNodeFlag)(s,2)&&l.push(D(t,o.nodeId)),c.pop();continue}const h=u.childIds[o.childIndex];null!=h?(o.childIndex++,c.push({childIndex:0,nodeId:h})):c.pop()}return l}function B(o,s){const l=[];let u=o.snapshot.rootId;for(const h of s){const s=(0,c.internSegment)(o.snapshot.segmentTable,h),p=x(o,u),f=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,p).get(s);if(void 0!==f){const t=k(o,f);if(!(0,n.isDirectoryNode)(t))throw new Error(`Cannot create a directory that collides with an existing file: "${h}"`);u=f;continue}u=j(o,u,s),l.push(u)}return{createdNodeIds:l,directoryId:u}}function j(o,s,l){const c=k(o,s),u=o.snapshot.nodes.length;return o.snapshot.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(c)+1,0,1),nameId:l,parentId:s,subtreeNodeCount:1,visibleSubtreeCount:1}),o.snapshot.directories.set(u,(0,t.createDirectoryChildIndex)()),A(o,s,u),o.collapseNewDirectoriesByDefault&&(o.collapsedDirectoryIds.add(u),o.hasCollapsedDirectoryOverrides=!0),o.activeNodeCount++,u}function O(o,s,l){const u=(0,c.internSegment)(o.snapshot.segmentTable,l),h=x(o,s);if((0,t.ensureChildIdByNameId)(o.snapshot.nodes,h).has(u))throw new Error(`Path already exists: "${ee(o,s,l)}"`);const p=k(o,s),f=o.snapshot.nodes.length;return o.snapshot.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0),nameId:u,parentId:s,subtreeNodeCount:1,visibleSubtreeCount:1}),A(o,s,f),o.activeNodeCount++,f}function T(t,n,o){let s=0,l=n.childIds.length;for(;s<l;){const c=s+l>>>1,u=n.childIds[c];null!=u?$(t,o,u)<0?l=c:s=c+1:l=c}return s}function A(n,o,s){const l=x(n,o),c=k(n,s);(0,t.ensureChildIdByNameId)(n.snapshot.nodes,l).set(c.nameId,s),(0,t.applyChildAggregateDelta)(l,s,c.subtreeNodeCount,c.visibleSubtreeCount);const u=T(n,l,s);l.childIds.splice(u,0,s),(0,t.updateChildPositionsFrom)(l,u),(0,t.rebuildVisibleChildChunks)(n.snapshot.nodes,l)}function V(n,o,s,l){const c=x(n,o),u=(0,t.ensureChildPositions)(c),h=u.get(s)??-1;(0,t.ensureChildIdByNameId)(n.snapshot.nodes,c).delete(l),u.delete(s);const p=n.snapshot.nodes[s];null!=p&&(0,t.applyChildAggregateDelta)(c,s,-p.subtreeNodeCount,-p.visibleSubtreeCount),h>=0&&(c.childIds.splice(h,1),(0,t.updateChildPositionsFrom)(c,h),(0,t.rebuildVisibleChildChunks)(n.snapshot.nodes,c))}function $(t,n,o){const s=t.snapshot.options.sort;return"default"===s?K(t,n,o):s(L(t,n),L(t,o))}function K(t,o,s){const u=k(t,o),h=k(t,s),p=(0,n.isDirectoryNode)(u);if(p!==(0,n.isDirectoryNode)(h))return p?-1:1;const f=(0,l.getSegmentSortKey)(t.snapshot.segmentTable,u.nameId),I=(0,l.getSegmentSortKey)(t.snapshot.segmentTable,h.nameId),b=(0,l.compareSegmentSortKeys)(f,I);if(0!==b)return b;const N=(0,c.getSegmentValue)(t.snapshot.segmentTable,u.nameId),y=(0,c.getSegmentValue)(t.snapshot.segmentTable,h.nameId);return N!==y?N<y?-1:1:o<s?-1:1}function L(t,o){const s=k(t,o),l=D(t,o),u=(0,n.isDirectoryNode)(s),h=u?l.slice(0,-1):l;return{basename:(0,c.getSegmentValue)(t.snapshot.segmentTable,s.nameId),depth:(0,n.getNodeDepth)(s),isDirectory:u,path:l,segments:0===h.length?[]:h.split("/")}}function U(t,o,l){const u=k(t,o),h=P(t,l);if(null!=h){const o=k(t,h);if((0,n.isDirectoryNode)(o))return{basename:(0,c.getSegmentValue)(t.snapshot.segmentTable,u.nameId),existingNodeId:null,parentId:h};const p=(0,s.parseLookupPath)(l).segments;return{basename:p[p.length-1]??"",existingNodeId:h,parentId:o.parentId}}const p=(0,s.parseLookupPath)(l),f=p.segments[p.segments.length-1]??"",I=p.segments.slice(0,-1),b=0===I.length?t.snapshot.rootId:F(t,I,!0);if(null==b)throw new Error(`Destination parent does not exist: "${l}"`);return{basename:f,existingNodeId:null,parentId:b}}function _(t,o,s,l){if("skip"===s)return"skip";if("error"===s)throw new Error(`Destination already exists: "${D(t,o)}"`);const c=k(t,o);if((0,n.getNodeKind)(c)!==l)throw new Error("replace collision requires the same source and destination kinds");if((0,n.isDirectoryNode)(c)&&x(t,o).childIds.length>0)throw new Error("replace collision does not support non-empty directories");const u=c.parentId,h=c.nameId;return q(t,o),V(t,u,o,h),z(t,u),v(t,u),"handled"}function q(t,o){const s=[],l=[{nodeId:o,visitedChildren:!1}];for(;l.length>0;){const o=l.pop();if(null==o)break;const c=k(t,o.nodeId);if(o.visitedChildren||!(0,n.isDirectoryNode)(c)){(0,n.isDirectoryNode)(c)&&t.snapshot.directories.delete(o.nodeId),(0,n.addNodeFlag)(c,4),t.pathCacheByNodeId.delete(o.nodeId),t.collapsedDirectoryIds.delete(o.nodeId)&&(t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0),t.expandedDirectoryIds.delete(o.nodeId),(0,u.clearDirectoryLoadInfo)(t,o.nodeId),t.activeNodeCount--,s.push(o.nodeId);continue}l.push({nodeId:o.nodeId,visitedChildren:!0});const h=x(t,o.nodeId);for(let t=h.childIds.length-1;t>=0;t--){const n=h.childIds[t];null!=n&&l.push({nodeId:n,visitedChildren:!1})}}return s}function z(t,o){let s=o;for(;null!=s;){const o=k(t,s);if(!(0,n.isDirectoryNode)(o)||(0,n.hasNodeFlag)(o,2))return;if(x(t,s).childIds.length>0)return;(0,n.addNodeFlag)(o,1),s=o.parentId===s?null:o.parentId}}function M(o,s){let l=o.snapshot.rootId;for(const c of s){const s=o.snapshot.segmentTable.idByValue.get(c);if(null==s)break;const u=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,x(o,l)).get(s);if(null==u)break;const h=k(o,u);if(!(0,n.isDirectoryNode)(h))break;l=u}return l}function R(t,o){const s=H(t,o);if(null==s)return null;const l=(0,p.getFlattenedTerminalDirectoryId)(t,s),c=k(t,l),u=s===l?null:(0,p.collectFlattenedDirectoryChainIds)(t,s).map(n=>D(t,n));return JSON.stringify({flattenedSegmentPaths:u,hasChildren:x(t,l).childIds.length>0,path:D(t,l),terminalKind:(0,n.getNodeKind)(c)})}function J(t,n){return G([t],[n])}function G(t,n){for(let o=0;o<t.length;o+=1){const s=t[o],l=n[o];if(null==s||null==l||s!==l)return!0}return!1}function H(t,o){let s=o;for(;null!=s;){const o=k(t,s);if(!(0,n.isDirectoryNode)(o)||(0,n.hasNodeFlag)(o,2))return null;if(!(0,u.isDirectoryExpanded)(t,s,o))return s;s=o.parentId}return null}function Q(t,o){const s=k(t,o),l=o===t.snapshot.rootId?-1:(0,n.getNodeDepth)(k(t,s.parentId));if((0,n.setNodeDepth)(s,l+1),!(0,n.isDirectoryNode)(s))return;const c=x(t,o);for(const n of c.childIds)Q(t,n)}function W(t,n,o){let s=o;for(;null!=s;){if(s===n)return!0;const o=k(t,s);if(s===t.snapshot.rootId)return!1;s=o.parentId}return!1}function X(t,n,s=k(t,n),l=!1){const c=t.instrumentation;null!=c?(0,o.withBenchmarkPhase)(c,"store.recomputeNodeCounts",()=>Z(t,n,s,l)):Z(t,n,s,l)}function Y(n,o){let s=o;for(;null!=s;){const o=k(n,s),l=o.subtreeNodeCount,c=o.visibleSubtreeCount;if(X(n,s,o),s===n.snapshot.rootId)return;const u=o.subtreeNodeCount-l,h=o.visibleSubtreeCount-c,p=o.parentId;0===u&&0===h||(0,t.applyChildAggregateDelta)(x(n,p),s,u,h),s=p}}function Z(s,l,c,h){if(!(0,n.isDirectoryNode)(c))return c.subtreeNodeCount=1,void(c.visibleSubtreeCount=1);const f=x(s,l);if(h){const n=s.instrumentation;null==n?(0,t.rebuildDirectoryChildAggregates)(s.snapshot.nodes,f):(0,o.withBenchmarkPhase)(n,"store.recomputeNodeCounts.rebuildChildAggregates",()=>(0,t.rebuildDirectoryChildAggregates)(s.snapshot.nodes,f))}const I=1+f.totalChildSubtreeNodeCount,b=f.totalChildVisibleSubtreeCount;c.subtreeNodeCount=I,(0,n.hasNodeFlag)(c,2)?c.visibleSubtreeCount=b:c.visibleSubtreeCount=null!=(0,p.getFlattenedChildDirectoryId)(s,l)?b:(0,u.isDirectoryExpanded)(s,l,c)?1+b:1}function ee(t,n,o){const s=D(t,n);return 0===s.length?o:`${s}${o}`}},1249,[1238,1239,1240,1244,1241,1245,1246,1247,1248]);
|
|
23
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPathStoreState",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"hasActiveCleanupBlockingLoads",{enumerable:!0,get:function(){return x}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]);function l(t){return null!=t&&!(0,n.hasNodeFlag)(t,4)}function p(t,o){const s=t.snapshot.nodes[o];return l(s)&&(0,n.isDirectoryNode)(s)&&!(0,n.hasNodeFlag)(s,2)?s:null}function f(t){let n=0;for(const[o,s]of t.pathCacheByNodeId)s.version===t.pathCacheVersion&&l(t.snapshot.nodes[o])&&(n+=1);return n}function C(t){return{activeNodeCount:t.activeNodeCount,cachedPathEntryCount:f(t),loadInfoEntryCount:t.directoryLoadInfoById.size,segmentCount:(n=t.snapshot.segmentTable,Math.max(0,n.valueById.length-1)),totalNodeSlotCount:Math.max(0,t.snapshot.nodes.length-1)};var n}function I(t,n,o,s){return{activeNodeCountAfter:s.activeNodeCount,activeNodeCountBefore:o.activeNodeCount,cachedPathEntryCountAfter:s.cachedPathEntryCount,cachedPathEntryCountBefore:o.cachedPathEntryCount,idsPreserved:n,loadInfoEntryCountAfter:s.loadInfoEntryCount,loadInfoEntryCountBefore:o.loadInfoEntryCount,mode:t,reclaimedCachedPathEntryCount:o.cachedPathEntryCount-s.cachedPathEntryCount,reclaimedLoadInfoEntryCount:o.loadInfoEntryCount-s.loadInfoEntryCount,reclaimedNodeSlotCount:o.totalNodeSlotCount-s.totalNodeSlotCount,reclaimedSegmentCount:o.segmentCount-s.segmentCount,segmentCountAfter:s.segmentCount,segmentCountBefore:o.segmentCount,totalNodeSlotCountAfter:s.totalNodeSlotCount,totalNodeSlotCountBefore:o.totalNodeSlotCount}}function y(t){const n=[],o=[];for(const o of t.collapsedDirectoryIds)null!=p(t,o)&&n.push((0,h.materializeNodePath)(t,o));for(const n of t.expandedDirectoryIds)null!=p(t,n)&&o.push((0,h.materializeNodePath)(t,n));return{collapsedPaths:n,expandedPaths:o}}function P(t){const n=[];for(const[o,s]of t.directoryLoadInfoById)null!=p(t,o)&&"loaded"!==(0,u.getDirectoryLoadState)(t,o)&&n.push({info:{activeAttemptId:null,errorMessage:s.errorMessage,nextAttemptId:s.nextAttemptId,state:s.state},path:(0,h.materializeNodePath)(t,o)});return n}function N(t,n){t.collapsedDirectoryIds.clear(),t.hasCollapsedDirectoryOverrides=!1,t.expandedDirectoryIds.clear();for(const o of n.expandedPaths){const n=(0,h.findNodeId)(t,o);null!=n&&(0,u.setDirectoryExpanded)(t,n,!0,(0,h.requireNode)(t,n))}for(const o of n.collapsedPaths){const n=(0,h.findNodeId)(t,o);null!=n&&(0,u.setDirectoryExpanded)(t,n,!1,(0,h.requireNode)(t,n))}}function B(t,n){t.directoryLoadInfoById.clear();for(const o of n){const n=(0,h.findNodeId)(t,o.path);null!=n&&(null!=p(t,n)&&t.directoryLoadInfoById.set(n,{activeAttemptId:null,errorMessage:o.info.errorMessage,nextAttemptId:o.info.nextAttemptId,state:o.info.state}))}}function v(t){t.pathCacheVersion+=1,t.pathCacheByNodeId.clear(),t.pathCacheByNodeId.set(t.snapshot.rootId,{path:"",version:t.pathCacheVersion})}function b(t){const o=t.snapshot.segmentTable,c=(0,s.createSegmentTable)();for(const u of t.snapshot.nodes)l(u)&&((0,n.hasNodeFlag)(u,2)?u.nameId=0:u.nameId=(0,s.internSegment)(c,(0,s.getSegmentValue)(o,u.nameId)));t.snapshot.segmentTable=c}function E(o){for(const[s,c]of o.snapshot.directories){const u=o.snapshot.nodes[s];if(!l(u)||!(0,n.isDirectoryNode)(u)){o.snapshot.directories.delete(s);continue}const p=c.childIds.filter(t=>{const n=o.snapshot.nodes[t];return l(n)&&n.parentId===s});c.childIds=p,c.childIdByNameId=new Map(p.map(t=>[(0,h.requireNode)(o,t).nameId,t])),c.childPositionById=new Map(p.map((t,n)=>[t,n])),(0,t.rebuildDirectoryChildAggregates)(o.snapshot.nodes,c)}}function S(t){let n=t.snapshot.nodes.length-1;for(;n>t.snapshot.rootId;){if(l(t.snapshot.nodes[n]))break;n-=1}t.snapshot.nodes.length=n+1}function w(t){const n=y(t),s=P(t);(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.clearPathCaches",()=>v(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>b(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>E(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>S(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>N(t,n)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>B(t,s)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.recomputeCounts",()=>(0,h.recomputeCountsRecursive)(t,t.snapshot.rootId))}function k(t){const n=y(t),s=P(t),u=(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.listPaths",()=>(0,h.listPaths)(t)),l=(0,o.attachBenchmarkInstrumentation)(Object.assign({},t.snapshot.options),t.instrumentation),p=(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{const t=new c.PathStoreBuilder(l);return t.appendPaths(u),t.finish()});t.snapshot=p,t.activeNodeCount=p.nodes.length-1,t.pathCacheByNodeId=new Map([[p.rootId,{path:"",version:0}]]),t.pathCacheVersion=0,(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>N(t,n)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>B(t,s)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>(0,h.recomputeCountsRecursive)(t,t.snapshot.rootId))}function x(t){for(const n of t.directoryLoadInfoById.values())if("loading"===n.state&&null!=n.activeAttemptId)return!0;return!1}function A(t,n){const s=C(t);"stable"===n?(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable",()=>w(t)):(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive",()=>k(t));return I(n,"stable"===n,s,C(t))}},
|
|
24
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"collapsePath",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"expandPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getVisibleCount",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getVisibleIndexByPath",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getVisibleRowContext",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"getVisibleSlice",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getVisibleTreeProjection",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getVisibleTreeProjectionData",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]);const I=64;function f(t,n){const o=n+2;if(o<=t.length)return t;let s=t.length;for(;s<o;)s*=2;const l=new Int32Array(s);return l.fill(-1),l.set(t),l}function p(t){return(0,h.requireNode)(t,t.snapshot.rootId).visibleSubtreeCount}function y(t,n,o,s){const l=(0,h.requireNode)(t,n.terminalNodeId),c=Math.max(1,l.visibleSubtreeCount);return Math.min(s-1,o+c-1)}function N(t,n,o,s){return{ancestorPaths:s,index:n.index,posInSet:n.posInSet,row:A(t,n.cursor),setSize:n.setSize,subtreeEndIndex:y(t,n.cursor,n.index,o)}}function b(n,o,s,l,c,u){const I=(0,h.getDirectoryIndex)(n,o),{childIndex:f,childVisibleIndex:p,localVisibleIndex:y}=(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,I,s),N=I.childIds[f];if(null==N)throw new Error(`Visible index ${String(s)} is out of range`);return x(n,N,y,l+p,c+1,f,I.childIds.length,u)}function x(t,o,s,c,u,I,f,p){const y=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(y)){if(0===s)return{ancestors:p,cursor:{headNodeId:o,terminalNodeId:o,visibleDepth:u},index:c,posInSet:I,setSize:f};throw new Error(`Visible index ${String(s)} is out of range for file`)}const N=z(t,o,u);if(0===s)return{ancestors:p,cursor:N,index:c,posInSet:I,setSize:f};const x=(0,h.requireNode)(t,N.terminalNodeId);if(!(0,n.isDirectoryNode)(x)||!(0,l.isDirectoryExpanded)(t,N.terminalNodeId,x))throw new Error(`Visible index ${String(s)} is out of range for collapsed directory`);return b(t,N.terminalNodeId,s-1,c+1,N.visibleDepth,[...p,{cursor:N,index:c,posInSet:I,setSize:f}])}function D(t,n){const o=p(t);if(n<0||n>=o)return null;const s=b(t,t.snapshot.rootId,n,0,-1,[]),l=s.ancestors.map(n=>(0,h.materializeNodePath)(t,n.cursor.terminalNodeId));let c=null;return{ancestorPaths:l,get ancestorRows(){if(null!=c)return c;const n=[],l=[];for(const c of s.ancestors){const s=N(t,c,o,[...l]);n.push(s),l.push(s.row.path)}return c=n,c},index:s.index,posInSet:s.posInSet,row:A(t,s.cursor),setSize:s.setSize,subtreeEndIndex:y(t,s.cursor,s.index,o)}}function w(t,n,s){const l=t.instrumentation,c=p(t);if(c<=0||s<n)return[];const u=Math.max(0,Math.min(n,c-1)),h=Math.max(u,Math.min(s,c-1));if(null==l){if(0===u)return j(t,h+1);const n=[];let o=V(t,u);for(let s=u;s<=h&&null!=o;s++){const s=A(t,o);n.push(s),o=T(t,o)}return n}const I=[];let f=0,y=0,N=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.selectFirstRow",()=>V(t,u));for(let n=u;n<=h&&null!=N;n++){const n=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.materializeRow",()=>A(t,N));I.push(n),n.isFlattened&&(f++,y+=n.flattenedSegments?.length??0),N=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.advanceCursor",()=>T(t,N))}return(0,o.setBenchmarkCounter)(l,"workload.visibleRowsRead",I.length),(0,o.setBenchmarkCounter)(l,"workload.flattenedRowsRead",f),(0,o.setBenchmarkCounter)(l,"workload.flattenedSegmentsRead",y),I}function S(t,n=p(t)){const s=t.instrumentation;return null==s?k(t,n):(0,o.withBenchmarkPhase)(s,"store.getVisibleTreeProjection",()=>k(t,n))}function P(t){return $(S(t))}function C(o,s){const c=(0,h.findNodeId)(o,s);if(null==c||c===o.snapshot.rootId)return null;const I=(0,h.requireNode)(o,c);if((0,n.isDirectoryNode)(I)&&(0,u.getFlattenedTerminalDirectoryId)(o,c)!==c)return null;let f=0,p=c;const{nodes:y,rootId:N}=o.snapshot;for(;p!==N;){const n=(0,h.requireNode)(o,p).parentId,s=(0,h.getDirectoryIndex)(o,n),c=(0,t.ensureChildPositions)(s).get(p);if(null==c)throw new Error(`Child ${String(p)} was not found in its parent index`);if(f+=(0,t.getVisibleChildPrefixCount)(y,s,c),n!==N){const t=(0,h.requireNode)(o,n),s=(0,u.getFlattenedChildDirectoryId)(o,n);if(!(0,l.isDirectoryExpanded)(o,n,t)&&s!==p)return null;(0,u.getFlattenedTerminalDirectoryId)(o,n)===n&&(f+=1)}p=n}return f}function E(t,o){const s=(0,h.findNodeId)(t,o);if(null==s)throw new Error(`Path does not exist: "${o}"`);const u=(0,h.requireNode)(t,s);if(!(0,n.isDirectoryNode)(u))throw new Error(`Path is not a directory: "${o}"`);return(0,l.isDirectoryExpanded)(t,s,u)?null:((0,l.setDirectoryExpanded)(t,s,!0,u),(0,h.recomputeCountsUpwardFrom)(t,s),(0,c.createExpandEvent)({affectedAncestorIds:(0,h.collectAncestorIds)(t,s),affectedNodeIds:[s],path:o,projectionChanged:!0}))}function v(t,o){const s=(0,h.findNodeId)(t,o);if(null==s)throw new Error(`Path does not exist: "${o}"`);const u=(0,h.requireNode)(t,s);if(!(0,n.isDirectoryNode)(u))throw new Error(`Path is not a directory: "${o}"`);return(0,l.isDirectoryExpanded)(t,s,u)?((0,l.setDirectoryExpanded)(t,s,!1,u),(0,h.recomputeCountsUpwardFrom)(t,s),(0,c.createCollapseEvent)({affectedAncestorIds:(0,h.collectAncestorIds)(t,s),affectedNodeIds:[s],path:o,projectionChanged:!0})):null}function V(t,n){return n<0||n>=p(t)?null:B(t,t.snapshot.rootId,n,-1)}function B(n,s,l,c){const u=(0,h.getDirectoryIndex)(n,s),I=n.instrumentation,{childIndex:f,localVisibleIndex:p}=null==I?(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,u,l):(0,o.withBenchmarkPhase)(I,"store.getVisibleSlice.selectChildIndex",()=>(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,u,l)),y=u.childIds[f];if(null!=y)return q(n,y,p,c+1);throw new Error(`Visible index ${String(l)} is out of range`)}function q(t,o,s,c){const u=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(u)){if(0===s)return{headNodeId:o,terminalNodeId:o,visibleDepth:c};throw new Error(`Visible index ${String(s)} is out of range for file`)}const I=z(t,o,c);if(0===s)return I;const f=(0,h.requireNode)(t,I.terminalNodeId);if(!(0,n.isDirectoryNode)(f)||!(0,l.isDirectoryExpanded)(t,I.terminalNodeId,f))throw new Error(`Visible index ${String(s)} is out of range for collapsed directory`);return B(t,I.terminalNodeId,s-1,I.visibleDepth)}function z(t,s,l){const c=(0,h.requireNode)(t,s);return(0,n.isDirectoryNode)(c)?null==t.instrumentation?{headNodeId:s,terminalNodeId:(0,u.getFlattenedTerminalDirectoryId)(t,s),visibleDepth:l}:{headNodeId:s,terminalNodeId:(0,o.withBenchmarkPhase)(t.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>(0,u.getFlattenedTerminalDirectoryId)(t,s)),visibleDepth:l}:{headNodeId:s,terminalNodeId:s,visibleDepth:l}}function F(t,o){const s=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(s))return!0;const l=s.parentId;return l===t.snapshot.rootId||(0,u.getFlattenedChildDirectoryId)(t,l)!==o}function T(o,s){const c=(0,h.requireNode)(o,s.terminalNodeId);if((0,n.isDirectoryNode)(c)){const t=(0,h.getDirectoryIndex)(o,s.terminalNodeId);if((0,l.isDirectoryExpanded)(o,s.terminalNodeId,c)&&t.childIds.length>0){const n=t.childIds[0];return null==n?null:q(o,n,0,s.visibleDepth+1)}}let u=s.terminalNodeId,I=s.visibleDepth;for(;;){const n=(0,h.requireNode)(o,u);if(u===o.snapshot.rootId)return null;const s=n.parentId,l=(0,h.getDirectoryIndex)(o,s),c=(0,t.ensureChildPositions)(l).get(u)??-1;if(c<0)throw new Error(`Child ${String(u)} was not found in its parent index`);const f=l.childIds[c+1]??null;if(null!=f)return q(o,f,0,I);F(o,u)&&I--,u=s}}function $(t){const n=t.paths.length,o=new Array(n);for(let s=0;s<n;s+=1){const n=t.getParentIndex(s);o[s]={index:s,parentPath:n>=0?t.paths[n]??null:null,path:t.paths[s]??"",posInSet:t.posInSetByIndex[s]??0,setSize:t.setSizeByIndex[s]??0}}return{getParentIndex:t.getParentIndex,rows:o,get visibleIndexByPath(){return t.visibleIndexByPath}}}function k(t,o){const s=new Array(o),c=new Int32Array(o),p=new Int32Array(o),y=new Int32Array(o);let N=new Int32Array(I);N.fill(-1);let b=0;const{nodes:x,directories:D,segmentTable:w}=t.snapshot,S=[[D.get(t.snapshot.rootId),0,-1,""]],P=t.snapshot.options.flattenEmptyDirectories,C=t.pathCacheByNodeId,E=t.pathCacheVersion,v=w.valueById;for(;S.length>0&&b<o;){const o=S[S.length-1],I=o[0];if(o[1]>=I.childIds.length){S.pop();continue}const w=o[1],V=I.childIds[o[1]++],B=x[V],q=o[2]+1,z=o[3];let F;N=f(N,q);let T=V;if((0,n.isDirectoryNode)(B))T=P?(0,u.getFlattenedTerminalDirectoryId)(t,V):V,F=T===V?`${z}${v[B.nameId]}/`:(0,h.materializeNodePath)(t,T);else{const t=C.get(V);F=null!=t&&t.version===E?t.path:`${z}${v[B.nameId]}`}const $=N[q];c[b]=$,s[b]=F,p[b]=w,y[b]=I.childIds.length,N[q+1]=b,b+=1;const k=x[T];null!=k&&(0,n.isDirectoryNode)(k)&&(0,l.isDirectoryExpanded)(t,T,k)&&S.push([D.get(T),0,q,F])}b<o&&(s.length=b);const V=c.subarray(0,b),B=p.subarray(0,b),q=y.subarray(0,b);let z=null;return{getParentIndex:t=>t<0||t>=b?-1:V[t]??-1,paths:s,posInSetByIndex:B,setSizeByIndex:q,get visibleIndexByPath(){if(null==z){z=new Map;for(let t=0;t<b;t+=1)z.set(s[t]??"",t)}return z}}}function j(t,o){const s=new Array(o);let c=0;const{nodes:I,directories:f,segmentTable:p}=t.snapshot,y=[[f.get(t.snapshot.rootId),0,-1]],N=p.valueById,b=t.snapshot.options.flattenEmptyDirectories,x=t.pathCacheByNodeId,D=t.pathCacheVersion;for(;y.length>0&&c<o;){const o=y[y.length-1],p=o[0];if(o[1]>=p.childIds.length){y.pop();continue}const w=p.childIds[o[1]++],S=I[w],P=o[2]+1;if(!(0,n.isDirectoryNode)(S)){const n=x.get(w);s[c++]={depth:P,flattenedSegments:void 0,hasChildren:!1,id:w,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:N[S.nameId],path:null!=n&&n.version===D?n.path:(0,h.materializeNodePath)(t,w)};continue}const C=b?(0,u.getFlattenedTerminalDirectoryId)(t,w):w,E={headNodeId:w,terminalNodeId:C,visibleDepth:P};s[c++]=A(t,E);const v=I[C];null!=v&&(0,n.isDirectoryNode)(v)&&(0,l.isDirectoryExpanded)(t,C,v)&&y.push([f.get(C),0,P])}return c<o&&(s.length=c),s}function A(t,c){const I=(0,h.requireNode)(t,c.terminalNodeId),f=(0,n.isDirectoryNode)(I)?O(t,c):null,p=(0,h.materializeNodePath)(t,c.terminalNodeId),y=(0,s.getSegmentValue)(t.snapshot.segmentTable,I.nameId),N=(0,n.isDirectoryNode)(I)&&(0,h.getDirectoryIndex)(t,c.terminalNodeId).childIds.length>0,b=c.headNodeId!==c.terminalNodeId,x=t.instrumentation,D=b?null==x?(0,u.collectFlattenedDirectoryChainIds)(t,c.headNodeId).map(n=>{const o=(0,h.requireNode)(t,n);return{isTerminal:n===c.terminalNodeId,name:(0,s.getSegmentValue)(t.snapshot.segmentTable,o.nameId),nodeId:n,path:(0,h.materializeNodePath)(t,n)}}):(0,o.withBenchmarkPhase)(x,"store.getVisibleSlice.flatten.collectSegments",()=>(0,u.collectFlattenedDirectoryChainIds)(t,c.headNodeId).map(n=>{const o=(0,h.requireNode)(t,n);return{isTerminal:n===c.terminalNodeId,name:(0,s.getSegmentValue)(t.snapshot.segmentTable,o.nameId),nodeId:n,path:(0,h.materializeNodePath)(t,n)}})):void 0;return{depth:c.visibleDepth,flattenedSegments:D,hasChildren:N,id:c.terminalNodeId,isExpanded:(0,n.isDirectoryNode)(I)&&(0,l.isDirectoryExpanded)(t,c.terminalNodeId,I),isFlattened:b,isLoading:"loading"===f,kind:(0,n.isDirectoryNode)(I)?"directory":"file",loadState:null==f||"loaded"===f?void 0:f,name:y,path:p}}function O(t,n){if(n.headNodeId===n.terminalNodeId)return(0,l.getDirectoryLoadState)(t,n.terminalNodeId);const o=(0,u.collectFlattenedDirectoryChainIds)(t,n.headNodeId);let s=!1,c=!1;for(const n of o){const o=(0,l.getDirectoryLoadState)(t,n);if("loading"===o)return"loading";"error"!==o?"unloaded"===o&&(s=!0):c=!0}return c?"error":s?"unloaded":"loaded"}},1251,[1238,1239,1240,1245,1246,1247,1248,1249]);
|
|
25
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildSoaNodeStore",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"sweepOpenVisibleCountsSoa",{enumerable:!0,get:function(){return o}});const t=8;function n(t){const{nodes:n,directories:o,rootId:l,options:s}=t,i=n.length,c=new Int32Array(i),u=new Int32Array(i),f=new Int32Array(i),I=new Int32Array(i),b=new Int32Array(i),h=new Int32Array(i),p=new Int32Array(i);for(let t=0;t<i;t+=1){const o=n[t];null!=o&&(c[t]=o.parentId,u[t]=o.nameId,f[t]=o.depthAndFlags,I[t]=o.subtreeNodeCount,b[t]=o.visibleSubtreeCount)}let y=0;for(const t of o.values())y+=t.childIds.length;const A=new Int32Array(y);let C=0;for(const[t,n]of o){const o=n.childIds;h[t]=C,p[t]=o.length;for(let t=0;t<o.length;t+=1)A[C]=o[t],C+=1}return{nodeCount:i,rootId:l,flattenEmptyDirectories:!0===s.flattenEmptyDirectories,parentId:c,nameId:u,depthAndFlags:f,subtreeNodeCount:I,visibleSubtreeCount:b,childStart:h,childCount:p,childIdsFlat:A}}function o(n){const{nodeCount:o,rootId:l,flattenEmptyDirectories:s,depthAndFlags:i,subtreeNodeCount:c,visibleSubtreeCount:u,childStart:f,childCount:I,childIdsFlat:b}=n;for(let n=o-1;n>=1;n-=1){if(0===(i[n]&t))continue;const o=f[n],l=I[n];let h,p=0,y=0;for(let t=0;t<l;t+=1){const n=b[o+t];p+=c[n],y+=u[n]}c[n]=1+p,h=s&&1===l&&0!==(i[b[o]]&t)?y:1+y,u[n]=h}const h=f[l],p=I[l];let y=0,A=0;for(let t=0;t<p;t+=1){const n=b[h+t];y+=c[n],A+=u[n]}c[l]=1+y,u[l]=A}},
|
|
26
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILE_TREE_DENSITY_PRESETS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"resolveFileTreeDensity",{enumerable:!0,get:function(){return n}});const t={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function n(n,o){if("number"==typeof n)return{itemHeight:o??t.default.itemHeight,factor:n};const c=t[n??"default"];return{itemHeight:o??c.itemHeight,factor:c.factor}}},
|
|
27
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EMPTY_RANGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_ITEM_HEIGHT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_OVERSCAN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_VIEWPORT_HEIGHT",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"computeStickyWindowLayout",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"computeVisibleRange",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"computeWindowRange",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"rangesEqual",{enumerable:!0,get:function(){return s}});const t=r(d[0]).FILE_TREE_DENSITY_PRESETS.default.itemHeight,n=10,o=420,u={start:0,end:-1};function c(t,n){if(n<=0||t.end<t.start)return u;const o=Math.max(0,Math.min(t.start,n-1));return{start:o,end:Math.max(o,Math.min(t.end,n-1))}}function s(t,n){return t.start===n.start&&t.end===n.end}function f({itemCount:t,itemHeight:n,scrollTop:o,viewportHeight:c}){if(t<=0)return u;const s=Math.floor(o/n),f=Math.ceil((o+c)/n)-1;return f<0||s>=t?u:{start:Math.max(0,s),end:Math.min(t-1,f)}}function E(t,n=u){const o=f(t),s=c(n,t.itemCount);return s.end>=s.start&&o.start>=s.start&&o.end<=s.end?s:(E=o,h=t.itemCount,l=t.overscan??10,E.end<E.start||h<=0?u:c({start:E.start-l,end:E.end+l},h));var E,h,l}function h({itemCount:t,itemHeight:n,range:o,viewportHeight:u}){const c=Math.max(0,t*n);if(o.end<o.start)return{totalHeight:c,offsetHeight:0,windowHeight:0,stickyInset:0};const s=o.start*n,f=(o.end-o.start+1)*n,E=Math.random()*n|0;return{totalHeight:c,offsetHeight:s,windowHeight:f,stickyInset:Math.min(0,u-f+E)}}},
|
|
28
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["composition","density","fileTreeSearchMode","gitStatus","id","initialSearchQuery","icons","itemHeight","labels","onSearchChange","onSelectionChange","overscan","renderRowDecoration","renaming","search","searchBlurBehavior","searchFakeFocus","stickyFolders","unsafeCSS","initialVisibleRowCount"],t=["composition","density","fileTreeSearchMode","gitStatus","id","initialSearchQuery","icons","itemHeight","labels","onSearchChange","onSelectionChange","overscan","renderRowDecoration","renaming","search","searchBlurBehavior","searchFakeFocus","stickyFolders","unsafeCSS","initialVisibleRowCount"];var l,s,n,o,u,h,f,c,p,S,y,v,b,T,P,w,F,C,E,O,I,H,j,R,_,V,M,B,$,L,A,D,G,N,k,x,U,z,W;function q(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTree",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"preloadFileTree",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"serializeFileTreeSsrPayload",{enumerable:!0,get:function(){return be}});var Q=q(r(d[0])),Y=q(r(d[1])),J=q(r(d[2])),K=r(d[3]),X=r(d[4]),Z=r(d[5]),ee=r(d[6]),te=r(d[7]),ie=r(d[8]),re=q(r(d[9])),ae=r(d[10]),le=r(d[11]),se=r(d[12]),ne=r(d[13]),oe=r(d[14]),ue=r(d[15]),de=r(d[16]),he=r(d[17]),fe=r(d[18]);let ce=0,pe=0;function Se({initialVisibleRowCount:e,itemHeight:t}){return null==e?420:Math.max(0,e)*(t??ie.FILE_TREE_DEFAULT_ITEM_HEIGHT)}function ye(e){if("undefined"==typeof document)return;const t=document.createElement("div");t.innerHTML=e;const l=t.querySelector("svg");return l instanceof SVGElement?l:void 0}function ve(e){const t=e?.header?.html?.trim();return null==t||0===t.length?"":`<div slot="${X.HEADER_SLOT_NAME}" data-file-tree-managed-slot="${X.HEADER_SLOT_NAME}">${t}</div>`}function me(e,t,l){const s="declarative"===t?"shadowrootmode=\"open\"":"data-file-tree-shadowrootmode=\"open\"";return`<file-tree-container id="${e}" data-file-tree-virtualized="true"${0===l.length?"":` style="${l}"`}><template ${s}>`}function ge(e){return`</template>${e}</file-tree-container>`}function be(e,t="declarative"){return`${"declarative"===t?e.outerStart:e.domOuterStart}${e.shadowHtml}${e.outerEnd}`}function Te(e){return e.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&e.querySelector("#file-tree-icon-file")instanceof SVGElement&&e.querySelector("#file-tree-icon-dot")instanceof SVGElement&&e.querySelector("#file-tree-icon-lock")instanceof SVGElement}function Pe(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var we=(s=(0,J.default)("composition"),n=(0,J.default)("controller"),o=(0,J.default)("id"),u=(0,J.default)("onSelectionChange"),h=(0,J.default)("renderRowDecoration"),f=(0,J.default)("renamingEnabled"),c=(0,J.default)("searchBlurBehavior"),p=(0,J.default)("searchEnabled"),S=(0,J.default)("searchFakeFocus"),y=(0,J.default)("slotHost"),v=(0,J.default)("density"),b=(0,J.default)("viewOptions"),T=(0,J.default)("fileTreeContainer"),P=(0,J.default)("gitStatusState"),w=(0,J.default)("icons"),F=(0,J.default)("labels"),C=(0,J.default)("unsafeCSS"),E=(0,J.default)("unsafeCSSStyle"),O=(0,J.default)("appliedUnsafeCSS"),I=(0,J.default)("selectionVersion"),H=(0,J.default)("selectionSubscription"),j=(0,J.default)("wrapper"),R=(0,J.default)("wroteHostItemHeight"),_=(0,J.default)("wroteHostDensityFactor"),V=(0,J.default)("getInitialViewOptions"),M=(0,J.default)("getViewProps"),B=(0,J.default)("getMountedTreeElements"),$=(0,J.default)("syncIconSurface"),L=(0,J.default)("emitSelectionChange"),A=(0,J.default)("syncHeaderSlotContent"),D=(0,J.default)("syncBuiltInSpriteSheet"),G=(0,J.default)("syncCustomSpriteSheet"),N=(0,J.default)("syncIconModeAttrs"),k=(0,J.default)("syncUnsafeCSS"),x=(0,J.default)("getOrCreateWrapper"),U=(0,J.default)("prepareHost"),z=(0,J.default)("applyDensityHostStyle"),W=(0,J.default)("removeOwnedDensityHostStyle"),(l=class{constructor(t){Object.defineProperty(this,W,{value:Ae}),Object.defineProperty(this,z,{value:Le}),Object.defineProperty(this,U,{value:$e}),Object.defineProperty(this,x,{value:Be}),Object.defineProperty(this,k,{value:Me}),Object.defineProperty(this,N,{value:Ve}),Object.defineProperty(this,G,{value:Re}),Object.defineProperty(this,D,{value:je}),Object.defineProperty(this,A,{value:He}),Object.defineProperty(this,L,{value:Ie}),Object.defineProperty(this,$,{value:Oe}),Object.defineProperty(this,B,{value:Ee}),Object.defineProperty(this,M,{value:Ce}),Object.defineProperty(this,V,{value:Fe}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:new de.FileTreeManagedSlotHost}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,T,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,C,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:null}),Object.defineProperty(this,j,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:!1}),Object.defineProperty(this,_,{writable:!0,value:!1});const{composition:l,density:q,fileTreeSearchMode:J,gitStatus:K,id:X,initialSearchQuery:Z,icons:ie,itemHeight:re,labels:ae,onSearchChange:le,onSelectionChange:oe,overscan:ue,renderRowDecoration:he,renaming:fe,search:ce,searchBlurBehavior:Se,searchFakeFocus:ye,stickyFolders:ve,unsafeCSS:me,initialVisibleRowCount:ge}=t,be=(0,Q.default)(t,e);var Te;(0,Y.default)(this,s)[s]=l,(0,Y.default)(this,o)[o]=null!=(Te=X)&&Te.length>0?Te:(pe+=1,`pst_ft_${pe}`),(0,Y.default)(this,P)[P]=(0,ne.resolveFileTreeGitStatusState)(K),(0,Y.default)(this,w)[w]=ie,(0,Y.default)(this,F)[F]=(0,ee.resolveFileTreeLabels)(ae),(0,Y.default)(this,C)[C]=me,(0,Y.default)(this,u)[u]=oe,(0,Y.default)(this,h)[h]=he,(0,Y.default)(this,f)[f]=null!=fe&&!1!==fe,(0,Y.default)(this,c)[c]=Se,(0,Y.default)(this,p)[p]=!0===ce,(0,Y.default)(this,S)[S]=!0===ye,(0,Y.default)(this,v)[v]=(0,te.resolveFileTreeDensity)(q,re),(0,Y.default)(this,b)[b]={itemHeight:(0,Y.default)(this,v)[v].itemHeight,overscan:ue,stickyFolders:ve,initialVisibleRowCount:ge},(0,Y.default)(this,n)[n]=new se.FileTreeController(Object.assign({},be,{fileTreeSearchMode:J,initialSearchQuery:Z,onSearchChange:le,renaming:fe})),(0,Y.default)(this,I)[I]=(0,Y.default)(this,n)[n].getSelectionVersion(),(0,Y.default)(this,H)[H]=null==(0,Y.default)(this,u)[u]?null:this.subscribe(()=>{(0,Y.default)(this,L)[L]()})}unmount(){null!=(0,Y.default)(this,j)[j]&&((0,ue.unmountFileTreeRoot)((0,Y.default)(this,j)[j]),delete(0,Y.default)(this,j)[j].dataset.fileTreeVirtualizedWrapper,(0,Y.default)(this,j)[j]=void 0),(0,Y.default)(this,y)[y].clearAll(),(0,Y.default)(this,y)[y].setHost(null),null!=(0,Y.default)(this,T)[T]&&(delete(0,Y.default)(this,T)[T].dataset.fileTreeVirtualized,(0,Y.default)(this,W)[W]((0,Y.default)(this,T)[T]),(0,Y.default)(this,T)[T]=void 0)}cleanUp(){this.unmount(),(0,Y.default)(this,H)[H]?.(),(0,Y.default)(this,H)[H]=null,(0,Y.default)(this,n)[n].destroy()}getFileTreeContainer(){return(0,Y.default)(this,T)[T]}getItem(e){return(0,Y.default)(this,n)[n].getItem(e)}getFocusedItem(){return(0,Y.default)(this,n)[n].getFocusedItem()}getFocusedPath(){return(0,Y.default)(this,n)[n].getFocusedPath()}getFocusedIndex(){return(0,Y.default)(this,n)[n].getFocusedIndex()}getVisibleCount(){return(0,Y.default)(this,n)[n].getVisibleCount()}getVisibleRows(e,t){return(0,Y.default)(this,n)[n].getVisibleRows(e,t)}getSelectedPaths(){return(0,Y.default)(this,n)[n].getSelectedPaths()}getComposition(){return(0,Y.default)(this,s)[s]}getItemHeight(){return(0,Y.default)(this,v)[v].itemHeight}getDensityFactor(){return(0,Y.default)(this,v)[v].factor}subscribe(e){let t=!1;return(0,Y.default)(this,n)[n].subscribe(()=>{t?e():t=!0})}focusPath(e){(0,Y.default)(this,n)[n].focusPath(e)}focusFirstItem(){(0,Y.default)(this,n)[n].focusFirstItem()}focusLastItem(){(0,Y.default)(this,n)[n].focusLastItem()}focusNextItem(){(0,Y.default)(this,n)[n].focusNextItem()}focusPreviousItem(){(0,Y.default)(this,n)[n].focusPreviousItem()}focusParentItem(){(0,Y.default)(this,n)[n].focusParentItem()}scrollToPath(e,t){(0,Y.default)(this,n)[n].scrollToPath(e,t)}focusNearestPath(e){return(0,Y.default)(this,n)[n].focusNearestPath(e)}add(e){(0,Y.default)(this,n)[n].add(e)}batch(e){(0,Y.default)(this,n)[n].batch(e)}applyGitStatusPatch(e){const t=(0,ne.applyFileTreeGitStatusPatch)((0,Y.default)(this,P)[P],e);if(t===(0,Y.default)(this,P)[P])return;(0,Y.default)(this,P)[P]=t;const l=(0,Y.default)(this,B)[B]();null!=l&&(0,ue.renderFileTreeRoot)(l.wrapper,(0,Y.default)(this,M)[M]())}move(e,t,l){(0,Y.default)(this,n)[n].move(e,t,l)}onMutation(e,t){return(0,Y.default)(this,n)[n].onMutation(e,t)}setSearch(e){(0,Y.default)(this,n)[n].setSearch(e)}openSearch(e){(0,Y.default)(this,n)[n].openSearch(e)}closeSearch(){(0,Y.default)(this,n)[n].closeSearch()}isSearchOpen(){return(0,Y.default)(this,n)[n].isSearchOpen()}getSearchValue(){return(0,Y.default)(this,n)[n].getSearchValue()}getSearchMatchingPaths(){return(0,Y.default)(this,n)[n].getSearchMatchingPaths()}focusNextSearchMatch(){(0,Y.default)(this,n)[n].focusNextSearchMatch()}focusPreviousSearchMatch(){(0,Y.default)(this,n)[n].focusPreviousSearchMatch()}startRenaming(e,t){return(0,Y.default)(this,n)[n].startRenaming(e,t)}remove(e,t){(0,Y.default)(this,n)[n].remove(e,t)}resetPaths(e,t){Array.isArray(e)?(0,Y.default)(this,n)[n].resetPaths(e,t):(0,Y.default)(this,n)[n].resetPaths(e)}setComposition(e){(0,Y.default)(this,s)[s]=e;const t=(0,Y.default)(this,B)[B]();null!=t&&((0,Y.default)(this,A)[A](),(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]()))}setGitStatus(e){const t=(0,ne.resolveFileTreeGitStatusState)(e,(0,Y.default)(this,P)[P]);if(t===(0,Y.default)(this,P)[P])return;(0,Y.default)(this,P)[P]=t;const l=(0,Y.default)(this,B)[B]();null!=l&&(0,ue.renderFileTreeRoot)(l.wrapper,(0,Y.default)(this,M)[M]())}setIcons(e){(0,Y.default)(this,w)[w]=e;const t=(0,Y.default)(this,B)[B]();null!=t&&((0,Y.default)(this,$)[$](t.host,t.wrapper),(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]()))}setLabels(e){(0,Y.default)(this,F)[F]=(0,ee.resolveFileTreeLabels)(e);const t=(0,Y.default)(this,B)[B]();null!=t&&(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]())}hydrate({fileTreeContainer:e}){const t=(0,Y.default)(this,U)[U](e),l=(0,Y.default)(this,x)[x](t);(0,Y.default)(this,A)[A](),(0,ue.hydrateFileTreeRoot)(l,(0,Y.default)(this,M)[M]())}render({containerWrapper:e,fileTreeContainer:t}){const l=(0,Y.default)(this,U)[U](t??(0,Y.default)(this,T)[T],e),s=(0,Y.default)(this,x)[x](l);(0,Y.default)(this,A)[A](),(0,ue.renderFileTreeRoot)(s,(0,Y.default)(this,M)[M]())}}).LoadedCustomComponent=!0,l);function Fe(){return{initialViewportHeight:Se({initialVisibleRowCount:(0,Y.default)(this,b)[b].initialVisibleRowCount,itemHeight:(0,Y.default)(this,b)[b].itemHeight}),itemHeight:(0,Y.default)(this,b)[b].itemHeight,overscan:(0,Y.default)(this,b)[b].overscan,stickyFolders:(0,Y.default)(this,b)[b].stickyFolders}}function Ce(){return Object.assign({composition:(0,Y.default)(this,s)[s],controller:(0,Y.default)(this,n)[n],gitStatusByPath:(0,Y.default)(this,P)[P]?.statusByPath,ignoredGitDirectories:(0,Y.default)(this,P)[P]?.ignoredDirectoryPaths,directoriesWithGitChanges:(0,Y.default)(this,P)[P]?.directoriesWithChanges,icons:(0,Y.default)(this,w)[w],instanceId:(0,Y.default)(this,o)[o],labels:(0,Y.default)(this,F)[F],renamingEnabled:(0,Y.default)(this,f)[f],renderRowDecoration:(0,Y.default)(this,h)[h],searchBlurBehavior:(0,Y.default)(this,c)[c],searchEnabled:(0,Y.default)(this,p)[p],searchFakeFocus:(0,Y.default)(this,S)[S],slotHost:(0,Y.default)(this,y)[y]},(0,Y.default)(this,V)[V]())}function Ee(){const e=(0,Y.default)(this,T)[T],t=(0,Y.default)(this,j)[j];return null==e||null==t?null:{host:e,wrapper:t}}function Oe(e,t){const l=e.shadowRoot;null!=l&&((0,Y.default)(this,D)[D](l),(0,Y.default)(this,G)[G](l)),(0,Y.default)(this,N)[N](t)}function Ie(){const e=(0,Y.default)(this,u)[u];if(null==e)return;const t=(0,Y.default)(this,n)[n].getSelectionVersion();t!==(0,Y.default)(this,I)[I]&&((0,Y.default)(this,I)[I]=t,e((0,Y.default)(this,n)[n].getSelectedPaths()))}function He(){const e=(0,Y.default)(this,s)[s]?.header?.render;null==e?(0,Y.default)(this,y)[y].setSlotHtml(X.HEADER_SLOT_NAME,(0,Y.default)(this,s)[s]?.header?.html??null):(0,Y.default)(this,y)[y].setSlotContent(X.HEADER_SLOT_NAME,e())}function je(e){const t=Pe(e).find(e=>Te(e)),l=ye((0,K.getBuiltInSpriteSheet)((0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]).set));null!=l&&(null!=t&&t.outerHTML===l.outerHTML||(null!=t?t.replaceWith(l):e.prepend(l)))}function Re(e){const t=Pe(e),l=t.find(e=>Te(e)),s=t.filter(e=>e!==l),n=(0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]).spriteSheet?.trim()??"";if(0===n.length){for(const e of s)e.remove();return}const o=ye(n);if(null!=o){if(1!==s.length||s[0].outerHTML!==o.outerHTML){for(const e of s)e.remove();e.appendChild(o)}}else for(const e of s)e.remove()}function Ve(e){const t=(0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]);t.colored&&(0,K.isColoredBuiltInIconSet)(t.set)?e.dataset.fileTreeColoredIcons="true":delete e.dataset.fileTreeColoredIcons}function Me(e){const t=e.querySelector(`style[${X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}]`);if(null==(0,Y.default)(this,E)[E]&&t instanceof HTMLStyleElement&&((0,Y.default)(this,E)[E]=t),null==(0,Y.default)(this,C)[C]||""===(0,Y.default)(this,C)[C])return(0,Y.default)(this,E)[E]?.remove(),(0,Y.default)(this,E)[E]=void 0,void((0,Y.default)(this,O)[O]=void 0);(0,Y.default)(this,E)[E]?.parentNode===e&&(0,Y.default)(this,O)[O]===(0,Y.default)(this,C)[C]||((0,Y.default)(this,E)[E]??=document.createElement("style"),(0,Y.default)(this,E)[E].setAttribute(X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE,""),(0,Y.default)(this,E)[E].parentNode!==e&&e.appendChild((0,Y.default)(this,E)[E]),(0,Y.default)(this,E)[E].textContent=(0,ae.wrapUnsafeCSS)((0,Y.default)(this,C)[C]),(0,Y.default)(this,O)[O]=(0,Y.default)(this,C)[C])}function Be(e){if(null!=(0,Y.default)(this,j)[j])return(0,Y.default)(this,j)[j];const t=e.shadowRoot;if(null==t)throw new Error("FileTree requires a shadow root");const l=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&"string"==typeof e.dataset.fileTreeId&&e.dataset.fileTreeId.length>0),s=l.find(e=>e.dataset.fileTreeId===(0,Y.default)(this,o)[o])??l[0];return null!=s&&((0,Y.default)(this,o)[o]=s.dataset.fileTreeId??(0,Y.default)(this,o)[o]),(0,Y.default)(this,j)[j]=s??document.createElement("div"),(0,Y.default)(this,j)[j].dataset.fileTreeId=(0,Y.default)(this,o)[o],(0,Y.default)(this,j)[j].dataset.fileTreeVirtualizedWrapper="true",(0,Y.default)(this,$)[$](e,(0,Y.default)(this,j)[j]),(0,Y.default)(this,j)[j].parentNode!==t&&t.appendChild((0,Y.default)(this,j)[j]),(0,Y.default)(this,j)[j]}function $e(e,t){const l=e??(0,Y.default)(this,T)[T]??document.createElement("file-tree-container");null!=t&&l.parentNode!==t&&t.appendChild(l);const s=l.shadowRoot??l.attachShadow({mode:"open"});return(0,le.prepareFileTreeShadowRoot)(l,s),(0,Y.default)(this,k)[k](s),l.dataset.fileTreeVirtualized="true",l.style.display="flex",(0,Y.default)(this,z)[z](l),(0,Y.default)(this,y)[y].setHost(l),(0,Y.default)(this,T)[T]=l,l}function Le(e){""===e.style.getPropertyValue("--trees-item-height")&&(e.style.setProperty("--trees-item-height",`${String((0,Y.default)(this,v)[v].itemHeight)}px`),(0,Y.default)(this,R)[R]=!0),""===e.style.getPropertyValue("--trees-density-override")&&(e.style.setProperty("--trees-density-override",String((0,Y.default)(this,v)[v].factor)),(0,Y.default)(this,_)[_]=!0)}function Ae(e){(0,Y.default)(this,R)[R]&&(e.style.removeProperty("--trees-item-height"),(0,Y.default)(this,R)[R]=!1),(0,Y.default)(this,_)[_]&&(e.style.removeProperty("--trees-density-override"),(0,Y.default)(this,_)[_]=!1)}function De(e){const{composition:l,density:s,fileTreeSearchMode:n,gitStatus:o,id:u,initialSearchQuery:h,icons:f,itemHeight:c,labels:p,overscan:S,renderRowDecoration:y,renaming:v,search:b,searchBlurBehavior:T,searchFakeFocus:P,stickyFolders:w,unsafeCSS:F,initialVisibleRowCount:C}=e,E=(0,Q.default)(e,t),O=(0,te.resolveFileTreeDensity)(s,c),I=O.itemHeight,H=null!=(j=u)&&j.length>0?j:(ce+=1,`pst_srv_${ce}`);var j;const R=new se.FileTreeController(Object.assign({},E,{fileTreeSearchMode:n,initialSearchQuery:h,renaming:v})),_=(0,ne.resolveFileTreeGitStatusState)(o),V=Se({initialVisibleRowCount:C,itemHeight:I}),M=(0,Z.normalizeFileTreeIcons)(f),B=M.spriteSheet?.trim()??"",$=M.colored&&(0,K.isColoredBuiltInIconSet)(M.set)?" data-file-tree-colored-icons=\"true\"":"",L=(0,ae.escapeStyleTextForHtml)((0,ae.wrapCoreCSS)(re.default)),A=null==F||""===F?"":`<style ${X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}>${(0,ae.escapeStyleTextForHtml)((0,ae.wrapUnsafeCSS)(F))}</style>`,D=(0,fe.renderToString)((0,he.h)(oe.FileTreeView,{composition:l,controller:R,gitStatusByPath:_?.statusByPath,ignoredGitDirectories:_?.ignoredDirectoryPaths,directoriesWithGitChanges:_?.directoriesWithChanges,icons:f,instanceId:H,itemHeight:I,labels:(0,ee.resolveFileTreeLabels)(p),overscan:S,renamingEnabled:null!=v&&!1!==v,renderRowDecoration:y,searchBlurBehavior:T,searchEnabled:!0===b,searchFakeFocus:!0===P,stickyFolders:w,initialViewportHeight:V}));R.destroy();const G=`${(0,K.getBuiltInSpriteSheet)(M.set)}${B}<style ${X.FILE_TREE_STYLE_ATTRIBUTE}>${L}</style>${A}<div data-file-tree-id="${H}" data-file-tree-virtualized-wrapper="true"${$}>${D}</div>`,N=ve(l),k=`--trees-item-height:${String(I)}px;--trees-density-override:${String(O.factor)}`,x=me(H,"declarative",k);return{domOuterStart:me(H,"dom",k),id:H,outerEnd:ge(N),outerStart:x,shadowHtml:G}}},1255,[25,30,31,1230,1231,1233,1235,1253,1254,1256,1257,1258,1260,1269,1272,1287,1288,1275,1289]);
|
|
29
|
-
__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 n}});var n="@layer base {\n :host {\n --trees-accent: var(--trees-accent-override, #009fff);\n --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));\n --trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, #84848a));\n --trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));\n --trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,\n var(--trees-accent) var(--trees-bg-alpha-light, 8%),\n var(--trees-bg)), color-mix(in lab,\n var(--trees-accent) var(--trees-bg-alpha-dark, 10%),\n var(--trees-bg)))));\n --trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));\n --trees-added-light: #16a994;\n --trees-added-dark: #00cab1;\n --trees-ignored-light: #adadb1;\n --trees-ignored-dark: #4a4a4e;\n --trees-modified-light: #1ca1c7;\n --trees-modified-dark: #08c0ef;\n --trees-renamed-light: #d5a910;\n --trees-renamed-dark: #ffd452;\n --trees-untracked-light: #16a994;\n --trees-untracked-dark: #00cab1;\n --trees-deleted-light: #ff2e3f;\n --trees-deleted-dark: #ff6762;\n --trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));\n --trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));\n --trees-density: var(--trees-density-override, 1);\n --trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));\n --trees-font-family: var(--trees-font-family-override, system-ui);\n --trees-font-size: var(--trees-font-size-override, 13px);\n --trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);\n --trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);\n --trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));\n --trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);\n --trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);\n --trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));\n --trees-search-font-weight: var(--trees-search-font-weight-override, 600);\n --trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));\n --trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));\n --trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));\n --trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));\n --trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));\n --trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));\n --trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));\n --trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));\n --trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));\n --trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));\n --trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));\n --trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));\n --trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));\n --trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));\n --trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));\n --trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));\n --trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));\n --trees-icon-gray: light-dark(#84848a, #adadb1);\n --trees-icon-red: light-dark(#d52c36, #ff6762);\n --trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);\n --trees-icon-orange: light-dark(#d47628, #ffa359);\n --trees-icon-yellow: light-dark(#d5a910, #ffd452);\n --trees-icon-green: light-dark(#199f43, #5ecc71);\n --trees-icon-teal: light-dark(#17a5af, #64d1db);\n --trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);\n --trees-icon-blue: light-dark(#1a85d4, #69b1ff);\n --trees-icon-indigo: light-dark(#693acf, #9d6afb);\n --trees-icon-purple: light-dark(#a631be, #d568ea);\n --trees-icon-pink: light-dark(#d32a61, #ff678d);\n --trees-icon-mauve: light-dark(#594c5b, #79697b);\n --trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));\n --trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));\n --trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));\n --trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));\n --trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));\n --trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));\n --trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));\n --trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));\n --trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));\n --trees-icon-width: var(--trees-icon-width-override, 16px);\n --trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));\n --trees-row-height: var(--trees-item-height, 30px);\n --trees-git-lane-width: var(--trees-git-lane-width-override, 12px);\n --trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));\n --trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -\n var(--trees-focus-ring-width));\n --trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);\n --trees-padding-inline: var(--trees-padding-inline-override, 16px);\n color-scheme: light dark;\n font-size: var(--trees-font-size);\n color: var(--trees-fg);\n background-color: var(--trees-bg);\n --truncate-marker-background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n font-family: var(--trees-font-family);\n font-weight: var(--trees-font-weight-regular);\n flex-direction: column;\n display: flex;\n }\n\n :host([data-file-tree-virtualized=\"true\"]) {\n height: 100%;\n overflow: hidden;\n }\n\n [data-file-tree-virtualized-wrapper=\"true\"], [data-file-tree-virtualized-root=\"true\"] {\n flex-direction: column;\n height: 100%;\n display: flex;\n overflow: hidden;\n }\n\n [data-file-tree-virtualized-scroll=\"true\"], [data-file-tree-scrollbar-measure=\"true\"] {\n --trees-scrollbar-thumb-current: transparent;\n scrollbar-gutter: stable;\n overflow-y: auto;\n\n &:hover {\n --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);\n }\n\n &::-webkit-scrollbar {\n width: var(--trees-scrollbar-gutter);\n height: var(--trees-scrollbar-gutter);\n }\n\n &::-webkit-scrollbar-track {\n background: none;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: var(--trees-scrollbar-thumb-current);\n border-radius: calc(var(--trees-scrollbar-gutter) / 2);\n background-clip: content-box;\n border: 1px solid #0000;\n }\n\n &::-webkit-scrollbar-corner {\n background-color: #0000;\n }\n }\n\n [data-file-tree-scrollbar-measure=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n width: 100px;\n height: 100px;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-file-tree-virtualized-scroll=\"true\"], [data-file-tree-scrollbar-measure=\"true\"] {\n scrollbar-width: thin;\n scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;\n }\n }\n\n [data-file-tree-virtualized-scroll=\"true\"] {\n min-height: 0;\n padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),\n 0px)\n /* NOTE(amadeus): We can assume that all Webkit based browser gutters\n * will align to the value of '--trees-scrollbar-gutter', however if not, then\n * `--trees-scrollbar-gutter-measured` should correct it. Mostly we are\n * hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments\n * `--trees-scrollbar-gutter-measured` should always be immediately available.\n */\n max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -\n var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),\n 0px);\n flex: 1 1 0;\n position: relative;\n overflow-y: auto;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-file-tree-virtualized-scroll=\"true\"] {\n padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),\n 0px)\n /* NOTE(amadeus): However on Firefox it can vary a little bit, but most\n * likely the majority of cases will default to a 0px width scrollbar lets\n * inherit that first to avoid SSR jumps. In non-SSR'd environments\n * `--trees-scrollbar-gutter-measured` should always be immediately available.\n */\n max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -\n var(--trees-scrollbar-gutter-measured, 0px)),\n 0px);\n }\n }\n\n [data-file-tree-sticky-overlay=\"true\"] {\n z-index: 4;\n pointer-events: none;\n height: 0;\n position: sticky;\n top: 0;\n overflow: visible;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-scroll-at-top=\"true\"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay=\"true\"] {\n visibility: hidden;\n }\n\n [data-file-tree-sticky-overlay-content=\"true\"] {\n background-color: var(--trees-bg);\n pointer-events: none;\n position: relative;\n }\n\n [data-file-tree-virtualized-list=\"true\"] {\n background-color: var(--trees-bg);\n overflow-anchor: none;\n width: 100%;\n min-height: 100%;\n position: relative;\n\n &[data-is-scrolling] {\n pointer-events: none;\n }\n }\n\n [data-file-tree-virtualized-sticky-offset=\"true\"] {\n contain: layout size;\n }\n\n [data-file-tree-virtualized-sticky=\"true\"] {\n isolation: isolate;\n will-change: transform;\n flex-direction: column;\n width: 100%;\n display: flex;\n position: sticky;\n top: 0;\n }\n\n [data-file-tree-search-container] {\n padding: 0;\n padding-inline: var(--trees-padding-inline);\n margin-bottom: var(--trees-item-row-gap);\n display: flex;\n }\n\n [data-file-tree-search-input] {\n --trees-focus-ring-width: 2px;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n height: var(--trees-row-height);\n padding-inline: var(--trees-item-padding-x);\n line-height: var(--trees-row-height);\n color: var(--trees-search-fg);\n background-color: var(--trees-search-bg);\n border: 1px solid var(--trees-border-color);\n border-radius: var(--trees-border-radius);\n outline: none;\n flex: 1;\n margin-block: 1px;\n\n &::placeholder {\n color: color-mix(in lab,\n var(--trees-search-fg) 65%,\n var(--trees-search-bg));\n }\n\n &:focus-visible, &[data-file-tree-search-input-fake-focus=\"true\"] {\n outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);\n outline-offset: var(--trees-focus-ring-offset);\n }\n }\n\n [role=\"tree\"] {\n gap: var(--trees-gap-override, 0);\n flex-direction: column;\n display: flex;\n position: relative;\n }\n\n [data-type=\"item\"] {\n color: inherit;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n text-align: start;\n background-color: var(--trees-bg);\n padding: 0 var(--trees-item-padding-x);\n margin: 0 var(--trees-item-margin-x);\n cursor: pointer;\n user-select: none;\n -webkit-touch-callout: none;\n touch-action: manipulation;\n flex: 0 0 var(--trees-row-height);\n height: var(--trees-row-height);\n line-height: var(--trees-row-height);\n align-items: center;\n gap: var(--trees-item-row-gap);\n border-radius: var(--trees-border-radius);\n --truncate-marker-background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n --truncate-marker-block-inset: 0px;\n border: none;\n outline: none;\n display: flex;\n position: relative;\n\n &:hover, &[data-item-context-hover=\"true\"] {\n background-color: var(--trees-bg-muted);\n --truncate-marker-background-overlay-color: var(--trees-bg-muted);\n }\n\n &[data-item-focused=\"true\"], &:focus-visible {\n z-index: 2;\n\n & [data-item-flattened-subitems] {\n --truncate-marker-block-inset: var(--trees-focus-ring-width);\n }\n\n &:before {\n content: \"\";\n border-radius: var(--trees-border-radius);\n outline: var(--trees-focus-ring-width) solid\n var(--trees-focus-ring-color);\n outline-offset: var(--trees-focus-ring-offset);\n pointer-events: none;\n display: block;\n position: absolute;\n inset: 0;\n }\n\n &[data-item-selected=\"true\"]:before {\n outline-color: var(--trees-selected-focused-border-color);\n }\n }\n\n &[data-item-selected=\"true\"] {\n color: var(--trees-selected-fg);\n background-color: var(--trees-selected-bg);\n --truncate-marker-background-overlay-color: var(--trees-selected-bg);\n z-index: 3;\n\n & [data-item-section=\"icon\"] {\n color: var(--trees-selected-fg);\n }\n }\n\n &[data-item-search-match=\"true\"] {\n font-weight: var(--trees-search-font-weight);\n }\n }\n\n [data-type=\"item\"][data-file-tree-sticky-row=\"true\"] {\n pointer-events: auto;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"] {\n pointer-events: none;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"]:hover:not([data-item-selected=\"true\"]), [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"][data-item-context-hover=\"true\"]:not([data-item-selected=\"true\"]) {\n background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n }\n\n [data-item-selected=\"true\"]:has( + [data-item-selected=\"true\"]) {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n [data-item-selected=\"true\"] + [data-item-selected=\"true\"] {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n [data-item-flattened-subitems] {\n align-items: center;\n gap: 2px;\n display: inline-flex;\n }\n\n [data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target=\"true\"] {\n text-decoration: underline;\n }\n\n [data-item-section=\"icon\"] {\n color: var(--trees-fg-muted);\n fill: currentColor;\n width: var(--trees-icon-width);\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n\n :where([data-item-section=\"icon\"] > [data-icon-token]) {\n color: var(--trees-fg-muted);\n }\n\n [data-file-tree-colored-icons=\"true\"] {\n & [data-icon-token=\"astro\"] {\n color: var(--trees-file-icon-color-astro);\n }\n\n & [data-icon-token=\"babel\"] {\n color: var(--trees-file-icon-color-babel);\n }\n\n & [data-icon-token=\"bash\"] {\n color: var(--trees-file-icon-color-bash);\n }\n\n & [data-icon-token=\"biome\"] {\n color: var(--trees-file-icon-color-biome);\n }\n\n & [data-icon-token=\"bootstrap\"] {\n color: var(--trees-file-icon-color-bootstrap);\n }\n\n & [data-icon-token=\"browserslist\"] {\n color: var(--trees-file-icon-color-browserslist);\n }\n\n & [data-icon-token=\"bun\"] {\n color: var(--trees-file-icon-color-bun);\n }\n\n & [data-icon-token=\"c\"] {\n color: var(--trees-file-icon-color-c);\n }\n\n & [data-icon-token=\"cpp\"] {\n color: var(--trees-file-icon-color-cpp);\n }\n\n & [data-icon-token=\"claude\"] {\n color: var(--trees-file-icon-color-claude);\n }\n\n & [data-icon-token=\"css\"] {\n color: var(--trees-file-icon-color-css);\n }\n\n & [data-icon-token=\"database\"] {\n color: var(--trees-file-icon-color-database);\n }\n\n & [data-icon-token=\"default\"] {\n color: var(--trees-file-icon-color-default);\n }\n\n & [data-icon-token=\"docker\"] {\n color: var(--trees-file-icon-color-docker);\n }\n\n & [data-icon-token=\"eslint\"] {\n color: var(--trees-file-icon-color-eslint);\n }\n\n & [data-icon-token=\"git\"] {\n color: var(--trees-file-icon-color-git);\n }\n\n & [data-icon-token=\"go\"] {\n color: var(--trees-file-icon-color-go);\n }\n\n & [data-icon-token=\"graphql\"] {\n color: var(--trees-file-icon-color-graphql);\n }\n\n & [data-icon-token=\"html\"] {\n color: var(--trees-file-icon-color-html);\n }\n\n & [data-icon-token=\"image\"] {\n color: var(--trees-file-icon-color-image);\n }\n\n & [data-icon-token=\"javascript\"] {\n color: var(--trees-file-icon-color-javascript);\n }\n\n & [data-icon-token=\"json\"] {\n color: var(--trees-file-icon-color-json);\n }\n\n & [data-icon-token=\"markdown\"] {\n color: var(--trees-file-icon-color-markdown);\n }\n\n & [data-icon-token=\"mcp\"] {\n color: var(--trees-file-icon-color-mcp);\n }\n\n & [data-icon-token=\"npm\"] {\n color: var(--trees-file-icon-color-npm);\n }\n\n & [data-icon-token=\"oxc\"] {\n color: var(--trees-file-icon-color-oxc);\n }\n\n & [data-icon-token=\"postcss\"] {\n color: var(--trees-file-icon-color-postcss);\n }\n\n & [data-icon-token=\"prettier\"] {\n color: var(--trees-file-icon-color-prettier);\n }\n\n & [data-icon-token=\"python\"] {\n color: var(--trees-file-icon-color-python);\n }\n\n & [data-icon-token=\"react\"] {\n color: var(--trees-file-icon-color-react);\n }\n\n & [data-icon-token=\"ruby\"] {\n color: var(--trees-file-icon-color-ruby);\n }\n\n & [data-icon-token=\"rust\"] {\n color: var(--trees-file-icon-color-rust);\n }\n\n & [data-icon-token=\"sass\"] {\n color: var(--trees-file-icon-color-sass);\n }\n\n & [data-icon-token=\"svg\"] {\n color: var(--trees-file-icon-color-svg);\n }\n\n & [data-icon-token=\"svelte\"] {\n color: var(--trees-file-icon-color-svelte);\n }\n\n & [data-icon-token=\"svgo\"] {\n color: var(--trees-file-icon-color-svgo);\n }\n\n & [data-icon-token=\"swift\"] {\n color: var(--trees-file-icon-color-swift);\n }\n\n & [data-icon-token=\"table\"] {\n color: var(--trees-file-icon-color-table);\n }\n\n & [data-icon-token=\"text\"] {\n color: var(--trees-file-icon-color-text);\n }\n\n & [data-icon-token=\"tailwind\"] {\n color: var(--trees-file-icon-color-tailwind);\n }\n\n & [data-icon-token=\"terraform\"] {\n color: var(--trees-file-icon-color-terraform);\n }\n\n & [data-icon-token=\"typescript\"] {\n color: var(--trees-file-icon-color-typescript);\n }\n\n & [data-icon-token=\"vite\"] {\n color: var(--trees-file-icon-color-vite);\n }\n\n & [data-icon-token=\"vscode\"] {\n color: var(--trees-file-icon-color-vscode);\n }\n\n & [data-icon-token=\"vue\"] {\n color: var(--trees-file-icon-color-vue);\n }\n\n & [data-icon-token=\"wasm\"] {\n color: var(--trees-file-icon-color-wasm);\n }\n\n & [data-icon-token=\"webpack\"] {\n color: var(--trees-file-icon-color-webpack);\n }\n\n & [data-icon-token=\"yml\"] {\n color: var(--trees-file-icon-color-yml);\n }\n\n & [data-icon-token=\"zig\"] {\n color: var(--trees-file-icon-color-zig);\n }\n\n & [data-icon-token=\"zip\"] {\n color: var(--trees-file-icon-color-zip);\n }\n }\n\n [data-icon-name=\"file-tree-icon-chevron\"] {\n &[data-align-capitals=\"false\"] {\n transform: translate(0, var(--trees-icon-nudge));\n }\n\n &[data-align-capitals=\"true\"] {\n transform: translate(0);\n }\n }\n\n [data-item-section=\"content\"] {\n text-align: start;\n text-overflow: ellipsis;\n flex: 0 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n }\n\n [data-item-section=\"decoration\"] {\n text-align: end;\n min-width: 0;\n color: var(--trees-fg-muted);\n flex: 1 1 0;\n justify-content: flex-end;\n display: flex;\n overflow: hidden;\n }\n\n [data-item-section=\"decoration\"] > span {\n text-overflow: ellipsis;\n white-space: nowrap;\n justify-content: flex-end;\n align-items: center;\n min-width: 0;\n max-width: 100%;\n display: inline-flex;\n overflow: hidden;\n }\n\n [data-item-section=\"git\"], [data-item-section=\"action\"] {\n flex: none;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n\n [data-item-section=\"git\"] {\n width: var(--trees-git-lane-width);\n }\n\n [data-item-section=\"action\"] {\n width: var(--trees-action-lane-width);\n color: var(--trees-fg-muted);\n fill: currentColor;\n pointer-events: none;\n }\n\n [data-item-section=\"git\"] > span, [data-item-section=\"action\"] > span {\n justify-content: center;\n align-items: center;\n width: 100%;\n display: inline-flex;\n }\n\n [data-item-action-affordance=\"decorative\"] {\n opacity: .85;\n }\n\n [data-item-rename-input] {\n appearance: none;\n width: 100%;\n min-width: 0;\n height: calc(var(--trees-row-height) - 4px);\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n box-sizing: border-box;\n background-color: #0000;\n border: 0;\n outline: none;\n padding-inline: 6px;\n }\n\n [data-item-section=\"content\"]:has([data-item-rename-input]) ~ [data-item-section=\"action\"], [data-item-section=\"content\"]:has([data-item-rename-input]) ~ [data-item-section=\"decoration\"] {\n display: none;\n }\n\n [aria-expanded=\"false\"][data-item-type=\"folder\"] > [data-item-section=\"icon\"] > [data-icon-name=\"file-tree-icon-chevron\"] {\n &[data-align-capitals=\"true\"] {\n transform: rotate(-90deg)\n translate(calc(var(--trees-icon-nudge) / 2),\n calc(var(--trees-icon-nudge) / 2));\n }\n\n &[data-align-capitals=\"false\"] {\n transform: rotate(-90deg)\n translate(calc(var(--trees-icon-nudge) / 2 * -1),\n calc(var(--trees-icon-nudge) / 2));\n }\n }\n\n [data-item-section=\"spacing\"] {\n height: var(--trees-row-height);\n padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);\n flex-direction: row;\n justify-content: center;\n align-items: center;\n display: flex;\n\n &:empty {\n padding-left: 0;\n }\n }\n\n [data-item-section=\"spacing-item\"] {\n border-left: 1px solid var(--trees-indent-guide-bg);\n height: 100%;\n margin-right: calc(var(--trees-level-gap) - 1px);\n opacity: 0;\n transition: opacity .15s;\n display: inline-block;\n transform: translateX(-.25px);\n\n & + & {\n margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);\n }\n }\n\n :host(:hover) [data-item-section=\"spacing-item\"] {\n opacity: .75;\n }\n\n [data-item-contains-git-change=\"true\"] > [data-item-section=\"git\"] {\n color: var(--trees-git-modified-color);\n opacity: .5;\n fill: currentColor;\n }\n\n [data-item-git-status] {\n & > :where([data-item-section=\"icon\"]) > :where(:not([data-icon-name=\"file-tree-icon-chevron\"])), & > [data-item-section=\"content\"] {\n color: var(--trees-item-git-status-color);\n }\n\n & > [data-item-section=\"git\"] {\n color: var(--trees-item-git-status-color);\n font-weight: var(--trees-font-weight-semibold);\n }\n }\n\n [data-item-git-status=\"added\"] {\n --trees-item-git-status-color: var(--trees-git-added-color);\n }\n\n [data-item-git-status=\"deleted\"] {\n --trees-item-git-status-color: var(--trees-git-deleted-color);\n }\n\n [data-item-git-status=\"ignored\"] {\n --trees-item-git-status-color: var(--trees-git-ignored-color);\n\n & > [data-item-section=\"icon\"] {\n opacity: .5;\n }\n }\n\n [data-item-section=\"git\"] [data-icon-name=\"file-tree-icon-dot\"] {\n transform: translateY(calc(.65ex - 50%));\n }\n\n [data-item-git-status=\"modified\"] {\n --trees-item-git-status-color: var(--trees-git-modified-color);\n }\n\n [data-item-git-status=\"renamed\"] {\n --trees-item-git-status-color: var(--trees-git-renamed-color);\n }\n\n [data-item-git-status=\"untracked\"] {\n --trees-item-git-status-color: var(--trees-git-untracked-color);\n }\n\n [data-item-drag-target=\"true\"] {\n background-color: var(--trees-selected-bg);\n }\n\n [data-item-dragging=\"true\"] {\n opacity: .5;\n }\n\n [data-item-section=\"lock\"] {\n color: var(--trees-fg-muted);\n flex: none;\n align-items: center;\n margin-left: auto;\n display: flex;\n }\n\n [data-item-section=\"lock\"] svg {\n display: block;\n }\n\n [data-type=\"header-slot\"] {\n flex: none;\n display: block;\n }\n\n [data-type=\"context-menu-wash\"] {\n z-index: 3;\n touch-action: none;\n background-color: #0000;\n position: absolute;\n inset: 0;\n }\n\n [data-type=\"context-menu-anchor\"] {\n top: 0;\n right: var(--trees-context-menu-trigger-inline-offset);\n z-index: 4;\n align-items: center;\n display: none;\n position: absolute;\n\n &[data-visible=\"true\"] {\n display: flex;\n }\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"context-menu-anchor\"] {\n display: none;\n }\n\n [data-type=\"context-menu-anchor\"] > slot[name=\"context-menu\"] {\n flex: 0 0 0;\n width: 0;\n min-width: 0;\n display: block;\n overflow: visible;\n }\n\n [data-type=\"context-menu-trigger\"] {\n all: unset;\n width: var(--trees-action-lane-width);\n color: var(--trees-fg-muted);\n fill: currentColor;\n cursor: pointer;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n border-top-right-radius: var(--trees-border-radius);\n border-bottom-right-radius: var(--trees-border-radius);\n margin: var(--trees-focus-ring-width);\n height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);\n border-width: 0;\n justify-content: center;\n align-items: center;\n transition: color .12s;\n display: flex;\n }\n\n [data-type=\"context-menu-trigger\"]:hover, [data-type=\"context-menu-trigger\"][aria-expanded=\"true\"] {\n color: var(--trees-fg);\n }\n\n [data-truncate-container] {\n --truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);\n --truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);\n --truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);\n --truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);\n --truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));\n --truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);\n --truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);\n --truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);\n --truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);\n --truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);\n --truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);\n --truncate-internal-single-line-height: 1lh;\n height: var(--truncate-internal-single-line-height);\n min-width: 0;\n margin-top: -1px;\n margin-bottom: -1px;\n overflow: hidden;\n }\n\n [data-truncate-marker] {\n height: var(--truncate-internal-single-line-height);\n padding-block: var(--truncate-internal-marker-block-inset);\n box-sizing: border-box;\n z-index: 2;\n color: color-mix(in srgb,\n currentColor var(--truncate-internal-marker-opacity),\n transparent);\n opacity: 0;\n transition: opacity var(--truncate-internal-marker-fade-out-duration)\n ease-in-out;\n background-clip: content-box;\n align-items: center;\n display: flex;\n position: absolute;\n }\n\n @container measure (height > 1lh) {\n [data-truncate-marker] {\n opacity: 1;\n transition: opacity var(--truncate-internal-marker-fade-in-duration)\n ease-in-out;\n }\n }\n\n [data-truncate-grid] {\n display: grid;\n position: relative;\n }\n\n [data-truncate-content=\"visible\"] {\n white-space: nowrap;\n }\n\n [data-truncate-content=\"overflow\"] {\n opacity: 0;\n pointer-events: none;\n user-select: none;\n word-break: break-all;\n margin-top: calc(-1 * var(--truncate-internal-single-line-height));\n }\n\n [data-truncate-marker-cell] {\n user-select: none;\n pointer-events: none;\n overflow: visible;\n container: measure / size;\n }\n\n [data-truncate-container=\"truncate\"] {\n & [data-truncate-grid] {\n grid-template-columns: minmax(0, max-content) 0;\n }\n\n & [data-truncate-marker] {\n right: 0;\n }\n\n & [data-truncate-fade] {\n margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));\n }\n }\n\n [data-truncate-container=\"fruncate\"] {\n & [data-truncate-grid] {\n grid-template-columns: 0 minmax(0, max-content) auto;\n }\n\n & [data-truncate-content] {\n direction: rtl;\n }\n\n & [data-truncate-content] > span {\n unicode-bidi: plaintext;\n }\n\n & [data-truncate-fade] {\n margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));\n }\n }\n\n [data-truncate-variant=\"default\"] {\n & [data-truncate-marker] {\n background-color: var(--truncate-internal-marker-background-color);\n background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),\n var(--truncate-internal-marker-background-overlay-color));\n }\n\n & [data-truncate-marker]:after, & [data-truncate-marker]:before {\n content: \"\";\n width: calc(var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap));\n height: max(0px,\n calc(var(--truncate-internal-single-line-height) -\n var(--truncate-internal-marker-block-inset) * 2));\n background-color: var(--truncate-internal-marker-background-color);\n background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),\n var(--truncate-internal-marker-background-overlay-color));\n -webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),\n #000 0%,\n #000 var(--truncate-internal-marker-gap),\n transparent 100%);\n mask-image: linear-gradient(var(--truncate-internal-fade-dir),\n #000 0%,\n #000 var(--truncate-internal-marker-gap),\n transparent 100%);\n position: absolute;\n inset-block-start: var(--truncate-internal-marker-block-inset);\n }\n\n & [data-truncate-marker]:after {\n --truncate-internal-fade-dir: to right;\n right: calc(-1 *\n (\n var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap)\n ));\n }\n\n & [data-truncate-marker]:before {\n --truncate-internal-fade-dir: to left;\n left: calc(-1 *\n (\n var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap)\n ));\n }\n }\n\n [data-truncate-variant=\"fade\"] {\n & [data-truncate-marker] {\n background: none;\n }\n }\n\n [data-truncate-fade] {\n box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)\n var(--truncate-internal-fade-marker-color),\n 0 0 var(--truncate-internal-fade-marker-width)\n var(--truncate-internal-fade-marker-color);\n width: calc(var(--truncate-internal-fade-marker-width) * 2);\n height: calc(var(--truncate-internal-single-line-height) -\n (var(--truncate-internal-fade-marker-width) * 2));\n margin: var(--truncate-internal-fade-marker-width) 0;\n }\n\n [data-truncate-group-container=\"middle\"] {\n & [data-truncate-container] {\n --truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);\n }\n\n min-width: 0;\n display: flex;\n\n & > div {\n min-width: 0;\n }\n\n & > div[data-truncate-segment-priority=\"1\"] {\n flex: 0 1 max-content;\n }\n\n & > div[data-truncate-segment-priority=\"2\"] {\n flex: 0 999999 max-content;\n }\n }\n}\n\n@layer theme, unsafe;\n"},1256,[]);
|
|
30
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStyleTextForHtml",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"wrapCoreCSS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"wrapUnsafeCSS",{enumerable:!0,get:function(){return c}});const n=/<\/style/gi,t="@layer base, unsafe;";function u(n){return`${t}\n@layer base {\n ${n}\n}`}function c(n){return`${t}\n@layer unsafe {\n ${n}\n}`}function o(t){return t.replace(n,"<\\/style")}},
|
|
31
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeContainerLoaded",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"adoptDeclarativeShadowDom",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"ensureFileTreeStyles",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"prepareFileTreeShadowRoot",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=r(d[1]),n=(e=o)&&e.__esModule?e:{default:e},l=r(d[2]),c=r(d[3]);let u;function s(e){if("undefined"!=typeof CSSStyleSheet&&"function"==typeof CSSStyleSheet.prototype.replaceSync&&"adoptedStyleSheets"in e){null==u&&(u=new CSSStyleSheet,u.replaceSync((0,l.wrapCoreCSS)(n.default)));let o=!1;try{e.adoptedStyleSheets=[u],o=!0}catch{}if(o)return void e.querySelector(`style[${t.FILE_TREE_STYLE_ATTRIBUTE}]`)?.remove()}if(null==e.querySelector("style[data-file-tree-style]")){const o=document.createElement("style");o.setAttribute(t.FILE_TREE_STYLE_ATTRIBUTE,""),o.textContent=(0,l.wrapCoreCSS)(n.default),e.prepend(o)}}function f(e,t){S(e,t),s(t),(0,c.ensureMeasuredScrollbarGutter)(e,t)}function S(e,t){const o=e.querySelector("template[shadowrootmode=\"open\"], template[data-file-tree-shadowrootmode=\"open\"]");o instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(o.content.cloneNode(!0)),o.hasAttribute("shadowrootmode")&&o.remove()))}if("undefined"!=typeof HTMLElement&&null==customElements.get("file-tree-container")){class e extends HTMLElement{constructor(){super()}connectedCallback(){f(this,this.shadowRoot??this.attachShadow({mode:"open"}))}}if(customElements.define(t.FILE_TREE_TAG_NAME,e),"undefined"!=typeof document)for(const e of Array.from(document.querySelectorAll(t.FILE_TREE_TAG_NAME)))e instanceof HTMLElement&&f(e,e.shadowRoot??e.attachShadow({mode:"open"}))}const p=!0},
|
|
32
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ensureMeasuredScrollbarGutter",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=new WeakMap;function E(E){const o=n.get(E);if(null!=o)return o;const c=document.createElement("div");c.setAttribute(t.FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE,"true");const l=document.createElement("div");l.style.position="relative",l.style.height="200%",c.appendChild(l),E.appendChild(c);const s=Math.max(c.offsetWidth-c.clientWidth,0);return c.remove(),n.set(E,s),s}function o(n,o){if(!n.isConnected)return;const c=E(o);if(null==c)return;const l=o.querySelector(`style[${t.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE}]`),s=l instanceof HTMLStyleElement?l:document.createElement("style");l instanceof HTMLStyleElement||(s.setAttribute(t.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE,""),o.appendChild(s)),s.textContent=`:host { ${t.FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY}: ${c}px; }`}},
|
|
33
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const t=["dragAndDrop","fileTreeSearchMode","initialSearchQuery","initialSelectedPaths","renaming","onSearchChange","paths","preparedInput"];var e,l,s,u,n,h,f,o,c,p,P,b,y,v,S,O,j,I,w,x,D,E,C,M,V,F,R,A,B,T,z,k,L,_,N,q,H,K,W,Q,$,G,J,U,X,Y,Z,tt,et,lt,at,it,st,ut,nt,dt,ht,rt,ft,ot,ct,pt,Pt,gt,bt,yt,vt,mt,St,Ot,jt,It,wt,xt,Dt,Et,Ct,Mt,Vt,Ft,Rt,At,Bt,Tt,zt,kt,Lt,_t,Nt,qt,Ht,Kt,Wt,Qt,$t,Gt,Jt,Ut;function Xt(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FILE_TREE_RENAME_VIEW",{enumerable:!0,get:function(){return he}}),Object.defineProperty(_e,"FileTreeController",{enumerable:!0,get:function(){return oe}});var Yt=Xt(r(d[0])),Zt=Xt(r(d[1])),te=Xt(r(d[2])),ee=r(d[3]),le=r(d[4]),ae=r(d[5]),ie=r(d[6]),se=r(d[7]),ue=r(d[8]),ne=r(d[9]),de=r(d[10]);const he=Symbol("FILE_TREE_RENAME_VIEW");function re(t,e,l){if(0===t)return-1;if(null!=l){const t=e(l);if(null!=t)return t;const s=(0,ue.getAncestorDirectoryPaths)(l);for(let t=s.length-1;t>=0;t-=1){const l=s[t];if(null==l)continue;const u=e(l);if(null!=u)return u}}return 0}function fe(t,e,l){if(0===t.paths.length)return{focusedIndex:-1,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};if(null==e)return{focusedIndex:0,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};const s=l??(e=>t.visibleIndexByPath.get(e)??null);return{focusedIndex:re(t.paths.length,s,e),getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex}}var oe=(l=(0,te.default)("baseOptions"),s=(0,te.default)("listeners"),u=(0,te.default)("mutationListeners"),n=(0,te.default)("dragAndDropConfig"),h=(0,te.default)("dragSession"),f=(0,te.default)("ancestorIndicesByIndex"),o=(0,te.default)("ancestorPathsByIndex"),c=(0,te.default)("focusedIndex"),p=(0,te.default)("focusedPath"),P=(0,te.default)("hasFullProjection"),b=(0,te.default)("getParentIndexForVisibleRow"),y=(0,te.default)("itemHandles"),v=(0,te.default)("knownDirectoryPaths"),S=(0,te.default)("knownDirectoryPathsLowerCase"),O=(0,te.default)("knownPaths"),j=(0,te.default)("listedPaths"),I=(0,te.default)("listedPathsLowerCase"),w=(0,te.default)("onRename"),x=(0,te.default)("onRenameError"),D=(0,te.default)("onSearchChange"),E=(0,te.default)("projectionPaths"),C=(0,te.default)("projectionPosInSetByIndex"),M=(0,te.default)("projectionSetSizeByIndex"),V=(0,te.default)("renameCanRename"),F=(0,te.default)("renameEnabled"),R=(0,te.default)("renamingPath"),A=(0,te.default)("renamingValue"),B=(0,te.default)("removeRenamingPathIfCanceled"),T=(0,te.default)("searchCollapsedOverrides"),z=(0,te.default)("searchMatchPathSet"),k=(0,te.default)("searchMatchingPaths"),L=(0,te.default)("searchMode"),_=(0,te.default)("searchPreviousExpandedPaths"),N=(0,te.default)("searchValue"),q=(0,te.default)("searchVisiblePathSet"),H=(0,te.default)("searchVisibleIndexByPath"),K=(0,te.default)("searchVisibleIndices"),W=(0,te.default)("searchVisiblePaths"),Q=(0,te.default)("scrollRequest"),$=(0,te.default)("scrollRequestId"),G=(0,te.default)("selectionAnchorPath"),J=(0,te.default)("selectedPaths"),U=(0,te.default)("selectionVersion"),X=(0,te.default)("store"),Y=(0,te.default)("storeVisibleCount"),Z=(0,te.default)("suppressStoreNotifications"),tt=(0,te.default)("visibleCount"),et=(0,te.default)("unsubscribe"),lt=(0,te.default)("cancelRenaming"),at=(0,te.default)("completeRenaming"),it=(0,te.default)("setRenamingValue"),st=(0,te.default)("findNearestVisibleSiblingPath"),ut=(0,te.default)("resolveFocusedIndex"),nt=(0,te.default)("getOrCreateItemHandle"),dt=(0,te.default)("createVisibleRow"),ht=(0,te.default)("createVisibleRowFromContext"),rt=(0,te.default)("getStickyCandidateContextAt"),ft=(0,te.default)("getAncestorIndices"),ot=(0,te.default)("getAncestorPaths"),ct=(0,te.default)("collapseDirectory"),pt=(0,te.default)("applySelection"),Pt=(0,te.default)("createDirectoryHandle"),gt=(0,te.default)("createFileHandle"),bt=(0,te.default)("validateBatchDropOperations"),yt=(0,te.default)("createStore"),vt=(0,te.default)("getListedPaths"),mt=(0,te.default)("getAllKnownPaths"),St=(0,te.default)("getListedPathsLowerCase"),Ot=(0,te.default)("getAllKnownDirectoryPaths"),jt=(0,te.default)("getAllKnownDirectoryPathsLowerCase"),It=(0,te.default)("invalidateKnownPathCaches"),wt=(0,te.default)("getExpandedDirectoryPaths"),xt=(0,te.default)("restoreSearchExpandedPaths"),Dt=(0,te.default)("setExpandedPaths"),Et=(0,te.default)("syncSearchVisibilityState"),Ct=(0,te.default)("getCurrentVisiblePaths"),Mt=(0,te.default)("getExactCurrentVisibleIndexByPath"),Vt=(0,te.default)("getProjectionIndexFromVisibleIndex"),Ft=(0,te.default)("getVisibleIndexByPath"),Rt=(0,te.default)("focusRelativeSearchMatch"),At=(0,te.default)("setSearchState"),Bt=(0,te.default)("refreshActiveSearchState"),Tt=(0,te.default)("emit"),zt=(0,te.default)("emitMutation"),kt=(0,te.default)("expandDirectory"),Lt=(0,te.default)("moveFocus"),_t=(0,te.default)("rebuildVisibleProjection"),Nt=(0,te.default)("resolveVisiblePathAtIndex"),qt=(0,te.default)("resolveSelectionPath"),Ht=(0,te.default)("focusPathWithoutEmit"),Kt=(0,te.default)("setFocusedIndex"),Wt=(0,te.default)("ensureFullProjection"),Qt=(0,te.default)("pruneStaleSearchCollapsedOverrides"),$t=(0,te.default)("remapSearchCollapsedOverridesThroughMutation"),Gt=(0,te.default)("applyMutationState"),Jt=(0,te.default)("subscribe"),Ut=(0,te.default)("toggleDirectory"),e=class{constructor(e){Object.defineProperty(this,Ut,{value:dl}),Object.defineProperty(this,Jt,{value:nl}),Object.defineProperty(this,Gt,{value:ul}),Object.defineProperty(this,$t,{value:sl}),Object.defineProperty(this,Qt,{value:il}),Object.defineProperty(this,Wt,{value:al}),Object.defineProperty(this,Kt,{value:ll}),Object.defineProperty(this,Ht,{value:el}),Object.defineProperty(this,qt,{value:tl}),Object.defineProperty(this,Nt,{value:Ze}),Object.defineProperty(this,_t,{value:Ye}),Object.defineProperty(this,Lt,{value:Xe}),Object.defineProperty(this,kt,{value:Ue}),Object.defineProperty(this,zt,{value:Je}),Object.defineProperty(this,Tt,{value:Ge}),Object.defineProperty(this,Bt,{value:$e}),Object.defineProperty(this,At,{value:Qe}),Object.defineProperty(this,Rt,{value:We}),Object.defineProperty(this,Ft,{value:Ke}),Object.defineProperty(this,Vt,{value:He}),Object.defineProperty(this,Mt,{value:qe}),Object.defineProperty(this,Ct,{value:Ne}),Object.defineProperty(this,Et,{value:Le}),Object.defineProperty(this,Dt,{value:ke}),Object.defineProperty(this,xt,{value:ze}),Object.defineProperty(this,wt,{value:Te}),Object.defineProperty(this,It,{value:Be}),Object.defineProperty(this,jt,{value:Ae}),Object.defineProperty(this,Ot,{value:Re}),Object.defineProperty(this,St,{value:Fe}),Object.defineProperty(this,mt,{value:Ve}),Object.defineProperty(this,vt,{value:Me}),Object.defineProperty(this,yt,{value:Ce}),Object.defineProperty(this,bt,{value:Ee}),Object.defineProperty(this,gt,{value:De}),Object.defineProperty(this,Pt,{value:xe}),Object.defineProperty(this,pt,{value:we}),Object.defineProperty(this,ct,{value:Ie}),Object.defineProperty(this,ot,{value:je}),Object.defineProperty(this,ft,{value:Oe}),Object.defineProperty(this,rt,{value:Se}),Object.defineProperty(this,ht,{value:me}),Object.defineProperty(this,dt,{value:ve}),Object.defineProperty(this,nt,{value:ye}),Object.defineProperty(this,ut,{value:be}),Object.defineProperty(this,st,{value:ge}),Object.defineProperty(this,it,{value:Pe}),Object.defineProperty(this,at,{value:pe}),Object.defineProperty(this,lt,{value:ce}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:new Set}),Object.defineProperty(this,u,{writable:!0,value:new Map}),Object.defineProperty(this,n,{writable:!0,value:null}),Object.defineProperty(this,h,{writable:!0,value:null}),Object.defineProperty(this,f,{writable:!0,value:new Map}),Object.defineProperty(this,o,{writable:!0,value:new Map}),Object.defineProperty(this,c,{writable:!0,value:-1}),Object.defineProperty(this,p,{writable:!0,value:null}),Object.defineProperty(this,P,{writable:!0,value:!1}),Object.defineProperty(this,b,{writable:!0,value:t=>-1}),Object.defineProperty(this,y,{writable:!0,value:new Map}),Object.defineProperty(this,v,{writable:!0,value:null}),Object.defineProperty(this,S,{writable:!0,value:null}),Object.defineProperty(this,O,{writable:!0,value:null}),Object.defineProperty(this,j,{writable:!0,value:null}),Object.defineProperty(this,I,{writable:!0,value:null}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:[]}),Object.defineProperty(this,C,{writable:!0,value:new Int32Array(0)}),Object.defineProperty(this,M,{writable:!0,value:new Int32Array(0)}),Object.defineProperty(this,V,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:null}),Object.defineProperty(this,A,{writable:!0,value:""}),Object.defineProperty(this,B,{writable:!0,value:!1}),Object.defineProperty(this,T,{writable:!0,value:new Set}),Object.defineProperty(this,z,{writable:!0,value:new Set}),Object.defineProperty(this,k,{writable:!0,value:[]}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:null}),Object.defineProperty(this,N,{writable:!0,value:null}),Object.defineProperty(this,q,{writable:!0,value:null}),Object.defineProperty(this,H,{writable:!0,value:null}),Object.defineProperty(this,K,{writable:!0,value:null}),Object.defineProperty(this,W,{writable:!0,value:null}),Object.defineProperty(this,Q,{writable:!0,value:null}),Object.defineProperty(this,$,{writable:!0,value:0}),Object.defineProperty(this,G,{writable:!0,value:null}),Object.defineProperty(this,J,{writable:!0,value:new Set}),Object.defineProperty(this,U,{writable:!0,value:0}),Object.defineProperty(this,X,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:0}),Object.defineProperty(this,Z,{writable:!0,value:!1}),Object.defineProperty(this,tt,{writable:!0,value:0}),Object.defineProperty(this,et,{writable:!0,value:void 0});const{dragAndDrop:Xt,fileTreeSearchMode:te,initialSearchQuery:ee,initialSelectedPaths:le,renaming:ae,onSearchChange:se,paths:ue,preparedInput:ne}=e,de=(0,Yt.default)(e,t),he=(0,ie.resolveFileTreeInput)({paths:ue,preparedInput:ne},"constructor",de.sort);(0,Zt.default)(this,l)[l]=de,null!=Xt&&!1!==Xt&&((0,Zt.default)(this,n)[n]=!0===Xt?{}:Xt),(0,Zt.default)(this,F)[F]=null!=ae&&!1!==ae,null!=ae&&!1!==ae&&!0!==ae&&((0,Zt.default)(this,V)[V]=ae.canRename,(0,Zt.default)(this,x)[x]=ae.onError,(0,Zt.default)(this,w)[w]=ae.onRename),(0,Zt.default)(this,D)[D]=se,(0,Zt.default)(this,L)[L]=te??"hide-non-matches",(0,Zt.default)(this,X)[X]=(0,Zt.default)(this,yt)[yt](he.paths,he.preparedInput);const re=le?.map(t=>(0,Zt.default)(this,qt)[qt](t)).filter(t=>null!=t)??[],fe=re.at(-1)??null;re.length>0&&((0,Zt.default)(this,J)[J]=new Set(re),(0,Zt.default)(this,G)[G]=fe,(0,Zt.default)(this,U)[U]=1),(0,Zt.default)(this,_t)[_t](fe,!1),null!=ee&&(0,Zt.default)(this,At)[At](ee,!1),(0,Zt.default)(this,et)[et]=(0,Zt.default)(this,Jt)[Jt]()}destroy(){(0,Zt.default)(this,et)[et]?.(),(0,Zt.default)(this,et)[et]=null,(0,Zt.default)(this,u)[u].clear(),(0,Zt.default)(this,s)[s].clear(),(0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,h)[h]=null,(0,Zt.default)(this,It)[It]()}focusFirstItem(){(0,Zt.default)(this,Ct)[Ct]().length>0&&(0,Zt.default)(this,Kt)[Kt](0)}focusLastItem(){(0,Zt.default)(this,tt)[tt]<=0||((0,Zt.default)(this,Wt)[Wt](),(0,Zt.default)(this,Kt)[Kt]((0,Zt.default)(this,tt)[tt]-1))}focusNextItem(){(0,Zt.default)(this,Lt)[Lt](1)}focusParentItem(){if(null==(0,Zt.default)(this,p)[p])return;const t=(0,ue.getImmediateParentPath)((0,Zt.default)(this,p)[p]);if(null==t)return;const e=(0,Zt.default)(this,ut)[ut](t);e>=0&&(0,Zt.default)(this,Kt)[Kt](e)}focusPath(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==e)return;(0,Zt.default)(this,Wt)[Wt]();const l=(0,Zt.default)(this,ut)[ut](e);l>=0&&(0,Zt.default)(this,Kt)[Kt](l)}scrollToPath(t,e){const l=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==l)return;(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,Mt)[Mt](l);var u;s<0||null!=(0,Zt.default)(this,Nt)[Nt](s)&&(!1!==e?.focus&&(0,Zt.default)(this,Kt)[Kt](s,!1),(0,Zt.default)(this,Q)[Q]={id:(0,Zt.default)(this,$)[$]+=1,offset:(u=e?.offset,"top"===u||"center"===u?u:"nearest"),visibleIndex:s},(0,Zt.default)(this,Tt)[Tt]())}focusMountedPathFromInput(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==e)return;const l=(0,Zt.default)(this,ut)[ut](e);l>=0&&(0,Zt.default)(this,Kt)[Kt](l)}focusNearestPath(t){const e=this.resolveNearestVisiblePath(t);if(null==e)return null;const l=(0,Zt.default)(this,ut)[ut](e);return l>=0?((0,Zt.default)(this,Kt)[Kt](l),(0,Zt.default)(this,Ct)[Ct]()[l]??e):null}focusPreviousItem(){(0,Zt.default)(this,Lt)[Lt](-1)}getFocusedIndex(){return(0,Zt.default)(this,c)[c]}getFocusedItem(){return null==(0,Zt.default)(this,p)[p]?null:(0,Zt.default)(this,nt)[nt]((0,Zt.default)(this,p)[p])}getFocusedPath(){return(0,Zt.default)(this,p)[p]}getScrollRequest(){return(0,Zt.default)(this,Q)[Q]}clearScrollRequest(t){(0,Zt.default)(this,Q)[Q]?.id===t&&((0,Zt.default)(this,Q)[Q]=null)}resolveNearestVisiblePath(t){const e=(0,Zt.default)(this,Ct)[Ct]();if(0===(0,Zt.default)(this,tt)[tt])return null;if(null==t)return(0,Zt.default)(this,p)[p]??e[0]??null;const l=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??t,s=(0,Zt.default)(this,ut)[ut](l);if(s>=0)return e[s]??l;const u=(0,Zt.default)(this,st)[st](l);return null!=u?u:(0,Zt.default)(this,p)[p]??e[0]??null}getSelectedPaths(){return[...(0,Zt.default)(this,J)[J]]}getSelectionVersion(){return(0,Zt.default)(this,U)[U]}getVisibleCount(){return(0,Zt.default)(this,tt)[tt]}getVisibleRows(t,e){if(e<t||0===(0,Zt.default)(this,tt)[tt])return[];const l=Math.max(0,t),s=Math.min((0,Zt.default)(this,tt)[tt]-1,e);if(s<l)return[];const u=s-l+1;if(null==(0,Zt.default)(this,K)[K]&&!(0,Zt.default)(this,P)[P]&&s>=(0,Zt.default)(this,E)[E].length&&u<=512){const t=[];for(let e=l;e<=s;e+=1){const l=(0,Zt.default)(this,X)[X].getVisibleRowContext(e);if(null==l)break;t.push((0,Zt.default)(this,ht)[ht](l))}return t}if(!(0,Zt.default)(this,P)[P]&&s>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt](),null!=(0,Zt.default)(this,K)[K]){const t=Array.from({length:s-l+1},(t,e)=>(0,Zt.default)(this,Vt)[Vt](l+e)),e=new Map;let u=t[0]??-1,n=u;for(let l=1;l<=t.length;l+=1){const s=t[l];null==s||s!==n+1?(u>=0&&(0,Zt.default)(this,X)[X].getVisibleSlice(u,n).forEach((t,l)=>{e.set(u+l,t)}),null!=s?(u=s,n=s):(u=-1,n=-1)):n=s}return Array.from({length:s-l+1},(t,s)=>{const u=l+s,n=(0,Zt.default)(this,Vt)[Vt](u),h=e.get(n),f=(0,Zt.default)(this,E)[E][n];if(null==h||null==f)throw new Error(`Missing projection row for filtered visible index ${String(u)}`);return(0,Zt.default)(this,dt)[dt](h,u,n,{ancestorPaths:(0,Zt.default)(this,ot)[ot](n),path:f})})}return(0,Zt.default)(this,X)[X].getVisibleSlice(l,s).map((t,e)=>{const s=l+e,u=(0,Zt.default)(this,E)[E][s];if(null==u)throw new Error(`Missing projection path for visible index ${String(s)}`);return(0,Zt.default)(this,dt)[dt](t,s,s,{ancestorPaths:(0,Zt.default)(this,ot)[ot](s),path:u})})}getStickyRowCandidates(t,e){if(null!=(0,Zt.default)(this,K)[K])return null;if(0===(0,Zt.default)(this,tt)[tt]||t<=0||e<=0)return[];const l=[];for(let s=0;s<(0,Zt.default)(this,tt)[tt];s+=1){const u=t+s*e,n=Math.min((0,Zt.default)(this,tt)[tt]-1,Math.floor(u/e)),h=(0,Zt.default)(this,rt)[rt](n,s)??(n>0?(0,Zt.default)(this,rt)[rt](n-1,s):void 0);if(null==h)break;l.push({row:(0,Zt.default)(this,ht)[ht](h),subtreeEndIndex:h.subtreeEndIndex})}return l}getItem(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t);return null==e?null:(0,Zt.default)(this,nt)[nt](e.path,e)}resolveMountedDirectoryPathFromInput(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t);return"directory"===e?.kind?e.path:null}toggleMountedDirectoryFromInput(t){const e=this.resolveMountedDirectoryPathFromInput(t);null!=e&&(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0&&((0,Zt.default)(this,T)[T].has(e)?(0,Zt.default)(this,T)[T].delete(e):(0,Zt.default)(this,X)[X].isExpanded(e)&&(0,Zt.default)(this,T)[T].add(e)),(0,Zt.default)(this,Ut)[Ut](e))}selectAllVisiblePaths(){(0,Zt.default)(this,Wt)[Wt]();const t=[...(0,Zt.default)(this,Ct)[Ct]()];(0,Zt.default)(this,pt)[pt](t,(0,Zt.default)(this,p)[p]??(0,Zt.default)(this,G)[G])}selectOnlyPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&(0,Zt.default)(this,pt)[pt]([e],e)}selectOnlyMountedPathFromInput(t){(0,Zt.default)(this,pt)[pt]([t],t)}selectPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null==e||(0,Zt.default)(this,J)[J].has(e)||(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J],e])}deselectPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&(0,Zt.default)(this,J)[J].has(e)&&(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J]].filter(t=>t!==e))}toggleFocusedSelection(){null!=(0,Zt.default)(this,p)[p]&&this.togglePathSelectionFromInput((0,Zt.default)(this,p)[p])}togglePathSelection(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&((0,Zt.default)(this,J)[J].has(e)?this.deselectPath(e):this.selectPath(e))}togglePathSelectionFromInput(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&((0,Zt.default)(this,J)[J].has(e)?(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J]].filter(t=>t!==e),e):(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J],e],e))}selectPathRange(t,e){const l=(0,Zt.default)(this,qt)[qt](t);if(null==l)return;(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,G)[G],u=null==s?-1:(0,Zt.default)(this,Ft)[Ft](s),n=(0,Zt.default)(this,Ft)[Ft](l);if(-1===u||-1===n){const t=e?[...(0,Zt.default)(this,J)[J],l]:[l];return void(0,Zt.default)(this,pt)[pt](t,l)}const[h,f]=u<=n?[u,n]:[n,u],o=(0,Zt.default)(this,Ct)[Ct]().slice(h,f+1),c=e?[...(0,Zt.default)(this,J)[J],...o]:o;(0,Zt.default)(this,pt)[pt](c,s)}extendSelectionFromFocused(t){if(null==(0,Zt.default)(this,p)[p])return;const e=(0,Zt.default)(this,c)[c];if(-1===e)return;const l=Math.min((0,Zt.default)(this,tt)[tt]-1,Math.max(0,e+t));if(l===e)return;!(0,Zt.default)(this,P)[P]&&l>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,Ct)[Ct](),u=s[e]??null,n=s[l]??null;if(null==u||null==n)return;const h=new Set((0,Zt.default)(this,J)[J]);h.has(u)&&h.has(n)?h.delete(u):h.add(n),(0,Zt.default)(this,pt)[pt]([...h],(0,Zt.default)(this,G)[G]??u,!1),(0,Zt.default)(this,Kt)[Kt](l)}getDragAndDropConfig(){return(0,Zt.default)(this,n)[n]}isDragAndDropEnabled(){return null!=(0,Zt.default)(this,n)[n]}getDragSession(){return null==(0,Zt.default)(this,h)[h]?null:{draggedPaths:[...(0,Zt.default)(this,h)[h].draggedPaths],primaryPath:(0,Zt.default)(this,h)[h].primaryPath,target:null==(0,Zt.default)(this,h)[h].target?null:Object.assign({},(0,Zt.default)(this,h)[h].target)}}startDrag(t){if(null==(0,Zt.default)(this,n)[n])return!1;const e=(0,Zt.default)(this,qt)[qt](t);if(null==e)return!1;if(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0)return!1;const l=this.getSelectedPaths(),s=(0,ae.resolveDraggedPathsForStart)(e,l);return!1!==(0,Zt.default)(this,n)[n].canDrag?.(s)&&(l.includes(e)||(0,Zt.default)(this,pt)[pt]([e],e,!1),(0,Zt.default)(this,Ht)[Ht](e),(0,Zt.default)(this,h)[h]={draggedPaths:s,primaryPath:e,target:null},(0,Zt.default)(this,Tt)[Tt](),!0)}setDragTarget(t){const e=(0,Zt.default)(this,h)[h];if(null==e)return;let l=t;if(null!=l){const t=(0,ae.createDropContext)(e.draggedPaths,l);((0,ae.isSelfOrDescendantDrop)(e.draggedPaths,l)||!1===(0,Zt.default)(this,n)[n]?.canDrop?.(t))&&(l=null)}(0,ae.dropTargetsEqual)(e.target,l)||((0,Zt.default)(this,h)[h]=Object.assign({},e,{target:l}),(0,Zt.default)(this,Tt)[Tt]())}cancelDrag(){null!=(0,Zt.default)(this,h)[h]&&((0,Zt.default)(this,h)[h]=null,(0,Zt.default)(this,Tt)[Tt]())}completeDrag(){const t=(0,Zt.default)(this,h)[h];if(null==t)return!1;(0,Zt.default)(this,h)[h]=null;const e=null==t.target?null:Object.assign({},t.target);if(null==e)return(0,Zt.default)(this,Tt)[Tt](),!1;const l=(0,ae.createDropContext)(t.draggedPaths,e);if((0,ae.isSelfOrDescendantDrop)(t.draggedPaths,e)||!1===(0,Zt.default)(this,n)[n]?.canDrop?.(l))return(0,Zt.default)(this,Tt)[Tt](),!1;const s=(0,ae.buildDropOperations)(t.draggedPaths,e);if(null==s)return(0,Zt.default)(this,Tt)[Tt](),!1;try{if(1===s.operations.length){const t=s.operations[0];if(null==t||"move"!==t.type)throw new Error("Expected a single move operation for one-item drops");(0,Zt.default)(this,X)[X].move(t.from,t.to,{collision:t.collision})}else(0,Zt.default)(this,bt)[bt](s.operations),(0,Zt.default)(this,X)[X].batch(s.operations)}catch(t){return(0,Zt.default)(this,Tt)[Tt](),(0,Zt.default)(this,n)[n]?.onDropError?.(t instanceof Error?t.message:String(t),l),!1}return(0,Zt.default)(this,n)[n]?.onDropComplete?.(s.result),!0}subscribe(t){return(0,Zt.default)(this,s)[s].add(t),t(),()=>{(0,Zt.default)(this,s)[s].delete(t)}}add(t){(0,Zt.default)(this,X)[X].add(t)}remove(t,e={}){(0,Zt.default)(this,X)[X].remove(t,e)}move(t,e,l={}){(0,Zt.default)(this,X)[X].move(t,e,l)}batch(t){(0,Zt.default)(this,X)[X].batch(t)}onMutation(t,e){const l=t,s=e;let n=(0,Zt.default)(this,u)[u].get(l);return null==n&&(n=new Set,(0,Zt.default)(this,u)[u].set(l,n)),n.add(s),()=>{const t=(0,Zt.default)(this,u)[u].get(l);t?.delete(s),0===t?.size&&(0,Zt.default)(this,u)[u].delete(l)}}setSearch(t){(0,Zt.default)(this,At)[At](t,!0)}openSearch(t=""){(0,Zt.default)(this,At)[At](t,!0)}closeSearch(){(0,Zt.default)(this,At)[At](null,!0)}isSearchOpen(){return null!==(0,Zt.default)(this,N)[N]}getSearchValue(){return(0,Zt.default)(this,N)[N]??""}getSearchMatchingPaths(){return(0,Zt.default)(this,k)[k]}focusNextSearchMatch(){(0,Zt.default)(this,Rt)[Rt](1)}focusPreviousSearchMatch(){(0,Zt.default)(this,Rt)[Rt](-1)}startRenaming(t=(0,Zt.default)(this,p)[p]??"",e={}){if(!(0,Zt.default)(this,F)[F])return!1;const l=(0,Zt.default)(this,X)[X].getPathInfo(t);if(null==l)return!1;const s=l.path,u=(0,ue.isCanonicalDirectoryPath)(s),n=(0,ne.toRenameHelperPath)(s);if(!1===(0,Zt.default)(this,V)[V]?.({isFolder:u,path:n}))return!1;for(const t of(0,ue.getAncestorDirectoryPaths)(s))(0,Zt.default)(this,X)[X].isExpanded(t)||(0,Zt.default)(this,X)[X].expand(t);return(0,Zt.default)(this,pt)[pt]([s],s,!1),null!=(0,Zt.default)(this,N)[N]&&((0,Zt.default)(this,At)[At](null,!1),(0,Zt.default)(this,D)[D]?.((0,Zt.default)(this,N)[N])),(0,Zt.default)(this,Ht)[Ht](s),(0,Zt.default)(this,R)[R]=s,(0,Zt.default)(this,A)[A]=(0,ne.getRenameLeafName)(s),(0,Zt.default)(this,B)[B]=e.removeIfCanceled??!1,(0,Zt.default)(this,Tt)[Tt](),!0}resetPaths(t,e={}){const s=!Array.isArray(t),u=s?void 0:t,n=s?t:e,h=(0,Zt.default)(this,X)[X].list().length,f=(0,Zt.default)(this,tt)[tt],o=(0,ie.resolveFileTreeInput)({paths:u,preparedInput:n.preparedInput},"resetPaths",(0,Zt.default)(this,l)[l].sort),c=(0,Zt.default)(this,yt)[yt](o.paths,o.preparedInput,n.initialExpandedPaths),P=(0,Zt.default)(this,p)[p],b=(0,Zt.default)(this,R)[R],v=this.getSelectedPaths(),S=(0,Zt.default)(this,G)[G];(0,Zt.default)(this,et)[et]?.(),(0,Zt.default)(this,X)[X]=c,(0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,It)[It]();const O=v.map(t=>c.getPathInfo(t)?.path??null).filter(t=>null!=t),j=!(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],O);(0,Zt.default)(this,J)[J]=new Set(O),j&&((0,Zt.default)(this,U)[U]+=1),(0,Zt.default)(this,G)[G]=null==S?null:c.getPathInfo(S)?.path??null,(0,Zt.default)(this,R)[R]=null==b?null:c.getPathInfo(b)?.path??null,null==(0,Zt.default)(this,R)[R]&&((0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1),(0,Zt.default)(this,_t)[_t](P,null!=P||O.length>0||null!=(0,Zt.default)(this,G)[G]),(0,Zt.default)(this,et)[et]=(0,Zt.default)(this,Jt)[Jt](),(0,Zt.default)(this,Tt)[Tt](),(0,Zt.default)(this,zt)[zt]({canonicalChanged:!0,operation:"reset",pathCountAfter:o.paths.length,pathCountBefore:h,projectionChanged:!0,usedPreparedInput:null!=n.preparedInput,visibleCountDelta:(0,Zt.default)(this,tt)[tt]-f})}},Object.defineProperty(e.prototype,he,{configurable:!0,value(){return{cancel:()=>{(0,Zt.default)(this,lt)[lt]()},commit:()=>{(0,Zt.default)(this,at)[at]()},getPath:()=>(0,Zt.default)(this,R)[R],getValue:()=>(0,Zt.default)(this,A)[A],isActive:()=>null!=(0,Zt.default)(this,R)[R],setValue:t=>{(0,Zt.default)(this,it)[it](t)}}},writable:!0}),e);function ce(){if(null==(0,Zt.default)(this,R)[R])return;const t=(0,Zt.default)(this,R)[R],e=(0,Zt.default)(this,B)[B];(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,e?this.remove(t,(0,ue.isCanonicalDirectoryPath)(t)?{recursive:!0}:void 0):((0,Zt.default)(this,Ht)[Ht](t),(0,Zt.default)(this,Tt)[Tt]())}function pe(){const t=(0,Zt.default)(this,R)[R];if(null==t)return;if((0,Zt.default)(this,B)[B]&&0===(0,Zt.default)(this,A)[A].trim().length)return(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,void this.remove(t,(0,ue.isCanonicalDirectoryPath)(t)?{recursive:!0}:void 0);const e=(0,ue.isCanonicalDirectoryPath)(t),l=(0,le.renameFileTreePaths)({files:(0,Zt.default)(this,X)[X].list(),isFolder:e,nextBasename:(0,Zt.default)(this,A)[A],path:(0,ne.toRenameHelperPath)(t)});return(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,"error"in l?((0,Zt.default)(this,Ht)[Ht](t),(0,Zt.default)(this,x)[x]?.(l.error),void(0,Zt.default)(this,Tt)[Tt]()):l.sourcePath===l.destinationPath?((0,Zt.default)(this,Ht)[Ht](t),void(0,Zt.default)(this,Tt)[Tt]()):((0,Zt.default)(this,w)[w]?.({destinationPath:l.destinationPath,isFolder:l.isFolder,sourcePath:l.sourcePath}),void this.move((0,ne.toCanonicalRenamePath)(l.sourcePath,e),(0,ne.toCanonicalRenamePath)(l.destinationPath,e)))}function Pe(t){null!=(0,Zt.default)(this,R)[R]&&(0,Zt.default)(this,A)[A]!==t&&((0,Zt.default)(this,A)[A]=t,(0,Zt.default)(this,Tt)[Tt]())}function ge(t){(0,Zt.default)(this,Wt)[Wt]();const e=(0,ue.getImmediateParentPath)(t),l=(0,ue.getSiblingComparisonKey)(t,e);let s=null,u=null;for(const t of(0,Zt.default)(this,Ct)[Ct]()){if((0,ue.getImmediateParentPath)(t)!==e)continue;const n=(0,ue.getSiblingComparisonKey)(t,e);if(n<l)s=t;else if(n>l){u=t;break}}return s??u}function be(t){const e=(0,Zt.default)(this,Ft)[Ft](t);if(-1!==e)return e;const l=(0,ue.getAncestorDirectoryPaths)(t);for(let t=l.length-1;t>=0;t-=1){const e=l[t];if(null==e)continue;const s=(0,Zt.default)(this,Ft)[Ft](e);if(-1!==s)return s}return(0,Zt.default)(this,Ct)[Ct]().length>0?0:-1}function ye(t,e){const l=(0,Zt.default)(this,y)[y].get(t);if(null!=l)return l;const s=e??(0,Zt.default)(this,X)[X].getPathInfo(t);if(null==s)return null;const u="directory"===s.kind?(0,Zt.default)(this,Pt)[Pt](s.path):(0,Zt.default)(this,gt)[gt](s.path);return(0,Zt.default)(this,y)[y].set(s.path,u),u}function ve(t,e,l,s){return{ancestorPaths:s.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map(t=>({isTerminal:t.isTerminal,name:t.name,path:t.path})),hasChildren:t.hasChildren,index:e,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:s.path===(0,Zt.default)(this,p)[p],isSelected:(0,Zt.default)(this,J)[J].has(s.path),kind:t.kind,level:t.depth,name:t.name,path:s.path,posInSet:s.posInSet??(0,Zt.default)(this,C)[C][l]??0,setSize:s.setSize??(0,Zt.default)(this,M)[M][l]??0}}function me(t){return(0,Zt.default)(this,dt)[dt](t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}function Se(t,e){const l=(0,Zt.default)(this,X)[X].getVisibleRowContext(t);if(null==l)return;const s=l.ancestorRows[e];return null!=s?s:e===l.ancestorRows.length&&"directory"===l.row.kind&&l.row.isExpanded?l:void 0}function Oe(t){const e=(0,Zt.default)(this,f)[f].get(t);if(null!=e)return e;const l=(0,Zt.default)(this,b)[b](t),s=l<0?[]:[...(0,Zt.default)(this,ft)[ft](l),l];return(0,Zt.default)(this,f)[f].set(t,s),s}function je(t){const e=(0,Zt.default)(this,o)[o].get(t);if(null!=e)return e;const l=(0,Zt.default)(this,ft)[ft](t).map(t=>(0,Zt.default)(this,E)[E][t]??"").filter(t=>""!==t);return(0,Zt.default)(this,o)[o].set(t,l),l}function Ie(t){(0,Zt.default)(this,X)[X].collapse(t)}function we(t,e=(0,Zt.default)(this,G)[G],l=!0){const s=[...new Set(t)],u=!(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],s),n=(0,Zt.default)(this,G)[G]!==e;(u||n)&&((0,Zt.default)(this,J)[J]=new Set(s),(0,Zt.default)(this,G)[G]=e,u&&((0,Zt.default)(this,U)[U]+=1),l&&(0,Zt.default)(this,Tt)[Tt]())}function xe(t){return{collapse:()=>{(0,Zt.default)(this,ct)[ct](t)},deselect:()=>{this.deselectPath(t)},expand:()=>{(0,Zt.default)(this,kt)[kt](t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>(0,Zt.default)(this,X)[X].isExpanded(t),isFocused:()=>(0,Zt.default)(this,p)[p]===t,isSelected:()=>(0,Zt.default)(this,J)[J].has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{(0,Zt.default)(this,Ut)[Ut](t)}}}function De(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>(0,Zt.default)(this,p)[p]===t,isSelected:()=>(0,Zt.default)(this,J)[J].has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}function Ee(t){const e=(0,Zt.default)(this,X)[X].list();(0,Zt.default)(this,yt)[yt](e).batch(t)}function Ce(t,e,s){return new ee.PathStore(Object.assign({},(0,Zt.default)(this,l)[l],{paths:t,preparedInput:e},void 0!==s?{initialExpandedPaths:s}:{}))}function Me(){return null!=(0,Zt.default)(this,j)[j]||((0,Zt.default)(this,j)[j]=(0,Zt.default)(this,X)[X].list()),(0,Zt.default)(this,j)[j]}function Ve(){if(null!=(0,Zt.default)(this,O)[O])return(0,Zt.default)(this,O)[O];const t=new Set;for(const e of(0,Zt.default)(this,vt)[vt]()){t.add(e);for(const l of(0,ue.getAncestorDirectoryPaths)(e))t.add(l)}return(0,Zt.default)(this,O)[O]=[...t].sort(),(0,Zt.default)(this,O)[O]}function Fe(){return null!=(0,Zt.default)(this,I)[I]||((0,Zt.default)(this,I)[I]=(0,Zt.default)(this,vt)[vt]().map(ue.toLowerCaseSearchPath)),(0,Zt.default)(this,I)[I]}function Re(){return null!=(0,Zt.default)(this,v)[v]||((0,Zt.default)(this,v)[v]=(0,Zt.default)(this,mt)[mt]().filter(t=>t.endsWith("/"))),(0,Zt.default)(this,v)[v]}function Ae(){return null!=(0,Zt.default)(this,S)[S]||((0,Zt.default)(this,S)[S]=(0,Zt.default)(this,Ot)[Ot]().map(ue.toLowerCaseSearchPath)),(0,Zt.default)(this,S)[S]}function Be(){(0,Zt.default)(this,v)[v]=null,(0,Zt.default)(this,S)[S]=null,(0,Zt.default)(this,O)[O]=null,(0,Zt.default)(this,j)[j]=null,(0,Zt.default)(this,I)[I]=null}function Te(){return(0,Zt.default)(this,Ot)[Ot]().filter(t=>(0,Zt.default)(this,X)[X].isExpanded(t))}function ze(t){const e=new Set((0,Zt.default)(this,_)[_]??[]);if(t)for(const t of(0,Zt.default)(this,J)[J])for(const l of(0,ue.getAncestorDirectoryPaths)(t))e.add(l);(0,Zt.default)(this,Dt)[Dt](e)}function ke(t){(0,Zt.default)(this,Z)[Z]=!0;try{for(const e of(0,Zt.default)(this,Ot)[Ot]()){const l=t.has(e),s=(0,Zt.default)(this,X)[X].isExpanded(e);l&&!s?(0,Zt.default)(this,X)[X].expand(e):!l&&s&&(0,Zt.default)(this,X)[X].collapse(e)}}finally{(0,Zt.default)(this,Z)[Z]=!1}}function Le(){if(null==(0,Zt.default)(this,N)[N]||0===(0,Zt.default)(this,N)[N].length)return(0,Zt.default)(this,K)[K]=null,(0,Zt.default)(this,W)[W]=null,(0,Zt.default)(this,H)[H]=null,void((0,Zt.default)(this,tt)[tt]=(0,Zt.default)(this,Y)[Y]);const t=(0,Zt.default)(this,E)[E];if("hide-non-matches"!==(0,Zt.default)(this,L)[L]||0===(0,Zt.default)(this,z)[z].size)return(0,Zt.default)(this,K)[K]=null,(0,Zt.default)(this,W)[W]=null,(0,Zt.default)(this,H)[H]=null,void((0,Zt.default)(this,tt)[tt]=(0,Zt.default)(this,Y)[Y]);const e=[],l=[],s=new Map,u=(0,Zt.default)(this,q)[q];for(const[n,h]of t.entries())!0===u?.has(h)&&(s.set(h,l.length),e.push(n),l.push(h));(0,Zt.default)(this,K)[K]=e,(0,Zt.default)(this,W)[W]=l,(0,Zt.default)(this,H)[H]=s,(0,Zt.default)(this,tt)[tt]=l.length}function Ne(){return(0,Zt.default)(this,W)[W]??(0,Zt.default)(this,E)[E]}function qe(t){return null!=(0,Zt.default)(this,W)[W]?(0,Zt.default)(this,H)[H]?.get(t)??-1:(0,Zt.default)(this,X)[X].getVisibleIndex(t)??-1}function He(t){return(0,Zt.default)(this,K)[K]?.[t]??t}function Ke(t){const e=(0,Zt.default)(this,H)[H]?.get(t);return null!=e?e:(0,Zt.default)(this,X)[X].getVisibleIndex(t)??-1}function We(t){const e=(0,Zt.default)(this,k)[k];if(0===e.length)return;const l=(0,Zt.default)(this,p)[p],s=null==l?-1:e.indexOf(l),u=e[s<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,s+t))];null!=u&&this.focusPath(u)}function Qe(t,e){const l=null==t?null:(0,de.normalizeSearchQuery)(t),s=(0,Zt.default)(this,N)[N];if(s!==l){if(null==s&&null!=l&&((0,Zt.default)(this,_)[_]=(0,Zt.default)(this,wt)[wt]()),(0,Zt.default)(this,N)[N]=l,null==l)(0,Zt.default)(this,T)[T].clear(),(0,Zt.default)(this,xt)[xt](!0),(0,Zt.default)(this,_)[_]=null,(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,q)[q]=null,(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0);else if(0===l.length)(0,Zt.default)(this,T)[T].clear(),(0,Zt.default)(this,xt)[xt](!1),(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,q)[q]=null,(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0);else{const t=(0,Zt.default)(this,Bt)[Bt]();(0,Zt.default)(this,_t)[_t](t,!0)}e&&((0,Zt.default)(this,D)[D]?.((0,Zt.default)(this,N)[N]),(0,Zt.default)(this,Tt)[Tt]())}}function $e(){if(null==(0,Zt.default)(this,N)[N]||0===(0,Zt.default)(this,N)[N].length)return(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,p)[p];(0,Zt.default)(this,Qt)[Qt]();const t=(0,Zt.default)(this,N)[N],e=(0,Zt.default)(this,vt)[vt](),l=(0,Zt.default)(this,St)[St](),s=[],u=new Set;let n=null;for(let h=0;h<e.length;h+=1){if(!l[h].includes(t))continue;const f=e[h];s.push(f),u.add(f),n??=f}const h=(0,Zt.default)(this,Ot)[Ot](),f=(0,Zt.default)(this,jt)[jt]();for(let e=0;e<h.length;e+=1){if(!f[e].includes(t))continue;const l=h[e];u.has(l)||(s.push(l),u.add(l),n??=l)}(0,Zt.default)(this,z)[z]=u,(0,Zt.default)(this,k)[k]=s;const o="hide-non-matches"===(0,Zt.default)(this,L)[L]&&s.length>0?new Set:null;(0,Zt.default)(this,q)[q]=o;const c="expand-matches"===(0,Zt.default)(this,L)[L]?new Set((0,Zt.default)(this,_)[_]??[]):new Set;for(const t of s){null!=o&&o.add(t),t.endsWith("/")&&c.add(t);for(const e of(0,ue.getAncestorDirectoryPaths)(t))c.add(e),null!=o&&o.add(e)}for(const t of(0,Zt.default)(this,T)[T])if(c.delete(t),null!=o){o.add(t);for(const e of(0,ue.getAncestorDirectoryPaths)(t))o.add(e)}return(0,Zt.default)(this,Dt)[Dt](c),n??(0,Zt.default)(this,p)[p]}function Ge(){for(const t of(0,Zt.default)(this,s)[s])t()}function Je(t){(0,Zt.default)(this,u)[u].get(t.operation)?.forEach(e=>{e(t)}),(0,Zt.default)(this,u)[u].get("*")?.forEach(e=>{e(t)})}function Ue(t){for(const e of(0,ue.getAncestorDirectoryPaths)(t))(0,Zt.default)(this,X)[X].isExpanded(e)||(0,Zt.default)(this,X)[X].expand(e);(0,Zt.default)(this,X)[X].isExpanded(t)||(0,Zt.default)(this,X)[X].expand(t)}function Xe(t){const e=(0,Zt.default)(this,tt)[tt];if(0===e)return;const l=-1===(0,Zt.default)(this,c)[c]?0:(0,Zt.default)(this,c)[c],s=Math.min(e-1,Math.max(0,l+t));s===l&&-1!==(0,Zt.default)(this,c)[c]||(!(0,Zt.default)(this,P)[P]&&null==(0,Zt.default)(this,K)[K]&&s>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt](),(0,Zt.default)(this,Kt)[Kt](s))}function Ye(t,e=!0){const l=(0,Zt.default)(this,X)[X].getVisibleCount();(0,Zt.default)(this,Y)[Y]=l;const s=fe((0,Zt.default)(this,X)[X].getVisibleTreeProjectionData(e?void 0:Math.min(l,512)),t,e?t=>(0,Zt.default)(this,X)[X].getVisibleIndex(t):void 0);(0,Zt.default)(this,f)[f].clear(),(0,Zt.default)(this,o)[o].clear(),(0,Zt.default)(this,P)[P]=s.paths.length>=l,(0,Zt.default)(this,b)[b]=s.getParentIndex,(0,Zt.default)(this,E)[E]=s.paths,(0,Zt.default)(this,C)[C]=s.posInSetByIndex,(0,Zt.default)(this,M)[M]=s.setSizeByIndex,(0,Zt.default)(this,Et)[Et](),(0,Zt.default)(this,c)[c]=null==t?(0,Zt.default)(this,Ct)[Ct]().length>0?0:-1:(0,Zt.default)(this,ut)[ut](t),(0,Zt.default)(this,p)[p]=(0,Zt.default)(this,c)[c]<0?null:(0,Zt.default)(this,Nt)[Nt]((0,Zt.default)(this,c)[c])}function Ze(t){const e=(0,Zt.default)(this,Ct)[Ct]()[t];return null!=e?e:null!=(0,Zt.default)(this,K)[K]?null:(0,Zt.default)(this,X)[X].getVisibleRowContext(t)?.row.path??null}function tl(t){return(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null}function el(t){if(null==t)return;const e=(0,Zt.default)(this,ut)[ut](t);e>=0&&(0,Zt.default)(this,Kt)[Kt](e,!1)}function ll(t,e=!0){const l=(0,Zt.default)(this,Nt)[Nt](t);null!=l&&((0,Zt.default)(this,c)[c]===t&&(0,Zt.default)(this,p)[p]===l||((0,Zt.default)(this,c)[c]=t,(0,Zt.default)(this,p)[p]=l,e&&(0,Zt.default)(this,Tt)[Tt]()))}function al(){(0,Zt.default)(this,P)[P]||(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0)}function il(){if(0!==(0,Zt.default)(this,T)[T].size)for(const t of[...(0,Zt.default)(this,T)[T]])this.resolveMountedDirectoryPathFromInput(t)!==t&&(0,Zt.default)(this,T)[T].delete(t)}function sl(t){if(0===(0,Zt.default)(this,T)[T].size)return;const e=new Set;for(const l of(0,Zt.default)(this,T)[T]){const s=(0,se.remapPathThroughMutation)(l,t);if(null==s)continue;const u=(0,Zt.default)(this,X)[X].getPathInfo(s)?.path??null;null!=u&&u.endsWith("/")&&e.add(u)}(0,Zt.default)(this,T)[T]=e}function ul(t){(0,Zt.default)(this,$t)[$t](t);const e=(0,se.remapPathThroughMutation)((0,Zt.default)(this,R)[R],t);null==e&&null!=(0,Zt.default)(this,R)[R]&&((0,Zt.default)(this,A)[A]=""),(0,Zt.default)(this,R)[R]=e;const l=(0,se.remapPathThroughMutation)((0,Zt.default)(this,p)[p],t,!0),s=[...(0,Zt.default)(this,J)[J]].map(e=>(0,se.remapPathThroughMutation)(e,t)).filter(t=>null!=t).map(t=>(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null).filter(t=>null!=t),u=(0,se.remapPathThroughMutation)((0,Zt.default)(this,G)[G],t),n=null==u?null:(0,Zt.default)(this,X)[X].getPathInfo(u)?.path??null,h=[...new Set(s)];return(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],h)||((0,Zt.default)(this,J)[J]=new Set(h),(0,Zt.default)(this,U)[U]+=1),(0,Zt.default)(this,G)[G]=n,l}function nl(){return(0,Zt.default)(this,X)[X].on("*",t=>{if((0,Zt.default)(this,Z)[Z])return;t.canonicalChanged&&((0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,It)[It]()),null!=(0,Zt.default)(this,h)[h]&&(0,se.isPathMutationEvent)(t)&&((0,Zt.default)(this,h)[h]=null);const e=(0,se.isPathMutationEvent)(t)?(0,Zt.default)(this,Gt)[Gt](t):(0,Zt.default)(this,p)[p];let l;if(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0){const t=(0,Zt.default)(this,Bt)[Bt]();l=null!=(0,Zt.default)(this,p)[p]&&!0===(0,Zt.default)(this,q)[q]?.has((0,Zt.default)(this,p)[p])?(0,Zt.default)(this,p)[p]:t}else l=""===(0,Zt.default)(this,N)[N]?(0,Zt.default)(this,p)[p]:e;const s=null!=(0,Zt.default)(this,N)[N]||"expand"!==t.operation&&"collapse"!==t.operation;(0,Zt.default)(this,_t)[_t](l,s),(0,Zt.default)(this,Tt)[Tt]();const u=(0,se.toTreesMutationEvent)(t);null!=u&&(0,Zt.default)(this,zt)[zt](u)})}function dl(t){(0,Zt.default)(this,X)[X].isExpanded(t)?(0,Zt.default)(this,ct)[ct](t):(0,Zt.default)(this,kt)[kt](t)}},1260,[25,30,31,1237,1261,1263,1264,1265,1266,1267,1268]);
|
|
34
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"remapExpandedPathsForFolderRename",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"renameFileTreePaths",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t){const n=t.lastIndexOf("/");return n<0?{parentPath:"",baseName:t}:{parentPath:t.slice(0,n),baseName:t.slice(n+1)}}function s(t,n){return""===t?n:`${t}/${n}`}function o({expandedPaths:t,sourcePath:n,destinationPath:s}){if(0===t.length||n===s)return t;const o=`${n}/`,l=[],c=new Set;let u=!1;for(let h=0;h<t.length;h++){const f=t[h],P=f===n?s:f.startsWith(o)?`${s}${f.slice(n.length)}`:f;P!==f&&(u=!0),c.has(P)?u=!0:(c.add(P),l.push(P))}return u?l:t}function l({files:o,path:l,isFolder:c,nextBasename:u}){const h=(0,t.getSelectionPath)(l),f=u.trim();if(0===f.length)return{error:"Name cannot be empty."};if(f.includes("/"))return{error:"Name cannot include \"/\"."};const{parentPath:P,baseName:$}=n(h);if(f===$)return{nextFiles:o,sourcePath:h,destinationPath:h,isFolder:c};const p=s(P,f),x=new Array(o.length),F=new Set;if(!c){const t=`${p}/`;let n=!1;for(let s=0;s<o.length;s++){const l=o[s];if(l!==h&&l.startsWith(t))return{error:`"${p}" already exists.`};const c=l===h?p:l;if(F.has(c))return{error:`"${p}" already exists.`};F.add(c),x[s]=c,l===h&&(n=!0)}return n?{nextFiles:x,sourcePath:h,destinationPath:p,isFolder:c}:{error:"Could not find the selected file to rename."}}const b=`${h}/`,y=`${p}/`;let N=0;for(let t=0;t<o.length;t++){const n=o[t],s=n===h||n.startsWith(b);if(!s&&(n===p||n.startsWith(y)))return{error:`"${p}" already exists.`};const l=s?`${p}${n.slice(h.length)}`:n;if(F.has(l))return{error:`"${p}" already exists.`};F.add(l),x[t]=l,s&&N++}return 0===N?{error:"Could not find the selected folder to rename."}:{nextFiles:x,sourcePath:h,destinationPath:p,isFolder:c}}},
|
|
35
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSelectionPath",{enumerable:!0,get:function(){return t}}),r(d[0]);const t=t=>t.startsWith("f::")?t.slice(3):t},
|
|
36
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.endsWith("/")}function n(t){const n=t.endsWith("/")?t.slice(0,-1):t,o=n.lastIndexOf("/"),u=o<0?n:n.slice(o+1);return t.endsWith("/")?`${u}/`:u}function o(t){const n=[],o=new Set;for(const u of t)o.has(u)||(o.add(u),n.push(u));const u=new Set;for(const t of n.toSorted((t,n)=>t.length!==n.length?t.length-n.length:t.localeCompare(n))){const n=(t.endsWith("/")?t.slice(0,-1):t).split("/");let o=!1;for(let t=0;t<n.length-1;t+=1){const c=`${n.slice(0,t+1).join("/")}/`;if(u.has(c)){o=!0;break}}o||u.add(t)}return n.filter(t=>u.has(t))}function u(t,n){return n.includes(t)?o(n):[t]}function c(t,n){return t===n||null!=t&&null!=n&&(t.kind===n.kind&&t.directoryPath===n.directoryPath&&t.flattenedSegmentPath===n.flattenedSegmentPath&&t.hoveredPath===n.hoveredPath)}function l(t,n){return{draggedPaths:t,target:n}}function s(n,o){if("directory"!==o.kind||null==o.directoryPath)return!1;for(const u of n)if(t(u)&&(o.directoryPath===u||o.directoryPath.startsWith(u)))return!0;return!1}function f(t,o){return"root"===o.kind||null==o.directoryPath?n(t):o.directoryPath}function h(t,n){const o=t.map(t=>{const o=f(t,n);return o===t?null:{from:t,to:o,type:"move"}}).filter(t=>null!=t);return 0===o.length?null:{operations:o,result:{draggedPaths:t,operation:1===o.length?"move":"batch",target:n}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildDropOperations",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createDropContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropTargetsEqual",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isSelfOrDescendantDrop",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizeDraggedPaths",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolveDraggedPathsForStart",{enumerable:!0,get:function(){return u}})},
|
|
37
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveFileTreeInput",{enumerable:!0,get:function(){return p}});var t=r(d[0]);function n(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;for(let p=0;p<t.length;p+=1)if(t[p]!==n[p])return!1;return!0}function p(p,u,l){const{paths:o,preparedInput:s}=p;if(null==s){if(null==o)throw new Error("FileTree requires paths or preparedInput");return{paths:o,preparedInput:void 0}}const f=s.paths;if(null==o)return{paths:f,preparedInput:s};if(!n(t.PathStore.preparePaths(o,null==l?{}:{sort:l}),f))throw new Error(`FileTree ${u} received paths and preparedInput for different path lists`);return{paths:f,preparedInput:s}}},
|
|
38
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"add"===t.operation||"remove"===t.operation||"move"===t.operation||"batch"===t.operation}function n(t,n,o){if(t===n)return o;const c=n.endsWith("/")?n:`${n}/`;return t.startsWith(c)?`${o.endsWith("/")?o:`${o}/`}${t.slice(c.length)}`:t}function o(t,n){if(t===n)return!0;const o=n.endsWith("/")?n:`${n}/`;return t.startsWith(o)}function c(t,u,s=!1){if(null==t)return null;switch(u.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return t;case"remove":return o(t,u.path)?s?t:null:t;case"move":return n(t,u.from,u.to);case"batch":{let n=t;for(const t of u.events)if(n=c(n,t,s),null==n)return null;return n}}}function u(t){return{canonicalChanged:t.canonicalChanged,projectionChanged:t.projectionChanged,visibleCountDelta:t.visibleCountDelta}}function s(t){switch(t.operation){case"add":return Object.assign({},u(t),{operation:"add",path:t.path});case"remove":return Object.assign({},u(t),{operation:"remove",path:t.path,recursive:t.recursive});case"move":return Object.assign({},u(t),{from:t.from,operation:"move",to:t.to})}}function l(t){return Object.assign({},u(t),{events:t.events.filter(t=>"add"===t.operation||"remove"===t.operation||"move"===t.operation).map(t=>s(t)),operation:"batch"})}function p(t){switch(t.operation){case"add":case"remove":case"move":return s(t);case"batch":return l(t);default:return null}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isPathMutationEvent",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"remapPathThroughMutation",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"toTreesMutationEvent",{enumerable:!0,get:function(){return p}})},
|
|
39
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){if(t.size!==n.length)return!1;for(const u of n)if(!t.has(u))return!1;return!0}function n(t){const n=t.endsWith("/")?t.slice(0,-1):t;if(0===n.length)return[];const u=n.split("/");return u.slice(0,-1).map((t,n)=>`${u.slice(0,n+1).join("/")}/`)}function u(t){return n(t).at(-1)??null}function o(t,n){return null==n?t:t.startsWith(n)?t.slice(n.length):t}function c(t){return t.endsWith("/")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"arePathSetsEqual",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getAncestorDirectoryPaths",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getImmediateParentPath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getSiblingComparisonKey",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isCanonicalDirectoryPath",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"toLowerCaseSearchPath",{enumerable:!0,get:function(){return s}});const s=t=>t.toLowerCase()},
|
|
40
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){const t=n.endsWith("/")?n.slice(0,-1):n,u=t.lastIndexOf("/");return u<0?t:t.slice(u+1)}function t(n){return n.endsWith("/")?n.slice(0,-1):n}function u(n,t){return t&&!n.endsWith("/")?`${n}/`:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRenameLeafName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"toCanonicalRenamePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"toRenameHelperPath",{enumerable:!0,get:function(){return t}})},
|
|
41
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeSearchQuery",{enumerable:!0,get:function(){return t}});const t=t=>{const n=t.trim();return 0===n.length?"":(n.includes("\\")?n.replaceAll("\\","/"):n).toLowerCase()}},
|
|
42
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyFileTreeGitStatusPatch",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"resolveFileTreeGitStatusState",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function o(t){const n=t.endsWith("/")?t.slice(0,-1):t;if(0===n.length)return[];const o=[];let s=0;for(;;){const t=n.indexOf("/",s);if(-1===t)break;o.push(n.slice(0,t+1)),s=t+1}return o}function s(t,n){return n?`${t}/`:t}function c(n,o=null){const s=(0,t.getGitStatusSignature)(null==n?void 0:[...n]);if("0"===s)return null;if(o?.signature===s)return o;const c=new Map,u=new Set,l=new Set,y=new Map;for(const t of n??[]){const n=h(t);null!=n&&P({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:y,directoriesWithChanges:u,ignoredDirectoryPaths:l,isDirectory:n.isDirectory,status:t.status,statusByPath:c})}return 0===c.size?null:{changeCountByDirectoryPath:y,directoriesWithChanges:u,ignoredDirectoryPaths:l,signature:s,statusByPath:c}}function u(t,n){const o=n?.remove??[],s=n?.set??[];if(0===o.length&&0===s.length)return t;const c=new Map(t?.statusByPath),u=new Set(t?.directoriesWithChanges),f=new Set(t?.ignoredDirectoryPaths),D=new Map(t?.changeCountByDirectoryPath);let C=!1;for(const t of o){const n=l(t);null!=n&&(C=y({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,statusByPath:c})||C)}for(const t of s){const n=h(t);null!=n&&(C=P({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,isDirectory:n.isDirectory,status:t.status,statusByPath:c})||C)}return C?0===c.size?null:{changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,signature:B(c),statusByPath:c}:t}function h(t){return l(t.path)}function l(t){const o=(0,n.normalizeInputPath)(t);if(null!=o)return{canonicalPath:s(o.path,o.isDirectory),isDirectory:o.isDirectory}}function y({canonicalPath:t,changeCountByDirectoryPath:n,directoriesWithChanges:o,ignoredDirectoryPaths:s,statusByPath:c}){const u=c.get(t);return null!=u&&(c.delete(t),"ignored"===u&&t.endsWith("/")&&s.delete(t),D(n,o,t),!0)}function P({canonicalPath:t,changeCountByDirectoryPath:n,directoriesWithChanges:o,ignoredDirectoryPaths:s,isDirectory:c,status:u,statusByPath:h}){const l=h.get(t);return l!==u&&(null==l&&f(n,o,t),h.set(t,u),"ignored"===u&&c?s.add(t):c&&s.delete(t),!0)}function f(t,n,s){for(const c of o(s))t.set(c,(t.get(c)??0)+1),n.add(c)}function D(t,n,s){for(const c of o(s)){const o=(t.get(c)??0)-1;o>0?t.set(c,o):(t.delete(c),n.delete(c))}}function B(t){let n=`${t.size}`;for(const[o,s]of t)n+=`\0${o}\0${s}`;return n}},
|
|
43
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGitStatusSignature",{enumerable:!0,get:function(){return t}});const t=t=>{if(null==t||0===t.length)return"0";let n=`${t.length}`;for(const u of t)n+=`\0${u.path}\0${u.status}`;return n}},
|
|
44
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";function t(t){const n=t.endsWith("/");let i="",o=-1;for(let n=0;n<=t.length;n+=1)"/"===t[n]||n===t.length?-1!==o&&(""!==i&&(i+="/"),i+=t.slice(o,n),o=-1):-1===o&&(o=n);return""===i?null:{isDirectory:n,path:i}}function n(t,n,i){const o=t.lastIndexOf("/");if(-1===o)return void(n&&i(t));const l=n?t.length:o;let c=t.indexOf("/");for(;-1!==c&&c<=l;)i(t.slice(0,c)),c=t.indexOf("/",c+1);n&&i(t)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"forEachFolderInNormalizedPath",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"normalizeInputPath",{enumerable:!0,get:function(){return t}})},
|
|
45
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["name"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeView",{enumerable:!0,get:function(){return de}});var t,n=r(d[0]),l=(t=n)&&t.__esModule?t:{default:t},o=r(d[1]),u=r(d[2]),c=r(d[3]),s=r(d[4]),f=r(d[5]),h=r(d[6]),p=r(d[7]),v=r(d[8]),y=r(d[9]),w=r(d[10]),x=r(d[11]),b=r(d[12]),E=r(d[13]),T=r(d[14]),R=r(d[15]),k=r(d[16]),M=r(d[17]),P=r(d[18]);function S(e,t=null,n=null){const l=e.flattenedSegments;return null==l||0===l.length?t??e.name:(0,P.jsx)("span",{"data-item-flattened-subitems":!0,children:l.map((e,o)=>{const u=o===l.length-1;return(0,P.jsxs)(k.Fragment,{children:[(0,P.jsx)("span",{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?"true":void 0,children:u&&null!=t?t:(0,P.jsx)(p.Truncate,{children:e.name})}),o<l.length-1?" / ":""]},e.path)})})}function D(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function L(e){const t=e.flattenedSegments;return null==t||0===t.length?e.name:t.map(e=>e.name).join(" / ")}function A(e,t,n,l){return e.map((e,o)=>{const u=o*n,c=e.subtreeEndIndex+1;if(c>=l)return{row:e.row,top:u};const s=c*n-t;return{row:e.row,top:Math.min(u,s-n)}}).filter(e=>e.top+n>0)}function C({controller:e,itemHeight:t,overscan:n,scrollTop:l,stickyFolders:o,viewportHeight:u}){const c=e.getVisibleCount(),s=o&&c>0?e.getStickyRowCandidates(l,t):[],f=null==s&&o&&c>0?e.getVisibleRows(0,c-1):[],h=null==s?void 0:A(s,l,t,c),p=(0,v.computeFileTreeLayout)(f,{itemHeight:t,overscan:n,scrollTop:l,stickyRows:h,totalRowCount:c,viewportHeight:u}),y=o&&l<=0&&c>0?e.getStickyRowCandidates(1,t):[],w=null!=y&&l<=0?A(y,1,t,c):o&&l<=0&&f.length>0?(0,v.computeStickyRows)(f,1,t):p.sticky.rows;return{overlayHeight:w.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:w,snapshot:p,visibleRows:f}}const F=400,I=40,j=18;function O(e,t,n){const l=e,o=document.elementFromPoint?.bind(document)??null,u=l.elementFromPoint?.(t,n)??o?.(t,n)??null;return e instanceof ShadowRoot&&(null==u||!e.contains(u))?H(e,t,n):u instanceof HTMLElement?u:null}function H(e,t,n){const l=Array.from(e.querySelectorAll("[data-type=\"item\"], [data-item-flattened-subitem]"));for(let e=l.length-1;e>=0;e--){const o=l[e],u=o.getBoundingClientRect();if(t>=u.left&&t<=u.right&&n>=u.top&&n<=u.bottom)return o}return null}function _(e){const t=e?.closest?.("[data-type=\"item\"]");if(!(t instanceof HTMLElement))return null;const n=t.dataset.itemPath??null;if(null==n)return null;const l=e?.closest?.("[data-item-flattened-subitem]"),o=l instanceof HTMLElement?l.getAttribute("data-item-flattened-subitem")??null:null;if(null!=o&&o.endsWith("/"))return{directoryPath:o,flattenedSegmentPath:o,hoveredPath:n,kind:"directory"};if("folder"===t.dataset.itemType)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};const u=t.dataset.itemParentPath??null;return null==u||0===u.length?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:u,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function V(e){const t=e.cloneNode(!0);return t.removeAttribute("id"),t.dataset.fileTreeDragPreview="true",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,Object.assign(t.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),t}function $(e,t){const n=e-t.top;if(n<I)return-Math.ceil((I-Math.max(0,n))/I*j);const l=t.bottom-e;return l<I?Math.ceil((I-Math.max(0,l))/I*j):0}function N(e,t,n){if(null!=e){const t=y.GIT_STATUS_LABEL[e];return null==t?null:{text:t,title:n.gitStatusTitles[e]}}return t?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:n.containsGitStatusTitle}:null}function B(e,t,n){if(null==t||0===t.size)return null;const l=[];for(let o=e.length-1;o>=0;o-=1){const u=e[o],c=n.get(u);if(null!=c){for(const e of l)n.set(e,c);return c?"ignored":null}if(t.has(u)){n.set(u,!0);for(const e of l)n.set(e,!0);return"ignored"}l.push(u)}for(const e of l)n.set(e,!1);return null}function K(e){return null!=e&&"toggle"in e}function X(e){return"Space"===e.code||" "===e.key||"Spacebar"===e.key}function U(e){return 1===e.key.length&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Y(e){return e.shiftKey&&"F10"===e.key||"ContextMenu"===e.key}function G(e,t){return!(!t||!Y(e))||(!(!e.ctrlKey&&!e.metaKey||!X(e))||("ArrowDown"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key))}const z=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function q(e){for(const t of e.composedPath())if(t instanceof HTMLElement){if("true"===t.dataset.fileTreeContextMenuRoot)return!0;if("context-menu-anchor"===t.dataset.type||"context-menu-trigger"===t.dataset.type)return!0;if("context-menu"===t.getAttribute("slot"))return!0}return!1}function W(e,t){if(null==e)return t.offsetTop;const n=t.getBoundingClientRect(),l=e.getBoundingClientRect();return n.top-l.top}function J(e,t,n){null!=n?e.set(t,n):e.delete(t)}function Q(e,t,n){if(null==e)return null;const l=t.get(e)??null;if(null!=l)return l;const o=n.get(e)??null;return"true"===o?.dataset.itemParked?null:o}function Z(e){if(null==e)return[];const t=[];for(const n of e.querySelectorAll("button[data-file-tree-sticky-row=\"true\"]")){if(!(n instanceof HTMLElement))continue;const e=n.dataset.fileTreeStickyPath;null!=e&&t.push(e)}return t}function ee(e,t){if(null==e||null==t)return null;for(const n of e.querySelectorAll("button[data-item-focused=\"true\"][data-item-parked=\"true\"]"))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function te(e,t,n,l,o,u,c){const s=Math.max(0,u-o),f=t?.getBoundingClientRect()??null,h=null==f||null==n?null:n.getBoundingClientRect().top-f.top,p=ee(e,l),v=null==f||null==p?null:p.getBoundingClientRect().top-f.top;return Math.max(0,Math.min(v??Math.max(h??0,s),Math.max(0,c-o)))}function ne(e,t){return{kind:e.kind,name:L(e),path:t}}function re(e){return null==e?void 0:`${e}__tree`}function le(e,t,n){if(null!=e)return`${e}__focused-item-${encodeURIComponent(t)}${n?"__parked":""}`}function oe(e){return"file-tree-icon-chevron"===e||"file-tree-icon-dot"===e||"file-tree-icon-file"===e||"file-tree-icon-lock"===e}function ue(t,n){if(null==t)return null;if("text"in t)return null!=t.parts?(0,P.jsx)("span",{title:t.title,children:t.parts.map((e,t)=>(0,P.jsx)("span",{style:{color:e.color},children:e.text},t))}):(0,P.jsx)("span",{title:t.title,children:t.text});const o="string"==typeof t.icon?oe(t.icon)?n(t.icon):{name:t.icon}:oe(t.icon.name)?(()=>{const o=n(t.icon.name),u=t.icon,c=(0,l.default)(u,e);return Object.assign({},o,c)})():t.icon;return(0,P.jsx)("span",{title:t.title,children:(0,P.jsx)(h.Icon,Object.assign({},o))})}function ie(e){if(null==e)return;const t=e.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex=\"-1\"])"].join(", "));(0,x.focusElement)(t??e)}function ae(e,t,{actionLaneEnabled:n=!1,customDecoration:l=null,decorationLaneEnabled:o=!1,dragTargetFlattenedSegmentPath:u=null,gitDecoration:c=null,gitLaneActive:s=!1,renameInput:f=null,showDecorativeActionAffordance:v=!1}={}){const y=D(e);return(0,P.jsxs)(k.Fragment,{children:[e.depth>0?(0,P.jsx)("div",{"data-item-section":"spacing",children:Array.from({length:e.depth}).map((t,n)=>(0,P.jsx)("div",{"data-item-section":"spacing-item","data-ancestor-path":e.ancestorPaths[n]},n))}):null,(0,P.jsx)("div",{"data-item-section":"icon",children:"directory"===e.kind?(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-chevron"))):(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-file",y)))}),(0,P.jsx)("div",{"data-item-section":"content",children:e.isFlattened?S(e,f,u):f??(0,P.jsx)(p.MiddleTruncate,{minimumLength:5,split:"extension",children:e.name})}),o?(0,P.jsx)("div",{"data-item-section":"decoration",children:null!=l?ue(l,t):null}):null,s?(0,P.jsx)("div",{"data-item-section":"git",children:ue(c,t)}):null,n?(0,P.jsx)("div",{"data-item-section":"action",children:v?(0,P.jsx)("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-ellipsis")))}):null}):null]})}function ce(e,t,n,l={}){const{controller:o,renameView:u,visualFocusPath:c,contextHoverPath:s,draggedPathSet:f,dragTarget:h,dragAndDropEnabled:p,shouldSuppressContextMenu:v,handleRowDragStart:y,handleRowDragEnd:w,handleRowTouchStart:x,instanceId:b,itemHeight:R,gitStatusByPath:k,ignoredGitDirectories:M,ignoredInheritanceCache:S,directoriesWithGitChanges:A,gitLaneActive:C,labels:F,contextMenuEnabled:I,contextMenuTriggerMode:j,contextMenuButtonTriggerEnabled:O,contextMenuButtonVisibility:H,contextMenuRightClickEnabled:_,registerRenameInput:V,registerButton:$,resolveIcon:K,renderDecorationForRow:X,openContextMenuForRow:U,onRowClick:Y,onKeyDown:G}=e,z=D(t),{isParked:q=!1,mode:W="flow",style:J}=l,Q="sticky"===W,Z=k?.get(z)??null??B(t.ancestorPaths,M,S),ee="directory"===t.kind&&(A?.has(z)??!1),te=X(t,z),ne=N(Z,ee,F),re=I&&O,oe=null!=te||C||re,ue=re&&"always"===H,ie=u.getPath()===z,ce=ie?u.getValue():"",se=Q||!ie?null:(0,P.jsx)(E.RenameInput,{ref:V,ariaLabel:F.renameItem(L(t)),isFlattened:t.isFlattened,value:ce,onBlur:()=>{u.commit()},onInput:e=>{u.setValue(e.currentTarget.value)}}),de=ae(t,K,{actionLaneEnabled:re,customDecoration:te,decorationLaneEnabled:oe,dragTargetFlattenedSegmentPath:h?.flattenedSegmentPath??null,gitDecoration:ne,gitLaneActive:C,renameInput:se,showDecorativeActionAffordance:ue}),fe=Object.assign({},(0,T.computeFileTreeRowElementAttributes)({ariaLabel:L(t),domId:t.isFocused?le(b,z,q):void 0,extraStyle:J,features:{actionLaneEnabled:re,contextMenuButtonVisibility:re?H:null,contextMenuEnabled:I,contextMenuTriggerMode:I?j:null,gitLaneActive:C},isParked:q,itemHeight:R,mode:W,row:t,state:{containsGitChange:ee,effectiveGitStatus:Z,isContextHovered:s===z,isDragTarget:"directory"===h?.kind&&h.directoryPath===z,isDragging:!0===f?.has(z),isFocusRinged:t.isFocused&&c===z},targetPath:z}),{key:n,onContextMenu:I||p?e=>{var n,l;v()?e.preventDefault():I&&(e.preventDefault(),_&&(o.focusMountedPathFromInput(z),U(t,z,{anchorRect:(n=e.clientX,l=e.clientY,{bottom:l,height:0,left:n,right:n,top:l,width:0,x:n,y:l}),source:"right-click"})))}:void 0,onFocus:Q?void 0:()=>{o.focusMountedPathFromInput(z)},onKeyDown:Q?void 0:G,ref:e=>{$(z,e)}});return!Q&&ie?(0,P.jsx)("div",Object.assign({},fe,{children:de})):(0,P.jsx)("button",Object.assign({},fe,{type:"button",draggable:p&&!q,onDragEnd:p&&!q?w:void 0,onDragStart:p&&!q?e=>{y(e,t,z)}:void 0,onMouseDown:e=>{(Q||o.isSearchOpen())&&e.preventDefault()},onTouchStart:p&&!q?e=>{x(e,t,z)}:void 0,onClick:e=>{Y(e,t,z,W)},children:de}))}function se(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(D(e))).map((n,l)=>ce(e,n,t.start+l))}function de({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:l,directoriesWithGitChanges:p,icons:v,instanceId:y,itemHeight:E=s.FILE_TREE_DEFAULT_ITEM_HEIGHT,labels:T=c.DEFAULT_FILE_TREE_LABELS,overscan:k=10,renamingEnabled:S=!1,renderRowDecoration:L,searchBlurBehavior:A="close",searchEnabled:I=!1,searchFakeFocus:j=!1,slotHost:H,stickyFolders:N=!1,initialViewportHeight:B=420}){const ee=(0,M.useRef)(null),oe=(0,M.useRef)(null),ue=(0,M.useRef)(!1),ae=(0,M.useRef)(null),de=(0,M.useRef)(null),fe=(0,M.useRef)(null),he=(0,M.useRef)(null),ge=(0,M.useRef)(null),pe=(0,M.useRef)(new Map),me=(0,M.useRef)(new Map),ve=(0,M.useRef)(()=>{}),ye=(0,M.useRef)(null),we=(0,M.useRef)(0),xe=(0,M.useRef)(!1),be=(0,M.useRef)(null);be.current!==t&&(xe.current=!1,be.current=t);const Ee=(0,M.useRef)(!1),Te=(0,M.useRef)(null),Re=(0,M.useRef)(null),ke=(0,M.useRef)(!1),Me=(0,M.useRef)(null),Pe=(0,M.useRef)(null),Se=(0,M.useRef)(null),De=(0,M.useRef)(null),Le=(0,M.useRef)(null),Ae=(0,M.useRef)(null),Ce=(0,M.useRef)(null),Fe=(0,M.useRef)(null),Ie=(0,M.useRef)(!1),je=(0,M.useRef)(null),Oe=(0,M.useRef)(null),He=(0,M.useRef)(null),Ve=(0,M.useRef)(null),$e=(0,M.useMemo)(()=>new Map,[]),[,Ne]=(0,M.useState)(0),Be=(0,M.useRef)(!1),[Ke,Xe]=(0,M.useState)(null),[Ue,Ye]=(0,M.useState)(null),[Ge,ze]=(0,M.useState)(null),[qe,We]=(0,M.useState)(null),[Je,Qe]=(0,M.useState)(0),[Ze,et]=(0,M.useState)(null),tt=(0,M.useRef)(Ze);tt.current=Ze;const nt=(0,M.useRef)(0),rt=(0,M.useCallback)((e,t)=>{const n=tt.current;return null!=n&&n.path===e&&n.source===t?n.token:(nt.current+=1,nt.current)},[]),lt=(0,M.useRef)(null),ot=(0,M.useRef)(null),ut=(0,M.useRef)(null),it=(0,M.useRef)(null),at=(0,M.useRef)(null),ct=(0,M.useRef)(!1),st=(e,t)=>{ot.current=e,ut.current=null,it.current=null==t?null:{path:e,scrollTop:t}},dt=(0,M.useRef)("retain"===A&&t.isSearchOpen()),[ft,ht]=(0,M.useState)(j);(0,M.useEffect)(()=>{j||ht(!1)},[j]);const gt=(0,M.useRef)(!1),pt=(0,M.useCallback)(()=>{gt.current=!0,ht(e=>!e&&e)},[]),[mt,vt]=(0,M.useState)(()=>C({controller:t,itemHeight:E,overscan:k,scrollTop:0,stickyFolders:N,viewportHeight:B})),[yt,wt]=(0,M.useState)(!1);(0,M.useEffect)(()=>{wt(!0)},[]);const xt=!0===e?.contextMenu?.enabled||null!=e?.contextMenu?.render||null!=e?.contextMenu?.onOpen||null!=e?.contextMenu?.onClose,bt=e?.contextMenu?.triggerMode??(xt?"right-click":"both"),Et="both"===bt||"button"===bt,Tt=e?.contextMenu?.buttonVisibility??"when-needed",Rt="both"===bt||"right-click"===bt;(0,M.useLayoutEffect)(()=>{const e=fe.current;if(null==e)return;const t=e=>{if(!(e instanceof CustomEvent))return;const t=e.detail?.path??null;at.current=t,Ye(t),We(null==t?null:"pointer")},n=e=>{if(!(e instanceof CustomEvent))return;const t=e.detail;ct.current=!0===t?.disabled};return e.addEventListener("file-tree-debug-set-context-menu-trigger",t),e.addEventListener("file-tree-debug-set-scroll-suppression",n),()=>{e.removeEventListener("file-tree-debug-set-context-menu-trigger",t),e.removeEventListener("file-tree-debug-set-scroll-suppression",n)}},[]);const kt=(0,M.useCallback)((e,t)=>{J(pe.current,e,t)},[]),Mt=(0,M.useCallback)((e,t)=>{J(me.current,e,t)},[]),Pt=(0,M.useCallback)(e=>{de.current=e},[]),St=(0,M.useCallback)(e=>Q(e,me.current,pe.current),[]),Dt=null!=n||null!=l||null!=p,{resolveIcon:Lt}=(0,M.useMemo)(()=>(0,u.createFileTreeIconResolver)(v),[v]),At=t[f.FILE_TREE_RENAME_VIEW](),Ct=At.getPath(),Ft=null!=Ct,It=t.isSearchOpen(),jt=t.getSearchValue(),Ot=t.getFocusedPath(),Ht=t.getFocusedIndex(),_t=t.getScrollRequest(),Vt=t.isDragAndDropEnabled(),$t=t.getDragSession(),Nt=(0,M.useMemo)(()=>null==$t?null:new Set($t.draggedPaths),[$t]),Bt=$t?.target??null,Kt=$t?.primaryPath??null,Xt=re(y),{overlayHeight:Ut,overlayRows:Yt,snapshot:Gt,visibleRows:zt}=mt,qt=Gt.physical.viewportHeight,Wt=(0,M.useMemo)(()=>({end:Gt.window.endIndex,start:Gt.window.startIndex}),[Gt.window.endIndex,Gt.window.startIndex]),Jt=Yt,Qt=Gt.sticky.rows,Zt=Gt.physical.totalHeight,en=Gt.sticky.height,tn=(0,M.useMemo)(()=>new Set(Qt.map(e=>D(e.row))),[Qt]),nn=Ht>=0&&Ht>=Wt.start&&Ht<=Wt.end,rn=(0,M.useCallback)((e,t)=>L?.({item:ne(e,t),row:e})??null,[L]),ln=(0,M.useCallback)(e=>{const t=null==e?null:pe.current.get(e)??null;return!!(0,x.focusElement)(t)||(0,x.focusElement)(fe.current)},[]),on=(0,M.useCallback)(e=>{const n=t.focusNearestPath(e);ln(n)},[t,ln]),un=(0,M.useRef)(on);un.current=on;const an=(0,M.useRef)(!0),cn=(0,M.useRef)(()=>{}),sn=(0,M.useCallback)((t=!0,n)=>{const l=tt.current;null!=l&&(null!=n&&n!==l.token||(an.current=an.current&&t,et(null),e?.contextMenu?.onClose?.(),an.current&&on(l.path)))},[e?.contextMenu,on]);cn.current=sn;const dn=(0,M.useCallback)(e=>{const t=null==e?null:W(fe.current,e);ze(e=>e===t?e:t)},[]),fn=(0,M.useCallback)((e,n,l)=>{const o=t.getItem(n);if(null==o)return;const u=St(n);if("true"===u?.dataset.fileTreeStickyRow){const e=he.current;st(n,e?.scrollTop??null),Ee.current=!0,Xe(e=>e===n?e:n)}o.focus(),dn(u),an.current=!0;const c=l?.source??"keyboard";et({anchorRect:l?.anchorRect??null,item:ne(e,n),path:n,source:c,token:rt(n,c)})},[t,St,rt,dn]),hn=(0,M.useCallback)(e=>{if(S){if(t.isSearchOpen()){const e=he.current,t=(0,x.readMeasuredViewportHeight)(e,qt);Me.current=Ht<0||null==e?null:Math.max(0,Math.min(Ht*E-e.scrollTop,Math.max(0,t-E))),ke.current=!0}!1!==t.startRenaming(e)&&(We("focus"),Ne(e=>e+1))}},[t,Ht,E,S,qt]),gn=(0,M.useCallback)((e,{restoreTreeFocus:n=!0,targetOffset:l="live-overlay"}={})=>{const o=he.current;if(null==o)return!1;t.focusPath(e);const u=t.getFocusedIndex();if(u<0)return!1;const c=t.getVisibleRows(u,u)[0]??null;if(null==c)return!1;const s=(0,x.readMeasuredViewportHeight)(o,qt),f=t.getVisibleCount()*E,h="sticky-parents"===l?c.ancestorPaths.length*E:C({controller:t,itemHeight:E,overscan:k,scrollTop:o.scrollTop,stickyFolders:N,viewportHeight:s}).snapshot.sticky.height;return Ee.current=!0,(0,x.scrollFocusedRowToViewportOffset)(o,u,E,s,f,h),ve.current(),lt.current=n?e:null,!0},[t,E,k,qt,N]),pn=e=>"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),mn=()=>{null!=De.current&&(clearTimeout(De.current),De.current=null),Se.current=null},vn=()=>{Ae.current?.remove(),Ae.current=null},yn=()=>{var e;null!=(e=Pe.current)&&("function"!=typeof window.cancelAnimationFrame?window.clearTimeout(e):window.cancelAnimationFrame(e)),Pe.current=null,Le.current=null},wn=e=>{const t=fe.current?.getRootNode();t instanceof ShadowRoot?t.append(e):document.body.append(e)},xn=()=>{Fe.current?.(),Fe.current=null,null!=Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ie.current=!1,je.current=null,He.current=null,null!=Oe.current&&(Oe.current.setAttribute("draggable","true"),Oe.current.style.removeProperty("touch-action"),Oe.current=null),vn(),mn(),yn(),Ce.current=null},bn=(e,n)=>{const l=fe.current?.getRootNode(),o=_(O(l instanceof ShadowRoot?l:document,e,n));return t.setDragTarget(o),t.getDragSession()?.target??null},En=e=>{const n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(null==e||"directory"!==e.kind||null==e.directoryPath||n<=0)return void mn();const l=t.getItem(e.directoryPath),o=K(l)?l:null;if(null==o||o.isExpanded())return void mn();const u=`${e.directoryPath}::${e.flattenedSegmentPath??""}`;Se.current!==u&&(mn(),Se.current=u,De.current=setTimeout(()=>{const n=t.getDragSession()?.target;"directory"===n?.kind&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&o.expand()},n))},Tn=()=>{Pe.current=null;const e=Le.current,n=he.current;if(null==e||null==n||null==t.getDragSession())return;const l=n.getBoundingClientRect(),o=$(e.clientY,l);if(0===o)return;const u=Math.max(0,n.scrollHeight-n.clientHeight),c=Math.max(0,Math.min(u,n.scrollTop+o));c!==n.scrollTop&&(n.scrollTop=c,ve.current());const s=bn(e.clientX,e.clientY);En(s),Pe.current=pn(Tn)},Rn=(e,t)=>{Le.current={clientX:e,clientY:t},Pe.current??=pn(Tn)},kn=e=>{if(null!=Ze)return"Escape"===e.key?(sn(),e.preventDefault(),void e.stopPropagation()):void(z.has(e.key)&&(e.preventDefault(),e.stopPropagation()));if(At.isActive()){if(e.isComposing||229===e.keyCode)return;if("Escape"===e.key)At.cancel();else{if("Enter"!==e.key)return;At.commit()}return We("focus"),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation()}if(S&&"F2"===e.key)return hn(Ot??void 0),e.preventDefault(),void e.stopPropagation();if(It){if("Escape"===e.key)ke.current=!1,Me.current=null,t.closeSearch();else if("Enter"===e.key){const e=t.getFocusedPath();null!=e&&t.selectOnlyPath(e)}else if("ArrowDown"===e.key)t.focusNextSearchMatch();else{if("ArrowUp"!==e.key)return;t.focusPreviousSearchMatch()}return We("focus"),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation()}if(I&&U(e))return t.openSearch(e.key),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation();const n=xt&&Y(e),l=G(e,xt),o=l&&null!=fe.current?(0,x.getActiveTreeElement)(fe.current):null,u=l?new Set(Z(fe.current)):new Set,c=o?.dataset.fileTreeStickyPath??null,s="true"===o?.dataset.fileTreeStickyRow&&null!=c;if(s&&c!==Ot&&u.has(c)){const e=he.current;st(c,e?.scrollTop??null),t.focusPath(c)}const f=t.getFocusedPath(),h=t.getFocusedIndex(),p=t.getFocusedItem();if(null==p)return;const v=K(p)?p:null,y=null!=f&&(tn.has(f)||s&&c===f&&u.has(f)),w="ArrowDown"===e.key||"ArrowUp"===e.key||"ArrowRight"===e.key&&null!=v&&v.isExpanded(),b="ArrowLeft"===e.key&&y&&null!=v&&v.isExpanded(),T=he.current;let R=!0;if(e.shiftKey&&"ArrowDown"===e.key)t.extendSelectionFromFocused(1);else if(e.shiftKey&&"ArrowUp"===e.key)t.extendSelectionFromFocused(-1);else if(n&&null!=f&&h>=0){const e=t.getVisibleRows(h,h)[0]??null,n=Q(f,me.current,pe.current);null==e||null==n?R=!1:fn(e,f)}else if((e.ctrlKey||e.metaKey)&&X(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase())t.selectAllVisiblePaths();else switch(e.key){case"ArrowDown":t.focusNextItem();break;case"ArrowUp":t.focusPreviousItem();break;case"ArrowRight":null==v||v.isExpanded()?t.focusNextItem():v.expand();break;case"ArrowLeft":null!=v&&v.isExpanded()?v.collapse():t.focusParentItem();break;case"Home":t.focusFirstItem();break;case"End":t.focusLastItem();break;default:R=!1}if(!R)return;We("focus");const k=t.getFocusedPath(),M=null!=k&&(tn.has(k)||u.has(k)),P=n&&s&&c===f&&k===f;if((y||P)&&null!=k&&(w&&k!==f&&M||P))st(k,T?.scrollTop??null),Ee.current=!0,Xe(e=>e===k?e:k);else{const t="ArrowUp"===e.key&&y&&k!==f;null!=k&&(t||b&&k===f)?(D=k,L=te(fe.current,T,o,f,E,en,qt),ot.current=null,ut.current={path:D,viewportOffset:L},it.current=null,Ee.current=!0,Xe(e=>e===k?e:k)):(ot.current=null,ut.current=null,it.current=null)}var D,L;Ne(e=>e+1),e.preventDefault(),e.stopPropagation()};(0,M.useLayoutEffect)(()=>{I&&It&&(dt.current?dt.current=!1:(0,x.focusElement)(ge.current))},[It,I]),(0,M.useLayoutEffect)(()=>{const e=de.current;switch((0,b.classifyFileTreeRenameHandoff)({hasRenderedInput:null!=e,previousRenamingPath:Re.current,renamingPath:Ct})){case"reset":return void(Re.current=null);case"reveal-canonical":return void(null!=Ct&&gn(Ct,{restoreTreeFocus:!1,targetOffset:"live-overlay"}));case"ignore":return;case"focus-input":return void(null!=e&&(lt.current=null,Re.current=Ct,(0,x.focusElement)(e),e.select()))}},[Wt.end,Wt.start,Ct,gn,tn]),(0,M.useLayoutEffect)(()=>{const e=fe.current;if(null==e)return;let t=null;const n=()=>{null!=t&&(clearTimeout(t),t=null)},l=()=>{const t=(0,x.getActiveTreeElement)(e)?.dataset.itemPath??null;Xe(e=>e===t?e:t)},o=()=>{n(),Ee.current=!0,l()},u=o=>{const u=o.relatedTarget;if(null==u)return n(),void(t=setTimeout(()=>{t=null,null==(0,x.getActiveTreeElement)(e)?(Ee.current=!1,Xe(null)):l()},0));if(!(u instanceof Node&&e.contains(u)))return n(),Ee.current=!1,void Xe(null);const c=u instanceof HTMLElement?u.dataset.itemPath??null:null;Xe(e=>e===c?e:c)};return e.addEventListener("focusin",o),e.addEventListener("focusout",u),()=>{n(),e.removeEventListener("focusin",o),e.removeEventListener("focusout",u)}},[]),(0,M.useLayoutEffect)(()=>{const e=fe.current;null!=e&&(Gt.physical.scrollTop<=0?e.dataset.scrollAtTop="true":delete e.dataset.scrollAtTop)},[Gt.physical.scrollTop]),(0,M.useLayoutEffect)(()=>{let e=null;const n=he.current,l=ae.current,o=fe.current;if(null==n)return;ye.current=(0,x.readMeasuredViewportHeight)(n,B);const u=()=>{const e=t.getVisibleCount(),l=(0,x.getCachedViewportHeight)(ye.current,B),o=Math.max(0,e*E-l);n.scrollTop>o&&(n.scrollTop=o),vt(C({controller:t,itemHeight:E,overscan:k,scrollTop:Math.min(n.scrollTop,o),stickyFolders:N,viewportHeight:l}))};if(!xe.current){xe.current=!0;const e=t.getFocusedIndex();if(e>=0){const l=(0,x.getCachedViewportHeight)(ye.current,B),o=t.getVisibleRows(e,e)[0]??null,u=N&&null!=o?Math.max(0,Math.min(o.ancestorPaths.length*E,Math.max(0,l-E))):0;(0,x.scrollFocusedRowIntoView)(n,e,E,l,u)}}ve.current=u;const c=t.subscribe(()=>{(0,w.shouldBumpControllerRevision)(Be)&&Ne(e=>e+1),u()}),s=()=>{!0!==ct.current&&(null!=l&&(l.dataset.isScrolling??=""),null!=o&&(o.dataset.isScrolling??=""),ue.current=!0,null!=e&&clearTimeout(e),e=setTimeout(()=>{null!=l&&delete l.dataset.isScrolling,null!=o&&delete o.dataset.isScrolling,ue.current=!1,Qe(e=>e+1),e=null},50))};let f=null;const h=()=>{null!=o&&delete o.dataset.overlayReveal,null!=f&&(clearTimeout(f),f=null)},p=()=>{u(),n.scrollTop>0&&h(),null!=tt.current&&ue.current&&cn.current(),!0!==ct.current?(Ye(e=>null==e?e:null),s()):ue.current=!1},v=()=>{s(),null!=o&&!0!==ct.current&&(n.scrollTop>0||(o.dataset.overlayReveal="true",null!=f&&clearTimeout(f),f=setTimeout(()=>{h()},200)))},y=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),b=e=>{y.has(e.key)&&v()};n.addEventListener("scroll",p,{passive:!0}),n.addEventListener("wheel",v,{passive:!0}),n.addEventListener("touchmove",v,{passive:!0}),n.addEventListener("keydown",b);const T="undefined"!=typeof ResizeObserver?new ResizeObserver(e=>{const t=null==e[0]?null:(0,x.getResizeObserverViewportHeight)(e[0]);ye.current=t??(0,x.readMeasuredViewportHeight)(n,B),u()}):null;return T?.observe(n),()=>{ve.current=()=>{},c(),n.removeEventListener("scroll",p),n.removeEventListener("wheel",v),n.removeEventListener("touchmove",v),n.removeEventListener("keydown",b),null!=e&&clearTimeout(e),null!=f&&clearTimeout(f),null!=l&&delete l.dataset.isScrolling,null!=o&&(delete o.dataset.isScrolling,delete o.dataset.overlayReveal),ue.current=!1,ye.current=null,T?.disconnect()}},[t,B,E,k,N]),(0,M.useLayoutEffect)(()=>{xt||null==Ze||sn(!1)},[sn,xt,Ze]);const Mn=(0,M.useMemo)(()=>null==Ze?null:`${Ze.path}::${Ze.source}`,[Ze]);(0,M.useLayoutEffect)(()=>{if(null==Mn)return void H?.clearSlotContent(o.CONTEXT_MENU_SLOT_NAME);const t=tt.current;if(null==t)return;const n=oe.current??ee.current;if(null==n)return;const l={anchorElement:n,anchorRect:t.anchorRect??(u=n.getBoundingClientRect(),{bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width,x:u.x,y:u.y}),close:e=>{cn.current(e?.restoreFocus??!0,t.token)},restoreFocus:()=>{an.current&&un.current(tt.current?.path??null)}};var u;const c=e?.contextMenu?.render?.(t.item,l)??null;return H?.setSlotContent(o.CONTEXT_MENU_SLOT_NAME,c),e?.contextMenu?.onOpen?.(t.item,l),ie(c),queueMicrotask(()=>{null!=c&&c.isConnected&&document.activeElement===c&&ie(c)}),()=>{H?.clearSlotContent(o.CONTEXT_MENU_SLOT_NAME)}},[Mn,e?.contextMenu,H]),(0,M.useLayoutEffect)(()=>{null!=Ze&&null==t.getItem(Ze.path)&&sn()},[sn,Ze,t]),(0,M.useLayoutEffect)(()=>{if(null==Ze)return;const e=fe.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:fe.current,n=e=>{const n=e.target;n instanceof Node&&(q(e)||!0!==ee.current?.contains(n)&&!0!==t?.contains(n)&&sn())},l=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),sn())};return document.addEventListener("mousedown",n,!0),document.addEventListener("keydown",l,!0),()=>{document.removeEventListener("mousedown",n,!0),document.removeEventListener("keydown",l,!0)}},[sn,Ze]),(0,M.useLayoutEffect)(()=>{const e=he.current,n=fe.current;if(null==e||null==n)return void(Te.current=Ot);const l=null==Ot?null:pe.current.get(Ot)??null,o=(0,x.getActiveTreeElement)(n),u=o?.dataset.itemPath??null,c=Ft&&de.current===o,s=I&&ge.current===o,f=ke.current&&!It,h=Me.current??0,p=lt.current,v=ot.current,y=ut.current,w=it.current,b=null!=o,T=Ee.current||b,R=Te.current!==Ot,k=null!=v&&v===Ot&&null!=Ot;let M=!1,P=!1;if(null!=_t&&_t.id!==we.current){we.current=_t.id;const n=_t.visibleIndex,l=t.getVisibleRows(n,n)[0]??null;if(null!=l){const t=N?Math.max(0,Math.min(l.ancestorPaths.length*E,Math.max(0,qt-E))):en;M=!0,P=(0,x.scrollFocusedRowToOffset)(e,n,E,qt,Zt,_t.offset,t)}t.clearScrollRequest(_t.id)}const S=!M&&f&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,h),D=!M&&null!=p&&p===Ot&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,en),L=!M&&null!=y&&y.path===Ot&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,y.viewportOffset),A=!M&&null!=w&&w.path===Ot&&e.scrollTop!==w.scrollTop;if(A&&(e.scrollTop=w.scrollTop),(A||P||D||L||S||T&&R&&p!==Ot&&!k&&(0,x.scrollFocusedRowIntoView)(e,Ht,E,qt,en))&&ve.current(),M)Te.current=Ot;else if(T)if(c)Te.current=Ot;else if(!s||f){if(null==l)return f&&Ht>=0&&((0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,h),ve.current()),void(Te.current=Ot);(R||f||p===Ot||v===Ot||y?.path===Ot||w?.path===Ot||null==u||u!==Ot)&&((0,x.focusElement)(l),p===Ot&&(lt.current=null),v===Ot&&(ot.current=null),y?.path===Ot&&(ut.current=null),w?.path===Ot&&(it.current=null),ke.current=!1,Me.current=null),Te.current=Ot}else Te.current=Ot;else Te.current=Ot},[t,Ht,Ot,nn,E,Ft,It,Wt,qt,I,_t,N,en,Zt,zt]);const Pn=Ht>=0&&Ht>=Gt.visible.startIndex&&Ht<=Gt.visible.endIndex,Sn=null!=Ot&&Jt.some(e=>D(e.row)===Ot),Dn=Pn||Sn,Ln=Et&&!0===Ee.current&&Dn?Ot:null,An="pointer"===qe?Ue:null,Cn=Ze?.path??at.current??An??Ln??Ue,Fn="right-click"===Ze?.source;(0,M.useLayoutEffect)(()=>{ue.current&&null==Ze||dn(St(Cn))},[Ze,St,Wt,qt,Je,Jt,Cn,dn,zt]);const In=(0,M.useCallback)(e=>{if(ue.current)return;if(q(e))return;const t=e.target;if(!(t instanceof HTMLElement))return;if(null!=t.closest?.("[data-type=\"context-menu-trigger\"]"))return;const n=t.closest?.("[data-file-tree-sticky-row=\"true\"]"),l=t.closest?.("[data-type=\"item\"]"),o=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:l instanceof HTMLElement?l.dataset.itemPath??null:null;null!=o&&We(e=>"pointer"===e?e:"pointer"),Ye(e=>e===o?e:o)},[]),jn=(0,M.useCallback)(()=>{Ye(null)},[]);(0,M.useLayoutEffect)(()=>{if(!Vt)return;const e=()=>{xn(),t.cancelDrag()};return window.addEventListener("dragend",e),()=>{window.removeEventListener("dragend",e),xn(),t.cancelDrag()}},[t,Vt]);const On=Gt.window.height,Hn=Gt.window.offsetTop,_n=Math.min(0,qt-On),Vn=Math.min(0,qt-On-en),$n=Ke===Ot||ke.current,Nn=null!=Ot&&$n&&!nn&&Ht>=0?zt[Ht]??t.getVisibleRows(Ht,Ht)[0]??null:null,Bn=null==Nn?null:(0,x.getParkedFocusedRowOffset)(Ht,E,Wt,On),Kn=Ce.current,Xn=null!=Kt&&null!=Kn&&Kn.path===Kt&&Kn.index>=Wt.start&&Kn.index<=Wt.end,Un=null==Kt||null==Kn||Kn.path!==Kt||Xn||Kn.path===Nn?.path?null:Kn,Yn=null==Un?null:(0,x.getParkedFocusedRowOffset)(Un.index,E,Wt,On),Gn=null==(zn=(Ht>=0?zt[Ht]??t.getVisibleRows(Ht,Ht)[0]??null:null)?.ancestorPaths.at(-1)??null)?"":`[data-item-section="spacing-item"][data-ancestor-path="${zn.replaceAll("\\","\\\\").replaceAll("\"","\\\"")}"] { opacity: 1; }`;var zn;const qn=It&&null!=Ot?le(y,Ot,!nn):void 0,Wn=Ze?.path??(It?Ot:Ke),Jn=Ze?.path??Ue,Qn=St(Cn),Zn=xt&&Et&&!Fn&&!Ft&&null!=Qn&&null!=Ge&&null!=Cn,er=xt&&(Zn||null!=Ze),tr=Ze?.anchorRect,nr=null!=tr||null==Qn||null==Ge||null==Ze&&!Zn?null:Ge,rr=null!=tr?{left:`${tr.left}px`,position:"fixed",right:"auto",top:`${tr.top}px`}:null!=nr?{top:`${nr}px`}:void 0,lr=Fn?{opacity:"0"}:void 0,or=(0,M.useCallback)((e,n,l,o)=>{const u=(0,R.computeFileTreeRowClickPlan)({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:"directory"===n.kind,isSearchOpen:It,mode:o}),c=u.toggleDirectory&&"directory"===n.kind,s=c?t.resolveMountedDirectoryPathFromInput(l):null;if(c&&null==s)return;const f=s??l;switch(u.selection.kind){case"range":t.selectPathRange(f,u.selection.additive);break;case"toggle":t.togglePathSelectionFromInput(f);break;case"single":t.selectOnlyMountedPathFromInput(f)}const h=e.currentTarget instanceof HTMLElement?e.currentTarget:null,p=n.index>=Gt.visible.startIndex&&n.index<=Gt.visible.endIndex,v="flow"===o&&p&&null!=h&&"true"!==h.dataset.itemParked;t.focusMountedPathFromInput(f),v&&(Ee.current=!0,Xe(e=>e===f?e:f),We("focus")),c&&t.toggleMountedDirectoryFromInput(f),u.closeSearch&&t.closeSearch(),u.revealCanonical&&gn(f,{targetOffset:"sticky-parents"})},[t,It,Gt.visible.endIndex,Gt.visible.startIndex,gn]),ur=()=>{if(ue.current)return;if(!Et)return;if(null==Cn||null==Qn)return;const e=t.getItem(Cn);if(null==e)return;dn(Qn),an.current=!0;const n=e.getPath();et({anchorRect:null,item:{kind:e.isDirectory()?"directory":"file",name:Qn.getAttribute("aria-label")??Cn,path:n},path:n,source:"button",token:rt(n,"button")})},ir={contextHoverPath:Jn,contextMenuButtonTriggerEnabled:Et,contextMenuButtonVisibility:Tt,contextMenuEnabled:xt,contextMenuRightClickEnabled:Rt,contextMenuTriggerMode:bt,controller:t,directoriesWithGitChanges:p,dragAndDropEnabled:Vt,draggedPathSet:Nt,dragTarget:Bt,gitLaneActive:Dt,gitStatusByPath:n,handleRowDragEnd:()=>{vn(),mn(),yn(),Ce.current=null,t.cancelDrag()},handleRowDragStart:(e,n,l)=>{const o=e.currentTarget;if(null!=o)if(xn(),vn(),mn(),yn(),!1!==t.startDrag(l)){if(Ce.current=n,null!=e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",e.dataTransfer.setData("text/plain",l),"Apple Computer, Inc."!==navigator.vendor)){const t=V(o),n=o.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${n.width}px`}),wn(t),Ae.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}else e.preventDefault()},handleRowTouchStart:(e,n,l)=>{if(null!=Ve.current||Ie.current)return;const o=e.touches[0],u=e.currentTarget;if(null==o||null==u)return;He.current={clientX:o.clientX,clientY:o.clientY},Oe.current=u,u.setAttribute("draggable","false");const c=(e={})=>{const t=e.restoreNativeDraggable??!Ie.current;null!=Ve.current&&(clearTimeout(Ve.current),Ve.current=null),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",f),document.removeEventListener("touchcancel",f),Fe.current===c&&(Fe.current=null),t&&(u.setAttribute("draggable","true"),Oe.current===u&&(Oe.current=null),He.current=null)},s=e=>{const t=e.touches[0],n=He.current;if(null==t||null==n)return;const l=t.clientX-n.clientX,o=t.clientY-n.clientY;l*l+o*o<=100||c()},f=()=>{c()};document.addEventListener("touchmove",s,{passive:!0}),document.addEventListener("touchend",f),document.addEventListener("touchcancel",f),Fe.current=c,Ve.current=setTimeout(()=>{if(c({restoreNativeDraggable:!1}),!1===t.startDrag(l))return u.setAttribute("draggable","true"),Oe.current===u&&(Oe.current=null),void(He.current=null);Ie.current=!0,Oe.current=u,u.setAttribute("draggable","false"),u.style.setProperty("touch-action","none"),Ce.current=n;const e=u.getBoundingClientRect(),s=V(u);Object.assign(s.style,{height:`${e.height}px`,opacity:"0.85",transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),wn(s),Ae.current=s,je.current={x:o.clientX-e.left,y:o.clientY-e.top};const f=e=>{const t=e.touches[0];if(null==t)return;e.preventDefault();const n=je.current;null!=n&&null!=Ae.current&&(Ae.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`);const l=bn(t.clientX,t.clientY);En(l),Rn(t.clientX,t.clientY)},h=e=>{const n=e.changedTouches[0];null!=n&&bn(n.clientX,n.clientY),t.completeDrag(),xn()},p=()=>{t.cancelDrag(),xn()};Fe.current=()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",h),document.removeEventListener("touchcancel",p)},document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",h),document.addEventListener("touchcancel",p)},F)},ignoredGitDirectories:l,ignoredInheritanceCache:$e,instanceId:y,itemHeight:E,labels:T,onKeyDown:kn,onRowClick:or,openContextMenuForRow:fn,registerButton:kt,registerRenameInput:Pt,renameView:At,renderDecorationForRow:rn,resolveIcon:Lt,shouldSuppressContextMenu:()=>!0===ue.current||null!=Ve.current||!0===Ie.current,visualFocusPath:Wn},ar=Object.assign({},ir,{registerButton:Mt});return(0,P.jsxs)("div",{ref:fe,id:Xt,"data-file-tree-context-menu-button-visibility":xt&&Et?Tt:void 0,"data-file-tree-context-menu-trigger-mode":xt?bt:void 0,"data-file-tree-has-context-menu-action-lane":xt&&Et?"true":void 0,"data-file-tree-has-git-lane":Dt?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:Vt?e=>{if(!Vt||null==t.getDragSession()||Ie.current)return;const n=e.relatedTarget;n instanceof Node&&!0===fe.current?.contains(n)||(mn(),yn(),t.setDragTarget(null))}:void 0,onDragOver:Vt?e=>{if(!Vt||null==t.getDragSession()||Ie.current)return;const n=_(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n);const l=t.getDragSession()?.target??null;En(l),Rn(e.clientX,e.clientY),null!=e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}:void 0,onDrop:Vt?e=>{Vt&&null!=t.getDragSession()&&!Ie.current&&(e.preventDefault(),bn(e.clientX,e.clientY),t.completeDrag(),vn(),mn(),yn(),Ce.current=null)}:void 0,onKeyDown:kn,onPointerLeave:xt?jn:void 0,onPointerOver:xt?In:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[(0,P.jsx)("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Gn}}),(0,P.jsx)("slot",{name:o.HEADER_SLOT_NAME,"data-type":"header-slot"}),I?(0,P.jsx)("div",{"data-file-tree-search-container":!0,"data-open":It?"true":"false",children:(0,P.jsx)("input",{ref:ge,"aria-activedescendant":qn,"aria-controls":Xt,placeholder:T.searchPlaceholder,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":ft?"true":void 0,value:jt,onBlur:()=>{("retain"!==A||gt.current)&&t.closeSearch()},onFocus:pt,onPointerDown:pt,onInput:e=>{pt();const n=e.currentTarget;t.setSearch(n.value)}})}):null,(0,P.jsxs)("div",{ref:he,"data-file-tree-virtualized-scroll":"true",children:[N&&yt&&Jt.length>0?(0,P.jsx)("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:(0,P.jsx)("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${Ut}px`},children:Jt.map((e,t)=>ce(ar,e.row,`sticky:${D(e.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${e.top}px`,zIndex:""+(Jt.length-t)}}))})}):null,(0,P.jsxs)("div",{ref:ae,"data-file-tree-virtualized-list":"true",style:{height:`${Zt}px`},children:[(0,P.jsx)("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${Hn}px`}}),(0,P.jsxs)("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${On}px`,top:`${_n}px`,bottom:`${Vn}px`},children:[se(ir,Wt,tn),null!=Nn&&null!=Bn?ce(ir,Nn,`parked:${Nn.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Kt===Nn.path?"none":void 0,position:"absolute",right:"0",top:`${Bn}px`}}):null,null!=Un&&null!=Yn?ce(ir,Un,`parked-drag:${Un.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${Yn}px`}}):null]})]})]}),xt?(0,P.jsxs)("div",{ref:ee,"data-type":"context-menu-anchor","data-visible":er?"true":"false",style:rr,children:[(0,P.jsx)("button",{ref:oe,type:"button","data-type":o.CONTEXT_MENU_TRIGGER_TYPE,"aria-label":T.contextMenuTrigger,"aria-haspopup":"menu","aria-expanded":null!=Ze?"true":"false","data-visible":Zn?"true":"false",onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==Ze?ur():sn()},tabIndex:-1,style:lr,children:(0,P.jsx)(h.Icon,Object.assign({},Lt("file-tree-icon-ellipsis")))}),null!=Ze?(0,P.jsx)("slot",{name:o.CONTEXT_MENU_SLOT_NAME}):null]}):null,null!=Ze?(0,P.jsx)("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:e=>{e.preventDefault(),sn()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),sn()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}}):null]})}},1272,[25,1231,1232,1235,1254,1260,1273,1276,1277,1278,1279,1280,1282,1283,1284,1285,1275,1286,1274]);
|
|
46
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Icon",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=16,o=16,l={};function c({name:c,remappedFrom:h,token:s,width:u,height:p,viewBox:w,label:b,alignCapitals:f=!1}){const v=`#${c.replace(/^#/,"")}`,{width:j,height:x,viewBox:_}=l[c]??{width:n,height:o},B=u??j,O=p??x,$=w??_??`0 0 ${j} ${x}`;return(0,t.jsx)("svg",Object.assign({"data-icon-name":h??c,"data-icon-token":s,"data-align-capitals":f},null!=b?{"aria-label":b,role:"img"}:{"aria-hidden":!0},{viewBox:$,width:B,height:O,children:(0,t.jsx)("use",{href:v})}))}},
|
|
47
|
-
__d(function(g,_r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Fragment",{enumerable:!0,get:function(){return e.Fragment}}),Object.defineProperty(_e,"jsx",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"jsxAttr",{enumerable:!0,get:function(){return a}}),Object.defineProperty(_e,"jsxDEV",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"jsxEscape",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"jsxTemplate",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"jsxs",{enumerable:!0,get:function(){return u}});var e=_r(d[0]),t=/["&<]/;function r(e){if(0===e.length||!1===t.test(e))return e;for(var r=0,n=0,o="",u="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:u=""";break;case 38:u="&";break;case 60:u="<";break;default:continue}n!==r&&(o+=e.slice(r,n)),o+=u,r=n+1}return n!==r&&(o+=e.slice(r,n)),o}var n=0,o=Array.isArray;function u(t,r,o,u,f,i){r||(r={});var c,a,l=r;if("ref"in l&&"function"!=typeof t)for(a in l={},r)"ref"==a?c=r[a]:l[a]=r[a];var s={type:t,props:l,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--n,__i:-1,__u:0,__source:f,__self:i};return e.options.vnode&&e.options.vnode(s),s}function f(t){var r=u(e.Fragment,{tpl:t,exprs:[].slice.call(arguments,1)});return r.key=r.__v,r}var i={},c=/[A-Z]/g;function a(t,n){if(e.options.attr){var o=e.options.attr(t,n);if("string"==typeof o)return o}if(n=null!==(u=n)&&"object"==typeof u&&"function"==typeof u.valueOf?u.valueOf():u,"ref"===t||"key"===t)return"";var u;if("style"===t&&"object"==typeof n){var f="";for(var a in n){var l=n[a];null!=l&&""!==l&&(f=f+("-"==a[0]?a:i[a]||(i[a]=a.replace(c,"-$&").toLowerCase()))+":"+l+";")}return t+'="'+r(f)+'"'}return null==n||!1===n||"function"==typeof n||"object"==typeof n?"":!0===n?t:t+'="'+r(""+n)+'"'}function l(e){if(null==e||"boolean"==typeof e||"function"==typeof e)return null;if("object"==typeof e){if(void 0===e.constructor)return e;if(o(e)){for(var t=0;t<e.length;t++)e[t]=l(e[t]);return e}}return r(""+e)}},
|
|
48
|
-
__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Component",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"Fragment",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"cloneElement",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"createContext",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"createElement",{enumerable:!0,get:function(){return m}}),Object.defineProperty(_e,"createRef",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"h",{enumerable:!0,get:function(){return m}}),Object.defineProperty(_e,"hydrate",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"isValidElement",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"options",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"toChildArray",{enumerable:!0,get:function(){return T}});var e,n,t,_,l,r,o,u,i,c,f,s,p={},a=[],h=Array.isArray,d=a.slice,g=Object.assign;function y(e){e&&e.parentNode&&e.remove()}function m(e,n,t){var _,l,r,o={};for(r in n)"key"==r?_=n[r]:"ref"==r&&"function"!=typeof e?l=n[r]:o[r]=n[r];return arguments.length>2&&(o.children=arguments.length>3?d.call(arguments,2):t),v(e,o,_,l,null)}function v(t,_,l,r,o){var u={type:t,props:_,key:l,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++n:o,__i:-1,__u:0};return null==o&&null!=e.vnode&&e.vnode(u),u}function b(){return{current:null}}function k(e){return e.children}function w(e,n){this.props=e,this.context=n,this.__g=0}function C(e,n){if(null==n)return e.__?C(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?C(e):null}function P(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=t.__e;break}return P(e)}}function x(n){(8&n.__g||!(n.__g|=8)||!_.push(n)||r++)&&l==e.debounceRendering||((l=e.debounceRendering)||queueMicrotask)(S)}function S(){for(var n,t,l,u,i,c,f,s,p=1;_.length;)_.length>p&&_.sort(o),n=_.shift(),p=_.length,8&n.__g&&(l=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((l=g({},u)).__v=u.__v+1,e.vnode&&e.vnode(l),L(s,l,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?C(u):i,!!(32&u.__u),f,s.ownerDocument),l.__v=u.__v,l.__.__k[l.__i]=l,A(c,l,f),l.__e!=i&&P(l)));r=0}function U(e,n,t,_,l,r,o,u,i,c,f,s){var h,d,g,y,m,v,b,k=_&&_.__k||a,w=n.length;for(i=j(t,n,k,i,w),h=0;h<w;h++)null!=(g=t.__k[h])&&(d=-1==g.__i?p:k[g.__i]||p,g.__i=h,v=L(e,g,d,l,r,o,u,i,c,f,s),y=g.__e,g.ref&&d.ref!=g.ref&&(d.ref&&R(d.ref,null,g),f.push(g.ref,g.__c||y,g)),null==m&&null!=y&&(m=y),(b=!!(4&g.__u))||d.__k===g.__k?i=O(g,i,e,b):"function"==typeof g.type&&void 0!==v?i=v:y&&(i=y.nextSibling),g.__u&=-7);return t.__e=m,i}function j(e,n,t,_,l){var r,o,u,i,c,f=t.length,s=f,p=0;for(e.__k=new Array(l),r=0;r<l;r++)null!=(o=n[r])&&"boolean"!=typeof o&&"function"!=typeof o?(i=r+p,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?v(null,o,null,null,null):h(o)?v(k,{children:o},null,null,null):null==o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,u=null,-1!=(c=o.__i=D(o,t,i,s))&&(s--,(u=t[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof o.type&&(o.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,o.__u|=4))):e.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=t[r])&&!(2&u.__u)&&(u.__e==_&&(_=C(u)),H(u,u));return _}function O(e,n,t,_){var l,r;if("function"==typeof e.type){for(l=e.__k,r=0;l&&r<l.length;r++)l[r]&&(l[r].__=e,n=O(l[r],n,t,_));return n}e.__e!=n&&(_&&(n&&e.type&&!n.parentNode&&(n=C(e)),t.insertBefore(e.__e,n||null)),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function T(e,n){return n=n||[],null==e||"boolean"==typeof e||(h(e)?e.some(function(e){T(e,n)}):n.push(e)),n}function D(e,n,t,_){var l,r,o,u=e.key,i=e.type,c=n[t],f=null!=c&&!(2&c.__u);if(null===c&&null==e.key||f&&u==c.key&&i==c.type)return t;if(_>(f?1:0))for(l=t-1,r=t+1;l>=0||r<n.length;)if(null!=(c=n[o=l>=0?l--:r++])&&!(2&c.__u)&&u==c.key&&i==c.type)return o;return-1}function M(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":t}function E(e,n,t,_,l){var r;e:if("style"==n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||M(e.style,n,"");if(t)for(n in t)_&&t[n]==_[n]||M(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])r=n!=(n=n.replace(u,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),e.__l||(e.__l={}),e.__l[n+r]=t,t?_?t.l=_.l:(t.l=i,e.addEventListener(n,r?f:c,r)):e.removeEventListener(n,r?f:c,r);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!=n[4]?e.removeAttribute(n):e.setAttribute(n,"popover"==n&&1==t?"":t))}}function W(n){return function(t){if(this.__l){var _=this.__l[t.type+n];if(null==t.u)t.u=i++;else if(t.u<_.l)return;return _(e.event?e.event(t):t)}}}function L(n,t,_,l,r,o,u,i,c,f,s){var p,a,d,m,v,b,C,P,x,S,j,O,T,D,M,E,W,L,A,R,H,I=t.type;if(null!=t.constructor)return null;128&_.__u&&(c=!!(32&_.__u),_.__c.__z&&(i=t.__e=_.__e=(o=_.__c.__z)[0],_.__c.__z=null)),(p=e.__b)&&p(t);e:if("function"==typeof I)try{if(P=t.props,x="prototype"in I&&I.prototype.render,S=(p=I.contextType)&&l[p.__c],j=p?S?S.props.value:p.__:l,_.__c?2&(a=t.__c=_.__c).__g&&(a.__g|=1,C=!0):(x?t.__c=a=new I(P,j):(t.__c=a=new w(P,j),a.constructor=I,a.render=$),S&&S.sub(a),a.props=P,a.state||(a.state={}),a.context=j,a.__n=l,d=!0,a.__g|=8,a.__h=[],a._sb=[]),x&&null==a.__s&&(a.__s=a.state),x&&null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=g({},a.__s)),g(a.__s,I.getDerivedStateFromProps(P,a.__s))),m=a.props,v=a.state,a.__v=t,d)x&&null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),x&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(x&&null==I.getDerivedStateFromProps&&P!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(P,j),!(4&a.__g)&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(P,a.__s,j)||t.__v==_.__v){for(t.__v!=_.__v&&(a.props=P,a.state=a.__s,a.__g&=-9),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(e){e&&(e.__=t)}),O=0;O<a._sb.length;O++)a.__h.push(a._sb[O]);a._sb=[],a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(P,a.__s,j),x&&null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(m,v,b)})}if(a.context=j,a.props=P,a.__P=n,a.__g&=-5,T=e.__r,D=0,x){for(a.state=a.__s,a.__g&=-9,T&&T(t),p=a.render(a.props,a.state,a.context),M=0;M<a._sb.length;M++)a.__h.push(a._sb[M]);a._sb=[]}else do{a.__g&=-9,T&&T(t),p=a.render(a.props,a.state,a.context),a.state=a.__s}while(8&a.__g&&++D<25);a.state=a.__s,null!=a.getChildContext&&(l=g({},l,a.getChildContext())),x&&!d&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,v)),E=p,null!=p&&p.type===k&&null==p.key&&(E=N(p.props.children)),i=U(n,h(E)?E:[E],t,_,l,r,o,u,i,c,f,s),t.__u&=-161,a.__h.length&&u.push(a),C&&(a.__g&=-4)}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(W=0,L=!1,t.__u|=c?160:128,t.__c.__z=[],A=0;A<o.length;A++)null==(R=o[A])||L||(8==R.nodeType&&"$s"==R.data?(W>0&&t.__c.__z.push(R),W++,o[A]=null):8==R.nodeType&&"/$s"==R.data?(--W>0&&t.__c.__z.push(R),L=0===W,i=o[A],o[A]=null):W>0&&(t.__c.__z.push(R),o[A]=null));if(!L){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;o[o.indexOf(i)]=null,t.__c.__z=[i]}t.__e=i}else{for(H=o.length;H--;)y(o[H]);z(t)}else t.__e=_.__e,t.__k=_.__k,n.then||z(t);e.__e(n,t,_)}else i=t.__e=F(_.__e,t,_,l,r,o,u,c,f,s);return(p=e.diffed)&&p(t),128&t.__u?void 0:i}function z(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(z)}function A(n,t,_){for(var l=0;l<_.length;l++)R(_[l],_[++l],_[++l]);e.__c&&e.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(e){e.call(t)})}catch(n){e.__e(n,t.__v)}})}function N(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:h(e)?e.map(N):g({},e)}function F(n,t,_,l,r,o,u,i,c,f){var s,a,g,m,v,b,k,w,P=_.props,x=t.props,S=t.type;if("svg"==S?r="http://www.w3.org/2000/svg":"math"==S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(s=0;s<o.length;s++)if((v=o[s])&&"setAttribute"in v==!!S&&(S?v.localName==S:3==v.nodeType)){n=v,o[s]=null;break}if(null==n){if(null==S)return f.createTextNode(x);n=f.createElementNS(r,S,x.is&&x),i&&(e.__m&&e.__m(t,o),i=!1),o=null}if(null==S)P===x||i&&n.data==x||(n.data=x);else{if(o=o&&d.call(n.childNodes),P=_.props||p,!i&&null!=o)for(P={},s=0;s<n.attributes.length;s++)P[(v=n.attributes[s]).name]=v.value;for(s in P)if(v=P[s],"children"==s);else if("dangerouslySetInnerHTML"==s)g=v;else if(!(s in x)){if("value"==s&&"defaultValue"in x||"checked"==s&&"defaultChecked"in x)continue;E(n,s,null,v,r)}for(s in w=1&_.__u,x)v=x[s],"children"==s?m=v:"dangerouslySetInnerHTML"==s?a=v:"value"==s?b=v:"checked"==s?k=v:i&&"function"!=typeof v||P[s]===v&&!w||E(n,s,v,P[s],r);if(a)i||g&&(a.__html==g.__html||a.__html==n.innerHTML)||(n.innerHTML=a.__html),t.__k=[];else if(g&&(n.innerHTML=""),U("template"==S?n.content:n,h(m)?m:[m],t,_,l,"foreignObject"==S?"http://www.w3.org/1999/xhtml":r,o,u,o?o[0]:_.__k&&C(_,0),i,c,f),null!=o)for(s=o.length;s--;)y(o[s]);i||(s="value","progress"==S&&null==b?n.removeAttribute("value"):null==b||b===n[s]&&("progress"!==S||b)||E(n,s,b,P[s],r),s="checked",null!=k&&k!=n[s]&&E(n,s,k,P[s],r))}return n}function R(n,t,_){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==t||(n.__u=n(t))}else n.current=t}catch(n){e.__e(n,_)}}function H(n,t,_){var l,r;if(e.unmount&&e.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||R(l,null,t)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){e.__e(n,t)}l.__P=null}if(l=n.__k)for(r=0;r<l.length;r++)l[r]&&H(l[r],t,_||"function"!=typeof n.type);_||y(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function $(e,n,t){return this.constructor(e,t)}function I(n,t){var _,l,r,o;t==document&&(t=document.documentElement),e.__&&e.__(n,t),l=(_=!!(n&&32&n.__u))?null:t.__k,n=t.__k=m(k,null,[n]),r=[],o=[],L(t,n,l||p,p,t.namespaceURI,l?null:t.firstChild?d.call(t.childNodes):null,r,l?l.__e:t.firstChild,_,o,t.ownerDocument),A(r,n,o)}function B(e,n){e.__u|=32,I(e,n)}function V(e,n,t){var _,l,r,o=g({},e.props);for(r in n)"key"==r?_=n[r]:"ref"==r&&"function"!=typeof e.type?l=n[r]:o[r]=n[r];return arguments.length>2&&(o.children=arguments.length>3?d.call(arguments,2):t),v(e.type,o,_||e.key,l||e.ref,null)}function q(e){function n(e){var t,_;return this.getChildContext||(t=new Set,(_={})[n.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach(function(e){e.__g|=4,x(e)})},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return n.__c="__cC"+s++,n.__=e,n.Provider=n.__l=(n.Consumer=function(e,n){return e.children(n)}).contextType=n,n}e={__e:function(e,n,t,_){for(var l,o,u;n=n.__;)if((l=n.__c)&&!(1&l.__g)){l.__g|=4;try{if((o=l.constructor)&&null!=o.getDerivedStateFromError&&(l.setState(o.getDerivedStateFromError(e)),u=8&l.__g),null!=l.componentDidCatch&&(l.componentDidCatch(e,_||{}),u=8&l.__g),u)return void(l.__g|=2)}catch(n){e=n}}throw r=0,e}},n=0,t=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),x(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),x(this))},w.prototype.render=k,_=[],r=0,o=function(e,n){return e.__v.__b-n.__v.__b},u=/(PointerCapture)$|Capture$/i,i=0,c=W(!1),f=W(!0),s=0},1275,[]);
|
|
49
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","mode","marker","variant"],t=["children"],n=["children"],l=["children","contents","priority","split","minimumLength","className","style"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Fruncate",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"MiddleTruncate",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"OverflowText",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"Truncate",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"splitByIndex",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"splitCenter",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"splitExtension",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"splitFirst",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"splitLast",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"splitLeafPath",{enumerable:!0,get:function(){return y}});var c,s=r(d[0]),u=(c=s)&&c.__esModule?c:{default:c},o=r(d[1]);const f=e=>void 0!==e&&/\s/.test(e),h=(e,t)=>{const n=t=>f(e[t-1])||f(e[t]);if(!n(t))return t;for(let l=1;l<e.length;l++){const c=t-l;if(c>0&&!n(c))return c;const s=t+l;if(s<e.length&&!n(s))return s}return t},j=e=>h(e,Math.ceil(e.length/2)),p=e=>{if(e.length<2)return[e,""];const t=j(e);return[e.slice(0,t),e.slice(t)]},b=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf(".")+1,n=e.length-t>10,l=t>=1&&!n?t:j(e);return[e.slice(0,l),e.slice(l)]},y=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf("/")+1,n=e.length-t>25,l=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,l),e.slice(l)]},x=(e,{splitIndex:t}={})=>{if("number"!=typeof t){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},v=(e,{splitOffset:t}={})=>{if("number"!=typeof t||t<=0||t>=e.length){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}const n=e.length-t;return[e.slice(0,n),e.slice(n)]},O=(e,{splitOffset:t}={})=>{if("number"!=typeof t||t<=0||t>=e.length){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}const n=t;return[e.slice(0,n),e.slice(n)]};function P({children:e,marker:t,variant:n="default"}){return(0,o.jsx)("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:(0,o.jsx)("div",{"data-truncate-marker":!0,children:"function"==typeof t?t({children:e}):"fade"===n?(0,o.jsx)("span",{"data-truncate-fade":!0}):t})})}function M(e){const{mode:t,children:n}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{"data-truncate-content":"visible",children:"fruncate"===t?(0,o.jsx)("span",{children:n}):n}),(0,o.jsx)("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:"fruncate"===t?(0,o.jsx)("span",{children:n}):n})]})}function k(t){let{children:n,mode:l="truncate",marker:c="\u2026",variant:s="default"}=t,f=(0,u.default)(t,e);const h=(0,o.jsx)(M,{mode:l,children:n},"content"),j=(0,o.jsx)(P,{marker:c,mode:l,variant:s},"marker"),p=(0,o.jsx)("div",{"data-truncate-fill":!0},"fill");return(0,o.jsx)("div",Object.assign({"data-truncate-container":l,"data-truncate-variant":s},f,{children:(0,o.jsx)("div",{"data-truncate-grid":!0,children:"truncate"===l?[h,j]:[j,h,p]})}))}function N(e){let{children:n}=e,l=(0,u.default)(e,t);return(0,o.jsx)(k,Object.assign({mode:"truncate"},l,{children:n}))}function _(e){let{children:t}=e,l=(0,u.default)(e,n);return(0,o.jsx)(k,Object.assign({mode:"fruncate"},l,{children:t}))}function I(e){let{children:t,contents:n,priority:c="end",split:s="center",minimumLength:f=12,className:h,style:j}=e,P=(0,u.default)(e,l),M=null,k=null;if(Array.isArray(n)){if(2!==n.length)return console.error("MiddleTruncate: contents must be an array of two items"),null;M=(0,o.jsx)(N,Object.assign({},P,{children:n[0]})),k=(0,o.jsx)(_,Object.assign({},P,{children:n[1]}))}else{if("string"!=typeof t)return console.error("MiddleTruncate: children must be a string"),null;if(0===t.length)return(0,o.jsx)("div",{className:h,style:j});if(t.length<f)return"end"===c?(0,o.jsx)(_,Object.assign({},P,{className:h,style:j,children:t})):(0,o.jsx)(N,Object.assign({},P,{className:h,style:j,children:t}));let e=null,n=null,l=null;if("string"==typeof s)"center"===s?e=p:"extension"===s?e=b:"leaf-path"===s&&(e=y);else if("number"==typeof s)e=x,n=s;else if(Array.isArray(s)){const[t,n]=s;l=n,"last"===t?e=v:"first"===t&&(e=O)}else"function"==typeof s&&(e=s);e??=p;const[u,I]=e(t,{priority:c,variant:P.variant,splitIndex:"number"==typeof n?n:void 0,splitOffset:"number"==typeof l?l:void 0}),T=u.length>=I.length,q="equal"===c&&T,A={},L={};"equal"===c&&!T&&(A.marker=""),q&&(L.marker=""),M=(0,o.jsx)(N,Object.assign({},P,A,{children:u})),k=(0,o.jsx)(_,Object.assign({},P,L,{children:I}))}return(0,o.jsxs)("div",{"data-truncate-group-container":"middle",className:h,style:j,children:[(0,o.jsx)("div",{"data-truncate-segment-priority":"start"===c||"equal"===c?"1":"2",children:M}),(0,o.jsx)("div",{"data-truncate-segment-priority":"end"===c||"equal"===c?"1":"2",children:k})]})}},
|
|
50
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EMPTY_FILE_TREE_LAYOUT_RANGE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"computeFileTreeLayout",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"computeStickyRows",{enumerable:!0,get:function(){return f}});const t={endIndex:-1,startIndex:-1};function n(n,o){return n<0||o<n?t:{endIndex:o,startIndex:n}}function o(t){return t.startIndex<0||t.endIndex<t.startIndex}function l(t,n){return o(t)?0:(t.endIndex-t.startIndex+1)*n}function c(t,n,o){if(n<=0)return-1;return t<=0?0:t>=n*o?n:Math.floor(t/o)}function h(t){const n=new Map;return t.forEach((t,o)=>{if("directory"!==t.kind||!t.isExpanded)return;const l=t.ancestorPaths.length,c=n.get(l);null!=c?c.push(o):n.set(l,[o])}),n}function s(t,n){let o=0,l=t.length-1,c=-1;for(;o<=l;){const h=Math.floor((o+l)/2),s=t[h];if(null==s)break;s<=n?(c=h,o=h+1):l=h-1}return c}function u(t){const n=new Map,o=[];for(let l=0;l<t.length;l+=1){const c=t[l];if(null==c)continue;const h="directory"===c.kind&&c.isExpanded?[...c.ancestorPaths,c.path]:c.ancestorPaths;let s=0;for(;s<o.length&&s<h.length&&o[s]===h[s];)s+=1;for(let t=o.length-1;t>=s;t-=1){const c=o[t];null!=c&&n.set(c,l-1)}o.length=s;for(let t=s;t<h.length;t+=1){const n=h[t];null!=n&&o.push(n)}}const l=t.length-1;for(const t of o)n.set(t,l);return n}function f(t,n,o){if(0===t.length||n<=0)return[];const l=u(t),c=h(t),f=[];for(let l=0;l<t.length;l+=1){const h=c.get(l);if(null==h||0===h.length)break;const u=n+l*o;let p=s(h,Math.min(t.length-1,Math.floor(u/o))),x=null;for(;p>=0;){const n=h[p],o=null==n?null:t[n]??null;if(null!=o&&(0===l||o.ancestorPaths[l-1]===f[l-1]?.path)){x=o;break}p-=1}if(null==x)break;f.push(x)}return f.map((c,h)=>{const s=h*o,u=(l.get(c.path)??t.length-1)+1;if(u>=t.length)return{row:c,top:s};const f=u*o-n;return{row:c,top:Math.min(s,f-o)}}).filter(t=>t.top+o>0)}function p(h,s){const u=s.totalRowCount??h.length,p=u*s.itemHeight,x=Math.max(0,s.viewportHeight),M=Math.max(0,Math.floor(s.overscan)),I=Math.max(0,p-x),H=(w=s.scrollTop,b=0,y=I,Math.min(Math.max(w,b),y));var w,b,y;const k=s.stickyRows??f(h,H,s.itemHeight),P=k.reduce((t,n)=>Math.max(t,n.top+s.itemHeight),0),T=Math.min(p,H+P),v=Math.max(0,x-P),E=Math.max(0,p-T),_=c(H,u,s.itemHeight),O=c(T,u,s.itemHeight),R=P<=0||_<0||_>=u?-1:_,j=-1===R?-1:Math.min(u-1,O-1),C=-1===R||j<R?0:j-R+1,L=v<=0||O>=u?t:n(O,(A=T+v,F=u,S=s.itemHeight,F<=0||A<=0?-1:A>=F*S?F-1:Math.ceil(A/S)-1));var A,F,S;const Y=j+1,G=o(L)?t:n(Math.max(Y,L.startIndex-M),Math.min(u-1,L.endIndex+M)),N=l(G,s.itemHeight);return{occlusion:{firstOccludedIndex:R,lastOccludedIndex:j,occludedCount:C},physical:{itemHeight:s.itemHeight,maxScrollTop:I,overscan:M,scrollTop:H,totalHeight:p,totalRowCount:u,viewportHeight:x},projected:{contentHeight:E,paneHeight:v,paneTop:T},sticky:{height:P,rows:k},visible:L,window:{endIndex:G.endIndex,height:N,offsetTop:o(G)?0:G.startIndex*s.itemHeight,startIndex:G.startIndex}}}},
|
|
51
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GIT_STATUS_LABEL",{enumerable:!0,get:function(){return n}});const n={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"}},
|
|
52
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return!!n.current||(n.current=!0,!1)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldBumpControllerRevision",{enumerable:!0,get:function(){return n}})},
|
|
53
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"focusElement",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getActiveTreeElement",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getCachedViewportHeight",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getParkedFocusedRowOffset",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getResizeObserverViewportHeight",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"readMeasuredViewportHeight",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"scrollFocusedRowIntoView",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"scrollFocusedRowToOffset",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"scrollFocusedRowToViewportOffset",{enumerable:!0,get:function(){return p}});var t=r(d[0]);function n(t){if(null==t||!t.isConnected)return!1;if(t===document.body||t===document.documentElement)return!1;t.focus({preventScroll:!0});const n=t.getRootNode();return n instanceof ShadowRoot?n.activeElement===t:document.activeElement===t}function o(t){const n=t.getRootNode();if(n instanceof ShadowRoot){const t=n.activeElement;return t instanceof HTMLElement?t:null}const o=document.activeElement;return o instanceof HTMLElement&&t.contains(o)?o:null}function c(t,n){if(null==t)return n;const o=t.getBoundingClientRect().height;return o>0?o:t.clientHeight>0?t.clientHeight:n}function u(t,n){return null!=t&&t>0?t:n}function l(t){const n=t.borderBoxSize,o=Array.isArray(n)?n[0]:n;return null!=o&&Number.isFinite(o.blockSize)&&o.blockSize>0?o.blockSize:t.contentRect.height>0?t.contentRect.height:null}function f(n,o,c,u,l=0){const f=(0,t.computeFocusedRowScrollIntoView)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,topInset:l,viewportHeight:u});return null!=f&&(n.scrollTop=f,!0)}function s(n,o,c,u,l,f,s=0){const p=(0,t.computeFocusedRowScrollTopForOffset)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,offset:f,topInset:s,totalHeight:l,viewportHeight:u});return null!=p&&(n.scrollTop=p,!0)}function p(n,o,c,u,l,f){const s=(0,t.computeViewportOffsetScrollTop)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,targetViewportOffset:f,totalHeight:l,viewportHeight:u});return null!=s&&(n.scrollTop=s,!0)}function b(t,n,o,c){return o.end<o.start?null:t<o.start?-n:t>o.end?c:null}},
|
|
54
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{currentScrollTop:n,focusedIndex:o,itemHeight:u,topInset:c=0,viewportHeight:l}=t;if(o<0)return null;const f=Math.max(0,c),s=o*u,h=s+u;if(s<n+f){const t=Math.max(0,s-f);return t===n?null:t}if(h>n+l){const t=h-l;return t===n?null:t}return null}function n(n){const{currentScrollTop:o,focusedIndex:u,itemHeight:c,offset:l,topInset:f=0,totalHeight:s,viewportHeight:h}=n;if("nearest"===l)return t({currentScrollTop:o,focusedIndex:u,itemHeight:c,topInset:f,viewportHeight:h});if(u<0)return null;const p=Math.max(0,f),x=u*c,M=Math.max(0,h-p),H="center"===l?p+Math.max(0,(M-c)/2):p,w=Math.max(0,s-h),I=Math.max(0,Math.min(x-H,w));return I===o?null:I}function o(t){const{currentScrollTop:n,focusedIndex:o,itemHeight:u,targetViewportOffset:c,totalHeight:l,viewportHeight:f}=t;if(o<0)return null;const s=Math.max(0,c),h=o*u;if(h>=n+s&&h+u<=n+f)return null;const p=Math.max(0,l-f),x=Math.max(0,Math.min(h-s,p));return x===n?null:x}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFocusedRowScrollIntoView",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"computeFocusedRowScrollTopForOffset",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"computeViewportOffsetScrollTop",{enumerable:!0,get:function(){return o}})},
|
|
55
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){const{renamingPath:t,previousRenamingPath:u,hasRenderedInput:o}=n;return null==t?"reset":o?u===t?"ignore":"focus-input":"reveal-canonical"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"classifyFileTreeRenameHandoff",{enumerable:!0,get:function(){return n}})},
|
|
56
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RenameInput",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t({ariaLabel:t,isFlattened:o=!1,ref:u,value:p,onBlur:l,onInput:s}){return(0,n.jsx)("input",Object.assign({ref:u,"data-item-rename-input":!0},o?{"data-item-flattened-rename-input":!0}:{},{"aria-label":t,value:p,onBlur:l,onInput:s,onClick:n=>n.stopPropagation(),onMouseDown:n=>n.stopPropagation(),onPointerDown:n=>n.stopPropagation()}))}},
|
|
57
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{row:n,mode:o,targetPath:s,ariaLabel:c,domId:u,isParked:l,itemHeight:v,features:p,state:b,extraStyle:f}=t,h="sticky"===o,x=n.ancestorPaths.at(-1)??"",y={};return b.isFocusRinged&&(y["data-item-focused"]=!0),n.isSelected&&(y["data-item-selected"]=!0),b.isContextHovered&&(y["data-item-context-hover"]="true"),b.isDragTarget&&(y["data-item-drag-target"]=!0),b.isDragging&&(y["data-item-dragging"]=!0),null!=b.effectiveGitStatus&&(y["data-item-git-status"]=b.effectiveGitStatus),b.containsGitChange&&(y["data-item-contains-git-change"]="true"),Object.assign({"aria-expanded":h||"directory"!==n.kind?void 0:n.isExpanded,"aria-haspopup":p.contextMenuEnabled?"menu":void 0,"aria-label":c,"aria-level":h?void 0:n.level+1,"aria-posinset":h?void 0:n.posInSet+1,"aria-selected":h?void 0:n.isSelected?"true":"false","aria-setsize":h?void 0:n.setSize,"data-file-tree-sticky-path":h?s:void 0,"data-file-tree-sticky-row":h?"true":void 0,"data-item-context-menu-button-visibility":p.actionLaneEnabled?p.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":p.contextMenuEnabled?p.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":p.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":p.gitLaneActive?"true":void 0,"data-item-parent-path":x.length>0?x:void 0,"data-item-parked":l?"true":void 0,"data-item-path":s,"data-item-type":"directory"===n.kind?"folder":"file","data-type":"item",id:h?void 0:u,role:h?void 0:"treeitem",style:Object.assign({minHeight:`${v}px`},f),tabIndex:!h&&n.isFocused?0:-1},y)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFileTreeRowElementAttributes",{enumerable:!0,get:function(){return t}})},
|
|
58
|
-
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{event:n,mode:c,isDirectory:o}=t,l=n.ctrlKey||n.metaKey,s=n.shiftKey||l;return{closeSearch:!1,revealCanonical:"sticky"===c,selection:n.shiftKey?{additive:l,kind:"range"}:l?{kind:"toggle"}:{kind:"single"},toggleDirectory:!s&&o}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFileTreeRowClickPlan",{enumerable:!0,get:function(){return t}})},
|
|
59
|
-
__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useCallback",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"useContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"useDebugValue",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"useEffect",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"useErrorBoundary",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"useId",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"useImperativeHandle",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e,"useLayoutEffect",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"useMemo",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"useReducer",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"useRef",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"useState",{enumerable:!0,get:function(){return d}});var _,n,e,t,r=_r(_d[0]),u=Object.is,o=0,c=[],i=r.options,f=i.__b,a=i.__r,l=i.diffed,h=i.__c,s=i.unmount,m=i.__;function v(_,e){i.__h&&i.__h(n,_,o||e),o=0;var t=n.__H||(n.__H={__:[],__h:[]});return _>=t.__.length&&t.__.push({}),t.__[_]}function d(_){return o=1,p(T,_)}function p(e,t,r){var o=v(_++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):T(void 0,t),function(_){var n=o.__N?o.__N[0]:o.__[0],e=o.t(n,_);u(n,e)||(o.__N=[e,o.__[1]],o.__c.setState({}))}],o.__c=n,!n.__f)){var c=function(_,n,e){if(!o.__c.__H)return!0;var t=o.__c.__H.__.filter(function(_){return!!_.__c});if(t.every(function(_){return!_.__N}))return!i||i.call(this,_,n,e);var r=o.__c.props!==_;return t.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,u(n,_.__[0])||(r=!0)}}),i&&i.call(this,_,n,e)||r};n.__f=!0;var i=n.shouldComponentUpdate,f=n.componentWillUpdate;n.componentWillUpdate=function(_,n,e){if(4&this.__g){var t=i;i=void 0,c(_,n,e),i=t}f&&f.call(this,_,n,e)},n.shouldComponentUpdate=c}return o.__N||o.__}function b(e,t){var r=v(_++,3);!i.__s&&U(r.__H,t)&&(r.__=e,r.u=t,n.__H.__h.push(r))}function y(e,t){var r=v(_++,4);!i.__s&&U(r.__H,t)&&(r.__=e,r.u=t,n.__h.push(r))}function H(_){return o=5,P(function(){return{current:_}},[])}function g(_,n,e){o=6,y(function(){if("function"==typeof _){var e=_(n());return function(){_(null),e&&"function"==typeof e&&e()}}if(_)return _.current=n(),function(){return _.current=null}},null==e?e:e.concat(_))}function P(n,e){var t=v(_++,7);return U(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function j(_,n){return o=8,P(function(){return _},n)}function O(e){var t=n.context[e.__c],r=v(_++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(n)),t.props.value):e.__}function E(_,n){i.useDebugValue&&i.useDebugValue(n?n(_):_)}function N(e){var t=v(_++,10),r=d();return t.__=e,n.componentDidCatch||(n.componentDidCatch=function(_,n){t.__&&t.__(_,n),r[1](_)}),[r[0],function(){r[1](void 0)}]}function C(){var e=v(_++,11);if(!e.__){for(var t=n.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function A(){for(var _;_=c.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(k),_.__H.__h.forEach(q),_.__H.__h=[]}catch(n){_.__H.__h=[],i.__e(n,_.__v)}}i.__b=function(_){n=null,f&&f(_)},i.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),m&&m(_,n)},i.__r=function(t){a&&a(t),_=0;var r=(n=t.__c).__H;r&&(e===n?(r.__h=[],n.__h=[],r.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(r.__h.forEach(k),r.__h.forEach(q),r.__h=[],_=0)),e=n},i.diffed=function(_){l&&l(_);var r=_.__c;r&&r.__H&&(r.__H.__h.length&&(1!==c.push(r)&&t===i.requestAnimationFrame||((t=i.requestAnimationFrame)||F)(A)),r.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),e=n=null},i.__c=function(_,n){n.some(function(_){try{_.__h.forEach(k),_.__h=_.__h.filter(function(_){return!_.__||q(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],i.__e(e,_.__v)}}),h&&h(_,n)},i.unmount=function(_){s&&s(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{k(_)}catch(_){n=_}}),e.__H=void 0,n&&i.__e(n,e.__v))};var D="function"==typeof requestAnimationFrame;function F(_){var n,e=function(){clearTimeout(t),D&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);D&&(n=requestAnimationFrame(e))}function k(_){var e=n,t=_.__c;"function"==typeof t&&(_.__c=void 0,t()),n=e}function q(_){var e=n;_.__c=_.__(),n=e}function U(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!u(n,_[e])})}function T(_,n){return"function"==typeof n?n(_):n}},
|
|
60
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fileTreeRenderer",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"hydrateFileTreeRoot",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"renderFileTreeRoot",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"unmountFileTreeRoot",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);const o={hydrateRoot:(o,u)=>{(0,n.hydrate)((0,n.h)(t.FileTreeView,u),o)},renderRoot:(o,u)=>{(0,n.render)((0,n.h)(t.FileTreeView,u),o)},unmountRoot:t=>{(0,n.render)(null,t)}};function u(t,n){o.renderRoot(t,n)}function c(t,n){o.hydrateRoot(t,n)}function f(t){o.unmountRoot(t)}},
|
|
61
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";var t,e,l,n,u;function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeManagedSlotHost",{enumerable:!0,get:function(){return c}});var s=o(r(d[0])),f=o(r(d[1])),c=(t=(0,f.default)("contentBySlot"),e=(0,f.default)("host"),l=(0,f.default)("getCurrentContent"),n=(0,f.default)("attachContent"),u=(0,f.default)("adoptExistingManagedContent"),class{constructor(){Object.defineProperty(this,u,{value:p}),Object.defineProperty(this,n,{value:v}),Object.defineProperty(this,l,{value:h}),Object.defineProperty(this,t,{writable:!0,value:new Map}),Object.defineProperty(this,e,{writable:!0,value:null})}clearAll(){for(const e of(0,s.default)(this,t)[t].values())e.remove();(0,s.default)(this,t)[t].clear()}clearSlotContent(e){const n=(0,s.default)(this,l)[l](e);null!=n&&(n.remove(),(0,s.default)(this,t)[t].delete(e))}setHost(l){if((0,s.default)(this,e)[e]=l,null!=l){(0,s.default)(this,u)[u](l);for(const[e,l]of(0,s.default)(this,t)[t])(0,s.default)(this,n)[n](e,l)}}setSlotContent(e,u){const o=(0,s.default)(this,l)[l](e);o!==u?(o?.remove(),null!=u?((0,s.default)(this,t)[t].set(e,u),(0,s.default)(this,n)[n](e,u)):(0,s.default)(this,t)[t].delete(e)):null!=u&&((0,s.default)(this,t)[t].set(e,u),(0,s.default)(this,n)[n](e,u))}setSlotHtml(e,u){const o=u?.trim()??"";if(0===o.length)return void this.setSlotContent(e,null);const f=(0,s.default)(this,l)[l](e);if(null!=f&&f.innerHTML===o)return(0,s.default)(this,t)[t].set(e,f),void(0,s.default)(this,n)[n](e,f);const c=document.createElement("div");c.innerHTML=o,this.setSlotContent(e,c)}});function h(l){const n=(0,s.default)(this,t)[t].get(l)??null;if(null!=n)return n;const u=(0,s.default)(this,e)[e];if(null==u)return null;for(const t of Array.from(u.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===l)return t;return null}function v(t,l){l.slot=t,l.dataset.fileTreeManagedSlot=t,null!=(0,s.default)(this,e)[e]&&l.parentNode!==(0,s.default)(this,e)[e]&&(0,s.default)(this,e)[e].appendChild(l)}function p(e){for(const l of Array.from(e.children)){if(!(l instanceof HTMLElement))continue;const e=l.dataset.fileTreeManagedSlot;null==e||(0,s.default)(this,t)[t].has(e)||(0,s.default)(this,t)[t].set(e,l)}}},
|
|
62
|
-
__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 H}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"renderToStaticMarkup",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"renderToString",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"renderToStringAsync",{enumerable:!0,get:function(){return O}});var e=_r(_d[0]),t="diffed",n="__c",r="__s",o="__c",i="__k",a="__d",s="__s",c=/[\s\n\\/='"\0<>]/,u=/^(xlink|xmlns|xml)([A-Z])/,l=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,f=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,p=new Set(["draggable","spellcheck"]);function h(e){void 0!==e.__g?e.__g|=8:e[a]=!0}function d(e){void 0!==e.__g?e.__g&=-9:e[a]=!1}function v(e){return void 0!==e.__g?!!(8&e.__g):!0===e[a]}var g=/["&<]/;function m(e){if(0===e.length||!1===g.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var y={},_=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),b=/[A-Z]/g;function k(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:y[n]||(y[n]=n.replace(b,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||_.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function w(){this.__d=!0}function x(e,t){return{__v:e,context:t,props:e.props,setState:w,forceUpdate:w,__d:!0,__h:new Array(0)}}function C(e,t,n){if(!e.s){if(n instanceof S){if(!n.s)return void(n.o=C.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(C.bind(null,e,t),C.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var S=(function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{C(r,1,i(this.v))}catch(e){C(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?C(r,1,t?t(o):o):n?C(r,1,n(o)):C(r,2,o)}catch(e){C(r,2,e)}},r},e})();function A(e){return e instanceof S&&1&e.s}function j(e,t,n){for(var r;;){var o=e();if(A(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!A(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!A(a)){r=2;break}}}var s=new S,c=C.bind(null,s,2);return(0===r?o.then(l):1===r?i.then(u):a.then(f)).then(void 0,c),s;function u(r){i=r;do{if(t&&(a=t())&&a.then&&!A(a))return void a.then(f).then(void 0,c);if(!(o=e())||A(o)&&!o.v)return void C(s,1,i);if(o.then)return void o.then(l).then(void 0,c);A(i=n())&&(i=i.v)}while(!i||!i.then);i.then(u).then(void 0,c)}function l(e){e?(i=n())&&i.then?i.then(u).then(void 0,c):u(i):C(s,1,i)}function f(){(o=e())?o.then?o.then(l).then(void 0,c):l(o):C(s,1,i)}}function P(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var F,L,T,E,O=function(o,a){try{var s=e.options[r];e.options[r]=!0,F=e.options.__b,L=e.options[t],T=e.options.__r,E=e.options.unmount;var c=(0,e.h)(e.Fragment,null);return c[i]=[o],Promise.resolve(P(function(){return Promise.resolve(q(o,a||D,!1,void 0,c,!0,void 0)).then(function(e){var t,n=(function(){if($(e)){var n=function(){var e=o.join(Z);return t=1,e},r=0,o=e,i=j(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}})();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(t,i){if(e.options[n]&&e.options[n](o,M),e.options[r]=s,M.length=0,t)throw i;return i}))}catch(e){return Promise.reject(e)}},D={},M=[],$=Array.isArray,U=Object.assign,Z="",W="\x3c!--$s--\x3e",z="\x3c!--/$s--\x3e";function H(o,a,s){var c=e.options[r];e.options[r]=!0,F=e.options.__b,L=e.options[t],T=e.options.__r,E=e.options.unmount;var u=(0,e.h)(e.Fragment,null);u[i]=[o];try{var l=q(o,a||D,!1,void 0,u,!1,s);return $(l)?l.join(Z):l}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options[n]&&e.options[n](o,M),e.options[r]=c,M.length=0}}function N(e,t){var n,r=e.type,i=!0;return e[o]?(i=!1,(n=e[o]).state=n[s]):n=new r(e.props,t),e[o]=n,n.__v=e,n.props=e.props,n.context=t,h(n),null==n.state&&(n.state=D),null==n[s]&&(n[s]=n.state),r.getDerivedStateFromProps?n.state=U({},n.state,r.getDerivedStateFromProps(n.props,n.state)):i&&n.componentWillMount?(n.componentWillMount(),n.state=n[s]!==n.state?n[s]:n.state):!i&&n.componentWillUpdate&&n.componentWillUpdate(),T&&T(e),n.render(n.props,n.state,t)}function q(t,n,r,a,g,y,_){if(null==t||!0===t||!1===t||t===Z)return Z;var b=typeof t;if("object"!=b)return"function"==b?Z:"string"==b?m(t):t+Z;if($(t)){var w,C=Z;g[i]=t;for(var S=t.length,A=0;A<S;A++){var j=t[A];if(null!=j&&"boolean"!=typeof j){var P,O=q(j,n,r,a,g,y,_);"string"==typeof O?C+=O:(w||(w=new Array(S)),C&&w.push(C),C=Z,$(O)?(P=w).push.apply(P,O):w.push(O))}}return w?(C&&w.push(C),w):C}if(void 0!==t.constructor)return Z;t.__=g,F&&F(t);var M=t.type,H=t.props;if("function"==typeof M){var I,R,K,G=n;if(M===e.Fragment){if("tpl"in H){for(var J=Z,Q=0;Q<H.tpl.length;Q++)if(J+=H.tpl[Q],H.exprs&&Q<H.exprs.length){var X=H.exprs[Q];if(null==X)continue;"object"!=typeof X||void 0!==X.constructor&&!$(X)?J+=X:J+=q(X,n,r,a,t,y,_)}return J}if("UNSTABLE_comment"in H)return"\x3c!--"+m(H.UNSTABLE_comment)+"--\x3e";R=H.children}else{if(null!=(I=M.contextType)){var Y=n[I.__c];G=Y?Y.props.value:I.__}var ee=M.prototype&&"function"==typeof M.prototype.render;if(ee)R=N(t,G),K=t[o];else{t[o]=K=x(t,G);for(var te=0;v(K)&&te++<25;){d(K),T&&T(t);try{R=M.call(K,H,G)}catch(e){throw y&&e&&"function"==typeof e.then&&(t._suspended=!0),e}}h(K)}if(null!=K.getChildContext&&(n=U({},n,K.getChildContext())),ee&&e.options.errorBoundaries&&(M.getDerivedStateFromError||K.componentDidCatch)){R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R;try{return q(R,n,r,a,t,y,!1)}catch(i){return M.getDerivedStateFromError&&(K[s]=M.getDerivedStateFromError(i)),K.componentDidCatch&&K.componentDidCatch(i,D),v(K)?(R=N(t,n),null!=(K=t[o]).getChildContext&&(n=U({},n,K.getChildContext())),q(R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R,n,r,a,t,y,_)):Z}finally{L&&L(t),E&&E(t)}}}R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R;try{var ne=q(R,n,r,a,t,y,_);return L&&L(t),e.options.unmount&&e.options.unmount(t),t._suspended?"string"==typeof ne?W+ne+z:$(ne)?(ne.unshift(W),ne.push(z),ne):ne.then(function(e){return W+e+z}):ne}catch(o){if(!y&&_&&_.onError){var re=(function e(o){return _.onError(o,t,function(t,o){try{return q(t,n,r,a,o,y,_)}catch(t){return e(t)}})})(o);if(void 0!==re)return re;var oe=e.options.__e;return oe&&oe(o,t),Z}if(!y)throw o;if(!o||"function"!=typeof o.then)throw o;return o.then(function e(){try{var o=q(R,n,r,a,t,y,_);return t._suspended?W+o+z:o}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(e)}})}}var ie,ae="<"+M,se=Z;for(var ce in H){var ue=H[ce];if("function"!=typeof(ue=V(ue)?ue.value:ue)||"class"===ce||"className"===ce){switch(ce){case"children":ie=ue;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in H)continue;ce="for";break;case"className":if("class"in H)continue;ce="class";break;case"defaultChecked":ce="checked";break;case"defaultSelected":ce="selected";break;case"defaultValue":case"value":switch(ce="value",M){case"textarea":ie=ue;continue;case"select":a=ue;continue;case"option":a!=ue||"selected"in H||(ae+=" selected")}break;case"dangerouslySetInnerHTML":se=ue&&ue.__html;continue;case"style":"object"==typeof ue&&(ue=k(ue));break;case"acceptCharset":ce="accept-charset";break;case"httpEquiv":ce="http-equiv";break;default:if(u.test(ce))ce=ce.replace(u,"$1:$2").toLowerCase();else{if(c.test(ce))continue;"-"!==ce[4]&&!p.has(ce)||null==ue?r?f.test(ce)&&(ce="panose1"===ce?"panose-1":ce.replace(/([A-Z])/g,"-$1").toLowerCase()):l.test(ce)&&(ce=ce.toLowerCase()):ue+=Z}}null!=ue&&!1!==ue&&(ae=!0===ue||ue===Z?ae+" "+ce:ae+" "+ce+'="'+("string"==typeof ue?m(ue):ue+Z)+'"')}}if(c.test(M))throw new Error(M+" is not a valid HTML tag name in "+ae+">");if(se||("string"==typeof ie?se=m(ie):null!=ie&&!1!==ie&&!0!==ie&&(se=q(ie,n,"svg"===M||"foreignObject"!==M&&r,a,t,y,_))),L&&L(t),E&&E(t),!se&&B.has(M))return ae+"/>";var le="</"+M+">",fe=ae+">";return $(se)?[fe].concat(se,[le]):"string"!=typeof se?[fe,se,le]:fe+se+le}var B=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),I=H,R=H;function V(e){return null!==e&&"object"==typeof e&&"function"==typeof e.peek&&"value"in e}},
|
|
63
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FileTree",{enumerable:!0,get:function(){return t.FileTree}}),Object.defineProperty(e,"useFileTree",{enumerable:!0,get:function(){return n.useFileTree}}),Object.defineProperty(e,"useFileTreeSearch",{enumerable:!0,get:function(){return c.useFileTreeSearch}}),Object.defineProperty(e,"useFileTreeSelection",{enumerable:!0,get:function(){return l.useFileTreeSelection}}),Object.defineProperty(e,"useFileTreeSelector",{enumerable:!0,get:function(){return u.useFileTreeSelector}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),l=r(d[3]),c=r(d[4])},
|
|
64
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["header","id","model","preloadedData","renderContextMenu"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTree",{enumerable:!0,get:function(){return _}});var n,t=r(d[0]),l=(n=t)&&n.__esModule?n:{default:n},o=r(d[1]),u=r(d[2]),s=r(d[3]);const c="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function f(e,n,t){const l=null!=e?(0,s.jsx)("div",{slot:o.HEADER_SLOT_NAME,children:e}):null,u=null!=n&&null!=t?(0,s.jsx)("div",{slot:o.CONTEXT_MENU_SLOT_NAME,children:n(t.item,t.context)}):null;return null==l&&null==u?null:(0,s.jsxs)(s.Fragment,{children:[l,u]})}function p(e,n){return"undefined"==typeof window&&null!=n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:n.shadowHtml}}),e]}):(0,s.jsx)(s.Fragment,{children:e})}function h(e){const n=e.shadowRoot;return n?.querySelector("[data-file-tree-id]")instanceof HTMLElement||n?.querySelector("[data-file-tree-id]")instanceof SVGElement||e.querySelector("template[shadowrootmode=\"open\"]")instanceof HTMLTemplateElement}function x(e,n,t,l,o){const u=Object.assign({},e??{});if(null!=n&&delete u.header,t){const n=e?.contextMenu,t=n?.onClose,s=n?.onOpen;u.contextMenu=Object.assign({},n??{},{enabled:!0,onClose:()=>{t?.(),l()},onOpen:(e,n)=>{o(e,n),s?.(e,n)}}),delete u.contextMenu.render}return null!=u.header||null!=u.contextMenu?u:void 0}function M(e){const n=(0,u.useRef)(e.getComposition()),t=(0,u.useRef)(e);return t.current!==e&&(t.current=e,n.current=e.getComposition()),n.current}function _(n){let{header:t,id:_,model:y,preloadedData:E,renderContextMenu:C}=n,j=(0,l.default)(n,e);const[T,b]=(0,u.useState)(null),[O,S]=(0,u.useState)(null),w=M(y),H=null!=C,[L,v]=(0,u.useState)(H);L!==H&&(v(H),null!=T&&b(null));const F=(0,u.useCallback)(()=>{b(null)},[]),A=(0,u.useCallback)((e,n)=>{b({context:n,item:e})},[]),N=(0,u.useMemo)(()=>x(w,t,H,F,A),[w,F,A,H,t]),R=(0,u.useCallback)(e=>{S(e)},[]);c(()=>{y.setComposition(N)},[N,y]),c(()=>{if(null!=O)return null!=E&&h(O)?y.hydrate({fileTreeContainer:O}):y.render({fileTreeContainer:O}),()=>{y.unmount(),y.setComposition(w)}},[w,O,y,E]);const D=p(f(t,C,T),E),k=_??E?.id,q=Object.assign({"--trees-item-height":`${String(y.getItemHeight())}px`,"--trees-density-override":y.getDensityFactor()},j.style);return(0,s.jsx)(o.FILE_TREE_TAG_NAME,Object.assign({},j,{id:k,ref:R,style:q,suppressHydrationWarning:null!=E,children:D}))}},
|
|
65
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTree",{enumerable:!0,get:function(){return n}});var t=r(d[0]),u=r(d[1]);function n(n){const[o]=(0,u.useState)(()=>new t.FileTree(n)),l=(0,u.useRef)({timeout:null,model:o});return(0,u.useEffect)(()=>{const{current:t}=l;return null!=t.timeout&&(clearTimeout(t.timeout),t.timeout=null),()=>{t.timeout=setTimeout(()=>t.model.cleanUp(),1)}},[]),{model:o}}},
|
|
66
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"areArraysEqual",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"useFileTreeSelector",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;for(let u=0;u<t.length;u+=1)if(!Object.is(t[u],n[u]))return!1;return!0}function u(t,n,u){return Object.is(t,n)||!0===u?.(t,n)}function l(n,l,c){const o=(0,t.useRef)({hasValue:!1,model:null,selector:null,value:void 0}),s=(0,t.useCallback)(t=>n.subscribe(t),[n]),f=(0,t.useCallback)(()=>{const t=o.current,s=l(n);if(t.model!==n||t.selector!==l||!t.hasValue)return t.hasValue=!0,t.model=n,t.selector=l,t.value=s,s;const f=t.value;return u(f,s,c)?f:(t.value=s,s)},[c,n,l]);return(0,t.useSyncExternalStore)(s,f,f)}},
|
|
67
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTreeSelection",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.useFileTreeSelector)(n,t=>t.getSelectedPaths(),t.areArraysEqual)}},
|
|
68
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTreeSearch",{enumerable:!0,get:function(){return n}});var t=r(d[0]),c=r(d[1]);function s(c,s){return c.isOpen===s.isOpen&&c.value===s.value&&(0,t.areArraysEqual)(c.matchingPaths,s.matchingPaths)}function n(n){const u=(0,t.useFileTreeSelector)(n,t=>({isOpen:t.isSearchOpen(),matchingPaths:t.getSearchMatchingPaths(),value:t.getSearchValue()}),s);return(0,c.useMemo)(()=>Object.assign({},u,{close:()=>{n.closeSearch()},focusNextMatch:()=>{n.focusNextSearchMatch()},focusPreviousMatch:()=>{n.focusPreviousSearchMatch()},open:t=>{n.openSearch(t)},setValue:t=>{n.setSearch(t)}}),[n,u])}},
|
|
1
|
+
__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 $}});var t=r(d[0]),s=r(d[1]),n=r(d[2]),o=r(d[3]),c=r(d[4]),l=r(d[5]),u=r(d[6]),v=r(d[7]),h=r(d[8]),f=r(d[9]);const p=(t,s)=>Object.assign({},s,{height:"100%",colorScheme:t,"--trees-bg-override":"transparent","--trees-fg-override":"var(--color-sharp)","--trees-fg-muted-override":"var(--color-muted)","--trees-bg-muted-override":"var(--color-interactive-soft-hover)","--trees-selected-bg-override":"var(--color-interactive-soft-active)","--trees-selected-fg-override":"var(--color-sharp)","--trees-border-color-override":"var(--color-border-muted)","--trees-indent-guide-bg-override":"var(--color-border-muted)","--trees-input-bg-override":"var(--color-lowered)","--trees-search-bg-override":"var(--color-lowered)","--trees-search-fg-override":"var(--color-sharp)","--trees-accent-override":"var(--tree-brand)","--trees-focus-ring-color-override":"var(--tree-brand)","--trees-status-added-override":"var(--trees-theme-git-added-fg, var(--tree-success))","--trees-status-untracked-override":"var(--trees-theme-git-untracked-fg, var(--tree-success))","--trees-status-modified-override":"var(--trees-theme-git-modified-fg, var(--tree-info))","--trees-status-renamed-override":"var(--trees-theme-git-renamed-fg, var(--tree-warning))","--trees-status-deleted-override":"var(--trees-theme-git-deleted-fg, var(--tree-danger))","--trees-font-family-override":"var(--font-body)","--trees-font-size-override":"var(--text-sm, 13px)","--trees-padding-inline-override":"0px"});function S({accent:t,children:s}){const n={display:"contents",[`--tree-${t}`]:"var(--color-accent)"};return(0,f.jsx)(o.AccentScope,{accent:t,children:(0,f.jsx)("div",{style:n,children:s})})}const P=n=>{const[o,l]=(0,c.useState)(null);return(0,c.useEffect)(()=>{let o=!0;return Promise.resolve((0,t.getResolvedOrResolveTheme)(n)).then(t=>{var c;o&&l({themeName:n,colors:(c=(0,s.themeToTreeStyles)(t),Object.fromEntries(Object.entries(c).filter(([t])=>t.startsWith("--trees-theme-git-"))))})},()=>{o&&l({themeName:n,colors:{}})}),()=>{o=!1}},[n]),o?.themeName===n?o.colors:{}},b=(t,s)=>void 0===s?t.flatMap(({path:t,status:s})=>null===s?[]:[{path:t,status:s}]):Object.entries(s).map(([t,s])=>({path:t,status:s})),w=({additions:t,deletions:s})=>{if(null==t||null==s)return null;const n=`+${String(t)}`,o=`\u2212${String(s)}`;return{text:`${n} ${o}`,title:`${String(t)} added, ${String(s)} removed`,parts:[{text:n,color:"var(--trees-theme-git-added-fg, var(--tree-success))"},{text:" "},{text:o,color:"var(--trees-theme-git-deleted-fg, var(--tree-danger))"}]}},x=(t,{viewedPaths:s,filesByPath:n})=>{const o=n.get(t);return void 0!==o&&(0,h.isOmittedFile)(o)?{text:"left out",title:void 0===o.omitted?"Not in the diff: listed above it":`Not in the diff: ${(0,v.omissionLabel)(o.omitted)}`}:s.has(t)?{text:"viewed",title:"Marked viewed"}:void 0===o?null:w(o)},j=(t,s,n)=>{if(null!==t&&void 0!==s){n.current=!0;try{for(const n of t.getSelectedPaths())n!==s&&t.getItem(n)?.deselect();if(null===s)return;const n=t.getItem(s);null===n||n.isSelected()||n.select()}finally{n.current=!1}}},y=t=>{if(!t.isSearchOpen())return void t.openSearch();const s=t.getFileTreeContainer()?.shadowRoot?.querySelector("[data-file-tree-search-input]");s?.focus(),s?.select()};var $=function({files:t,viewedPaths:s,theme:v,onFilePress:h,selectedPath:w,listing:$=!1,listingStatuses:F,goToFileShortcut:T=!1}){const E=(0,o.useCurrentMode)(),O=P((0,l.diffThemeNames)(v)[E]),R=t.map(({path:t})=>t),k=R.join("\n"),M=[...t.map(({path:t,status:s,omitted:n,additions:o,deletions:c})=>`${s??"omitted"} ${n??""} ${String(o)} ${String(c)} ${t}`),...s,...Object.entries(F??{}).map(([t,s])=>`${s} ${t}`)].join("\n"),N=new Set(s),L=new Map(t.map(t=>[t.path,t])),_=(0,c.useRef)({files:t,listingStatuses:F,onFilePress:h,viewedPaths:N,filesByPath:L,selectedPath:w}),q=(0,c.useRef)(new Set(R)),B=(0,c.useRef)(null),C=(0,c.useRef)(k),D=(0,c.useRef)(!1),{model:G}=(0,n.useFileTree)({paths:R,flattenEmptyDirectories:!0,initialExpansion:$?"closed":"open",density:"compact",icons:{set:"standard",colored:!1},search:!0,fileTreeSearchMode:"hide-non-matches",labels:T?{searchPlaceholder:`Go to file (${u.goToFileShortcutLabel})`}:void 0,gitStatus:b(t,F),renderRowDecoration:({item:t})=>"file"!==t.kind||$?null:x(t.path,_.current),onSelectionChange:t=>{if(D.current)return;const s=t.at(-1);if(void 0!==_.current.selectedPath){const t=void 0!==s&&q.current.has(s)?s:null;return null!==t&&t!==_.current.selectedPath&&_.current.onFilePress(t),void queueMicrotask(()=>{j(B.current,t??_.current.selectedPath,D)})}void 0!==s&&q.current.has(s)&&(_.current.onFilePress(s),queueMicrotask(()=>{B.current?.getItem(s)?.deselect()}))}});return(0,c.useEffect)(()=>{B.current=G,_.current={files:t,listingStatuses:F,onFilePress:h,viewedPaths:N,filesByPath:L,selectedPath:w},q.current=new Set(R)}),(0,c.useEffect)(()=>{const t=_.current.files;C.current!==k&&(C.current=k,G.resetPaths(t.map(({path:t})=>t))),G.setGitStatus(b(t,_.current.listingStatuses)),j(G,_.current.selectedPath,D)},[G,k,M]),(0,c.useEffect)(()=>{j(G,w,D)},[G,w]),(0,c.useEffect)(()=>{if(!T)return;const t=t=>{(0,u.isGoToFileShortcut)(t)&&(t.preventDefault(),t.stopPropagation(),y(G))};return window.addEventListener("keydown",t,!0),()=>{window.removeEventListener("keydown",t,!0)}},[G,T]),(0,f.jsx)(S,{accent:"brand",children:(0,f.jsx)(S,{accent:"success",children:(0,f.jsx)(S,{accent:"info",children:(0,f.jsx)(S,{accent:"warning",children:(0,f.jsx)(S,{accent:"danger",children:(0,f.jsx)(o.AccentScope,{accent:"neutral",children:(0,f.jsx)(n.FileTree,{model:G,style:p(E,O)})})})})})})})}},1230,[1301,1234,1295,64,15,1302,1164,991,1023,7]);
|
|
2
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONTEXT_MENU_SLOT_NAME",{enumerable:!0,get:function(){return E.CONTEXT_MENU_SLOT_NAME}}),Object.defineProperty(e,"CONTEXT_MENU_TRIGGER_TYPE",{enumerable:!0,get:function(){return E.CONTEXT_MENU_TRIGGER_TYPE}}),Object.defineProperty(e,"DEFAULT_FILE_TREE_LABELS",{enumerable:!0,get:function(){return _.DEFAULT_FILE_TREE_LABELS}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_ITEM_HEIGHT",{enumerable:!0,get:function(){return o.FILE_TREE_DEFAULT_ITEM_HEIGHT}}),Object.defineProperty(e,"FILE_TREE_DENSITY_PRESETS",{enumerable:!0,get:function(){return R.FILE_TREE_DENSITY_PRESETS}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_STYLE_ATTRIBUTE}}),Object.defineProperty(e,"FILE_TREE_TAG_NAME",{enumerable:!0,get:function(){return E.FILE_TREE_TAG_NAME}}),Object.defineProperty(e,"FILE_TREE_UNSAFE_CSS_ATTRIBUTE",{enumerable:!0,get:function(){return E.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}}),Object.defineProperty(e,"FLATTENED_PREFIX",{enumerable:!0,get:function(){return E.FLATTENED_PREFIX}}),Object.defineProperty(e,"FileTree",{enumerable:!0,get:function(){return c.FileTree}}),Object.defineProperty(e,"HEADER_SLOT_NAME",{enumerable:!0,get:function(){return E.HEADER_SLOT_NAME}}),Object.defineProperty(e,"createFileTreeIconResolver",{enumerable:!0,get:function(){return n.createFileTreeIconResolver}}),Object.defineProperty(e,"getBuiltInSpriteSheet",{enumerable:!0,get:function(){return t.getBuiltInSpriteSheet}}),Object.defineProperty(e,"preloadFileTree",{enumerable:!0,get:function(){return c.preloadFileTree}}),Object.defineProperty(e,"prepareFileTreeInput",{enumerable:!0,get:function(){return u.prepareFileTreeInput}}),Object.defineProperty(e,"preparePresortedFileTreeInput",{enumerable:!0,get:function(){return u.preparePresortedFileTreeInput}}),Object.defineProperty(e,"serializeFileTreeSsrPayload",{enumerable:!0,get:function(){return c.serializeFileTreeSsrPayload}}),Object.defineProperty(e,"themeToTreeStyles",{enumerable:!0,get:function(){return T.themeToTreeStyles}});var t=r(d[0]),E=r(d[1]),n=r(d[2]),T=r(d[3]),_=r(d[4]),u=r(d[5]),R=r(d[6]),o=r(d[7]),c=r(d[8])},1234,[1235,1236,1237,1239,1240,1241,1258,1259,1260]);
|
|
3
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBuiltInFileIconName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getBuiltInSpriteSheet",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isColoredBuiltInIconSet",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"resolveBuiltInFileIconToken",{enumerable:!0,get:function(){return z}});const l="<svg data-icon-sprite aria-hidden=\"true\" width=\"0\" height=\"0\">\n <symbol id=\"file-tree-icon-chevron\" viewBox=\"0 0 16 16\">\n <path d=\"M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z\" fill=\"currentcolor\"/>\n </symbol>\n <symbol id=\"file-tree-icon-dot\" viewBox=\"0 0 6 6\">\n <circle cx=\"3\" cy=\"3\" r=\"3\" />\n </symbol>\n <symbol id=\"file-tree-icon-file\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n </symbol>\n <symbol id=\"file-tree-icon-lock\" viewBox=\"0 0 16 16\">\n <path fill=\"currentcolor\" d=\"M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10\" />\n </symbol>\n <symbol id=\"file-tree-icon-ellipsis\" viewBox=\"0 0 16 16\">\n <path d=\"M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0\" />\n </symbol>\n</svg>",t=["<symbol id=\"file-tree-builtin-astro\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z\" class=\"bg\" opacity=\".6\"/>\n <path fill=\"currentColor\" d=\"M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-babel\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-biome\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-bootstrap\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z\" class=\"bg\" clip-rule=\"evenodd\" opacity=\".2\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z\" class=\"fg\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-browserslist\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21\"/>\n <path fill=\"currentColor\" d=\"M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13\"/>\n</symbol>","<symbol id=\"file-tree-builtin-bun\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-claude\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-docker\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z\"/>\n <path fill=\"currentColor\" d=\"M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13\" opacity=\".5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-eslint\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-graphql\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-nextjs\" viewBox=\"0 0 16 16\">\n <defs>\n <linearGradient id=\"a\" x1=\"4.522\" x2=\"14\" y1=\"3.943\" y2=\"16\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"currentColor\"/>\n <stop offset=\"1\" stop-color=\"currentColor\" stop-opacity=\"0\"/>\n </linearGradient>\n </defs>\n <path fill=\"currentColor\" d=\"M3 2h1.522v9.09H3z\"/>\n <path fill=\"url(#a)\" d=\"M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z\"/>\n <path fill=\"currentColor\" d=\"M12.172 2h-1.508v9.094h1.508z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-npm\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z\" class=\"vector\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.5 13H13V3H3v10h5V5.5h2.5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-oxc\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-postcss\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8\"/>\n</symbol>","<symbol id=\"file-tree-builtin-prettier\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z\"/>\n <path fill=\"currentColor\" d=\"M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z\" opacity=\".8\"/>\n <path fill=\"currentColor\" d=\"M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z\" opacity=\".6\"/>\n <path fill=\"currentColor\" d=\"M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z\" opacity=\".4\"/>\n</symbol>","<symbol id=\"file-tree-builtin-react\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-sass\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-stylelint\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1\"/>\n <path fill=\"currentColor\" d=\"M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svelte\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svg\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z\"/>\n <path fill=\"currentColor\" d=\"M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1\" opacity=\".5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-svgo\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-tailwind\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-terraform\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vite\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vscode\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z\" opacity=\".75\"/>\n <path fill=\"currentColor\" d=\"M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z\" opacity=\".65\"/>\n <path fill=\"currentColor\" d=\"M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-vue\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z\" opacity=\".5\"/>\n <path fill=\"currentColor\" d=\"M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-wasm\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z\" class=\"subtract\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-webpack\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-yml\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-zig\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z\"/>\n <path fill=\"currentColor\" d=\"M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z\"/>\n</symbol>"];function o(l,t){return 0===t.length?l:l.replace("</svg>",`\n ${t.join("\n ")}\n</svg>`)}const n=o(l,["<symbol id=\"file-tree-builtin-bash\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0\" class=\"fg-stroke\"/>\n</symbol>","<symbol id=\"file-tree-builtin-c\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-cpp\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-css\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7\" class=\"vector\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6\"/>\n</symbol>","<symbol id=\"file-tree-builtin-database\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683\"/>\n <path fill=\"currentColor\" d=\"M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z\"/>\n <path fill=\"currentColor\" d=\"M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1\"/>\n</symbol>","<symbol id=\"file-tree-builtin-default\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-font\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-git\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27\"/>\n</symbol>","<symbol id=\"file-tree-builtin-go\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-html\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-image\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z\" opacity=\".3\"/>\n <path fill=\"currentColor\" d=\"M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0\"/>\n</symbol>","<symbol id=\"file-tree-builtin-javascript\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8\"/>\n</symbol>","<symbol id=\"file-tree-builtin-json\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5\"/>\n</symbol>","<symbol id=\"file-tree-builtin-markdown\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-mcp\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82\"/>\n <path fill=\"currentColor\" d=\"M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16\"/>\n</symbol>","<symbol id=\"file-tree-builtin-python\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65\" class=\"bg\" opacity=\".8\"/>\n <path fill=\"currentColor\" d=\"M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-ruby\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-rust\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z\" clip-rule=\"evenodd\"/>\n</symbol>","<symbol id=\"file-tree-builtin-swift\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7\"/>\n</symbol>","<symbol id=\"file-tree-builtin-table\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z\" class=\"bg\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\" class=\"fg\"/>\n</symbol>","<symbol id=\"file-tree-builtin-text\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z\" class=\"bg\" clip-rule=\"evenodd\" opacity=\".4\"/>\n <path fill=\"currentColor\" d=\"M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-typescript\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7\" class=\"bg\" opacity=\".2\"/>\n <path fill=\"currentColor\" d=\"M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z\"/>\n</symbol>","<symbol id=\"file-tree-builtin-zip\" viewBox=\"0 0 16 16\">\n <path fill=\"currentColor\" d=\"M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z\" class=\"bg\" opacity=\".5\"/>\n <path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z\" class=\"fg\" clip-rule=\"evenodd\"/>\n</symbol>"]),s={minimal:l,standard:n,complete:o(n,t)},c={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},p={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},h={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},b=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),v=new Set(["complete"]);function f(l){return s["none"===l?"minimal":l]}function u(l){return`file-tree-builtin-${l}`}function y(l){return"none"!==l&&v.has(l)}function z(l,t,o){if("minimal"===l||"none"===l)return;const n="complete"===l,s=t.toLowerCase(),v=c[s];if(null!=v&&(n||b.has(v)))return v;for(const l of o){if(n){const t=h[l];if(null!=t)return t}const t=p[l];if(null!=t&&(n||b.has(t)))return t}return"default"}},1235,[]);
|
|
4
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CONTEXT_MENU_SLOT_NAME",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"CONTEXT_MENU_TRIGGER_TYPE",{enumerable:!0,get:function(){return R}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FILE_TREE_STYLE_ATTRIBUTE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FILE_TREE_TAG_NAME",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FILE_TREE_UNSAFE_CSS_ATTRIBUTE",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"FLATTENED_PREFIX",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HEADER_SLOT_NAME",{enumerable:!0,get:function(){return o}});const t="file-tree-container",n="data-file-tree-style",E="data-file-tree-unsafe-css",u="data-file-tree-scrollbar-measure",_="data-file-tree-scrollbar-gutter-measured",T="--trees-scrollbar-gutter-measured",c="f::",o="header",f="context-menu",R="context-menu-trigger"},1236,[]);
|
|
5
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createFileTreeIconResolver",{enumerable:!0,get:function(){return u}});var n=r(d[0]),t=r(d[1]);const o=n=>n.trim().toLowerCase(),s=n=>n.split("/").at(-1)??n,l=n=>{const t=n.toLowerCase().split("."),o=[];for(let n=1;n<t.length;n+=1)o.push(t.slice(n).join("."));return o};function c(n,t){return"string"==typeof n?{name:n,remappedFrom:t}:Object.assign({},n,{remappedFrom:t})}function u(u){const f=(0,t.normalizeFileTreeIcons)(u),p=f.remap,b=new Map;for(const[n,t]of Object.entries(f.byFileName??{}))b.set(n.toLowerCase(),t);const F=new Map;for(const[n,t]of Object.entries(f.byFileExtension??{}))F.set(o(n),t);const j=Object.entries(f.byFileNameContains??{}).map(([n,t])=>[n.toLowerCase(),t]);return{resolveIcon:(t,o)=>{if("file-tree-icon-file"===t&&null!=o){const u=s(o),w=u.toLowerCase(),I=b.get(w);if(null!=I)return c(I,t);for(const[n,o]of j)if(w.includes(n))return c(o,t);const y=l(u);for(const n of y){const o=F.get(n);if(null!=o)return c(o,t)}const C=(0,n.resolveBuiltInFileIconToken)(f.set,u,y);if(null!=C&&"none"!==f.set){if("default"===C){const n=p?.[t];if(null!=n)return c(n,t)}return{name:(0,n.getBuiltInFileIconName)(C),remappedFrom:t,token:C}}}const u=p?.[t];return null==u?{name:t}:c(u,t)}}}},1237,[1235,1238]);
|
|
6
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return null!=n.spriteSheet||null!=n.remap||null!=n.byFileName||null!=n.byFileExtension||null!=n.byFileNameContains}function t(t){return null==t?{set:"complete",colored:!0}:"string"==typeof t?{set:t,colored:!0}:Object.assign({},t,{set:t.set??(n(t)?"none":"complete"),colored:t.colored??!0})}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeFileTreeIcons",{enumerable:!0,get:function(){return t}})},1238,[]);
|
|
7
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"themeToTreeStyles",{enumerable:!0,get:function(){return o}});var t=r(d[0]);function o(o){const l=(0,t.normalizeThemeColors)(o).colors??{},n="dark"===o.type,s=l["sideBar.background"],c=l["sideBar.foreground"],u=l["sideBarSectionHeader.foreground"],b=l["list.activeSelectionForeground"],h=l["list.hoverBackground"],f=l["list.focusOutline"],k=l["input.background"],v=l["sideBar.border"],p=l["input.border"],B=l["scrollbarSlider.background"],S=l["gitDecoration.addedResourceForeground"],C=l["gitDecoration.modifiedResourceForeground"],y=l["gitDecoration.deletedResourceForeground"],F=t.colorUtils.relativeLuminance(s),_=null!=F?F<.5:n,D=l["list.activeSelectionBackground"],L=l["list.focusBackground"],O=l["editor.selectionBackground"],R=s?.toLowerCase(),T={colorScheme:n?"dark":"light",backgroundColor:s??"",color:c??"",borderColor:"var(--trees-theme-sidebar-border, light-dark(oklch(0% 0 0 / 0.15), oklch(100% 0 0 / 0.15)))","--trees-theme-sidebar-bg":s??"","--trees-theme-sidebar-fg":c??"","--trees-theme-sidebar-header-fg":u??"","--trees-theme-list-active-selection-fg":b??"","--trees-theme-list-hover-bg":h??(_?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"),"--trees-theme-list-active-selection-bg":(null!=D&&D.toLowerCase()===R?L??O:D??O)??"transparent","--trees-theme-focus-ring":f??c??"","--trees-theme-input-bg":k??""};return null!=v&&""!==v&&(T["--trees-theme-sidebar-border"]=v),null!=p&&""!==p&&(T["--trees-theme-input-border"]=p),null!=B&&""!==B&&(T["--trees-theme-scrollbar-thumb"]=B),null!=S&&""!==S&&(T["--trees-theme-git-added-fg"]=S),null!=C&&""!==C&&(T["--trees-theme-git-modified-fg"]=C),null!=y&&""!==y&&(T["--trees-theme-git-deleted-fg"]=y),T}},1239,[1303]);
|
|
8
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_FILE_TREE_LABELS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"resolveFileTreeLabels",{enumerable:!0,get:function(){return n}});const t=Object.freeze({searchPlaceholder:"Search\u2026",contextMenuTrigger:"Options",renameItem:t=>`Rename ${t}`,gitStatusTitles:Object.freeze({added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"}),containsGitStatusTitle:"Contains git status items"});function n(n){if(null==n)return t;const s=t,u=n.gitStatusTitles;return{searchPlaceholder:n.searchPlaceholder??s.searchPlaceholder,contextMenuTrigger:n.contextMenuTrigger??s.contextMenuTrigger,renameItem:n.renameItem??s.renameItem,gitStatusTitles:null==u?s.gitStatusTitles:{added:u.added??s.gitStatusTitles.added,deleted:u.deleted??s.gitStatusTitles.deleted,ignored:u.ignored??s.gitStatusTitles.ignored,modified:u.modified??s.gitStatusTitles.modified,renamed:u.renamed??s.gitStatusTitles.renamed,untracked:u.untracked??s.gitStatusTitles.untracked},containsGitStatusTitle:n.containsGitStatusTitle??s.containsGitStatusTitle}}},1240,[]);
|
|
9
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"prepareFileTreeInput",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"preparePresortedFileTreeInput",{enumerable:!0,get:function(){return u}});var t=r(d[0]);function n(n,u={}){return t.PathStore.prepareInput(n,u)}function u(n){return t.PathStore.preparePresortedInput(n)}},1241,[1242]);
|
|
10
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PathStore",{enumerable:!0,get:function(){return I}});var t=r(d[0]),s=r(d[1]),i=r(d[2]),n=r(d[3]),o=r(d[4]),h=r(d[5]),c=r(d[6]),l=r(d[7]),u=r(d[8]),p=r(d[9]),f=r(d[10]),b=r(d[11]);function P(i){const{directories:n,nodes:o,options:h,rootId:c,presortedDirectoryNodeIds:l}=i.snapshot,u=!0===h.flattenEmptyDirectories,p=i=>{const h=o[i];if(null==h||!(0,s.isDirectoryNode)(h))return;const c=n.get(i);if(null==c)throw new Error(`Unknown directory child index for node ${String(i)}`);const l=c.childIds,p=l.length;let f,b=0,P=0;for(let t=0;t<p;t++){const s=l[t];if(null==s)continue;const i=o[s];b+=i.subtreeNodeCount,P+=i.visibleSubtreeCount}if(c.totalChildSubtreeNodeCount=b,c.totalChildVisibleSubtreeCount=P,p>=128&&(0,t.rebuildVisibleChildChunks)(o,c),h.subtreeNodeCount=1+b,u&&1===p){const t=o[l[0]];f=null!=t&&(0,s.isDirectoryNode)(t)?P:1+P}else f=1+P;h.visibleSubtreeCount=f};if(null!=l)for(let t=l.length-1;t>=0;t--)p(l[t]);else for(let t=o.length-1;t>=1;t--)p(t);const f=o[c],b=n.get(c);if(null==f||null==b)return;const P=b.childIds;let C=0,v=0;for(let t=0;t<P.length;t++){const s=P[t];if(null==s)continue;const i=o[s];C+=i.subtreeNodeCount,v+=i.visibleSubtreeCount}b.totalChildSubtreeNodeCount=C,b.totalChildVisibleSubtreeCount=v,(0,t.rebuildVisibleChildChunks)(o,b),f.subtreeNodeCount=1+C,f.visibleSubtreeCount=v}function C(s){const{directories:i,nodes:n,rootId:o}=s.snapshot,h=(0,b.buildSoaNodeStore)(s.snapshot);(0,b.sweepOpenVisibleCountsSoa)(h);const c=h.subtreeNodeCount,l=h.visibleSubtreeCount;for(let t=0;t<n.length;t+=1){const s=n[t];null!=s&&(s.subtreeNodeCount=c[t],s.visibleSubtreeCount=l[t])}for(const[s,h]of i){const i=h.childIds,c=i.length;let l=0,u=0;for(let t=0;t<c;t++){const s=i[t];if(null==s)continue;const o=n[s];l+=o.subtreeNodeCount,u+=o.visibleSubtreeCount}h.totalChildSubtreeNodeCount=l,h.totalChildVisibleSubtreeCount=u,(s===o||c>=128)&&(0,t.rebuildVisibleChildChunks)(n,h)}}function v(t){return"open"===t.initialExpansion&&(null==t.initialExpandedPaths||0===t.initialExpandedPaths.length)}var I=class t{#t;constructor(t={}){const s=(0,i.getBenchmarkInstrumentation)(t),n=(0,i.withBenchmarkPhase)(s,"store.builder.create",()=>new o.PathStoreBuilder(t));if(null!=t.preparedInput){const s=(0,o.getPreparedInputPresortedPaths)(t.preparedInput);null!=s?n.appendPresortedPaths(s,(0,o.getPreparedInputPresortedPathsContainDirectories)(t.preparedInput)):n.appendPreparedPaths((0,o.getPreparedInputEntries)(t.preparedInput),!1)}else{const h=t.paths??[];!0===t.presorted?n.appendPaths(h):n.appendPreparedPaths((0,i.withBenchmarkPhase)(s,"store.preparePathEntries",()=>(0,o.preparePathEntries)(h,t)))}const c=(0,i.withBenchmarkPhase)(s,"store.builder.finish",()=>n.finish({skipSubtreeCountPass:!0})),l=(0,i.withBenchmarkPhase)(s,"store.state.detectAllDirectoriesExpanded",()=>"closed"===(t.initialExpansion??"closed")&&n.didMatchAllInitialExpandedPaths());this.#t=(0,i.withBenchmarkPhase)(s,"store.state.create",()=>(0,h.createPathStoreState)(c,l?"open":t.initialExpansion??"closed",s)),l&&(this.#t.collapseNewDirectoriesByDefault=!0);const p=l?this.#t.snapshot.directories.size-1:(0,i.withBenchmarkPhase)(s,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(t.initialExpandedPaths));l||v(t)||"closed"===(t.initialExpansion??"closed")&&p===this.#t.snapshot.directories.size-1||(t.initialExpandedPaths?.length??0)>0&&(0,i.withBenchmarkPhase)(s,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?!0===t.useSoaCountSweep?(0,i.withBenchmarkPhase)(s,"store.state.initializeOpenVisibleCountsViaSoa",()=>C(this.#t)):(0,i.withBenchmarkPhase)(s,"store.state.initializeOpenVisibleCounts",()=>P(this.#t)):(0,i.withBenchmarkPhase)(s,"store.state.recomputeCounts",()=>(0,u.recomputeCountsRecursive)(this.#t,this.#t.snapshot.rootId))}static preparePaths(t,s={}){return(0,o.preparePaths)(t,s)}static prepareInput(t,s={}){return(0,o.prepareInput)(t,s)}static preparePresortedInput(t){return(0,o.preparePresortedInput)(t)}list(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.list",()=>(0,u.listPaths)(this.#t,t))}add(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.add",()=>{const s=(0,f.getVisibleCount)(this.#t);(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,(0,u.addPath)(this.#t,t)))})}remove(t,s={}){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.remove",()=>{const i=(0,f.getVisibleCount)(this.#t);(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,u.removePath)(this.#t,t,s)))})}move(t,s,n={}){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.move",()=>{const i=(0,f.getVisibleCount)(this.#t),o=(0,u.movePath)(this.#t,t,s,n);null!=o&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,o))})}batch(t){(0,c.batchEvents)(this.#t,()=>{if("function"!=typeof t)for(const s of t)switch(s.type){case"add":this.add(s.path);break;case"remove":this.remove(s.path,{recursive:s.recursive});break;case"move":this.move(s.from,s.to,{collision:s.collision})}else t(this)})}getVisibleCount(){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleCount",()=>(0,f.getVisibleCount)(this.#t))}getVisibleSlice(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleSlice",()=>(0,f.getVisibleSlice)(this.#t,t,s))}getVisibleRowContext(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleRowContext",()=>(0,f.getVisibleRowContext)(this.#t,t))}getVisibleTreeProjection(){return(0,f.getVisibleTreeProjection)(this.#t)}getVisibleTreeProjectionData(t){return(0,f.getVisibleTreeProjectionData)(this.#t,t)}getVisibleIndex(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getVisibleIndex",()=>(0,f.getVisibleIndexByPath)(this.#t,t))}getPathInfo(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.getPathInfo",()=>{const i=(0,u.findNodeId)(this.#t,t);if(null==i)return null;const n=(0,u.requireNode)(this.#t,i);return{depth:(0,s.getNodeDepth)(n),kind:(0,s.isDirectoryNode)(n)?"directory":"file",path:(0,u.materializeNodePath)(this.#t,i)}})}isExpanded(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.isExpanded",()=>{const s=this.requireDirectoryNodeId(t),i=(0,u.requireNode)(this.#t,s);return(0,h.isDirectoryExpanded)(this.#t,s,i)})}expand(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.expand",()=>{const s=(0,f.getVisibleCount)(this.#t),i=(0,f.expandPath)(this.#t,t);null!=i&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,i))})}collapse(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.collapse",()=>{const s=(0,f.getVisibleCount)(this.#t),i=(0,f.collapsePath)(this.#t,t);null!=i&&(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,i))})}on(t,s){return(0,c.subscribe)(this.#t,t,s)}getDirectoryLoadState(t){const s=this.requireDirectoryNodeId(t);return(0,h.getDirectoryLoadState)(this.#t,s)}markDirectoryUnloaded(t){(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.markDirectoryUnloaded",()=>{const s=this.requireDirectoryNodeId(t);if((0,u.getDirectoryIndex)(this.#t,s).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${t}"`);const i=(0,f.getVisibleCount)(this.#t);(0,h.markDirectoryUnloadedState)(this.#t,s),(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createMarkDirectoryUnloadedEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],path:t,projectionChanged:this.isDirectoryProjectionVisible(s)})))})}beginChildLoad(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.beginChildLoad",()=>{const s=this.requireDirectoryNodeId(t),i=(0,f.getVisibleCount)(this.#t),n=(0,h.beginDirectoryLoad)(this.#t,s);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createBeginChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],attemptId:n.attemptId,path:t,projectionChanged:this.isDirectoryProjectionVisible(s),reused:n.reused}))),n})}applyChildPatch(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.applyChildPatch",()=>{const i=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==i||"loading"!==(0,h.getDirectoryLoadState)(this.#t,i)||!(0,h.isDirectoryLoadAttemptCurrent)(this.#t,i,t.attemptId))return!1;const n=(0,u.materializeNodePath)(this.#t,i);this.validateChildPatch(n,s);const o=(0,f.getVisibleCount)(this.#t),l=[];for(const t of s.operations){E(n,t);const s=(0,f.getVisibleCount)(this.#t);switch(t.type){case"add":l.push((0,c.finalizeEvent)(this.#t,s,(0,u.addPath)(this.#t,t.path)));break;case"remove":l.push((0,c.finalizeEvent)(this.#t,s,(0,u.removePath)(this.#t,t.path,{recursive:t.recursive})));break;case"move":{const i=(0,u.movePath)(this.#t,t.from,t.to,{collision:t.collision});null!=i&&l.push((0,c.finalizeEvent)(this.#t,s,i));break}}}const p=l.some(t=>t.projectionChanged)||this.isDirectoryProjectionVisible(i);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,o,(0,c.createApplyChildPatchEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,i),affectedNodeIds:[i],attemptId:t.attemptId,childEvents:l,path:(0,u.materializeNodePath)(this.#t,i),projectionChanged:p}))),!0})}completeChildLoad(t){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.completeChildLoad",()=>{const s=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==s)return!1;const i=(0,f.getVisibleCount)(this.#t),n=(0,h.completeDirectoryLoad)(this.#t,s,t.attemptId);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,i,(0,c.createCompleteChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,s),affectedNodeIds:[s],attemptId:t.attemptId,path:(0,u.materializeNodePath)(this.#t,s),projectionChanged:this.isDirectoryProjectionVisible(s),stale:!n}))),n})}failChildLoad(t,s){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.failChildLoad",()=>{const i=this.resolveActiveDirectoryNodeId(t.nodeId);if(null==i)return!1;const n=(0,f.getVisibleCount)(this.#t),o=(0,h.failDirectoryLoad)(this.#t,i,t.attemptId,s);return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,n,(0,c.createFailChildLoadEvent)({affectedAncestorIds:(0,u.collectAncestorIds)(this.#t,i),affectedNodeIds:[i],attemptId:t.attemptId,errorMessage:s,path:(0,u.materializeNodePath)(this.#t,i),projectionChanged:this.isDirectoryProjectionVisible(i),stale:!o}))),o})}cleanup(t={}){return(0,i.withBenchmarkPhase)(this.#t.instrumentation,"store.cleanup",()=>{if(this.#t.transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if((0,p.hasActiveCleanupBlockingLoads)(this.#t))throw new Error("Cleanup cannot run while directory loads are active.");const s=(0,f.getVisibleCount)(this.#t),i=(0,p.cleanupPathStoreState)(this.#t,t.mode??"stable");return(0,c.recordEvent)(this.#t,(0,c.finalizeEvent)(this.#t,s,(0,c.createCleanupEvent)(Object.assign({},i,{affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:!1===i.idsPreserved})))),i})}getNodeCount(){return this.#t.activeNodeCount}initializeExpandedPaths(t){if(null==t||0===t.length)return 0;let i=0;const o=[],c=[];let l=0,p=null;const f=this.#t.snapshot.segmentTable,b=f.valueById,P=this.#t.snapshot.nodes,C=new Map;for(const v of t){null!=p&&v<p&&(p=null,l=0,o.length=0,c.length=0);const t=v.length>0&&47===v.charCodeAt(v.length-1)?v.length-1:v.length;if(0===t){p=v,l=t,o.length=0,c.length=0;continue}let I=0,E=0;if(null!=p){const s=Math.min(t,l);let i=!0;for(let t=0;t<s;t+=1){const s=v.charCodeAt(t);if(s!==p.charCodeAt(t)){i=!1;break}47===s&&(I+=1,E=t+1)}i&&(s===l&&t>s&&47===v.charCodeAt(s)?(I+=1,E=s+1):s===t&&l>s&&47===p.charCodeAt(s)&&(I+=1,E=t+1)),I=Math.min(I,c.length)}let y=0===I?this.#t.snapshot.rootId:c[I-1]??this.#t.snapshot.rootId,w=I,k=!0,N=E;for(;N<=t;){const i=v.indexOf("/",N),h=-1===i||i>t?t:i,l=v.slice(N,h),p=(0,u.getDirectoryIndex)(this.#t,y).childIds,E=w===I?o[w]??0:0;let D,V=E;const S=C.get(l)??(0,n.createSegmentSortKey)(l);C.set(l,S);const x=(t,s)=>{for(V=t;V<s;V+=1){const t=p[V],s=P[t],i=b[s.nameId];if(i===l)return D=t,!0;const o=(0,n.compareSegmentSortKeys)((0,n.getSegmentSortKey)(f,s.nameId),S);if(o>0||0===o&&i>l)return!1}return!1};if(!x(E,p.length)&&E>0&&x(0,E),void 0===D){k=!1;break}const B=(0,u.requireNode)(this.#t,D);if(!(0,s.isDirectoryNode)(B)){k=!1;break}if(o[w]=V,c[w]=D,y=D,w+=1,h===t)break;N=h+1}if(p=v,l=t,o.length=w,c.length=w,k)for(let t=I;t<w;t+=1){const s=c[t];if(null==s)continue;const n=(0,u.requireNode)(this.#t,s);(0,h.isDirectoryExpanded)(this.#t,s,n)||((0,h.setDirectoryExpanded)(this.#t,s,!0,n),i+=1)}else p=null,l=0,o.length=0,c.length=0}return i}hasAllDirectoriesExpanded(){for(const t of this.#t.snapshot.directories.keys()){if(t===this.#t.snapshot.rootId)continue;const s=(0,u.requireNode)(this.#t,t);if(!(0,h.isDirectoryExpanded)(this.#t,t,s))return!1}return!0}requireDirectoryNodeId(t){const i=(0,u.findNodeId)(this.#t,t);if(null==i)throw new Error(`Path does not exist: "${t}"`);const n=(0,u.requireNode)(this.#t,i);if(!(0,s.isDirectoryNode)(n))throw new Error(`Path is not a directory: "${t}"`);return i}resolveActiveDirectoryNodeId(t){try{const i=(0,u.requireNode)(this.#t,t);if(!(0,s.isDirectoryNode)(i))throw new Error(`Node is not a directory: ${String(t)}`);return t}catch{return null}}isDirectoryProjectionVisible(t){let s=t;for(;s!==this.#t.snapshot.rootId;){const t=(0,u.requireNode)(this.#t,s).parentId;if(t!==this.#t.snapshot.rootId){const i=(0,u.requireNode)(this.#t,t),n=(0,l.getFlattenedChildDirectoryId)(this.#t,t);if(!(0,h.isDirectoryExpanded)(this.#t,t,i)&&n!==s)return!1}s=t}return!0}validateChildPatch(s,i){new t({paths:this.list(s),presorted:!0,sort:this.#t.snapshot.options.sort}).batch(i.operations)}};function E(t,s){switch(s.type){case"add":case"remove":if(!s.path.startsWith(t)||s.path===t)throw new Error(`Child patch operation must stay within ${t}: "${s.path}"`);break;case"move":if(!s.from.startsWith(t)||!s.to.startsWith(t)||s.from===t||s.to===t)throw new Error(`Child patch move must stay within ${t}: "${s.from}" -> "${s.to}"`)}}},1242,[1243,1244,1245,1246,1247,1251,1252,1253,1254,1255,1256,1257]);
|
|
11
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"appendChildReference",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"applyChildAggregateDelta",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"createDirectoryChildIndex",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createPresortedDirectoryChildIndex",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"ensureChildIdByNameId",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"ensureChildPositions",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getVisibleChildPrefixCount",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"rebuildDirectoryChildAggregates",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"rebuildVisibleChildChunks",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"selectChildIndexByVisibleIndex",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"updateChildPositionsFrom",{enumerable:!0,get:function(){return h}});const n=5,i=32,t=128;function l(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function o(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function u(n,i){if(null!=i.childIdByNameId)return i.childIdByNameId;const t=new Map;for(const l of i.childIds){const i=n[l];null!=i&&t.set(i.nameId,l)}return i.childIdByNameId=t,t}function c(n){if(null!=n.childPositionById)return n.childPositionById;const i=new Map;for(let t=0;t<n.childIds.length;t++){const l=n.childIds[t];null!=l&&i.set(l,t)}return n.childPositionById=i,i}function s(n,i){null!=n.childPositionById&&n.childPositionById.set(i,n.childIds.length),n.childIds.push(i)}function h(n,i){if(null!=n.childPositionById)for(let t=i;t<n.childIds.length;t++){const i=n.childIds[t];null!=i&&n.childPositionById.set(i,t)}}function b(n,i){let t=0,l=0;for(const o of i.childIds){const i=n[o];null!=i&&(t+=i.subtreeNodeCount,l+=i.visibleSubtreeCount)}i.totalChildSubtreeNodeCount=t,i.totalChildVisibleSubtreeCount=l,y(n,i)}function f(i,t,l,o){if(i.totalChildSubtreeNodeCount+=l,i.totalChildVisibleSubtreeCount+=o,null==i.childVisibleChunkSums||0===o)return;const u=c(i).get(t);if(void 0===u)return;const s=u>>n;i.childVisibleChunkSums[s]+=o}function I(n,t,l){const o=t.childVisibleChunkSums;if(null!=o){let u=l,c=0;for(const s of o){if(u<s){const i=S(n,t,c,u);return Object.assign({},i,{childVisibleIndex:l-i.localVisibleIndex})}u-=s,c+=i}throw new Error(`Visible child index ${String(l)} is out of range`)}let u=l;for(let i=0;i<t.childIds.length;i++){const o=t.childIds[i];if(null==o)continue;const c=n[o];if(null!=c){if(u<c.visibleSubtreeCount)return{childIndex:i,childVisibleIndex:l-u,localVisibleIndex:u};u-=c.visibleSubtreeCount}}throw new Error(`Visible child index ${String(l)} is out of range`)}function C(i,t,l){let o=0;const u=t.childVisibleChunkSums;let c=0;if(null!=u){const i=l>>n;for(let n=0;n<i;n+=1)o+=u[n]??0;c=i<<n}for(let n=c;n<l;n+=1){const l=t.childIds[n];if(null==l)continue;const u=i[l];null!=u&&(o+=u.visibleSubtreeCount)}return o}function y(l,o){if(o.childIds.length<t)return void(o.childVisibleChunkSums=null);const u=Math.ceil(o.childIds.length/i),c=new Int32Array(u);for(let i=0;i<o.childIds.length;i++){const t=o.childIds[i];if(null==t)continue;const u=l[t];null!=u&&(c[i>>n]+=u.visibleSubtreeCount)}o.childVisibleChunkSums=c}function S(n,t,l,o){const u=Math.min(t.childIds.length,l+i);let c=o;for(let i=l;i<u;i++){const l=t.childIds[i];if(null==l)continue;const o=n[l];if(null!=o){if(c<o.visibleSubtreeCount)return{childIndex:i,localVisibleIndex:c};c-=o.visibleSubtreeCount}}throw new Error(`Visible child index ${String(o)} is out of range`)}},1243,[]);
|
|
12
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addNodeFlag",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createNodeDepthAndFlags",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"getNodeDepth",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"getNodeFlags",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getNodeKind",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"hasNodeFlag",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isDirectoryNode",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"setNodeDepth",{enumerable:!0,get:function(){return y}});const t=7,n=3,u=8,o=4;function c(t,u,c=0){return t<<o|c<<n|u}function f(t){return t.depthAndFlags>>>o}function l(t){return(t.depthAndFlags&u)>>n}function p(t){return 0!==(t.depthAndFlags&u)}function b(n){return n.depthAndFlags&t}function s(t,n){return 0!==(b(t)&n)}function h(t,n){t.depthAndFlags|=n}function y(t,n){t.depthAndFlags=c(n,b(t),l(t))}},1244,[]);
|
|
13
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attachBenchmarkInstrumentation",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getBenchmarkInstrumentation",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"setBenchmarkCounter",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"withBenchmarkPhase",{enumerable:!0,get:function(){return c}});const n=Symbol("benchmarkInstrumentation");function t(t,u){return null==u||Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:u,writable:!1}),t}function u(t){return null==t?null:t[n]??null}function c(n,t,u){return null==n?u():n.measurePhase(t,u)}function o(n,t,u){Number.isFinite(u)&&null!=n&&n.setCounter(t,u)}},1245,[]);
|
|
14
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t>=48&&t<=57}function n(n){const o=[];let s=0,u=0;for(;u<n.length;){for(;u<n.length&&!t(n.charCodeAt(u));)u+=1;if(u>=n.length)break;u>s&&o.push(n.slice(s,u));let c=0;for(;u<n.length&&t(n.charCodeAt(u));)c=10*c+(n.charCodeAt(u)-48),u+=1;o.push(c),s=u}return(s<n.length||0===o.length)&&o.push(n.slice(s)),o}function o(t){const o=t.toLowerCase();return{lowerValue:o,tokens:n(o)}}function s(t,n){const o=Math.min(t.length,n.length);for(let s=0;s<o;s++){const o=t[s],u=n[s];if(o===u)continue;if("number"==typeof o&&"number"==typeof u)return o<u?-1:1;const c=String(o),l=String(u);if(c!==l)return c<l?-1:1}return t.length!==n.length?t.length<n.length?-1:1:0}function u(t,n){if(1===t.tokens.length&&1===n.tokens.length&&"string"==typeof t.tokens[0]&&"string"==typeof n.tokens[0])return t.lowerValue===n.lowerValue?0:t.lowerValue<n.lowerValue?-1:1;const o=s(t.tokens,n.tokens);return 0!==o?o:t.lowerValue!==n.lowerValue?t.lowerValue<n.lowerValue?-1:1:0}function c(t,n,o){const s=u(o(t),o(n));return 0!==s?s:t===n?0:t<n?-1:1}function l(t,n){return c(t,n,o)}function f(t,n){return n!==t.segments.length-1||t.isDirectory?1:0}function h(t,n){const o=Math.min(t.segments.length,n.segments.length);for(let s=0;s<o;s++){const o=t.segments[s],u=n.segments[s];if(o===u)continue;const c=f(t,s);return c!==f(n,s)?1===c?-1:1:l(o,u)}return t.segments.length!==n.segments.length?t.segments.length<n.segments.length?-1:1:t.isDirectory===n.isDirectory?0:t.isDirectory?-1:1}function y(t,n){return h(t,n)}function p(t,n,s){const u=t=>{const n=s.get(t);if(null!=n)return n;const u=o(t);return s.set(t,u),u},l=Math.min(t.segments.length,n.segments.length);for(let o=0;o<l;o++){const s=t.segments[o],l=n.segments[o];if(s===l)continue;const h=f(t,o);return h!==f(n,o)?1===h?-1:1:c(s,l,u)}return t.segments.length!==n.segments.length?t.segments.length<n.segments.length?-1:1:t.isDirectory===n.isDirectory?0:t.isDirectory?-1:1}function b(t,n){const s=t.sortKeyById[n];if(void 0!==s)return s;const u=o(t.valueById[n]);return t.sortKeyById[n]=u,u}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"comparePreparedPaths",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"comparePreparedPathsWithCachedSortKeys",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"compareSegmentSortKeys",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"compareSegmentValues",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createSegmentSortKey",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getSegmentSortKey",{enumerable:!0,get:function(){return b}})},1246,[]);
|
|
15
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PathStoreBuilder",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getPreparedInputEntries",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"getPreparedInputPresortedPaths",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getPreparedInputPresortedPathsContainDirectories",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"prepareInput",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"preparePathEntries",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"preparePaths",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"preparePresortedInput",{enumerable:!0,get:function(){return C}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),h=r(d[4]),l=r(d[5]),c=r(d[6]);const p=Symbol("pathStorePreparedInputKind");function u(t,n){return t[p]=n,t}function f(t){return{basename:t.basename,depth:t.segments.length,isDirectory:t.isDirectory,path:t.path,segments:t.segments}}function y(t,n,o){return"default"===o?(0,l.comparePreparedPaths)(t,n):o(f(t),f(n))}function P(){return{depthAndFlags:(0,n.createNodeDepthAndFlags)(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function b(t,n){const o=Math.min(t.length,n.length);for(let s=0;s<o;s++)if(t[s]!==n[s])return s;return o}function I(t){return t.isDirectory?t.segments.length:t.segments.length-1}function D(t,n={}){return x(t,n).map(t=>t.path)}function w(t,n={}){const o=x(t,n);return u({paths:o.map(t=>t.path),preparedPaths:o},"prepared")}function C(t){const n=t.length;let o=!1;for(let s=0;s<n;s+=1){const n=t[s];if(n.length>0&&47===n.charCodeAt(n.length-1)){o=!0;break}}return u({paths:t,presortedPaths:t,presortedPathsContainDirectories:o},"presorted")}function S(t){const n=t,o=n.preparedPaths;if("prepared"===n[p]&&null!=o)return o;if(s=o,!Array.isArray(s)||!s.every(t=>null!=t&&"object"==typeof t&&"string"==typeof t.path&&Array.isArray(t.segments)&&"string"==typeof t.basename&&"boolean"==typeof t.isDirectory))throw new Error("preparedInput must come from PathStore.prepareInput()");var s;return o}function v(t){const n=t;return"presorted"===n[p]&&null!=n.presortedPaths?n.presortedPaths:(o=n.presortedPaths,Array.isArray(o)&&o.every(t=>"string"==typeof t)?n.presortedPaths:null);var o}function N(t){const n=t;return"boolean"==typeof n.presortedPathsContainDirectories?n.presortedPathsContainDirectories:null}function x(t,n={}){const l=(0,s.resolvePathStoreOptions)(n),c=(0,o.getBenchmarkInstrumentation)(n);(0,o.setBenchmarkCounter)(c,"workload.inputFiles",t.length);const p=(0,o.withBenchmarkPhase)(c,"store.preparePathEntries.parse",()=>t.map(t=>(0,h.parseInputPath)(t)));return(0,o.withBenchmarkPhase)(c,"store.preparePathEntries.sort",()=>p.sort((t,n)=>y(t,n,l.sort))),p}var E=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[P()];segmentSortKeyCache=new Map;segmentTable=(0,c.createSegmentTable)();hasDeferredDirectoryIndexes=!1;constructor(n={}){this.instrumentation=(0,o.getBenchmarkInstrumentation)(n),this.options=(0,s.resolvePathStoreOptions)(n);const h=n.initialExpandedPaths??null;if(null==h||0===h.length)this.initialExpandedPathSet=null;else{const t=new Set,n=h.length;for(let o=0;o<n;o+=1){const n=h[o],s=n.length;t.add(s>0&&47===n.charCodeAt(s-1)?n.slice(0,s-1):n)}this.initialExpandedPathSet=t,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,(0,t.createDirectoryChildIndex)())}appendPaths(t){return(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(t.map(t=>(0,h.parseInputPath)(t))))}appendPreparedPaths(t,n=!0){return this.createdDirectoriesAllExpanded=!1,(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(const o of t)this.appendPreparedPath(o,n)}),this}appendPresortedPaths(t,s=null){return(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(!1===s)return void this.appendPresortedFilePaths(t);this.createdDirectoriesAllExpanded=!1;let o=null,l=0;const c=this.nodes,p=this.segmentTable,u=p.idByValue,f=p.valueById,y=this.directoryStack;let P=0,b="",I=0;for(const s of t){if(o===s)throw new Error(`Duplicate path: "${s}"`);const t=s.length>0&&47===s.charCodeAt(s.length-1),h=t?s.length-1:s.length;let p=0,D=0;if(null!=o)if(b.length>0&&s.length>b.length&&s.startsWith(b))p=I,D=b.length;else{const n=Math.min(h,o.length);let l=!0;for(let t=0;t<n;t++){const n=s.charCodeAt(t);if(n!==o.charCodeAt(t)){l=!1;break}47===n&&(p++,D=t+1)}l&&t&&n===h&&o.length>h&&47===o.charCodeAt(h)&&(p++,D=h+1)}P=p,l=p;let w=D,C=s.indexOf("/",w);for(;C>=0&&C<h;){const t=y[P];if(void 0===t)throw new Error("Directory stack underflow while building the path store");l++;const o=s.slice(w,C);let h=u.get(o);void 0===h&&(h=f.length,u.set(o,h),f.push(o));const p=c.length;c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l,0,1),nameId:h,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(s.slice(0,C)),P++,y[P]=p,w=C+1,C=s.indexOf("/",w)}if(t){if(w<h){const t=y[P];if(void 0===t)throw new Error(`Unable to resolve directory parent for "${s}"`);l++;const o=s.slice(w,h);let p=u.get(o);void 0===p&&(p=f.length,u.set(o,p),f.push(o));const b=c.length;c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l,0,1),nameId:p,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),P++,y[P]=b,w=h+1}const t=y[P];if(void 0===t)throw new Error(`Unable to resolve directory node for "${s}"`);this.promoteDirectoryToExplicit(t,s)}else{const t=y[P];if(void 0===t)throw new Error(`Unable to resolve file parent for "${s}"`);const o=s.slice(w);let h=u.get(o);void 0===h&&(h=f.length,u.set(o,h),f.push(o)),c.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(l+1,0),nameId:h,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1})}w!==b.length&&(b=s.substring(0,w),I=l),o=s}y.length=P+1,null!=o&&(this.lastPreparedPath=(0,h.parseInputPath)(o)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(t){let o=null,s=0;const l=this.nodes,c=this.segmentTable,p=c.idByValue,u=c.valueById,f=this.directoryStack;let y=0,P="",b=0;for(const h of t){if(o===h)throw new Error(`Duplicate path: "${h}"`);const t=h.length;let c=0,I=0;if(null!=o)if(P.length>0&&h.length>P.length&&h.startsWith(P))c=b,I=P.length;else{const n=Math.min(t,o.length);for(let t=0;t<n;t++){const n=h.charCodeAt(t);if(n!==o.charCodeAt(t))break;47===n&&(c++,I=t+1)}}y=c,s=c;let D=I,w=h.indexOf("/",D);for(;w>=0;){const t=f[y];if(void 0===t)throw new Error("Directory stack underflow while building the path store");s++;const o=h.slice(D,w);let c=p.get(o);void 0===c&&(c=u.length,p.set(o,c),u.push(o));const P=l.length;l.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(s,0,1),nameId:c,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(h.slice(0,w)),this.presortedDirectoryNodeIds.push(P),y++,f[y]=P,D=w+1,w=h.indexOf("/",D)}const C=f[y];if(void 0===C)throw new Error(`Unable to resolve file parent for "${h}"`);const S=h.slice(D);let v=p.get(S);void 0===v&&(v=u.length,p.set(S,v),u.push(S)),l.push({depthAndFlags:(0,n.createNodeDepthAndFlags)(s+1,0),nameId:v,parentId:C,subtreeNodeCount:1,visibleSubtreeCount:1}),D!==P.length&&(P=h.substring(0,D),b=s),o=h}f.length=y+1,null!=o&&(this.lastPreparedPath=(0,h.parseInputPath)(o)),this.hasDeferredDirectoryIndexes=!0}finish(t={}){const n=!0===t.skipSubtreeCountPass;return this.hasDeferredDirectoryIndexes?((0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(n)),this.hasDeferredDirectoryIndexes=!1):n||(0,o.withBenchmarkPhase)(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&null!=this.initialExpandedPathSet&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(t,n){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),null!=this.lastPreparedPath){if(t.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${t.path}"`);if(n&&("default"===this.options.sort?(0,l.comparePreparedPathsWithCachedSortKeys)(this.lastPreparedPath,t,this.segmentSortKeyCache):y(this.lastPreparedPath,t,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${t.path}"`)}const o=this.lastPreparedPath,s=I(t),h=null==o?0:I(o),c=null==o?0:b(o.segments,t.segments),p=Math.min(c,s,h);this.directoryStack.length=p+1;for(let o=p;o<s;o++){const s=this.directoryStack[this.directoryStack.length-1];if(void 0===s)throw new Error("Directory stack underflow while building the path store");const h=n?this.getOrCreateDirectoryChild(s,t.segments[o]):this.createDirectoryChild(s,t.segments[o]);this.directoryStack.push(h)}if(t.isDirectory){const n=this.directoryStack[this.directoryStack.length-1];if(void 0===n)throw new Error(`Unable to resolve directory node for "${t.path}"`);return this.promoteDirectoryToExplicit(n,t.path),void(this.lastPreparedPath=t)}const u=this.directoryStack[this.directoryStack.length-1];if(void 0===u)throw new Error(`Unable to resolve file parent for "${t.path}"`);n?this.createFileChild(u,t.basename,t.path):this.createFileChildUnchecked(u,t.basename),this.lastPreparedPath=t}recordCreatedDirectoryPath(t){this.createdDirectoriesAllExpanded&&null!=this.initialExpandedPathSet&&(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(t)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(o,s,h){const l=(0,c.internSegment)(this.segmentTable,s),p=this.getDirectoryIndex(o),u=p.childIdByNameId;if(null!=u&&void 0!==u.get(l))throw new Error(`Path collides with an existing entry: "${h}"`);const f=this.nodes[o];if(void 0===f)throw new Error(`Unknown parent node ID: ${String(o)}`);const y=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(f)+1,0),nameId:l,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=u&&u.set(l,y),(0,t.appendChildReference)(p,y),y}createFileChildUnchecked(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o),p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),u}getOrCreateDirectoryChild(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o);if(null!=l.childIdByNameId){const t=l.childIdByNameId.get(h);if(void 0!==t){const o=this.nodes[t];if(null!=o&&!(0,n.isDirectoryNode)(o))throw new Error(`Path collides with an existing file while creating directory "${s}"`);return t}}const p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0,1),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),this.directories.set(u,(0,t.createDirectoryChildIndex)()),u}createDirectoryChild(o,s){const h=(0,c.internSegment)(this.segmentTable,s),l=this.getDirectoryIndex(o),p=this.nodes[o];if(void 0===p)throw new Error(`Unknown parent node ID: ${String(o)}`);const u=this.nodes.length;return this.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0,1),nameId:h,parentId:o,subtreeNodeCount:1,visibleSubtreeCount:1}),null!=l.childIdByNameId&&l.childIdByNameId.set(h,u),(0,t.appendChildReference)(l,u),this.directories.set(u,(0,t.createDirectoryChildIndex)()),u}promoteDirectoryToExplicit(t,o){const s=this.nodes[t];if(void 0===s)throw new Error(`Unknown directory node ID: ${String(t)}`);if(!(0,n.isDirectoryNode)(s))throw new Error(`Path is not a directory: "${o}"`);if((0,n.hasNodeFlag)(s,1))throw new Error(`Duplicate path: "${o}"`);(0,n.addNodeFlag)(s,1)}getDirectoryIndex(t){const n=this.directories.get(t);if(void 0!==n)return n;throw new Error(`Unknown directory child index for node ${String(t)}`)}buildPresortedFinish(o){const s=this.nodes,h=this.directories;h.set(0,(0,t.createPresortedDirectoryChildIndex)());let l=-1,c=null;for(let o=1;o<s.length;o++){const p=s[o];if(null==p)continue;if((0,n.isDirectoryNode)(p)){const n=(0,t.createPresortedDirectoryChildIndex)();h.set(o,n),l=o,c=n}let u;p.parentId===l?u=c:(u=h.get(p.parentId),l=p.parentId,c=u??null),null!=u&&u.childIds.push(o)}if(!o)for(let t=s.length-1;t>=1;t--){const n=s[t];if(null==n)continue;const o=s[n.parentId];null!=o&&(o.subtreeNodeCount+=n.subtreeNodeCount,o.visibleSubtreeCount+=n.visibleSubtreeCount)}}buildDirectoryIndexes(){const o=this.nodes;for(let s=1;s<o.length;s++){const h=o[s];if(null==h)continue;(0,n.isDirectoryNode)(h)&&this.directories.set(s,(0,t.createDirectoryChildIndex)());const l=this.directories.get(h.parentId);null!=l&&(null!=l.childIdByNameId&&l.childIdByNameId.set(h.nameId,s),(0,t.appendChildReference)(l,s))}}computeSubtreeCounts(o){const s=this.nodes[o];if(void 0===s)throw new Error(`Unknown node ID: ${String(o)}`);if(!(0,n.isDirectoryNode)(s))return s.subtreeNodeCount=1,s.visibleSubtreeCount=1,1;const h=this.getDirectoryIndex(o);let l=1;for(const t of h.childIds)l+=this.computeSubtreeCounts(t);return(0,t.rebuildDirectoryChildAggregates)(this.nodes,h),s.subtreeNodeCount=l,s.visibleSubtreeCount=l,l}}},1247,[1243,1244,1245,1248,1249,1246,1250]);
|
|
16
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t={}){return{flattenEmptyDirectories:!1!==t.flattenEmptyDirectories,sort:t.sort??"default"}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolvePathStoreOptions",{enumerable:!0,get:function(){return t}})},1248,[]);
|
|
17
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const n=t.length>0&&47===t.charCodeAt(t.length-1),s=n?t.length-1:t.length,u=[];let o=0;for(let n=0;n<s;n++)47===t.charCodeAt(n)&&(u.push(t.slice(o,n)),o=n+1);return u.push(t.slice(o,s)),{hasTrailingSlash:n,segments:u}}function n(n){const{hasTrailingSlash:s,segments:u}=t(n);return{basename:u[u.length-1]??"",isDirectory:s,path:n,segments:u}}function s(n){if(0===n.length)return{requiresDirectory:!1,segments:[]};const{hasTrailingSlash:s,segments:u}=t(n);return{requiresDirectory:s,segments:u}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"parseInputPath",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"parseLookupPath",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"splitCanonicalPath",{enumerable:!0,get:function(){return t}})},1249,[]);
|
|
18
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"createSegmentTable",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getSegmentValue",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"internSegment",{enumerable:!0,get:function(){return u}});var t=r(d[0]);function n(){const n=new Map;return n.set("",0),{idByValue:n,valueById:[""],sortKeyById:[(0,t.createSegmentSortKey)("")]}}function u(t,n){const u=t.idByValue.get(n);if(void 0!==u)return u;const o=t.valueById.length;return t.idByValue.set(n,o),t.valueById.push(n),o}function o(t,n){const u=t.valueById[n];if(void 0===u)throw new Error(`Unknown segment ID: ${String(n)}`);return u}},1250,[1246]);
|
|
19
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"beginDirectoryLoad",{enumerable:!0,get:function(){return y}}),Object.defineProperty(e,"clearDirectoryLoadInfo",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"completeDirectoryLoad",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"createPathStoreState",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"createTransactionFrame",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"failDirectoryLoad",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"getDirectoryLoadState",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"isDirectoryExpanded",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isDirectoryLoadAttemptCurrent",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"markDirectoryUnloadedState",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"resolveInitialExpansion",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"setDirectoryExpanded",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t,n="closed",o=null){const s=c(n);return{activeNodeCount:t.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:s,directoriesOpenByDefault:"open"===s,hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:o,listeners:new Map,pathCacheByNodeId:new Map([[t.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:t,transactionStack:[]}}function o(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function c(t){if("number"!=typeof t)return t;if(!Number.isInteger(t)||t<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(t)}`);return t}function s(n,o){return!!(0,t.hasNodeFlag)(o,2)||("open"===n.defaultExpansion||"closed"!==n.defaultExpansion&&(0,t.getNodeDepth)(o)<=n.defaultExpansion)}function u(n,o,c=n.snapshot.nodes[o]){return!(null==c||!(0,t.isDirectoryNode)(c))&&(!(!n.directoriesOpenByDefault||n.hasCollapsedDirectoryOverrides)||!n.collapsedDirectoryIds.has(o)&&(!!n.expandedDirectoryIds.has(o)||s(n,c)))}function l(n,o,c,u=n.snapshot.nodes[o]){if(null==u||!(0,t.isDirectoryNode)(u))return;const l=s(n,u);return c?l?(n.collapsedDirectoryIds.delete(o),void(n.hasCollapsedDirectoryOverrides=n.collapsedDirectoryIds.size>0)):void n.expandedDirectoryIds.add(o):l?(n.collapsedDirectoryIds.add(o),void(n.hasCollapsedDirectoryOverrides=!0)):void n.expandedDirectoryIds.delete(o)}function p(t,n){const o=t.directoryLoadInfoById.get(n);if(null!=o)return o;const c={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return t.directoryLoadInfoById.set(n,c),c}function f(t,n){return t.directoryLoadInfoById.get(n)?.state??"loaded"}function y(t,n){const o=p(t,n);if("loading"===o.state&&null!=o.activeAttemptId)return{attemptId:o.activeAttemptId,nodeId:n,reused:!0};const c=o.nextAttemptId;return o.activeAttemptId=c,o.errorMessage=null,o.nextAttemptId+=1,o.state="loading",{attemptId:c,nodeId:n,reused:!1}}function I(t,n){const o=p(t,n);o.activeAttemptId=null,o.errorMessage=null,o.state="unloaded"}function b(t,n,o){const c=t.directoryLoadInfoById.get(n);return null!=c&&c.activeAttemptId===o&&(c.activeAttemptId=null,c.errorMessage=null,c.state="loaded",!0)}function D(t,n,o){return t.directoryLoadInfoById.get(n)?.activeAttemptId===o}function v(t,n,o,c){const s=t.directoryLoadInfoById.get(n);return null!=s&&s.activeAttemptId===o&&(s.activeAttemptId=null,s.errorMessage=c??null,s.state="error",!0)}function h(t,n){t.directoryLoadInfoById.delete(n)}},1251,[1244]);
|
|
20
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"batchEvents",{enumerable:!0,get:function(){return j}}),Object.defineProperty(e,"createAddEvent",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"createApplyChildPatchEvent",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"createBeginChildLoadEvent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"createCleanupEvent",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"createCollapseEvent",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"createCompleteChildLoadEvent",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"createExpandEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"createFailChildLoadEvent",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"createMarkDirectoryUnloadedEvent",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createMoveEvent",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"createRemoveEvent",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"finalizeEvent",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"recordEvent",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"subscribe",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]);function o(t,n,o){const c=o,f=t.listeners.get(n);return null!=f?f.add(c):t.listeners.set(n,new Set([c])),()=>{const o=t.listeners.get(n);null!=o&&(o.delete(c),0===o.size&&t.listeners.delete(n))}}function c(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function f(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:t.path,projectionChanged:t.projectionChanged,recursive:t.recursive,visibleCountDelta:null}}function s(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,from:t.from,operation:"move",projectionChanged:t.projectionChanged,to:t.to,visibleCountDelta:null}}function u(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function l(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function h(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function p(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:t.path,projectionChanged:t.projectionChanged,reused:t.reused,visibleCountDelta:null}}function C(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:t.childEvents.some(t=>t.canonicalChanged),childEvents:t.childEvents,operation:"apply-child-patch",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function I(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function v(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,errorMessage:t.errorMessage,operation:"fail-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function b(t){return{activeNodeCountAfter:t.activeNodeCountAfter,activeNodeCountBefore:t.activeNodeCountBefore,affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],cachedPathEntryCountAfter:t.cachedPathEntryCountAfter,cachedPathEntryCountBefore:t.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:t.idsPreserved,loadInfoEntryCountAfter:t.loadInfoEntryCountAfter,loadInfoEntryCountBefore:t.loadInfoEntryCountBefore,mode:t.mode,operation:"cleanup",projectionChanged:t.projectionChanged,reclaimedCachedPathEntryCount:t.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:t.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:t.reclaimedNodeSlotCount,reclaimedSegmentCount:t.reclaimedSegmentCount,segmentCountAfter:t.segmentCountAfter,segmentCountBefore:t.segmentCountBefore,totalNodeSlotCountAfter:t.totalNodeSlotCountAfter,totalNodeSlotCountBefore:t.totalNodeSlotCountBefore,visibleCountDelta:null}}function A(t,n,o){return Object.assign({},o,{visibleCountDelta:w(t)-n})}function j(t,o){const c=w(t),f=(0,n.createTransactionFrame)();t.transactionStack.push(f);try{o()}catch(n){throw E(t,f,!1),n}E(t,f,!0,w(t)-c)}function N(n,o){const c=n.instrumentation;null!=c?(0,t.withBenchmarkPhase)(c,"store.events.record",()=>y(n,o)):y(n,o)}function y(t,n){const o=t.transactionStack[t.transactionStack.length-1]??null;null!=o?(o.events.push(n),B(o,n)):D(t,n)}function E(n,o,c,f=null){if(n.transactionStack.pop()!==o)throw new Error("Transaction stack underflow");if(!c)return;const s=n.transactionStack[n.transactionStack.length-1]??null;if(null!=s){const c=n.instrumentation;return void(null==c?S(s,o):(0,t.withBenchmarkPhase)(c,"store.events.batch.merge",()=>S(s,o)))}const u=P(o,f),l=n.instrumentation;null!=l?(0,t.withBenchmarkPhase)(l,"store.events.batch.commit",()=>D(n,u)):D(n,u)}function P(t,n){return{affectedAncestorIds:[...t.affectedAncestorIds],affectedNodeIds:[...t.affectedNodeIds],canonicalChanged:t.events.some(t=>t.canonicalChanged),events:[...t.events],operation:"batch",projectionChanged:t.events.some(t=>t.projectionChanged),visibleCountDelta:n}}function O(t,n){for(const o of n.affectedAncestorIds)t.affectedAncestorIds.add(o);for(const o of n.affectedNodeIds)t.affectedNodeIds.add(o)}function S(t,n){for(const o of n.events)t.events.push(o);O(t,n)}function B(t,n){for(const o of n.affectedNodeIds)t.affectedNodeIds.add(o);for(const o of n.affectedAncestorIds)t.affectedAncestorIds.add(o)}function D(n,o){const c=n.instrumentation;null!=c?(0,t.withBenchmarkPhase)(c,"store.events.emit",()=>k(n,o)):k(n,o)}function k(t,n){t.listeners.get(n.operation)?.forEach(t=>t(n)),t.listeners.get("*")?.forEach(t=>t(n))}function w(t){return t.snapshot.nodes[t.snapshot.rootId]?.visibleSubtreeCount??0}},1252,[1245,1251]);
|
|
21
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"collectFlattenedDirectoryChainIds",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getFlattenedChildDirectoryId",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getFlattenedTerminalDirectoryId",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(n,l){if(!0!==n.snapshot.options.flattenEmptyDirectories)return null;const o=n.snapshot.nodes[l];if(null==o||!(0,t.isDirectoryNode)(o)||(0,t.hasNodeFlag)(o,2))return null;const u=n.snapshot.directories.get(l);if(null==u||1!==u.childIds.length)return null;const c=u.childIds[0];if(null==c)return null;const s=n.snapshot.nodes[c];return null!=s&&(0,t.isDirectoryNode)(s)?c:null}function l(t,l){let o=l;for(;;){const l=n(t,o);if(null==l)return o;o=l}}function o(t,l){const o=[l];let u=l;for(;;){const l=n(t,u);if(null==l)return o;o.push(l),u=l}}},1253,[1244]);
|
|
22
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"addPath",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"collectAncestorIds",{enumerable:!0,get:function(){return S}}),Object.defineProperty(e,"findNodeId",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"findNodeIdBySegments",{enumerable:!0,get:function(){return F}}),Object.defineProperty(e,"getDirectoryIndex",{enumerable:!0,get:function(){return x}}),Object.defineProperty(e,"listPaths",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"materializeNodePath",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"movePath",{enumerable:!0,get:function(){return N}}),Object.defineProperty(e,"recomputeCountsRecursive",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"recomputeCountsUpwardFrom",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"removePath",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"requireNode",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),p=r(d[8]);function f(t,n){const o=null==n?t.snapshot.rootId:P(t,n);return null==o?[]:E(t,o)}function I(t,o){const l=(0,s.parseInputPath)(o),c=l.isDirectory?l.segments:l.segments.slice(0,-1),u=R(t,M(t,c)),{createdNodeIds:p,directoryId:f}=B(t,c),I=new Set(p);let b=f;if(l.isDirectory){const s=k(t,f);if((0,n.hasNodeFlag)(s,1))throw new Error(`Path already exists: "${o}"`);(0,n.addNodeFlag)(s,1),t.pathCacheByNodeId.set(f,{path:o,version:t.pathCacheVersion}),I.add(f)}else b=O(t,f,l.basename),I.add(b);v(t,f);const N=R(t,f);return(0,h.createAddEvent)({affectedAncestorIds:S(t,b),affectedNodeIds:[...I],path:o,projectionChanged:J(u,N)})}function b(t,o,s){const l=P(t,o);if(null==l)throw new Error(`Path does not exist: "${o}"`);const c=k(t,l);if((0,n.hasNodeFlag)(c,2))throw new Error("The root node cannot be removed");if((0,n.isDirectoryNode)(c)&&x(t,l).childIds.length>0&&!0!==s.recursive)throw new Error(`Cannot remove a non-empty directory without recursive: "${o}"`);const u=c.parentId,p=R(t,u),f=q(t,l);V(t,u,l,c.nameId),z(t,u),v(t,u);const I=R(t,u);return(0,h.createRemoveEvent)({affectedAncestorIds:S(t,u),affectedNodeIds:f,path:o,projectionChanged:J(p,I),recursive:!0===s.recursive})}function N(o,s,l,u){const p=P(o,s);if(null==p)throw new Error(`Source path does not exist: "${s}"`);const f=k(o,p);if((0,n.hasNodeFlag)(f,2))throw new Error("The root node cannot be moved");const I=u.collision??"error",b=U(o,p,l),N=R(o,f.parentId),y=R(o,b.parentId),C=(0,c.getSegmentValue)(o.snapshot.segmentTable,f.nameId),w=(0,c.internSegment)(o.snapshot.segmentTable,b.basename);if(b.parentId===f.parentId&&C===b.basename)return null;if((0,n.isDirectoryNode)(f)&&W(o,p,b.parentId))throw new Error("Cannot move a directory into one of its descendants");const F=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,x(o,b.parentId)).get(w),E=b.existingNodeId??F??null;if(null!=E&&E!==p&&"skip"===_(o,E,I,(0,n.getNodeKind)(f)))return null;const B=f.parentId;V(o,B,p,f.nameId),f.parentId=b.parentId,f.nameId=w,o.pathCacheByNodeId.delete(p),Q(o,p),A(o,b.parentId,p),z(o,B),o.pathCacheVersion++,v(o,B),b.parentId!==B&&v(o,b.parentId);const j=R(o,B),O=R(o,b.parentId);return(0,h.createMoveEvent)({affectedAncestorIds:[...new Set([...S(o,B),...S(o,b.parentId)])],affectedNodeIds:[p],from:s,projectionChanged:G([N,y],[j,O]),to:D(o,p)})}function y(t,n){const o=t.pathCacheByNodeId.get(n);return null!=o&&o.version===t.pathCacheVersion?o.path:null}function C(t,n,o){return t.pathCacheByNodeId.set(n,{path:o,version:t.pathCacheVersion}),o}function D(t,o){const s=k(t,o),l=y(t,o);if(null!=l)return l;if((0,n.hasNodeFlag)(s,2))return C(t,o,"");const u=D(t,s.parentId),h=(0,c.getSegmentValue)(t.snapshot.segmentTable,s.nameId),p=0===u.length?h:`${u}${h}`;return C(t,o,(0,n.isDirectoryNode)(s)?`${p}/`:p)}function v(t,n){const s=t.instrumentation;null!=s?(0,o.withBenchmarkPhase)(s,"store.recomputeCountsUpwardFrom",()=>Y(t,n)):Y(t,n)}function w(t,o){const s=[[o,0]],{nodes:l,directories:c}=t.snapshot;for(;s.length>0;){const o=s[s.length-1],u=o[0],h=l[u];if(null==h||!(0,n.isDirectoryNode)(h)){X(t,u,h,!0),s.pop();continue}const p=c.get(u);if(null==p||o[1]>=p.childIds.length){X(t,u,h,!0),s.pop();continue}const f=p.childIds[o[1]++];s.push([f,0])}}function S(t,n){const o=[];let s=n;for(;null!=s;){const n=k(t,s);if(o.push(s),s===t.snapshot.rootId)break;s=n.parentId}return o}function P(t,n){if(0===n.length)return t.snapshot.rootId;const o=(0,s.parseLookupPath)(n);return F(t,o.segments,o.requiresDirectory)}function F(o,s,l){let c=o.snapshot.rootId;for(const n of s){const s=o.snapshot.segmentTable.idByValue.get(n);if(void 0===s)return null;const l=x(o,c),u=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,l).get(s);if(void 0===u)return null;c=u}const u=k(o,c);return l&&!(0,n.isDirectoryNode)(u)?null:c}function x(t,n){const o=t.snapshot.directories.get(n);if(void 0===o)throw new Error(`Unknown directory child index for node ${String(n)}`);return o}function k(t,o){const s=t.snapshot.nodes[o];if(void 0===s||(0,n.hasNodeFlag)(s,4))throw new Error(`Unknown node ID: ${String(o)}`);return s}function E(t,o){const s=t.snapshot.nodes[o];if(void 0===s||(0,n.hasNodeFlag)(s,4))return[];if(!(0,n.isDirectoryNode)(s))return[D(t,o)];if(0===x(t,o).childIds.length)return(0,n.hasNodeFlag)(s,1)&&!(0,n.hasNodeFlag)(s,2)?[D(t,o)]:[];const l=[],c=[{childIndex:0,nodeId:o}];for(;c.length>0;){const o=c[c.length-1];if(null==o)break;const s=t.snapshot.nodes[o.nodeId];if(void 0===s||(0,n.hasNodeFlag)(s,4)){c.pop();continue}if(!(0,n.isDirectoryNode)(s)){l.push(D(t,o.nodeId)),c.pop();continue}const u=x(t,o.nodeId);if(0===u.childIds.length){(0,n.hasNodeFlag)(s,1)&&!(0,n.hasNodeFlag)(s,2)&&l.push(D(t,o.nodeId)),c.pop();continue}const h=u.childIds[o.childIndex];null!=h?(o.childIndex++,c.push({childIndex:0,nodeId:h})):c.pop()}return l}function B(o,s){const l=[];let u=o.snapshot.rootId;for(const h of s){const s=(0,c.internSegment)(o.snapshot.segmentTable,h),p=x(o,u),f=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,p).get(s);if(void 0!==f){const t=k(o,f);if(!(0,n.isDirectoryNode)(t))throw new Error(`Cannot create a directory that collides with an existing file: "${h}"`);u=f;continue}u=j(o,u,s),l.push(u)}return{createdNodeIds:l,directoryId:u}}function j(o,s,l){const c=k(o,s),u=o.snapshot.nodes.length;return o.snapshot.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(c)+1,0,1),nameId:l,parentId:s,subtreeNodeCount:1,visibleSubtreeCount:1}),o.snapshot.directories.set(u,(0,t.createDirectoryChildIndex)()),A(o,s,u),o.collapseNewDirectoriesByDefault&&(o.collapsedDirectoryIds.add(u),o.hasCollapsedDirectoryOverrides=!0),o.activeNodeCount++,u}function O(o,s,l){const u=(0,c.internSegment)(o.snapshot.segmentTable,l),h=x(o,s);if((0,t.ensureChildIdByNameId)(o.snapshot.nodes,h).has(u))throw new Error(`Path already exists: "${ee(o,s,l)}"`);const p=k(o,s),f=o.snapshot.nodes.length;return o.snapshot.nodes.push({depthAndFlags:(0,n.createNodeDepthAndFlags)((0,n.getNodeDepth)(p)+1,0),nameId:u,parentId:s,subtreeNodeCount:1,visibleSubtreeCount:1}),A(o,s,f),o.activeNodeCount++,f}function T(t,n,o){let s=0,l=n.childIds.length;for(;s<l;){const c=s+l>>>1,u=n.childIds[c];null!=u?$(t,o,u)<0?l=c:s=c+1:l=c}return s}function A(n,o,s){const l=x(n,o),c=k(n,s);(0,t.ensureChildIdByNameId)(n.snapshot.nodes,l).set(c.nameId,s),(0,t.applyChildAggregateDelta)(l,s,c.subtreeNodeCount,c.visibleSubtreeCount);const u=T(n,l,s);l.childIds.splice(u,0,s),(0,t.updateChildPositionsFrom)(l,u),(0,t.rebuildVisibleChildChunks)(n.snapshot.nodes,l)}function V(n,o,s,l){const c=x(n,o),u=(0,t.ensureChildPositions)(c),h=u.get(s)??-1;(0,t.ensureChildIdByNameId)(n.snapshot.nodes,c).delete(l),u.delete(s);const p=n.snapshot.nodes[s];null!=p&&(0,t.applyChildAggregateDelta)(c,s,-p.subtreeNodeCount,-p.visibleSubtreeCount),h>=0&&(c.childIds.splice(h,1),(0,t.updateChildPositionsFrom)(c,h),(0,t.rebuildVisibleChildChunks)(n.snapshot.nodes,c))}function $(t,n,o){const s=t.snapshot.options.sort;return"default"===s?K(t,n,o):s(L(t,n),L(t,o))}function K(t,o,s){const u=k(t,o),h=k(t,s),p=(0,n.isDirectoryNode)(u);if(p!==(0,n.isDirectoryNode)(h))return p?-1:1;const f=(0,l.getSegmentSortKey)(t.snapshot.segmentTable,u.nameId),I=(0,l.getSegmentSortKey)(t.snapshot.segmentTable,h.nameId),b=(0,l.compareSegmentSortKeys)(f,I);if(0!==b)return b;const N=(0,c.getSegmentValue)(t.snapshot.segmentTable,u.nameId),y=(0,c.getSegmentValue)(t.snapshot.segmentTable,h.nameId);return N!==y?N<y?-1:1:o<s?-1:1}function L(t,o){const s=k(t,o),l=D(t,o),u=(0,n.isDirectoryNode)(s),h=u?l.slice(0,-1):l;return{basename:(0,c.getSegmentValue)(t.snapshot.segmentTable,s.nameId),depth:(0,n.getNodeDepth)(s),isDirectory:u,path:l,segments:0===h.length?[]:h.split("/")}}function U(t,o,l){const u=k(t,o),h=P(t,l);if(null!=h){const o=k(t,h);if((0,n.isDirectoryNode)(o))return{basename:(0,c.getSegmentValue)(t.snapshot.segmentTable,u.nameId),existingNodeId:null,parentId:h};const p=(0,s.parseLookupPath)(l).segments;return{basename:p[p.length-1]??"",existingNodeId:h,parentId:o.parentId}}const p=(0,s.parseLookupPath)(l),f=p.segments[p.segments.length-1]??"",I=p.segments.slice(0,-1),b=0===I.length?t.snapshot.rootId:F(t,I,!0);if(null==b)throw new Error(`Destination parent does not exist: "${l}"`);return{basename:f,existingNodeId:null,parentId:b}}function _(t,o,s,l){if("skip"===s)return"skip";if("error"===s)throw new Error(`Destination already exists: "${D(t,o)}"`);const c=k(t,o);if((0,n.getNodeKind)(c)!==l)throw new Error("replace collision requires the same source and destination kinds");if((0,n.isDirectoryNode)(c)&&x(t,o).childIds.length>0)throw new Error("replace collision does not support non-empty directories");const u=c.parentId,h=c.nameId;return q(t,o),V(t,u,o,h),z(t,u),v(t,u),"handled"}function q(t,o){const s=[],l=[{nodeId:o,visitedChildren:!1}];for(;l.length>0;){const o=l.pop();if(null==o)break;const c=k(t,o.nodeId);if(o.visitedChildren||!(0,n.isDirectoryNode)(c)){(0,n.isDirectoryNode)(c)&&t.snapshot.directories.delete(o.nodeId),(0,n.addNodeFlag)(c,4),t.pathCacheByNodeId.delete(o.nodeId),t.collapsedDirectoryIds.delete(o.nodeId)&&(t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0),t.expandedDirectoryIds.delete(o.nodeId),(0,u.clearDirectoryLoadInfo)(t,o.nodeId),t.activeNodeCount--,s.push(o.nodeId);continue}l.push({nodeId:o.nodeId,visitedChildren:!0});const h=x(t,o.nodeId);for(let t=h.childIds.length-1;t>=0;t--){const n=h.childIds[t];null!=n&&l.push({nodeId:n,visitedChildren:!1})}}return s}function z(t,o){let s=o;for(;null!=s;){const o=k(t,s);if(!(0,n.isDirectoryNode)(o)||(0,n.hasNodeFlag)(o,2))return;if(x(t,s).childIds.length>0)return;(0,n.addNodeFlag)(o,1),s=o.parentId===s?null:o.parentId}}function M(o,s){let l=o.snapshot.rootId;for(const c of s){const s=o.snapshot.segmentTable.idByValue.get(c);if(null==s)break;const u=(0,t.ensureChildIdByNameId)(o.snapshot.nodes,x(o,l)).get(s);if(null==u)break;const h=k(o,u);if(!(0,n.isDirectoryNode)(h))break;l=u}return l}function R(t,o){const s=H(t,o);if(null==s)return null;const l=(0,p.getFlattenedTerminalDirectoryId)(t,s),c=k(t,l),u=s===l?null:(0,p.collectFlattenedDirectoryChainIds)(t,s).map(n=>D(t,n));return JSON.stringify({flattenedSegmentPaths:u,hasChildren:x(t,l).childIds.length>0,path:D(t,l),terminalKind:(0,n.getNodeKind)(c)})}function J(t,n){return G([t],[n])}function G(t,n){for(let o=0;o<t.length;o+=1){const s=t[o],l=n[o];if(null==s||null==l||s!==l)return!0}return!1}function H(t,o){let s=o;for(;null!=s;){const o=k(t,s);if(!(0,n.isDirectoryNode)(o)||(0,n.hasNodeFlag)(o,2))return null;if(!(0,u.isDirectoryExpanded)(t,s,o))return s;s=o.parentId}return null}function Q(t,o){const s=k(t,o),l=o===t.snapshot.rootId?-1:(0,n.getNodeDepth)(k(t,s.parentId));if((0,n.setNodeDepth)(s,l+1),!(0,n.isDirectoryNode)(s))return;const c=x(t,o);for(const n of c.childIds)Q(t,n)}function W(t,n,o){let s=o;for(;null!=s;){if(s===n)return!0;const o=k(t,s);if(s===t.snapshot.rootId)return!1;s=o.parentId}return!1}function X(t,n,s=k(t,n),l=!1){const c=t.instrumentation;null!=c?(0,o.withBenchmarkPhase)(c,"store.recomputeNodeCounts",()=>Z(t,n,s,l)):Z(t,n,s,l)}function Y(n,o){let s=o;for(;null!=s;){const o=k(n,s),l=o.subtreeNodeCount,c=o.visibleSubtreeCount;if(X(n,s,o),s===n.snapshot.rootId)return;const u=o.subtreeNodeCount-l,h=o.visibleSubtreeCount-c,p=o.parentId;0===u&&0===h||(0,t.applyChildAggregateDelta)(x(n,p),s,u,h),s=p}}function Z(s,l,c,h){if(!(0,n.isDirectoryNode)(c))return c.subtreeNodeCount=1,void(c.visibleSubtreeCount=1);const f=x(s,l);if(h){const n=s.instrumentation;null==n?(0,t.rebuildDirectoryChildAggregates)(s.snapshot.nodes,f):(0,o.withBenchmarkPhase)(n,"store.recomputeNodeCounts.rebuildChildAggregates",()=>(0,t.rebuildDirectoryChildAggregates)(s.snapshot.nodes,f))}const I=1+f.totalChildSubtreeNodeCount,b=f.totalChildVisibleSubtreeCount;c.subtreeNodeCount=I,(0,n.hasNodeFlag)(c,2)?c.visibleSubtreeCount=b:c.visibleSubtreeCount=null!=(0,p.getFlattenedChildDirectoryId)(s,l)?b:(0,u.isDirectoryExpanded)(s,l,c)?1+b:1}function ee(t,n,o){const s=D(t,n);return 0===s.length?o:`${s}${o}`}},1254,[1243,1244,1245,1249,1246,1250,1251,1252,1253]);
|
|
23
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"cleanupPathStoreState",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"hasActiveCleanupBlockingLoads",{enumerable:!0,get:function(){return x}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]);function l(t){return null!=t&&!(0,n.hasNodeFlag)(t,4)}function p(t,o){const s=t.snapshot.nodes[o];return l(s)&&(0,n.isDirectoryNode)(s)&&!(0,n.hasNodeFlag)(s,2)?s:null}function f(t){let n=0;for(const[o,s]of t.pathCacheByNodeId)s.version===t.pathCacheVersion&&l(t.snapshot.nodes[o])&&(n+=1);return n}function C(t){return{activeNodeCount:t.activeNodeCount,cachedPathEntryCount:f(t),loadInfoEntryCount:t.directoryLoadInfoById.size,segmentCount:(n=t.snapshot.segmentTable,Math.max(0,n.valueById.length-1)),totalNodeSlotCount:Math.max(0,t.snapshot.nodes.length-1)};var n}function I(t,n,o,s){return{activeNodeCountAfter:s.activeNodeCount,activeNodeCountBefore:o.activeNodeCount,cachedPathEntryCountAfter:s.cachedPathEntryCount,cachedPathEntryCountBefore:o.cachedPathEntryCount,idsPreserved:n,loadInfoEntryCountAfter:s.loadInfoEntryCount,loadInfoEntryCountBefore:o.loadInfoEntryCount,mode:t,reclaimedCachedPathEntryCount:o.cachedPathEntryCount-s.cachedPathEntryCount,reclaimedLoadInfoEntryCount:o.loadInfoEntryCount-s.loadInfoEntryCount,reclaimedNodeSlotCount:o.totalNodeSlotCount-s.totalNodeSlotCount,reclaimedSegmentCount:o.segmentCount-s.segmentCount,segmentCountAfter:s.segmentCount,segmentCountBefore:o.segmentCount,totalNodeSlotCountAfter:s.totalNodeSlotCount,totalNodeSlotCountBefore:o.totalNodeSlotCount}}function y(t){const n=[],o=[];for(const o of t.collapsedDirectoryIds)null!=p(t,o)&&n.push((0,h.materializeNodePath)(t,o));for(const n of t.expandedDirectoryIds)null!=p(t,n)&&o.push((0,h.materializeNodePath)(t,n));return{collapsedPaths:n,expandedPaths:o}}function P(t){const n=[];for(const[o,s]of t.directoryLoadInfoById)null!=p(t,o)&&"loaded"!==(0,u.getDirectoryLoadState)(t,o)&&n.push({info:{activeAttemptId:null,errorMessage:s.errorMessage,nextAttemptId:s.nextAttemptId,state:s.state},path:(0,h.materializeNodePath)(t,o)});return n}function N(t,n){t.collapsedDirectoryIds.clear(),t.hasCollapsedDirectoryOverrides=!1,t.expandedDirectoryIds.clear();for(const o of n.expandedPaths){const n=(0,h.findNodeId)(t,o);null!=n&&(0,u.setDirectoryExpanded)(t,n,!0,(0,h.requireNode)(t,n))}for(const o of n.collapsedPaths){const n=(0,h.findNodeId)(t,o);null!=n&&(0,u.setDirectoryExpanded)(t,n,!1,(0,h.requireNode)(t,n))}}function B(t,n){t.directoryLoadInfoById.clear();for(const o of n){const n=(0,h.findNodeId)(t,o.path);null!=n&&(null!=p(t,n)&&t.directoryLoadInfoById.set(n,{activeAttemptId:null,errorMessage:o.info.errorMessage,nextAttemptId:o.info.nextAttemptId,state:o.info.state}))}}function v(t){t.pathCacheVersion+=1,t.pathCacheByNodeId.clear(),t.pathCacheByNodeId.set(t.snapshot.rootId,{path:"",version:t.pathCacheVersion})}function b(t){const o=t.snapshot.segmentTable,c=(0,s.createSegmentTable)();for(const u of t.snapshot.nodes)l(u)&&((0,n.hasNodeFlag)(u,2)?u.nameId=0:u.nameId=(0,s.internSegment)(c,(0,s.getSegmentValue)(o,u.nameId)));t.snapshot.segmentTable=c}function E(o){for(const[s,c]of o.snapshot.directories){const u=o.snapshot.nodes[s];if(!l(u)||!(0,n.isDirectoryNode)(u)){o.snapshot.directories.delete(s);continue}const p=c.childIds.filter(t=>{const n=o.snapshot.nodes[t];return l(n)&&n.parentId===s});c.childIds=p,c.childIdByNameId=new Map(p.map(t=>[(0,h.requireNode)(o,t).nameId,t])),c.childPositionById=new Map(p.map((t,n)=>[t,n])),(0,t.rebuildDirectoryChildAggregates)(o.snapshot.nodes,c)}}function S(t){let n=t.snapshot.nodes.length-1;for(;n>t.snapshot.rootId;){if(l(t.snapshot.nodes[n]))break;n-=1}t.snapshot.nodes.length=n+1}function w(t){const n=y(t),s=P(t);(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.clearPathCaches",()=>v(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>b(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>E(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>S(t)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>N(t,n)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>B(t,s)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable.recomputeCounts",()=>(0,h.recomputeCountsRecursive)(t,t.snapshot.rootId))}function k(t){const n=y(t),s=P(t),u=(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.listPaths",()=>(0,h.listPaths)(t)),l=(0,o.attachBenchmarkInstrumentation)(Object.assign({},t.snapshot.options),t.instrumentation),p=(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{const t=new c.PathStoreBuilder(l);return t.appendPaths(u),t.finish()});t.snapshot=p,t.activeNodeCount=p.nodes.length-1,t.pathCacheByNodeId=new Map([[p.rootId,{path:"",version:0}]]),t.pathCacheVersion=0,(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>N(t,n)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>B(t,s)),(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>(0,h.recomputeCountsRecursive)(t,t.snapshot.rootId))}function x(t){for(const n of t.directoryLoadInfoById.values())if("loading"===n.state&&null!=n.activeAttemptId)return!0;return!1}function A(t,n){const s=C(t);"stable"===n?(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.stable",()=>w(t)):(0,o.withBenchmarkPhase)(t.instrumentation,"store.cleanup.aggressive",()=>k(t));return I(n,"stable"===n,s,C(t))}},1255,[1243,1244,1245,1250,1247,1251,1254]);
|
|
24
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"collapsePath",{enumerable:!0,get:function(){return v}}),Object.defineProperty(e,"expandPath",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"getVisibleCount",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"getVisibleIndexByPath",{enumerable:!0,get:function(){return C}}),Object.defineProperty(e,"getVisibleRowContext",{enumerable:!0,get:function(){return D}}),Object.defineProperty(e,"getVisibleSlice",{enumerable:!0,get:function(){return w}}),Object.defineProperty(e,"getVisibleTreeProjection",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"getVisibleTreeProjectionData",{enumerable:!0,get:function(){return S}});var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]);const I=64;function f(t,n){const o=n+2;if(o<=t.length)return t;let s=t.length;for(;s<o;)s*=2;const l=new Int32Array(s);return l.fill(-1),l.set(t),l}function p(t){return(0,h.requireNode)(t,t.snapshot.rootId).visibleSubtreeCount}function y(t,n,o,s){const l=(0,h.requireNode)(t,n.terminalNodeId),c=Math.max(1,l.visibleSubtreeCount);return Math.min(s-1,o+c-1)}function N(t,n,o,s){return{ancestorPaths:s,index:n.index,posInSet:n.posInSet,row:A(t,n.cursor),setSize:n.setSize,subtreeEndIndex:y(t,n.cursor,n.index,o)}}function b(n,o,s,l,c,u){const I=(0,h.getDirectoryIndex)(n,o),{childIndex:f,childVisibleIndex:p,localVisibleIndex:y}=(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,I,s),N=I.childIds[f];if(null==N)throw new Error(`Visible index ${String(s)} is out of range`);return x(n,N,y,l+p,c+1,f,I.childIds.length,u)}function x(t,o,s,c,u,I,f,p){const y=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(y)){if(0===s)return{ancestors:p,cursor:{headNodeId:o,terminalNodeId:o,visibleDepth:u},index:c,posInSet:I,setSize:f};throw new Error(`Visible index ${String(s)} is out of range for file`)}const N=z(t,o,u);if(0===s)return{ancestors:p,cursor:N,index:c,posInSet:I,setSize:f};const x=(0,h.requireNode)(t,N.terminalNodeId);if(!(0,n.isDirectoryNode)(x)||!(0,l.isDirectoryExpanded)(t,N.terminalNodeId,x))throw new Error(`Visible index ${String(s)} is out of range for collapsed directory`);return b(t,N.terminalNodeId,s-1,c+1,N.visibleDepth,[...p,{cursor:N,index:c,posInSet:I,setSize:f}])}function D(t,n){const o=p(t);if(n<0||n>=o)return null;const s=b(t,t.snapshot.rootId,n,0,-1,[]),l=s.ancestors.map(n=>(0,h.materializeNodePath)(t,n.cursor.terminalNodeId));let c=null;return{ancestorPaths:l,get ancestorRows(){if(null!=c)return c;const n=[],l=[];for(const c of s.ancestors){const s=N(t,c,o,[...l]);n.push(s),l.push(s.row.path)}return c=n,c},index:s.index,posInSet:s.posInSet,row:A(t,s.cursor),setSize:s.setSize,subtreeEndIndex:y(t,s.cursor,s.index,o)}}function w(t,n,s){const l=t.instrumentation,c=p(t);if(c<=0||s<n)return[];const u=Math.max(0,Math.min(n,c-1)),h=Math.max(u,Math.min(s,c-1));if(null==l){if(0===u)return j(t,h+1);const n=[];let o=V(t,u);for(let s=u;s<=h&&null!=o;s++){const s=A(t,o);n.push(s),o=T(t,o)}return n}const I=[];let f=0,y=0,N=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.selectFirstRow",()=>V(t,u));for(let n=u;n<=h&&null!=N;n++){const n=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.materializeRow",()=>A(t,N));I.push(n),n.isFlattened&&(f++,y+=n.flattenedSegments?.length??0),N=(0,o.withBenchmarkPhase)(l,"store.getVisibleSlice.advanceCursor",()=>T(t,N))}return(0,o.setBenchmarkCounter)(l,"workload.visibleRowsRead",I.length),(0,o.setBenchmarkCounter)(l,"workload.flattenedRowsRead",f),(0,o.setBenchmarkCounter)(l,"workload.flattenedSegmentsRead",y),I}function S(t,n=p(t)){const s=t.instrumentation;return null==s?k(t,n):(0,o.withBenchmarkPhase)(s,"store.getVisibleTreeProjection",()=>k(t,n))}function P(t){return $(S(t))}function C(o,s){const c=(0,h.findNodeId)(o,s);if(null==c||c===o.snapshot.rootId)return null;const I=(0,h.requireNode)(o,c);if((0,n.isDirectoryNode)(I)&&(0,u.getFlattenedTerminalDirectoryId)(o,c)!==c)return null;let f=0,p=c;const{nodes:y,rootId:N}=o.snapshot;for(;p!==N;){const n=(0,h.requireNode)(o,p).parentId,s=(0,h.getDirectoryIndex)(o,n),c=(0,t.ensureChildPositions)(s).get(p);if(null==c)throw new Error(`Child ${String(p)} was not found in its parent index`);if(f+=(0,t.getVisibleChildPrefixCount)(y,s,c),n!==N){const t=(0,h.requireNode)(o,n),s=(0,u.getFlattenedChildDirectoryId)(o,n);if(!(0,l.isDirectoryExpanded)(o,n,t)&&s!==p)return null;(0,u.getFlattenedTerminalDirectoryId)(o,n)===n&&(f+=1)}p=n}return f}function E(t,o){const s=(0,h.findNodeId)(t,o);if(null==s)throw new Error(`Path does not exist: "${o}"`);const u=(0,h.requireNode)(t,s);if(!(0,n.isDirectoryNode)(u))throw new Error(`Path is not a directory: "${o}"`);return(0,l.isDirectoryExpanded)(t,s,u)?null:((0,l.setDirectoryExpanded)(t,s,!0,u),(0,h.recomputeCountsUpwardFrom)(t,s),(0,c.createExpandEvent)({affectedAncestorIds:(0,h.collectAncestorIds)(t,s),affectedNodeIds:[s],path:o,projectionChanged:!0}))}function v(t,o){const s=(0,h.findNodeId)(t,o);if(null==s)throw new Error(`Path does not exist: "${o}"`);const u=(0,h.requireNode)(t,s);if(!(0,n.isDirectoryNode)(u))throw new Error(`Path is not a directory: "${o}"`);return(0,l.isDirectoryExpanded)(t,s,u)?((0,l.setDirectoryExpanded)(t,s,!1,u),(0,h.recomputeCountsUpwardFrom)(t,s),(0,c.createCollapseEvent)({affectedAncestorIds:(0,h.collectAncestorIds)(t,s),affectedNodeIds:[s],path:o,projectionChanged:!0})):null}function V(t,n){return n<0||n>=p(t)?null:B(t,t.snapshot.rootId,n,-1)}function B(n,s,l,c){const u=(0,h.getDirectoryIndex)(n,s),I=n.instrumentation,{childIndex:f,localVisibleIndex:p}=null==I?(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,u,l):(0,o.withBenchmarkPhase)(I,"store.getVisibleSlice.selectChildIndex",()=>(0,t.selectChildIndexByVisibleIndex)(n.snapshot.nodes,u,l)),y=u.childIds[f];if(null!=y)return q(n,y,p,c+1);throw new Error(`Visible index ${String(l)} is out of range`)}function q(t,o,s,c){const u=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(u)){if(0===s)return{headNodeId:o,terminalNodeId:o,visibleDepth:c};throw new Error(`Visible index ${String(s)} is out of range for file`)}const I=z(t,o,c);if(0===s)return I;const f=(0,h.requireNode)(t,I.terminalNodeId);if(!(0,n.isDirectoryNode)(f)||!(0,l.isDirectoryExpanded)(t,I.terminalNodeId,f))throw new Error(`Visible index ${String(s)} is out of range for collapsed directory`);return B(t,I.terminalNodeId,s-1,I.visibleDepth)}function z(t,s,l){const c=(0,h.requireNode)(t,s);return(0,n.isDirectoryNode)(c)?null==t.instrumentation?{headNodeId:s,terminalNodeId:(0,u.getFlattenedTerminalDirectoryId)(t,s),visibleDepth:l}:{headNodeId:s,terminalNodeId:(0,o.withBenchmarkPhase)(t.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>(0,u.getFlattenedTerminalDirectoryId)(t,s)),visibleDepth:l}:{headNodeId:s,terminalNodeId:s,visibleDepth:l}}function F(t,o){const s=(0,h.requireNode)(t,o);if(!(0,n.isDirectoryNode)(s))return!0;const l=s.parentId;return l===t.snapshot.rootId||(0,u.getFlattenedChildDirectoryId)(t,l)!==o}function T(o,s){const c=(0,h.requireNode)(o,s.terminalNodeId);if((0,n.isDirectoryNode)(c)){const t=(0,h.getDirectoryIndex)(o,s.terminalNodeId);if((0,l.isDirectoryExpanded)(o,s.terminalNodeId,c)&&t.childIds.length>0){const n=t.childIds[0];return null==n?null:q(o,n,0,s.visibleDepth+1)}}let u=s.terminalNodeId,I=s.visibleDepth;for(;;){const n=(0,h.requireNode)(o,u);if(u===o.snapshot.rootId)return null;const s=n.parentId,l=(0,h.getDirectoryIndex)(o,s),c=(0,t.ensureChildPositions)(l).get(u)??-1;if(c<0)throw new Error(`Child ${String(u)} was not found in its parent index`);const f=l.childIds[c+1]??null;if(null!=f)return q(o,f,0,I);F(o,u)&&I--,u=s}}function $(t){const n=t.paths.length,o=new Array(n);for(let s=0;s<n;s+=1){const n=t.getParentIndex(s);o[s]={index:s,parentPath:n>=0?t.paths[n]??null:null,path:t.paths[s]??"",posInSet:t.posInSetByIndex[s]??0,setSize:t.setSizeByIndex[s]??0}}return{getParentIndex:t.getParentIndex,rows:o,get visibleIndexByPath(){return t.visibleIndexByPath}}}function k(t,o){const s=new Array(o),c=new Int32Array(o),p=new Int32Array(o),y=new Int32Array(o);let N=new Int32Array(I);N.fill(-1);let b=0;const{nodes:x,directories:D,segmentTable:w}=t.snapshot,S=[[D.get(t.snapshot.rootId),0,-1,""]],P=t.snapshot.options.flattenEmptyDirectories,C=t.pathCacheByNodeId,E=t.pathCacheVersion,v=w.valueById;for(;S.length>0&&b<o;){const o=S[S.length-1],I=o[0];if(o[1]>=I.childIds.length){S.pop();continue}const w=o[1],V=I.childIds[o[1]++],B=x[V],q=o[2]+1,z=o[3];let F;N=f(N,q);let T=V;if((0,n.isDirectoryNode)(B))T=P?(0,u.getFlattenedTerminalDirectoryId)(t,V):V,F=T===V?`${z}${v[B.nameId]}/`:(0,h.materializeNodePath)(t,T);else{const t=C.get(V);F=null!=t&&t.version===E?t.path:`${z}${v[B.nameId]}`}const $=N[q];c[b]=$,s[b]=F,p[b]=w,y[b]=I.childIds.length,N[q+1]=b,b+=1;const k=x[T];null!=k&&(0,n.isDirectoryNode)(k)&&(0,l.isDirectoryExpanded)(t,T,k)&&S.push([D.get(T),0,q,F])}b<o&&(s.length=b);const V=c.subarray(0,b),B=p.subarray(0,b),q=y.subarray(0,b);let z=null;return{getParentIndex:t=>t<0||t>=b?-1:V[t]??-1,paths:s,posInSetByIndex:B,setSizeByIndex:q,get visibleIndexByPath(){if(null==z){z=new Map;for(let t=0;t<b;t+=1)z.set(s[t]??"",t)}return z}}}function j(t,o){const s=new Array(o);let c=0;const{nodes:I,directories:f,segmentTable:p}=t.snapshot,y=[[f.get(t.snapshot.rootId),0,-1]],N=p.valueById,b=t.snapshot.options.flattenEmptyDirectories,x=t.pathCacheByNodeId,D=t.pathCacheVersion;for(;y.length>0&&c<o;){const o=y[y.length-1],p=o[0];if(o[1]>=p.childIds.length){y.pop();continue}const w=p.childIds[o[1]++],S=I[w],P=o[2]+1;if(!(0,n.isDirectoryNode)(S)){const n=x.get(w);s[c++]={depth:P,flattenedSegments:void 0,hasChildren:!1,id:w,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:N[S.nameId],path:null!=n&&n.version===D?n.path:(0,h.materializeNodePath)(t,w)};continue}const C=b?(0,u.getFlattenedTerminalDirectoryId)(t,w):w,E={headNodeId:w,terminalNodeId:C,visibleDepth:P};s[c++]=A(t,E);const v=I[C];null!=v&&(0,n.isDirectoryNode)(v)&&(0,l.isDirectoryExpanded)(t,C,v)&&y.push([f.get(C),0,P])}return c<o&&(s.length=c),s}function A(t,c){const I=(0,h.requireNode)(t,c.terminalNodeId),f=(0,n.isDirectoryNode)(I)?O(t,c):null,p=(0,h.materializeNodePath)(t,c.terminalNodeId),y=(0,s.getSegmentValue)(t.snapshot.segmentTable,I.nameId),N=(0,n.isDirectoryNode)(I)&&(0,h.getDirectoryIndex)(t,c.terminalNodeId).childIds.length>0,b=c.headNodeId!==c.terminalNodeId,x=t.instrumentation,D=b?null==x?(0,u.collectFlattenedDirectoryChainIds)(t,c.headNodeId).map(n=>{const o=(0,h.requireNode)(t,n);return{isTerminal:n===c.terminalNodeId,name:(0,s.getSegmentValue)(t.snapshot.segmentTable,o.nameId),nodeId:n,path:(0,h.materializeNodePath)(t,n)}}):(0,o.withBenchmarkPhase)(x,"store.getVisibleSlice.flatten.collectSegments",()=>(0,u.collectFlattenedDirectoryChainIds)(t,c.headNodeId).map(n=>{const o=(0,h.requireNode)(t,n);return{isTerminal:n===c.terminalNodeId,name:(0,s.getSegmentValue)(t.snapshot.segmentTable,o.nameId),nodeId:n,path:(0,h.materializeNodePath)(t,n)}})):void 0;return{depth:c.visibleDepth,flattenedSegments:D,hasChildren:N,id:c.terminalNodeId,isExpanded:(0,n.isDirectoryNode)(I)&&(0,l.isDirectoryExpanded)(t,c.terminalNodeId,I),isFlattened:b,isLoading:"loading"===f,kind:(0,n.isDirectoryNode)(I)?"directory":"file",loadState:null==f||"loaded"===f?void 0:f,name:y,path:p}}function O(t,n){if(n.headNodeId===n.terminalNodeId)return(0,l.getDirectoryLoadState)(t,n.terminalNodeId);const o=(0,u.collectFlattenedDirectoryChainIds)(t,n.headNodeId);let s=!1,c=!1;for(const n of o){const o=(0,l.getDirectoryLoadState)(t,n);if("loading"===o)return"loading";"error"!==o?"unloaded"===o&&(s=!0):c=!0}return c?"error":s?"unloaded":"loaded"}},1256,[1243,1244,1245,1250,1251,1252,1253,1254]);
|
|
25
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildSoaNodeStore",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"sweepOpenVisibleCountsSoa",{enumerable:!0,get:function(){return o}});const t=8;function n(t){const{nodes:n,directories:o,rootId:l,options:s}=t,i=n.length,c=new Int32Array(i),u=new Int32Array(i),f=new Int32Array(i),I=new Int32Array(i),b=new Int32Array(i),h=new Int32Array(i),p=new Int32Array(i);for(let t=0;t<i;t+=1){const o=n[t];null!=o&&(c[t]=o.parentId,u[t]=o.nameId,f[t]=o.depthAndFlags,I[t]=o.subtreeNodeCount,b[t]=o.visibleSubtreeCount)}let y=0;for(const t of o.values())y+=t.childIds.length;const A=new Int32Array(y);let C=0;for(const[t,n]of o){const o=n.childIds;h[t]=C,p[t]=o.length;for(let t=0;t<o.length;t+=1)A[C]=o[t],C+=1}return{nodeCount:i,rootId:l,flattenEmptyDirectories:!0===s.flattenEmptyDirectories,parentId:c,nameId:u,depthAndFlags:f,subtreeNodeCount:I,visibleSubtreeCount:b,childStart:h,childCount:p,childIdsFlat:A}}function o(n){const{nodeCount:o,rootId:l,flattenEmptyDirectories:s,depthAndFlags:i,subtreeNodeCount:c,visibleSubtreeCount:u,childStart:f,childCount:I,childIdsFlat:b}=n;for(let n=o-1;n>=1;n-=1){if(0===(i[n]&t))continue;const o=f[n],l=I[n];let h,p=0,y=0;for(let t=0;t<l;t+=1){const n=b[o+t];p+=c[n],y+=u[n]}c[n]=1+p,h=s&&1===l&&0!==(i[b[o]]&t)?y:1+y,u[n]=h}const h=f[l],p=I[l];let y=0,A=0;for(let t=0;t<p;t+=1){const n=b[h+t];y+=c[n],A+=u[n]}c[l]=1+y,u[l]=A}},1257,[]);
|
|
26
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FILE_TREE_DENSITY_PRESETS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"resolveFileTreeDensity",{enumerable:!0,get:function(){return n}});const t={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function n(n,o){if("number"==typeof n)return{itemHeight:o??t.default.itemHeight,factor:n};const c=t[n??"default"];return{itemHeight:o??c.itemHeight,factor:c.factor}}},1258,[]);
|
|
27
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EMPTY_RANGE",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_ITEM_HEIGHT",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_OVERSCAN",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"FILE_TREE_DEFAULT_VIEWPORT_HEIGHT",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"computeStickyWindowLayout",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"computeVisibleRange",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"computeWindowRange",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"rangesEqual",{enumerable:!0,get:function(){return s}});const t=r(d[0]).FILE_TREE_DENSITY_PRESETS.default.itemHeight,n=10,o=420,u={start:0,end:-1};function c(t,n){if(n<=0||t.end<t.start)return u;const o=Math.max(0,Math.min(t.start,n-1));return{start:o,end:Math.max(o,Math.min(t.end,n-1))}}function s(t,n){return t.start===n.start&&t.end===n.end}function f({itemCount:t,itemHeight:n,scrollTop:o,viewportHeight:c}){if(t<=0)return u;const s=Math.floor(o/n),f=Math.ceil((o+c)/n)-1;return f<0||s>=t?u:{start:Math.max(0,s),end:Math.min(t-1,f)}}function E(t,n=u){const o=f(t),s=c(n,t.itemCount);return s.end>=s.start&&o.start>=s.start&&o.end<=s.end?s:(E=o,h=t.itemCount,l=t.overscan??10,E.end<E.start||h<=0?u:c({start:E.start-l,end:E.end+l},h));var E,h,l}function h({itemCount:t,itemHeight:n,range:o,viewportHeight:u}){const c=Math.max(0,t*n);if(o.end<o.start)return{totalHeight:c,offsetHeight:0,windowHeight:0,stickyInset:0};const s=o.start*n,f=(o.end-o.start+1)*n,E=Math.random()*n|0;return{totalHeight:c,offsetHeight:s,windowHeight:f,stickyInset:Math.min(0,u-f+E)}}},1259,[1258]);
|
|
28
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["composition","density","fileTreeSearchMode","gitStatus","id","initialSearchQuery","icons","itemHeight","labels","onSearchChange","onSelectionChange","overscan","renderRowDecoration","renaming","search","searchBlurBehavior","searchFakeFocus","stickyFolders","unsafeCSS","initialVisibleRowCount"],t=["composition","density","fileTreeSearchMode","gitStatus","id","initialSearchQuery","icons","itemHeight","labels","onSearchChange","onSelectionChange","overscan","renderRowDecoration","renaming","search","searchBlurBehavior","searchFakeFocus","stickyFolders","unsafeCSS","initialVisibleRowCount"];var l,s,n,o,u,h,f,c,p,S,y,v,b,T,P,w,F,C,E,O,I,H,j,R,_,V,M,B,$,L,A,D,G,N,k,x,U,z,W;function q(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTree",{enumerable:!0,get:function(){return we}}),Object.defineProperty(_e,"preloadFileTree",{enumerable:!0,get:function(){return De}}),Object.defineProperty(_e,"serializeFileTreeSsrPayload",{enumerable:!0,get:function(){return be}});var Q=q(r(d[0])),Y=q(r(d[1])),J=q(r(d[2])),K=r(d[3]),X=r(d[4]),Z=r(d[5]),ee=r(d[6]),te=r(d[7]),ie=r(d[8]),re=q(r(d[9])),ae=r(d[10]),le=r(d[11]),se=r(d[12]),ne=r(d[13]),oe=r(d[14]),ue=r(d[15]),de=r(d[16]),he=r(d[17]),fe=r(d[18]);let ce=0,pe=0;function Se({initialVisibleRowCount:e,itemHeight:t}){return null==e?420:Math.max(0,e)*(t??ie.FILE_TREE_DEFAULT_ITEM_HEIGHT)}function ye(e){if("undefined"==typeof document)return;const t=document.createElement("div");t.innerHTML=e;const l=t.querySelector("svg");return l instanceof SVGElement?l:void 0}function ve(e){const t=e?.header?.html?.trim();return null==t||0===t.length?"":`<div slot="${X.HEADER_SLOT_NAME}" data-file-tree-managed-slot="${X.HEADER_SLOT_NAME}">${t}</div>`}function me(e,t,l){const s="declarative"===t?"shadowrootmode=\"open\"":"data-file-tree-shadowrootmode=\"open\"";return`<file-tree-container id="${e}" data-file-tree-virtualized="true"${0===l.length?"":` style="${l}"`}><template ${s}>`}function ge(e){return`</template>${e}</file-tree-container>`}function be(e,t="declarative"){return`${"declarative"===t?e.outerStart:e.domOuterStart}${e.shadowHtml}${e.outerEnd}`}function Te(e){return e.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&e.querySelector("#file-tree-icon-file")instanceof SVGElement&&e.querySelector("#file-tree-icon-dot")instanceof SVGElement&&e.querySelector("#file-tree-icon-lock")instanceof SVGElement}function Pe(e){return Array.from(e.children).filter(e=>e instanceof SVGElement)}var we=(s=(0,J.default)("composition"),n=(0,J.default)("controller"),o=(0,J.default)("id"),u=(0,J.default)("onSelectionChange"),h=(0,J.default)("renderRowDecoration"),f=(0,J.default)("renamingEnabled"),c=(0,J.default)("searchBlurBehavior"),p=(0,J.default)("searchEnabled"),S=(0,J.default)("searchFakeFocus"),y=(0,J.default)("slotHost"),v=(0,J.default)("density"),b=(0,J.default)("viewOptions"),T=(0,J.default)("fileTreeContainer"),P=(0,J.default)("gitStatusState"),w=(0,J.default)("icons"),F=(0,J.default)("labels"),C=(0,J.default)("unsafeCSS"),E=(0,J.default)("unsafeCSSStyle"),O=(0,J.default)("appliedUnsafeCSS"),I=(0,J.default)("selectionVersion"),H=(0,J.default)("selectionSubscription"),j=(0,J.default)("wrapper"),R=(0,J.default)("wroteHostItemHeight"),_=(0,J.default)("wroteHostDensityFactor"),V=(0,J.default)("getInitialViewOptions"),M=(0,J.default)("getViewProps"),B=(0,J.default)("getMountedTreeElements"),$=(0,J.default)("syncIconSurface"),L=(0,J.default)("emitSelectionChange"),A=(0,J.default)("syncHeaderSlotContent"),D=(0,J.default)("syncBuiltInSpriteSheet"),G=(0,J.default)("syncCustomSpriteSheet"),N=(0,J.default)("syncIconModeAttrs"),k=(0,J.default)("syncUnsafeCSS"),x=(0,J.default)("getOrCreateWrapper"),U=(0,J.default)("prepareHost"),z=(0,J.default)("applyDensityHostStyle"),W=(0,J.default)("removeOwnedDensityHostStyle"),(l=class{constructor(t){Object.defineProperty(this,W,{value:Ae}),Object.defineProperty(this,z,{value:Le}),Object.defineProperty(this,U,{value:$e}),Object.defineProperty(this,x,{value:Be}),Object.defineProperty(this,k,{value:Me}),Object.defineProperty(this,N,{value:Ve}),Object.defineProperty(this,G,{value:Re}),Object.defineProperty(this,D,{value:je}),Object.defineProperty(this,A,{value:He}),Object.defineProperty(this,L,{value:Ie}),Object.defineProperty(this,$,{value:Oe}),Object.defineProperty(this,B,{value:Ee}),Object.defineProperty(this,M,{value:Ce}),Object.defineProperty(this,V,{value:Fe}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:new de.FileTreeManagedSlotHost}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,T,{writable:!0,value:void 0}),Object.defineProperty(this,P,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:void 0}),Object.defineProperty(this,C,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:void 0}),Object.defineProperty(this,O,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:null}),Object.defineProperty(this,j,{writable:!0,value:void 0}),Object.defineProperty(this,R,{writable:!0,value:!1}),Object.defineProperty(this,_,{writable:!0,value:!1});const{composition:l,density:q,fileTreeSearchMode:J,gitStatus:K,id:X,initialSearchQuery:Z,icons:ie,itemHeight:re,labels:ae,onSearchChange:le,onSelectionChange:oe,overscan:ue,renderRowDecoration:he,renaming:fe,search:ce,searchBlurBehavior:Se,searchFakeFocus:ye,stickyFolders:ve,unsafeCSS:me,initialVisibleRowCount:ge}=t,be=(0,Q.default)(t,e);var Te;(0,Y.default)(this,s)[s]=l,(0,Y.default)(this,o)[o]=null!=(Te=X)&&Te.length>0?Te:(pe+=1,`pst_ft_${pe}`),(0,Y.default)(this,P)[P]=(0,ne.resolveFileTreeGitStatusState)(K),(0,Y.default)(this,w)[w]=ie,(0,Y.default)(this,F)[F]=(0,ee.resolveFileTreeLabels)(ae),(0,Y.default)(this,C)[C]=me,(0,Y.default)(this,u)[u]=oe,(0,Y.default)(this,h)[h]=he,(0,Y.default)(this,f)[f]=null!=fe&&!1!==fe,(0,Y.default)(this,c)[c]=Se,(0,Y.default)(this,p)[p]=!0===ce,(0,Y.default)(this,S)[S]=!0===ye,(0,Y.default)(this,v)[v]=(0,te.resolveFileTreeDensity)(q,re),(0,Y.default)(this,b)[b]={itemHeight:(0,Y.default)(this,v)[v].itemHeight,overscan:ue,stickyFolders:ve,initialVisibleRowCount:ge},(0,Y.default)(this,n)[n]=new se.FileTreeController(Object.assign({},be,{fileTreeSearchMode:J,initialSearchQuery:Z,onSearchChange:le,renaming:fe})),(0,Y.default)(this,I)[I]=(0,Y.default)(this,n)[n].getSelectionVersion(),(0,Y.default)(this,H)[H]=null==(0,Y.default)(this,u)[u]?null:this.subscribe(()=>{(0,Y.default)(this,L)[L]()})}unmount(){null!=(0,Y.default)(this,j)[j]&&((0,ue.unmountFileTreeRoot)((0,Y.default)(this,j)[j]),delete(0,Y.default)(this,j)[j].dataset.fileTreeVirtualizedWrapper,(0,Y.default)(this,j)[j]=void 0),(0,Y.default)(this,y)[y].clearAll(),(0,Y.default)(this,y)[y].setHost(null),null!=(0,Y.default)(this,T)[T]&&(delete(0,Y.default)(this,T)[T].dataset.fileTreeVirtualized,(0,Y.default)(this,W)[W]((0,Y.default)(this,T)[T]),(0,Y.default)(this,T)[T]=void 0)}cleanUp(){this.unmount(),(0,Y.default)(this,H)[H]?.(),(0,Y.default)(this,H)[H]=null,(0,Y.default)(this,n)[n].destroy()}getFileTreeContainer(){return(0,Y.default)(this,T)[T]}getItem(e){return(0,Y.default)(this,n)[n].getItem(e)}getFocusedItem(){return(0,Y.default)(this,n)[n].getFocusedItem()}getFocusedPath(){return(0,Y.default)(this,n)[n].getFocusedPath()}getFocusedIndex(){return(0,Y.default)(this,n)[n].getFocusedIndex()}getVisibleCount(){return(0,Y.default)(this,n)[n].getVisibleCount()}getVisibleRows(e,t){return(0,Y.default)(this,n)[n].getVisibleRows(e,t)}getSelectedPaths(){return(0,Y.default)(this,n)[n].getSelectedPaths()}getComposition(){return(0,Y.default)(this,s)[s]}getItemHeight(){return(0,Y.default)(this,v)[v].itemHeight}getDensityFactor(){return(0,Y.default)(this,v)[v].factor}subscribe(e){let t=!1;return(0,Y.default)(this,n)[n].subscribe(()=>{t?e():t=!0})}focusPath(e){(0,Y.default)(this,n)[n].focusPath(e)}focusFirstItem(){(0,Y.default)(this,n)[n].focusFirstItem()}focusLastItem(){(0,Y.default)(this,n)[n].focusLastItem()}focusNextItem(){(0,Y.default)(this,n)[n].focusNextItem()}focusPreviousItem(){(0,Y.default)(this,n)[n].focusPreviousItem()}focusParentItem(){(0,Y.default)(this,n)[n].focusParentItem()}scrollToPath(e,t){(0,Y.default)(this,n)[n].scrollToPath(e,t)}focusNearestPath(e){return(0,Y.default)(this,n)[n].focusNearestPath(e)}add(e){(0,Y.default)(this,n)[n].add(e)}batch(e){(0,Y.default)(this,n)[n].batch(e)}applyGitStatusPatch(e){const t=(0,ne.applyFileTreeGitStatusPatch)((0,Y.default)(this,P)[P],e);if(t===(0,Y.default)(this,P)[P])return;(0,Y.default)(this,P)[P]=t;const l=(0,Y.default)(this,B)[B]();null!=l&&(0,ue.renderFileTreeRoot)(l.wrapper,(0,Y.default)(this,M)[M]())}move(e,t,l){(0,Y.default)(this,n)[n].move(e,t,l)}onMutation(e,t){return(0,Y.default)(this,n)[n].onMutation(e,t)}setSearch(e){(0,Y.default)(this,n)[n].setSearch(e)}openSearch(e){(0,Y.default)(this,n)[n].openSearch(e)}closeSearch(){(0,Y.default)(this,n)[n].closeSearch()}isSearchOpen(){return(0,Y.default)(this,n)[n].isSearchOpen()}getSearchValue(){return(0,Y.default)(this,n)[n].getSearchValue()}getSearchMatchingPaths(){return(0,Y.default)(this,n)[n].getSearchMatchingPaths()}focusNextSearchMatch(){(0,Y.default)(this,n)[n].focusNextSearchMatch()}focusPreviousSearchMatch(){(0,Y.default)(this,n)[n].focusPreviousSearchMatch()}startRenaming(e,t){return(0,Y.default)(this,n)[n].startRenaming(e,t)}remove(e,t){(0,Y.default)(this,n)[n].remove(e,t)}resetPaths(e,t){Array.isArray(e)?(0,Y.default)(this,n)[n].resetPaths(e,t):(0,Y.default)(this,n)[n].resetPaths(e)}setComposition(e){(0,Y.default)(this,s)[s]=e;const t=(0,Y.default)(this,B)[B]();null!=t&&((0,Y.default)(this,A)[A](),(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]()))}setGitStatus(e){const t=(0,ne.resolveFileTreeGitStatusState)(e,(0,Y.default)(this,P)[P]);if(t===(0,Y.default)(this,P)[P])return;(0,Y.default)(this,P)[P]=t;const l=(0,Y.default)(this,B)[B]();null!=l&&(0,ue.renderFileTreeRoot)(l.wrapper,(0,Y.default)(this,M)[M]())}setIcons(e){(0,Y.default)(this,w)[w]=e;const t=(0,Y.default)(this,B)[B]();null!=t&&((0,Y.default)(this,$)[$](t.host,t.wrapper),(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]()))}setLabels(e){(0,Y.default)(this,F)[F]=(0,ee.resolveFileTreeLabels)(e);const t=(0,Y.default)(this,B)[B]();null!=t&&(0,ue.renderFileTreeRoot)(t.wrapper,(0,Y.default)(this,M)[M]())}hydrate({fileTreeContainer:e}){const t=(0,Y.default)(this,U)[U](e),l=(0,Y.default)(this,x)[x](t);(0,Y.default)(this,A)[A](),(0,ue.hydrateFileTreeRoot)(l,(0,Y.default)(this,M)[M]())}render({containerWrapper:e,fileTreeContainer:t}){const l=(0,Y.default)(this,U)[U](t??(0,Y.default)(this,T)[T],e),s=(0,Y.default)(this,x)[x](l);(0,Y.default)(this,A)[A](),(0,ue.renderFileTreeRoot)(s,(0,Y.default)(this,M)[M]())}}).LoadedCustomComponent=!0,l);function Fe(){return{initialViewportHeight:Se({initialVisibleRowCount:(0,Y.default)(this,b)[b].initialVisibleRowCount,itemHeight:(0,Y.default)(this,b)[b].itemHeight}),itemHeight:(0,Y.default)(this,b)[b].itemHeight,overscan:(0,Y.default)(this,b)[b].overscan,stickyFolders:(0,Y.default)(this,b)[b].stickyFolders}}function Ce(){return Object.assign({composition:(0,Y.default)(this,s)[s],controller:(0,Y.default)(this,n)[n],gitStatusByPath:(0,Y.default)(this,P)[P]?.statusByPath,ignoredGitDirectories:(0,Y.default)(this,P)[P]?.ignoredDirectoryPaths,directoriesWithGitChanges:(0,Y.default)(this,P)[P]?.directoriesWithChanges,icons:(0,Y.default)(this,w)[w],instanceId:(0,Y.default)(this,o)[o],labels:(0,Y.default)(this,F)[F],renamingEnabled:(0,Y.default)(this,f)[f],renderRowDecoration:(0,Y.default)(this,h)[h],searchBlurBehavior:(0,Y.default)(this,c)[c],searchEnabled:(0,Y.default)(this,p)[p],searchFakeFocus:(0,Y.default)(this,S)[S],slotHost:(0,Y.default)(this,y)[y]},(0,Y.default)(this,V)[V]())}function Ee(){const e=(0,Y.default)(this,T)[T],t=(0,Y.default)(this,j)[j];return null==e||null==t?null:{host:e,wrapper:t}}function Oe(e,t){const l=e.shadowRoot;null!=l&&((0,Y.default)(this,D)[D](l),(0,Y.default)(this,G)[G](l)),(0,Y.default)(this,N)[N](t)}function Ie(){const e=(0,Y.default)(this,u)[u];if(null==e)return;const t=(0,Y.default)(this,n)[n].getSelectionVersion();t!==(0,Y.default)(this,I)[I]&&((0,Y.default)(this,I)[I]=t,e((0,Y.default)(this,n)[n].getSelectedPaths()))}function He(){const e=(0,Y.default)(this,s)[s]?.header?.render;null==e?(0,Y.default)(this,y)[y].setSlotHtml(X.HEADER_SLOT_NAME,(0,Y.default)(this,s)[s]?.header?.html??null):(0,Y.default)(this,y)[y].setSlotContent(X.HEADER_SLOT_NAME,e())}function je(e){const t=Pe(e).find(e=>Te(e)),l=ye((0,K.getBuiltInSpriteSheet)((0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]).set));null!=l&&(null!=t&&t.outerHTML===l.outerHTML||(null!=t?t.replaceWith(l):e.prepend(l)))}function Re(e){const t=Pe(e),l=t.find(e=>Te(e)),s=t.filter(e=>e!==l),n=(0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]).spriteSheet?.trim()??"";if(0===n.length){for(const e of s)e.remove();return}const o=ye(n);if(null!=o){if(1!==s.length||s[0].outerHTML!==o.outerHTML){for(const e of s)e.remove();e.appendChild(o)}}else for(const e of s)e.remove()}function Ve(e){const t=(0,Z.normalizeFileTreeIcons)((0,Y.default)(this,w)[w]);t.colored&&(0,K.isColoredBuiltInIconSet)(t.set)?e.dataset.fileTreeColoredIcons="true":delete e.dataset.fileTreeColoredIcons}function Me(e){const t=e.querySelector(`style[${X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}]`);if(null==(0,Y.default)(this,E)[E]&&t instanceof HTMLStyleElement&&((0,Y.default)(this,E)[E]=t),null==(0,Y.default)(this,C)[C]||""===(0,Y.default)(this,C)[C])return(0,Y.default)(this,E)[E]?.remove(),(0,Y.default)(this,E)[E]=void 0,void((0,Y.default)(this,O)[O]=void 0);(0,Y.default)(this,E)[E]?.parentNode===e&&(0,Y.default)(this,O)[O]===(0,Y.default)(this,C)[C]||((0,Y.default)(this,E)[E]??=document.createElement("style"),(0,Y.default)(this,E)[E].setAttribute(X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE,""),(0,Y.default)(this,E)[E].parentNode!==e&&e.appendChild((0,Y.default)(this,E)[E]),(0,Y.default)(this,E)[E].textContent=(0,ae.wrapUnsafeCSS)((0,Y.default)(this,C)[C]),(0,Y.default)(this,O)[O]=(0,Y.default)(this,C)[C])}function Be(e){if(null!=(0,Y.default)(this,j)[j])return(0,Y.default)(this,j)[j];const t=e.shadowRoot;if(null==t)throw new Error("FileTree requires a shadow root");const l=Array.from(t.children).filter(e=>e instanceof HTMLDivElement&&"string"==typeof e.dataset.fileTreeId&&e.dataset.fileTreeId.length>0),s=l.find(e=>e.dataset.fileTreeId===(0,Y.default)(this,o)[o])??l[0];return null!=s&&((0,Y.default)(this,o)[o]=s.dataset.fileTreeId??(0,Y.default)(this,o)[o]),(0,Y.default)(this,j)[j]=s??document.createElement("div"),(0,Y.default)(this,j)[j].dataset.fileTreeId=(0,Y.default)(this,o)[o],(0,Y.default)(this,j)[j].dataset.fileTreeVirtualizedWrapper="true",(0,Y.default)(this,$)[$](e,(0,Y.default)(this,j)[j]),(0,Y.default)(this,j)[j].parentNode!==t&&t.appendChild((0,Y.default)(this,j)[j]),(0,Y.default)(this,j)[j]}function $e(e,t){const l=e??(0,Y.default)(this,T)[T]??document.createElement("file-tree-container");null!=t&&l.parentNode!==t&&t.appendChild(l);const s=l.shadowRoot??l.attachShadow({mode:"open"});return(0,le.prepareFileTreeShadowRoot)(l,s),(0,Y.default)(this,k)[k](s),l.dataset.fileTreeVirtualized="true",l.style.display="flex",(0,Y.default)(this,z)[z](l),(0,Y.default)(this,y)[y].setHost(l),(0,Y.default)(this,T)[T]=l,l}function Le(e){""===e.style.getPropertyValue("--trees-item-height")&&(e.style.setProperty("--trees-item-height",`${String((0,Y.default)(this,v)[v].itemHeight)}px`),(0,Y.default)(this,R)[R]=!0),""===e.style.getPropertyValue("--trees-density-override")&&(e.style.setProperty("--trees-density-override",String((0,Y.default)(this,v)[v].factor)),(0,Y.default)(this,_)[_]=!0)}function Ae(e){(0,Y.default)(this,R)[R]&&(e.style.removeProperty("--trees-item-height"),(0,Y.default)(this,R)[R]=!1),(0,Y.default)(this,_)[_]&&(e.style.removeProperty("--trees-density-override"),(0,Y.default)(this,_)[_]=!1)}function De(e){const{composition:l,density:s,fileTreeSearchMode:n,gitStatus:o,id:u,initialSearchQuery:h,icons:f,itemHeight:c,labels:p,overscan:S,renderRowDecoration:y,renaming:v,search:b,searchBlurBehavior:T,searchFakeFocus:P,stickyFolders:w,unsafeCSS:F,initialVisibleRowCount:C}=e,E=(0,Q.default)(e,t),O=(0,te.resolveFileTreeDensity)(s,c),I=O.itemHeight,H=null!=(j=u)&&j.length>0?j:(ce+=1,`pst_srv_${ce}`);var j;const R=new se.FileTreeController(Object.assign({},E,{fileTreeSearchMode:n,initialSearchQuery:h,renaming:v})),_=(0,ne.resolveFileTreeGitStatusState)(o),V=Se({initialVisibleRowCount:C,itemHeight:I}),M=(0,Z.normalizeFileTreeIcons)(f),B=M.spriteSheet?.trim()??"",$=M.colored&&(0,K.isColoredBuiltInIconSet)(M.set)?" data-file-tree-colored-icons=\"true\"":"",L=(0,ae.escapeStyleTextForHtml)((0,ae.wrapCoreCSS)(re.default)),A=null==F||""===F?"":`<style ${X.FILE_TREE_UNSAFE_CSS_ATTRIBUTE}>${(0,ae.escapeStyleTextForHtml)((0,ae.wrapUnsafeCSS)(F))}</style>`,D=(0,fe.renderToString)((0,he.h)(oe.FileTreeView,{composition:l,controller:R,gitStatusByPath:_?.statusByPath,ignoredGitDirectories:_?.ignoredDirectoryPaths,directoriesWithGitChanges:_?.directoriesWithChanges,icons:f,instanceId:H,itemHeight:I,labels:(0,ee.resolveFileTreeLabels)(p),overscan:S,renamingEnabled:null!=v&&!1!==v,renderRowDecoration:y,searchBlurBehavior:T,searchEnabled:!0===b,searchFakeFocus:!0===P,stickyFolders:w,initialViewportHeight:V}));R.destroy();const G=`${(0,K.getBuiltInSpriteSheet)(M.set)}${B}<style ${X.FILE_TREE_STYLE_ATTRIBUTE}>${L}</style>${A}<div data-file-tree-id="${H}" data-file-tree-virtualized-wrapper="true"${$}>${D}</div>`,N=ve(l),k=`--trees-item-height:${String(I)}px;--trees-density-override:${String(O.factor)}`,x=me(H,"declarative",k);return{domOuterStart:me(H,"dom",k),id:H,outerEnd:ge(N),outerStart:x,shadowHtml:G}}},1260,[25,30,31,1235,1236,1238,1240,1258,1259,1261,1262,1263,1265,1274,1277,1292,1293,1280,1294]);
|
|
29
|
+
__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 n}});var n="@layer base {\n :host {\n --trees-accent: var(--trees-accent-override, #009fff);\n --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));\n --trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, #84848a));\n --trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));\n --trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,\n var(--trees-accent) var(--trees-bg-alpha-light, 8%),\n var(--trees-bg)), color-mix(in lab,\n var(--trees-accent) var(--trees-bg-alpha-dark, 10%),\n var(--trees-bg)))));\n --trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));\n --trees-added-light: #16a994;\n --trees-added-dark: #00cab1;\n --trees-ignored-light: #adadb1;\n --trees-ignored-dark: #4a4a4e;\n --trees-modified-light: #1ca1c7;\n --trees-modified-dark: #08c0ef;\n --trees-renamed-light: #d5a910;\n --trees-renamed-dark: #ffd452;\n --trees-untracked-light: #16a994;\n --trees-untracked-dark: #00cab1;\n --trees-deleted-light: #ff2e3f;\n --trees-deleted-dark: #ff6762;\n --trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));\n --trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));\n --trees-density: var(--trees-density-override, 1);\n --trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));\n --trees-font-family: var(--trees-font-family-override, system-ui);\n --trees-font-size: var(--trees-font-size-override, 13px);\n --trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);\n --trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);\n --trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));\n --trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);\n --trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);\n --trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));\n --trees-search-font-weight: var(--trees-search-font-weight-override, 600);\n --trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));\n --trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));\n --trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));\n --trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));\n --trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));\n --trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));\n --trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));\n --trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));\n --trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));\n --trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));\n --trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));\n --trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));\n --trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));\n --trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));\n --trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));\n --trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));\n --trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));\n --trees-icon-gray: light-dark(#84848a, #adadb1);\n --trees-icon-red: light-dark(#d52c36, #ff6762);\n --trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);\n --trees-icon-orange: light-dark(#d47628, #ffa359);\n --trees-icon-yellow: light-dark(#d5a910, #ffd452);\n --trees-icon-green: light-dark(#199f43, #5ecc71);\n --trees-icon-teal: light-dark(#17a5af, #64d1db);\n --trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);\n --trees-icon-blue: light-dark(#1a85d4, #69b1ff);\n --trees-icon-indigo: light-dark(#693acf, #9d6afb);\n --trees-icon-purple: light-dark(#a631be, #d568ea);\n --trees-icon-pink: light-dark(#d32a61, #ff678d);\n --trees-icon-mauve: light-dark(#594c5b, #79697b);\n --trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));\n --trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));\n --trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));\n --trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));\n --trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));\n --trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));\n --trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));\n --trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));\n --trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));\n --trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));\n --trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));\n --trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));\n --trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));\n --trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));\n --trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));\n --trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));\n --trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));\n --trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));\n --trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));\n --trees-icon-width: var(--trees-icon-width-override, 16px);\n --trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));\n --trees-row-height: var(--trees-item-height, 30px);\n --trees-git-lane-width: var(--trees-git-lane-width-override, 12px);\n --trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));\n --trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -\n var(--trees-focus-ring-width));\n --trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);\n --trees-padding-inline: var(--trees-padding-inline-override, 16px);\n color-scheme: light dark;\n font-size: var(--trees-font-size);\n color: var(--trees-fg);\n background-color: var(--trees-bg);\n --truncate-marker-background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n font-family: var(--trees-font-family);\n font-weight: var(--trees-font-weight-regular);\n flex-direction: column;\n display: flex;\n }\n\n :host([data-file-tree-virtualized=\"true\"]) {\n height: 100%;\n overflow: hidden;\n }\n\n [data-file-tree-virtualized-wrapper=\"true\"], [data-file-tree-virtualized-root=\"true\"] {\n flex-direction: column;\n height: 100%;\n display: flex;\n overflow: hidden;\n }\n\n [data-file-tree-virtualized-scroll=\"true\"], [data-file-tree-scrollbar-measure=\"true\"] {\n --trees-scrollbar-thumb-current: transparent;\n scrollbar-gutter: stable;\n overflow-y: auto;\n\n &:hover {\n --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);\n }\n\n &::-webkit-scrollbar {\n width: var(--trees-scrollbar-gutter);\n height: var(--trees-scrollbar-gutter);\n }\n\n &::-webkit-scrollbar-track {\n background: none;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: var(--trees-scrollbar-thumb-current);\n border-radius: calc(var(--trees-scrollbar-gutter) / 2);\n background-clip: content-box;\n border: 1px solid #0000;\n }\n\n &::-webkit-scrollbar-corner {\n background-color: #0000;\n }\n }\n\n [data-file-tree-scrollbar-measure=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n width: 100px;\n height: 100px;\n position: absolute;\n top: 0;\n left: 0;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-file-tree-virtualized-scroll=\"true\"], [data-file-tree-scrollbar-measure=\"true\"] {\n scrollbar-width: thin;\n scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;\n }\n }\n\n [data-file-tree-virtualized-scroll=\"true\"] {\n min-height: 0;\n padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),\n 0px)\n /* NOTE(amadeus): We can assume that all Webkit based browser gutters\n * will align to the value of '--trees-scrollbar-gutter', however if not, then\n * `--trees-scrollbar-gutter-measured` should correct it. Mostly we are\n * hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments\n * `--trees-scrollbar-gutter-measured` should always be immediately available.\n */\n max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -\n var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),\n 0px);\n flex: 1 1 0;\n position: relative;\n overflow-y: auto;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-file-tree-virtualized-scroll=\"true\"] {\n padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),\n 0px)\n /* NOTE(amadeus): However on Firefox it can vary a little bit, but most\n * likely the majority of cases will default to a 0px width scrollbar lets\n * inherit that first to avoid SSR jumps. In non-SSR'd environments\n * `--trees-scrollbar-gutter-measured` should always be immediately available.\n */\n max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -\n var(--trees-scrollbar-gutter-measured, 0px)),\n 0px);\n }\n }\n\n [data-file-tree-sticky-overlay=\"true\"] {\n z-index: 4;\n pointer-events: none;\n height: 0;\n position: sticky;\n top: 0;\n overflow: visible;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-scroll-at-top=\"true\"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay=\"true\"] {\n visibility: hidden;\n }\n\n [data-file-tree-sticky-overlay-content=\"true\"] {\n background-color: var(--trees-bg);\n pointer-events: none;\n position: relative;\n }\n\n [data-file-tree-virtualized-list=\"true\"] {\n background-color: var(--trees-bg);\n overflow-anchor: none;\n width: 100%;\n min-height: 100%;\n position: relative;\n\n &[data-is-scrolling] {\n pointer-events: none;\n }\n }\n\n [data-file-tree-virtualized-sticky-offset=\"true\"] {\n contain: layout size;\n }\n\n [data-file-tree-virtualized-sticky=\"true\"] {\n isolation: isolate;\n will-change: transform;\n flex-direction: column;\n width: 100%;\n display: flex;\n position: sticky;\n top: 0;\n }\n\n [data-file-tree-search-container] {\n padding: 0;\n padding-inline: var(--trees-padding-inline);\n margin-bottom: var(--trees-item-row-gap);\n display: flex;\n }\n\n [data-file-tree-search-input] {\n --trees-focus-ring-width: 2px;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n height: var(--trees-row-height);\n padding-inline: var(--trees-item-padding-x);\n line-height: var(--trees-row-height);\n color: var(--trees-search-fg);\n background-color: var(--trees-search-bg);\n border: 1px solid var(--trees-border-color);\n border-radius: var(--trees-border-radius);\n outline: none;\n flex: 1;\n margin-block: 1px;\n\n &::placeholder {\n color: color-mix(in lab,\n var(--trees-search-fg) 65%,\n var(--trees-search-bg));\n }\n\n &:focus-visible, &[data-file-tree-search-input-fake-focus=\"true\"] {\n outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);\n outline-offset: var(--trees-focus-ring-offset);\n }\n }\n\n [role=\"tree\"] {\n gap: var(--trees-gap-override, 0);\n flex-direction: column;\n display: flex;\n position: relative;\n }\n\n [data-type=\"item\"] {\n color: inherit;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n text-align: start;\n background-color: var(--trees-bg);\n padding: 0 var(--trees-item-padding-x);\n margin: 0 var(--trees-item-margin-x);\n cursor: pointer;\n user-select: none;\n -webkit-touch-callout: none;\n touch-action: manipulation;\n flex: 0 0 var(--trees-row-height);\n height: var(--trees-row-height);\n line-height: var(--trees-row-height);\n align-items: center;\n gap: var(--trees-item-row-gap);\n border-radius: var(--trees-border-radius);\n --truncate-marker-background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n --truncate-marker-block-inset: 0px;\n border: none;\n outline: none;\n display: flex;\n position: relative;\n\n &:hover, &[data-item-context-hover=\"true\"] {\n background-color: var(--trees-bg-muted);\n --truncate-marker-background-overlay-color: var(--trees-bg-muted);\n }\n\n &[data-item-focused=\"true\"], &:focus-visible {\n z-index: 2;\n\n & [data-item-flattened-subitems] {\n --truncate-marker-block-inset: var(--trees-focus-ring-width);\n }\n\n &:before {\n content: \"\";\n border-radius: var(--trees-border-radius);\n outline: var(--trees-focus-ring-width) solid\n var(--trees-focus-ring-color);\n outline-offset: var(--trees-focus-ring-offset);\n pointer-events: none;\n display: block;\n position: absolute;\n inset: 0;\n }\n\n &[data-item-selected=\"true\"]:before {\n outline-color: var(--trees-selected-focused-border-color);\n }\n }\n\n &[data-item-selected=\"true\"] {\n color: var(--trees-selected-fg);\n background-color: var(--trees-selected-bg);\n --truncate-marker-background-overlay-color: var(--trees-selected-bg);\n z-index: 3;\n\n & [data-item-section=\"icon\"] {\n color: var(--trees-selected-fg);\n }\n }\n\n &[data-item-search-match=\"true\"] {\n font-weight: var(--trees-search-font-weight);\n }\n }\n\n [data-type=\"item\"][data-file-tree-sticky-row=\"true\"] {\n pointer-events: auto;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"] {\n pointer-events: none;\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"]:hover:not([data-item-selected=\"true\"]), [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"item\"][data-file-tree-sticky-row=\"true\"][data-item-context-hover=\"true\"]:not([data-item-selected=\"true\"]) {\n background-color: var(--trees-bg);\n --truncate-marker-background-overlay-color: transparent;\n }\n\n [data-item-selected=\"true\"]:has( + [data-item-selected=\"true\"]) {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n [data-item-selected=\"true\"] + [data-item-selected=\"true\"] {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n [data-item-flattened-subitems] {\n align-items: center;\n gap: 2px;\n display: inline-flex;\n }\n\n [data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target=\"true\"] {\n text-decoration: underline;\n }\n\n [data-item-section=\"icon\"] {\n color: var(--trees-fg-muted);\n fill: currentColor;\n width: var(--trees-icon-width);\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n\n :where([data-item-section=\"icon\"] > [data-icon-token]) {\n color: var(--trees-fg-muted);\n }\n\n [data-file-tree-colored-icons=\"true\"] {\n & [data-icon-token=\"astro\"] {\n color: var(--trees-file-icon-color-astro);\n }\n\n & [data-icon-token=\"babel\"] {\n color: var(--trees-file-icon-color-babel);\n }\n\n & [data-icon-token=\"bash\"] {\n color: var(--trees-file-icon-color-bash);\n }\n\n & [data-icon-token=\"biome\"] {\n color: var(--trees-file-icon-color-biome);\n }\n\n & [data-icon-token=\"bootstrap\"] {\n color: var(--trees-file-icon-color-bootstrap);\n }\n\n & [data-icon-token=\"browserslist\"] {\n color: var(--trees-file-icon-color-browserslist);\n }\n\n & [data-icon-token=\"bun\"] {\n color: var(--trees-file-icon-color-bun);\n }\n\n & [data-icon-token=\"c\"] {\n color: var(--trees-file-icon-color-c);\n }\n\n & [data-icon-token=\"cpp\"] {\n color: var(--trees-file-icon-color-cpp);\n }\n\n & [data-icon-token=\"claude\"] {\n color: var(--trees-file-icon-color-claude);\n }\n\n & [data-icon-token=\"css\"] {\n color: var(--trees-file-icon-color-css);\n }\n\n & [data-icon-token=\"database\"] {\n color: var(--trees-file-icon-color-database);\n }\n\n & [data-icon-token=\"default\"] {\n color: var(--trees-file-icon-color-default);\n }\n\n & [data-icon-token=\"docker\"] {\n color: var(--trees-file-icon-color-docker);\n }\n\n & [data-icon-token=\"eslint\"] {\n color: var(--trees-file-icon-color-eslint);\n }\n\n & [data-icon-token=\"git\"] {\n color: var(--trees-file-icon-color-git);\n }\n\n & [data-icon-token=\"go\"] {\n color: var(--trees-file-icon-color-go);\n }\n\n & [data-icon-token=\"graphql\"] {\n color: var(--trees-file-icon-color-graphql);\n }\n\n & [data-icon-token=\"html\"] {\n color: var(--trees-file-icon-color-html);\n }\n\n & [data-icon-token=\"image\"] {\n color: var(--trees-file-icon-color-image);\n }\n\n & [data-icon-token=\"javascript\"] {\n color: var(--trees-file-icon-color-javascript);\n }\n\n & [data-icon-token=\"json\"] {\n color: var(--trees-file-icon-color-json);\n }\n\n & [data-icon-token=\"markdown\"] {\n color: var(--trees-file-icon-color-markdown);\n }\n\n & [data-icon-token=\"mcp\"] {\n color: var(--trees-file-icon-color-mcp);\n }\n\n & [data-icon-token=\"npm\"] {\n color: var(--trees-file-icon-color-npm);\n }\n\n & [data-icon-token=\"oxc\"] {\n color: var(--trees-file-icon-color-oxc);\n }\n\n & [data-icon-token=\"postcss\"] {\n color: var(--trees-file-icon-color-postcss);\n }\n\n & [data-icon-token=\"prettier\"] {\n color: var(--trees-file-icon-color-prettier);\n }\n\n & [data-icon-token=\"python\"] {\n color: var(--trees-file-icon-color-python);\n }\n\n & [data-icon-token=\"react\"] {\n color: var(--trees-file-icon-color-react);\n }\n\n & [data-icon-token=\"ruby\"] {\n color: var(--trees-file-icon-color-ruby);\n }\n\n & [data-icon-token=\"rust\"] {\n color: var(--trees-file-icon-color-rust);\n }\n\n & [data-icon-token=\"sass\"] {\n color: var(--trees-file-icon-color-sass);\n }\n\n & [data-icon-token=\"svg\"] {\n color: var(--trees-file-icon-color-svg);\n }\n\n & [data-icon-token=\"svelte\"] {\n color: var(--trees-file-icon-color-svelte);\n }\n\n & [data-icon-token=\"svgo\"] {\n color: var(--trees-file-icon-color-svgo);\n }\n\n & [data-icon-token=\"swift\"] {\n color: var(--trees-file-icon-color-swift);\n }\n\n & [data-icon-token=\"table\"] {\n color: var(--trees-file-icon-color-table);\n }\n\n & [data-icon-token=\"text\"] {\n color: var(--trees-file-icon-color-text);\n }\n\n & [data-icon-token=\"tailwind\"] {\n color: var(--trees-file-icon-color-tailwind);\n }\n\n & [data-icon-token=\"terraform\"] {\n color: var(--trees-file-icon-color-terraform);\n }\n\n & [data-icon-token=\"typescript\"] {\n color: var(--trees-file-icon-color-typescript);\n }\n\n & [data-icon-token=\"vite\"] {\n color: var(--trees-file-icon-color-vite);\n }\n\n & [data-icon-token=\"vscode\"] {\n color: var(--trees-file-icon-color-vscode);\n }\n\n & [data-icon-token=\"vue\"] {\n color: var(--trees-file-icon-color-vue);\n }\n\n & [data-icon-token=\"wasm\"] {\n color: var(--trees-file-icon-color-wasm);\n }\n\n & [data-icon-token=\"webpack\"] {\n color: var(--trees-file-icon-color-webpack);\n }\n\n & [data-icon-token=\"yml\"] {\n color: var(--trees-file-icon-color-yml);\n }\n\n & [data-icon-token=\"zig\"] {\n color: var(--trees-file-icon-color-zig);\n }\n\n & [data-icon-token=\"zip\"] {\n color: var(--trees-file-icon-color-zip);\n }\n }\n\n [data-icon-name=\"file-tree-icon-chevron\"] {\n &[data-align-capitals=\"false\"] {\n transform: translate(0, var(--trees-icon-nudge));\n }\n\n &[data-align-capitals=\"true\"] {\n transform: translate(0);\n }\n }\n\n [data-item-section=\"content\"] {\n text-align: start;\n text-overflow: ellipsis;\n flex: 0 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n }\n\n [data-item-section=\"decoration\"] {\n text-align: end;\n min-width: 0;\n color: var(--trees-fg-muted);\n flex: 1 1 0;\n justify-content: flex-end;\n display: flex;\n overflow: hidden;\n }\n\n [data-item-section=\"decoration\"] > span {\n text-overflow: ellipsis;\n white-space: nowrap;\n justify-content: flex-end;\n align-items: center;\n min-width: 0;\n max-width: 100%;\n display: inline-flex;\n overflow: hidden;\n }\n\n [data-item-section=\"git\"], [data-item-section=\"action\"] {\n flex: none;\n justify-content: center;\n align-items: center;\n display: flex;\n }\n\n [data-item-section=\"git\"] {\n width: var(--trees-git-lane-width);\n }\n\n [data-item-section=\"action\"] {\n width: var(--trees-action-lane-width);\n color: var(--trees-fg-muted);\n fill: currentColor;\n pointer-events: none;\n }\n\n [data-item-section=\"git\"] > span, [data-item-section=\"action\"] > span {\n justify-content: center;\n align-items: center;\n width: 100%;\n display: inline-flex;\n }\n\n [data-item-action-affordance=\"decorative\"] {\n opacity: .85;\n }\n\n [data-item-rename-input] {\n appearance: none;\n width: 100%;\n min-width: 0;\n height: calc(var(--trees-row-height) - 4px);\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n box-sizing: border-box;\n background-color: #0000;\n border: 0;\n outline: none;\n padding-inline: 6px;\n }\n\n [data-item-section=\"content\"]:has([data-item-rename-input]) ~ [data-item-section=\"action\"], [data-item-section=\"content\"]:has([data-item-rename-input]) ~ [data-item-section=\"decoration\"] {\n display: none;\n }\n\n [aria-expanded=\"false\"][data-item-type=\"folder\"] > [data-item-section=\"icon\"] > [data-icon-name=\"file-tree-icon-chevron\"] {\n &[data-align-capitals=\"true\"] {\n transform: rotate(-90deg)\n translate(calc(var(--trees-icon-nudge) / 2),\n calc(var(--trees-icon-nudge) / 2));\n }\n\n &[data-align-capitals=\"false\"] {\n transform: rotate(-90deg)\n translate(calc(var(--trees-icon-nudge) / 2 * -1),\n calc(var(--trees-icon-nudge) / 2));\n }\n }\n\n [data-item-section=\"spacing\"] {\n height: var(--trees-row-height);\n padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);\n flex-direction: row;\n justify-content: center;\n align-items: center;\n display: flex;\n\n &:empty {\n padding-left: 0;\n }\n }\n\n [data-item-section=\"spacing-item\"] {\n border-left: 1px solid var(--trees-indent-guide-bg);\n height: 100%;\n margin-right: calc(var(--trees-level-gap) - 1px);\n opacity: 0;\n transition: opacity .15s;\n display: inline-block;\n transform: translateX(-.25px);\n\n & + & {\n margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);\n }\n }\n\n :host(:hover) [data-item-section=\"spacing-item\"] {\n opacity: .75;\n }\n\n [data-item-contains-git-change=\"true\"] > [data-item-section=\"git\"] {\n color: var(--trees-git-modified-color);\n opacity: .5;\n fill: currentColor;\n }\n\n [data-item-git-status] {\n & > :where([data-item-section=\"icon\"]) > :where(:not([data-icon-name=\"file-tree-icon-chevron\"])), & > [data-item-section=\"content\"] {\n color: var(--trees-item-git-status-color);\n }\n\n & > [data-item-section=\"git\"] {\n color: var(--trees-item-git-status-color);\n font-weight: var(--trees-font-weight-semibold);\n }\n }\n\n [data-item-git-status=\"added\"] {\n --trees-item-git-status-color: var(--trees-git-added-color);\n }\n\n [data-item-git-status=\"deleted\"] {\n --trees-item-git-status-color: var(--trees-git-deleted-color);\n }\n\n [data-item-git-status=\"ignored\"] {\n --trees-item-git-status-color: var(--trees-git-ignored-color);\n\n & > [data-item-section=\"icon\"] {\n opacity: .5;\n }\n }\n\n [data-item-section=\"git\"] [data-icon-name=\"file-tree-icon-dot\"] {\n transform: translateY(calc(.65ex - 50%));\n }\n\n [data-item-git-status=\"modified\"] {\n --trees-item-git-status-color: var(--trees-git-modified-color);\n }\n\n [data-item-git-status=\"renamed\"] {\n --trees-item-git-status-color: var(--trees-git-renamed-color);\n }\n\n [data-item-git-status=\"untracked\"] {\n --trees-item-git-status-color: var(--trees-git-untracked-color);\n }\n\n [data-item-drag-target=\"true\"] {\n background-color: var(--trees-selected-bg);\n }\n\n [data-item-dragging=\"true\"] {\n opacity: .5;\n }\n\n [data-item-section=\"lock\"] {\n color: var(--trees-fg-muted);\n flex: none;\n align-items: center;\n margin-left: auto;\n display: flex;\n }\n\n [data-item-section=\"lock\"] svg {\n display: block;\n }\n\n [data-type=\"header-slot\"] {\n flex: none;\n display: block;\n }\n\n [data-type=\"context-menu-wash\"] {\n z-index: 3;\n touch-action: none;\n background-color: #0000;\n position: absolute;\n inset: 0;\n }\n\n [data-type=\"context-menu-anchor\"] {\n top: 0;\n right: var(--trees-context-menu-trigger-inline-offset);\n z-index: 4;\n align-items: center;\n display: none;\n position: absolute;\n\n &[data-visible=\"true\"] {\n display: flex;\n }\n }\n\n [data-file-tree-virtualized-root=\"true\"][data-is-scrolling] [data-type=\"context-menu-anchor\"] {\n display: none;\n }\n\n [data-type=\"context-menu-anchor\"] > slot[name=\"context-menu\"] {\n flex: 0 0 0;\n width: 0;\n min-width: 0;\n display: block;\n overflow: visible;\n }\n\n [data-type=\"context-menu-trigger\"] {\n all: unset;\n width: var(--trees-action-lane-width);\n color: var(--trees-fg-muted);\n fill: currentColor;\n cursor: pointer;\n font-family: var(--trees-font-family);\n font-size: var(--trees-font-size);\n border-top-right-radius: var(--trees-border-radius);\n border-bottom-right-radius: var(--trees-border-radius);\n margin: var(--trees-focus-ring-width);\n height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);\n border-width: 0;\n justify-content: center;\n align-items: center;\n transition: color .12s;\n display: flex;\n }\n\n [data-type=\"context-menu-trigger\"]:hover, [data-type=\"context-menu-trigger\"][aria-expanded=\"true\"] {\n color: var(--trees-fg);\n }\n\n [data-truncate-container] {\n --truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);\n --truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);\n --truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);\n --truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);\n --truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));\n --truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);\n --truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);\n --truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);\n --truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);\n --truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);\n --truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);\n --truncate-internal-single-line-height: 1lh;\n height: var(--truncate-internal-single-line-height);\n min-width: 0;\n margin-top: -1px;\n margin-bottom: -1px;\n overflow: hidden;\n }\n\n [data-truncate-marker] {\n height: var(--truncate-internal-single-line-height);\n padding-block: var(--truncate-internal-marker-block-inset);\n box-sizing: border-box;\n z-index: 2;\n color: color-mix(in srgb,\n currentColor var(--truncate-internal-marker-opacity),\n transparent);\n opacity: 0;\n transition: opacity var(--truncate-internal-marker-fade-out-duration)\n ease-in-out;\n background-clip: content-box;\n align-items: center;\n display: flex;\n position: absolute;\n }\n\n @container measure (height > 1lh) {\n [data-truncate-marker] {\n opacity: 1;\n transition: opacity var(--truncate-internal-marker-fade-in-duration)\n ease-in-out;\n }\n }\n\n [data-truncate-grid] {\n display: grid;\n position: relative;\n }\n\n [data-truncate-content=\"visible\"] {\n white-space: nowrap;\n }\n\n [data-truncate-content=\"overflow\"] {\n opacity: 0;\n pointer-events: none;\n user-select: none;\n word-break: break-all;\n margin-top: calc(-1 * var(--truncate-internal-single-line-height));\n }\n\n [data-truncate-marker-cell] {\n user-select: none;\n pointer-events: none;\n overflow: visible;\n container: measure / size;\n }\n\n [data-truncate-container=\"truncate\"] {\n & [data-truncate-grid] {\n grid-template-columns: minmax(0, max-content) 0;\n }\n\n & [data-truncate-marker] {\n right: 0;\n }\n\n & [data-truncate-fade] {\n margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));\n }\n }\n\n [data-truncate-container=\"fruncate\"] {\n & [data-truncate-grid] {\n grid-template-columns: 0 minmax(0, max-content) auto;\n }\n\n & [data-truncate-content] {\n direction: rtl;\n }\n\n & [data-truncate-content] > span {\n unicode-bidi: plaintext;\n }\n\n & [data-truncate-fade] {\n margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));\n }\n }\n\n [data-truncate-variant=\"default\"] {\n & [data-truncate-marker] {\n background-color: var(--truncate-internal-marker-background-color);\n background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),\n var(--truncate-internal-marker-background-overlay-color));\n }\n\n & [data-truncate-marker]:after, & [data-truncate-marker]:before {\n content: \"\";\n width: calc(var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap));\n height: max(0px,\n calc(var(--truncate-internal-single-line-height) -\n var(--truncate-internal-marker-block-inset) * 2));\n background-color: var(--truncate-internal-marker-background-color);\n background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),\n var(--truncate-internal-marker-background-overlay-color));\n -webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),\n #000 0%,\n #000 var(--truncate-internal-marker-gap),\n transparent 100%);\n mask-image: linear-gradient(var(--truncate-internal-fade-dir),\n #000 0%,\n #000 var(--truncate-internal-marker-gap),\n transparent 100%);\n position: absolute;\n inset-block-start: var(--truncate-internal-marker-block-inset);\n }\n\n & [data-truncate-marker]:after {\n --truncate-internal-fade-dir: to right;\n right: calc(-1 *\n (\n var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap)\n ));\n }\n\n & [data-truncate-marker]:before {\n --truncate-internal-fade-dir: to left;\n left: calc(-1 *\n (\n var(--truncate-internal-marker-fade-width) +\n var(--truncate-internal-marker-gap)\n ));\n }\n }\n\n [data-truncate-variant=\"fade\"] {\n & [data-truncate-marker] {\n background: none;\n }\n }\n\n [data-truncate-fade] {\n box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)\n var(--truncate-internal-fade-marker-color),\n 0 0 var(--truncate-internal-fade-marker-width)\n var(--truncate-internal-fade-marker-color);\n width: calc(var(--truncate-internal-fade-marker-width) * 2);\n height: calc(var(--truncate-internal-single-line-height) -\n (var(--truncate-internal-fade-marker-width) * 2));\n margin: var(--truncate-internal-fade-marker-width) 0;\n }\n\n [data-truncate-group-container=\"middle\"] {\n & [data-truncate-container] {\n --truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);\n }\n\n min-width: 0;\n display: flex;\n\n & > div {\n min-width: 0;\n }\n\n & > div[data-truncate-segment-priority=\"1\"] {\n flex: 0 1 max-content;\n }\n\n & > div[data-truncate-segment-priority=\"2\"] {\n flex: 0 999999 max-content;\n }\n }\n}\n\n@layer theme, unsafe;\n"},1261,[]);
|
|
30
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"escapeStyleTextForHtml",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"wrapCoreCSS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"wrapUnsafeCSS",{enumerable:!0,get:function(){return c}});const n=/<\/style/gi,t="@layer base, unsafe;";function u(n){return`${t}\n@layer base {\n ${n}\n}`}function c(n){return`${t}\n@layer unsafe {\n ${n}\n}`}function o(t){return t.replace(n,"<\\/style")}},1262,[]);
|
|
31
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeContainerLoaded",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"adoptDeclarativeShadowDom",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"ensureFileTreeStyles",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"prepareFileTreeShadowRoot",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=r(d[1]),n=(e=o)&&e.__esModule?e:{default:e},l=r(d[2]),c=r(d[3]);let u;function s(e){if("undefined"!=typeof CSSStyleSheet&&"function"==typeof CSSStyleSheet.prototype.replaceSync&&"adoptedStyleSheets"in e){null==u&&(u=new CSSStyleSheet,u.replaceSync((0,l.wrapCoreCSS)(n.default)));let o=!1;try{e.adoptedStyleSheets=[u],o=!0}catch{}if(o)return void e.querySelector(`style[${t.FILE_TREE_STYLE_ATTRIBUTE}]`)?.remove()}if(null==e.querySelector("style[data-file-tree-style]")){const o=document.createElement("style");o.setAttribute(t.FILE_TREE_STYLE_ATTRIBUTE,""),o.textContent=(0,l.wrapCoreCSS)(n.default),e.prepend(o)}}function f(e,t){S(e,t),s(t),(0,c.ensureMeasuredScrollbarGutter)(e,t)}function S(e,t){const o=e.querySelector("template[shadowrootmode=\"open\"], template[data-file-tree-shadowrootmode=\"open\"]");o instanceof HTMLTemplateElement&&(t.childNodes.length>0||(t.appendChild(o.content.cloneNode(!0)),o.hasAttribute("shadowrootmode")&&o.remove()))}if("undefined"!=typeof HTMLElement&&null==customElements.get("file-tree-container")){class e extends HTMLElement{constructor(){super()}connectedCallback(){f(this,this.shadowRoot??this.attachShadow({mode:"open"}))}}if(customElements.define(t.FILE_TREE_TAG_NAME,e),"undefined"!=typeof document)for(const e of Array.from(document.querySelectorAll(t.FILE_TREE_TAG_NAME)))e instanceof HTMLElement&&f(e,e.shadowRoot??e.attachShadow({mode:"open"}))}const p=!0},1263,[1236,1261,1262,1264]);
|
|
32
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ensureMeasuredScrollbarGutter",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=new WeakMap;function E(E){const o=n.get(E);if(null!=o)return o;const c=document.createElement("div");c.setAttribute(t.FILE_TREE_SCROLLBAR_MEASURE_ATTRIBUTE,"true");const l=document.createElement("div");l.style.position="relative",l.style.height="200%",c.appendChild(l),E.appendChild(c);const s=Math.max(c.offsetWidth-c.clientWidth,0);return c.remove(),n.set(E,s),s}function o(n,o){if(!n.isConnected)return;const c=E(o);if(null==c)return;const l=o.querySelector(`style[${t.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE}]`),s=l instanceof HTMLStyleElement?l:document.createElement("style");l instanceof HTMLStyleElement||(s.setAttribute(t.FILE_TREE_SCROLLBAR_GUTTER_STYLE_ATTRIBUTE,""),o.appendChild(s)),s.textContent=`:host { ${t.FILE_TREE_SCROLLBAR_GUTTER_MEASURED_PROPERTY}: ${c}px; }`}},1264,[1236]);
|
|
33
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const t=["dragAndDrop","fileTreeSearchMode","initialSearchQuery","initialSelectedPaths","renaming","onSearchChange","paths","preparedInput"];var e,l,s,u,n,h,f,o,c,p,P,b,y,v,S,O,j,I,w,x,D,E,C,M,V,F,R,A,B,T,z,k,L,_,N,q,H,K,W,Q,$,G,J,U,X,Y,Z,tt,et,lt,at,it,st,ut,nt,dt,ht,rt,ft,ot,ct,pt,Pt,gt,bt,yt,vt,mt,St,Ot,jt,It,wt,xt,Dt,Et,Ct,Mt,Vt,Ft,Rt,At,Bt,Tt,zt,kt,Lt,_t,Nt,qt,Ht,Kt,Wt,Qt,$t,Gt,Jt,Ut;function Xt(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FILE_TREE_RENAME_VIEW",{enumerable:!0,get:function(){return he}}),Object.defineProperty(_e,"FileTreeController",{enumerable:!0,get:function(){return oe}});var Yt=Xt(r(d[0])),Zt=Xt(r(d[1])),te=Xt(r(d[2])),ee=r(d[3]),le=r(d[4]),ae=r(d[5]),ie=r(d[6]),se=r(d[7]),ue=r(d[8]),ne=r(d[9]),de=r(d[10]);const he=Symbol("FILE_TREE_RENAME_VIEW");function re(t,e,l){if(0===t)return-1;if(null!=l){const t=e(l);if(null!=t)return t;const s=(0,ue.getAncestorDirectoryPaths)(l);for(let t=s.length-1;t>=0;t-=1){const l=s[t];if(null==l)continue;const u=e(l);if(null!=u)return u}}return 0}function fe(t,e,l){if(0===t.paths.length)return{focusedIndex:-1,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};if(null==e)return{focusedIndex:0,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};const s=l??(e=>t.visibleIndexByPath.get(e)??null);return{focusedIndex:re(t.paths.length,s,e),getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex}}var oe=(l=(0,te.default)("baseOptions"),s=(0,te.default)("listeners"),u=(0,te.default)("mutationListeners"),n=(0,te.default)("dragAndDropConfig"),h=(0,te.default)("dragSession"),f=(0,te.default)("ancestorIndicesByIndex"),o=(0,te.default)("ancestorPathsByIndex"),c=(0,te.default)("focusedIndex"),p=(0,te.default)("focusedPath"),P=(0,te.default)("hasFullProjection"),b=(0,te.default)("getParentIndexForVisibleRow"),y=(0,te.default)("itemHandles"),v=(0,te.default)("knownDirectoryPaths"),S=(0,te.default)("knownDirectoryPathsLowerCase"),O=(0,te.default)("knownPaths"),j=(0,te.default)("listedPaths"),I=(0,te.default)("listedPathsLowerCase"),w=(0,te.default)("onRename"),x=(0,te.default)("onRenameError"),D=(0,te.default)("onSearchChange"),E=(0,te.default)("projectionPaths"),C=(0,te.default)("projectionPosInSetByIndex"),M=(0,te.default)("projectionSetSizeByIndex"),V=(0,te.default)("renameCanRename"),F=(0,te.default)("renameEnabled"),R=(0,te.default)("renamingPath"),A=(0,te.default)("renamingValue"),B=(0,te.default)("removeRenamingPathIfCanceled"),T=(0,te.default)("searchCollapsedOverrides"),z=(0,te.default)("searchMatchPathSet"),k=(0,te.default)("searchMatchingPaths"),L=(0,te.default)("searchMode"),_=(0,te.default)("searchPreviousExpandedPaths"),N=(0,te.default)("searchValue"),q=(0,te.default)("searchVisiblePathSet"),H=(0,te.default)("searchVisibleIndexByPath"),K=(0,te.default)("searchVisibleIndices"),W=(0,te.default)("searchVisiblePaths"),Q=(0,te.default)("scrollRequest"),$=(0,te.default)("scrollRequestId"),G=(0,te.default)("selectionAnchorPath"),J=(0,te.default)("selectedPaths"),U=(0,te.default)("selectionVersion"),X=(0,te.default)("store"),Y=(0,te.default)("storeVisibleCount"),Z=(0,te.default)("suppressStoreNotifications"),tt=(0,te.default)("visibleCount"),et=(0,te.default)("unsubscribe"),lt=(0,te.default)("cancelRenaming"),at=(0,te.default)("completeRenaming"),it=(0,te.default)("setRenamingValue"),st=(0,te.default)("findNearestVisibleSiblingPath"),ut=(0,te.default)("resolveFocusedIndex"),nt=(0,te.default)("getOrCreateItemHandle"),dt=(0,te.default)("createVisibleRow"),ht=(0,te.default)("createVisibleRowFromContext"),rt=(0,te.default)("getStickyCandidateContextAt"),ft=(0,te.default)("getAncestorIndices"),ot=(0,te.default)("getAncestorPaths"),ct=(0,te.default)("collapseDirectory"),pt=(0,te.default)("applySelection"),Pt=(0,te.default)("createDirectoryHandle"),gt=(0,te.default)("createFileHandle"),bt=(0,te.default)("validateBatchDropOperations"),yt=(0,te.default)("createStore"),vt=(0,te.default)("getListedPaths"),mt=(0,te.default)("getAllKnownPaths"),St=(0,te.default)("getListedPathsLowerCase"),Ot=(0,te.default)("getAllKnownDirectoryPaths"),jt=(0,te.default)("getAllKnownDirectoryPathsLowerCase"),It=(0,te.default)("invalidateKnownPathCaches"),wt=(0,te.default)("getExpandedDirectoryPaths"),xt=(0,te.default)("restoreSearchExpandedPaths"),Dt=(0,te.default)("setExpandedPaths"),Et=(0,te.default)("syncSearchVisibilityState"),Ct=(0,te.default)("getCurrentVisiblePaths"),Mt=(0,te.default)("getExactCurrentVisibleIndexByPath"),Vt=(0,te.default)("getProjectionIndexFromVisibleIndex"),Ft=(0,te.default)("getVisibleIndexByPath"),Rt=(0,te.default)("focusRelativeSearchMatch"),At=(0,te.default)("setSearchState"),Bt=(0,te.default)("refreshActiveSearchState"),Tt=(0,te.default)("emit"),zt=(0,te.default)("emitMutation"),kt=(0,te.default)("expandDirectory"),Lt=(0,te.default)("moveFocus"),_t=(0,te.default)("rebuildVisibleProjection"),Nt=(0,te.default)("resolveVisiblePathAtIndex"),qt=(0,te.default)("resolveSelectionPath"),Ht=(0,te.default)("focusPathWithoutEmit"),Kt=(0,te.default)("setFocusedIndex"),Wt=(0,te.default)("ensureFullProjection"),Qt=(0,te.default)("pruneStaleSearchCollapsedOverrides"),$t=(0,te.default)("remapSearchCollapsedOverridesThroughMutation"),Gt=(0,te.default)("applyMutationState"),Jt=(0,te.default)("subscribe"),Ut=(0,te.default)("toggleDirectory"),e=class{constructor(e){Object.defineProperty(this,Ut,{value:dl}),Object.defineProperty(this,Jt,{value:nl}),Object.defineProperty(this,Gt,{value:ul}),Object.defineProperty(this,$t,{value:sl}),Object.defineProperty(this,Qt,{value:il}),Object.defineProperty(this,Wt,{value:al}),Object.defineProperty(this,Kt,{value:ll}),Object.defineProperty(this,Ht,{value:el}),Object.defineProperty(this,qt,{value:tl}),Object.defineProperty(this,Nt,{value:Ze}),Object.defineProperty(this,_t,{value:Ye}),Object.defineProperty(this,Lt,{value:Xe}),Object.defineProperty(this,kt,{value:Ue}),Object.defineProperty(this,zt,{value:Je}),Object.defineProperty(this,Tt,{value:Ge}),Object.defineProperty(this,Bt,{value:$e}),Object.defineProperty(this,At,{value:Qe}),Object.defineProperty(this,Rt,{value:We}),Object.defineProperty(this,Ft,{value:Ke}),Object.defineProperty(this,Vt,{value:He}),Object.defineProperty(this,Mt,{value:qe}),Object.defineProperty(this,Ct,{value:Ne}),Object.defineProperty(this,Et,{value:Le}),Object.defineProperty(this,Dt,{value:ke}),Object.defineProperty(this,xt,{value:ze}),Object.defineProperty(this,wt,{value:Te}),Object.defineProperty(this,It,{value:Be}),Object.defineProperty(this,jt,{value:Ae}),Object.defineProperty(this,Ot,{value:Re}),Object.defineProperty(this,St,{value:Fe}),Object.defineProperty(this,mt,{value:Ve}),Object.defineProperty(this,vt,{value:Me}),Object.defineProperty(this,yt,{value:Ce}),Object.defineProperty(this,bt,{value:Ee}),Object.defineProperty(this,gt,{value:De}),Object.defineProperty(this,Pt,{value:xe}),Object.defineProperty(this,pt,{value:we}),Object.defineProperty(this,ct,{value:Ie}),Object.defineProperty(this,ot,{value:je}),Object.defineProperty(this,ft,{value:Oe}),Object.defineProperty(this,rt,{value:Se}),Object.defineProperty(this,ht,{value:me}),Object.defineProperty(this,dt,{value:ve}),Object.defineProperty(this,nt,{value:ye}),Object.defineProperty(this,ut,{value:be}),Object.defineProperty(this,st,{value:ge}),Object.defineProperty(this,it,{value:Pe}),Object.defineProperty(this,at,{value:pe}),Object.defineProperty(this,lt,{value:ce}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:new Set}),Object.defineProperty(this,u,{writable:!0,value:new Map}),Object.defineProperty(this,n,{writable:!0,value:null}),Object.defineProperty(this,h,{writable:!0,value:null}),Object.defineProperty(this,f,{writable:!0,value:new Map}),Object.defineProperty(this,o,{writable:!0,value:new Map}),Object.defineProperty(this,c,{writable:!0,value:-1}),Object.defineProperty(this,p,{writable:!0,value:null}),Object.defineProperty(this,P,{writable:!0,value:!1}),Object.defineProperty(this,b,{writable:!0,value:t=>-1}),Object.defineProperty(this,y,{writable:!0,value:new Map}),Object.defineProperty(this,v,{writable:!0,value:null}),Object.defineProperty(this,S,{writable:!0,value:null}),Object.defineProperty(this,O,{writable:!0,value:null}),Object.defineProperty(this,j,{writable:!0,value:null}),Object.defineProperty(this,I,{writable:!0,value:null}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,E,{writable:!0,value:[]}),Object.defineProperty(this,C,{writable:!0,value:new Int32Array(0)}),Object.defineProperty(this,M,{writable:!0,value:new Int32Array(0)}),Object.defineProperty(this,V,{writable:!0,value:void 0}),Object.defineProperty(this,F,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:null}),Object.defineProperty(this,A,{writable:!0,value:""}),Object.defineProperty(this,B,{writable:!0,value:!1}),Object.defineProperty(this,T,{writable:!0,value:new Set}),Object.defineProperty(this,z,{writable:!0,value:new Set}),Object.defineProperty(this,k,{writable:!0,value:[]}),Object.defineProperty(this,L,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:null}),Object.defineProperty(this,N,{writable:!0,value:null}),Object.defineProperty(this,q,{writable:!0,value:null}),Object.defineProperty(this,H,{writable:!0,value:null}),Object.defineProperty(this,K,{writable:!0,value:null}),Object.defineProperty(this,W,{writable:!0,value:null}),Object.defineProperty(this,Q,{writable:!0,value:null}),Object.defineProperty(this,$,{writable:!0,value:0}),Object.defineProperty(this,G,{writable:!0,value:null}),Object.defineProperty(this,J,{writable:!0,value:new Set}),Object.defineProperty(this,U,{writable:!0,value:0}),Object.defineProperty(this,X,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:0}),Object.defineProperty(this,Z,{writable:!0,value:!1}),Object.defineProperty(this,tt,{writable:!0,value:0}),Object.defineProperty(this,et,{writable:!0,value:void 0});const{dragAndDrop:Xt,fileTreeSearchMode:te,initialSearchQuery:ee,initialSelectedPaths:le,renaming:ae,onSearchChange:se,paths:ue,preparedInput:ne}=e,de=(0,Yt.default)(e,t),he=(0,ie.resolveFileTreeInput)({paths:ue,preparedInput:ne},"constructor",de.sort);(0,Zt.default)(this,l)[l]=de,null!=Xt&&!1!==Xt&&((0,Zt.default)(this,n)[n]=!0===Xt?{}:Xt),(0,Zt.default)(this,F)[F]=null!=ae&&!1!==ae,null!=ae&&!1!==ae&&!0!==ae&&((0,Zt.default)(this,V)[V]=ae.canRename,(0,Zt.default)(this,x)[x]=ae.onError,(0,Zt.default)(this,w)[w]=ae.onRename),(0,Zt.default)(this,D)[D]=se,(0,Zt.default)(this,L)[L]=te??"hide-non-matches",(0,Zt.default)(this,X)[X]=(0,Zt.default)(this,yt)[yt](he.paths,he.preparedInput);const re=le?.map(t=>(0,Zt.default)(this,qt)[qt](t)).filter(t=>null!=t)??[],fe=re.at(-1)??null;re.length>0&&((0,Zt.default)(this,J)[J]=new Set(re),(0,Zt.default)(this,G)[G]=fe,(0,Zt.default)(this,U)[U]=1),(0,Zt.default)(this,_t)[_t](fe,!1),null!=ee&&(0,Zt.default)(this,At)[At](ee,!1),(0,Zt.default)(this,et)[et]=(0,Zt.default)(this,Jt)[Jt]()}destroy(){(0,Zt.default)(this,et)[et]?.(),(0,Zt.default)(this,et)[et]=null,(0,Zt.default)(this,u)[u].clear(),(0,Zt.default)(this,s)[s].clear(),(0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,h)[h]=null,(0,Zt.default)(this,It)[It]()}focusFirstItem(){(0,Zt.default)(this,Ct)[Ct]().length>0&&(0,Zt.default)(this,Kt)[Kt](0)}focusLastItem(){(0,Zt.default)(this,tt)[tt]<=0||((0,Zt.default)(this,Wt)[Wt](),(0,Zt.default)(this,Kt)[Kt]((0,Zt.default)(this,tt)[tt]-1))}focusNextItem(){(0,Zt.default)(this,Lt)[Lt](1)}focusParentItem(){if(null==(0,Zt.default)(this,p)[p])return;const t=(0,ue.getImmediateParentPath)((0,Zt.default)(this,p)[p]);if(null==t)return;const e=(0,Zt.default)(this,ut)[ut](t);e>=0&&(0,Zt.default)(this,Kt)[Kt](e)}focusPath(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==e)return;(0,Zt.default)(this,Wt)[Wt]();const l=(0,Zt.default)(this,ut)[ut](e);l>=0&&(0,Zt.default)(this,Kt)[Kt](l)}scrollToPath(t,e){const l=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==l)return;(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,Mt)[Mt](l);var u;s<0||null!=(0,Zt.default)(this,Nt)[Nt](s)&&(!1!==e?.focus&&(0,Zt.default)(this,Kt)[Kt](s,!1),(0,Zt.default)(this,Q)[Q]={id:(0,Zt.default)(this,$)[$]+=1,offset:(u=e?.offset,"top"===u||"center"===u?u:"nearest"),visibleIndex:s},(0,Zt.default)(this,Tt)[Tt]())}focusMountedPathFromInput(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null;if(null==e)return;const l=(0,Zt.default)(this,ut)[ut](e);l>=0&&(0,Zt.default)(this,Kt)[Kt](l)}focusNearestPath(t){const e=this.resolveNearestVisiblePath(t);if(null==e)return null;const l=(0,Zt.default)(this,ut)[ut](e);return l>=0?((0,Zt.default)(this,Kt)[Kt](l),(0,Zt.default)(this,Ct)[Ct]()[l]??e):null}focusPreviousItem(){(0,Zt.default)(this,Lt)[Lt](-1)}getFocusedIndex(){return(0,Zt.default)(this,c)[c]}getFocusedItem(){return null==(0,Zt.default)(this,p)[p]?null:(0,Zt.default)(this,nt)[nt]((0,Zt.default)(this,p)[p])}getFocusedPath(){return(0,Zt.default)(this,p)[p]}getScrollRequest(){return(0,Zt.default)(this,Q)[Q]}clearScrollRequest(t){(0,Zt.default)(this,Q)[Q]?.id===t&&((0,Zt.default)(this,Q)[Q]=null)}resolveNearestVisiblePath(t){const e=(0,Zt.default)(this,Ct)[Ct]();if(0===(0,Zt.default)(this,tt)[tt])return null;if(null==t)return(0,Zt.default)(this,p)[p]??e[0]??null;const l=(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??t,s=(0,Zt.default)(this,ut)[ut](l);if(s>=0)return e[s]??l;const u=(0,Zt.default)(this,st)[st](l);return null!=u?u:(0,Zt.default)(this,p)[p]??e[0]??null}getSelectedPaths(){return[...(0,Zt.default)(this,J)[J]]}getSelectionVersion(){return(0,Zt.default)(this,U)[U]}getVisibleCount(){return(0,Zt.default)(this,tt)[tt]}getVisibleRows(t,e){if(e<t||0===(0,Zt.default)(this,tt)[tt])return[];const l=Math.max(0,t),s=Math.min((0,Zt.default)(this,tt)[tt]-1,e);if(s<l)return[];const u=s-l+1;if(null==(0,Zt.default)(this,K)[K]&&!(0,Zt.default)(this,P)[P]&&s>=(0,Zt.default)(this,E)[E].length&&u<=512){const t=[];for(let e=l;e<=s;e+=1){const l=(0,Zt.default)(this,X)[X].getVisibleRowContext(e);if(null==l)break;t.push((0,Zt.default)(this,ht)[ht](l))}return t}if(!(0,Zt.default)(this,P)[P]&&s>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt](),null!=(0,Zt.default)(this,K)[K]){const t=Array.from({length:s-l+1},(t,e)=>(0,Zt.default)(this,Vt)[Vt](l+e)),e=new Map;let u=t[0]??-1,n=u;for(let l=1;l<=t.length;l+=1){const s=t[l];null==s||s!==n+1?(u>=0&&(0,Zt.default)(this,X)[X].getVisibleSlice(u,n).forEach((t,l)=>{e.set(u+l,t)}),null!=s?(u=s,n=s):(u=-1,n=-1)):n=s}return Array.from({length:s-l+1},(t,s)=>{const u=l+s,n=(0,Zt.default)(this,Vt)[Vt](u),h=e.get(n),f=(0,Zt.default)(this,E)[E][n];if(null==h||null==f)throw new Error(`Missing projection row for filtered visible index ${String(u)}`);return(0,Zt.default)(this,dt)[dt](h,u,n,{ancestorPaths:(0,Zt.default)(this,ot)[ot](n),path:f})})}return(0,Zt.default)(this,X)[X].getVisibleSlice(l,s).map((t,e)=>{const s=l+e,u=(0,Zt.default)(this,E)[E][s];if(null==u)throw new Error(`Missing projection path for visible index ${String(s)}`);return(0,Zt.default)(this,dt)[dt](t,s,s,{ancestorPaths:(0,Zt.default)(this,ot)[ot](s),path:u})})}getStickyRowCandidates(t,e){if(null!=(0,Zt.default)(this,K)[K])return null;if(0===(0,Zt.default)(this,tt)[tt]||t<=0||e<=0)return[];const l=[];for(let s=0;s<(0,Zt.default)(this,tt)[tt];s+=1){const u=t+s*e,n=Math.min((0,Zt.default)(this,tt)[tt]-1,Math.floor(u/e)),h=(0,Zt.default)(this,rt)[rt](n,s)??(n>0?(0,Zt.default)(this,rt)[rt](n-1,s):void 0);if(null==h)break;l.push({row:(0,Zt.default)(this,ht)[ht](h),subtreeEndIndex:h.subtreeEndIndex})}return l}getItem(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t);return null==e?null:(0,Zt.default)(this,nt)[nt](e.path,e)}resolveMountedDirectoryPathFromInput(t){const e=(0,Zt.default)(this,X)[X].getPathInfo(t);return"directory"===e?.kind?e.path:null}toggleMountedDirectoryFromInput(t){const e=this.resolveMountedDirectoryPathFromInput(t);null!=e&&(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0&&((0,Zt.default)(this,T)[T].has(e)?(0,Zt.default)(this,T)[T].delete(e):(0,Zt.default)(this,X)[X].isExpanded(e)&&(0,Zt.default)(this,T)[T].add(e)),(0,Zt.default)(this,Ut)[Ut](e))}selectAllVisiblePaths(){(0,Zt.default)(this,Wt)[Wt]();const t=[...(0,Zt.default)(this,Ct)[Ct]()];(0,Zt.default)(this,pt)[pt](t,(0,Zt.default)(this,p)[p]??(0,Zt.default)(this,G)[G])}selectOnlyPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&(0,Zt.default)(this,pt)[pt]([e],e)}selectOnlyMountedPathFromInput(t){(0,Zt.default)(this,pt)[pt]([t],t)}selectPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null==e||(0,Zt.default)(this,J)[J].has(e)||(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J],e])}deselectPath(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&(0,Zt.default)(this,J)[J].has(e)&&(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J]].filter(t=>t!==e))}toggleFocusedSelection(){null!=(0,Zt.default)(this,p)[p]&&this.togglePathSelectionFromInput((0,Zt.default)(this,p)[p])}togglePathSelection(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&((0,Zt.default)(this,J)[J].has(e)?this.deselectPath(e):this.selectPath(e))}togglePathSelectionFromInput(t){const e=(0,Zt.default)(this,qt)[qt](t);null!=e&&((0,Zt.default)(this,J)[J].has(e)?(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J]].filter(t=>t!==e),e):(0,Zt.default)(this,pt)[pt]([...(0,Zt.default)(this,J)[J],e],e))}selectPathRange(t,e){const l=(0,Zt.default)(this,qt)[qt](t);if(null==l)return;(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,G)[G],u=null==s?-1:(0,Zt.default)(this,Ft)[Ft](s),n=(0,Zt.default)(this,Ft)[Ft](l);if(-1===u||-1===n){const t=e?[...(0,Zt.default)(this,J)[J],l]:[l];return void(0,Zt.default)(this,pt)[pt](t,l)}const[h,f]=u<=n?[u,n]:[n,u],o=(0,Zt.default)(this,Ct)[Ct]().slice(h,f+1),c=e?[...(0,Zt.default)(this,J)[J],...o]:o;(0,Zt.default)(this,pt)[pt](c,s)}extendSelectionFromFocused(t){if(null==(0,Zt.default)(this,p)[p])return;const e=(0,Zt.default)(this,c)[c];if(-1===e)return;const l=Math.min((0,Zt.default)(this,tt)[tt]-1,Math.max(0,e+t));if(l===e)return;!(0,Zt.default)(this,P)[P]&&l>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt]();const s=(0,Zt.default)(this,Ct)[Ct](),u=s[e]??null,n=s[l]??null;if(null==u||null==n)return;const h=new Set((0,Zt.default)(this,J)[J]);h.has(u)&&h.has(n)?h.delete(u):h.add(n),(0,Zt.default)(this,pt)[pt]([...h],(0,Zt.default)(this,G)[G]??u,!1),(0,Zt.default)(this,Kt)[Kt](l)}getDragAndDropConfig(){return(0,Zt.default)(this,n)[n]}isDragAndDropEnabled(){return null!=(0,Zt.default)(this,n)[n]}getDragSession(){return null==(0,Zt.default)(this,h)[h]?null:{draggedPaths:[...(0,Zt.default)(this,h)[h].draggedPaths],primaryPath:(0,Zt.default)(this,h)[h].primaryPath,target:null==(0,Zt.default)(this,h)[h].target?null:Object.assign({},(0,Zt.default)(this,h)[h].target)}}startDrag(t){if(null==(0,Zt.default)(this,n)[n])return!1;const e=(0,Zt.default)(this,qt)[qt](t);if(null==e)return!1;if(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0)return!1;const l=this.getSelectedPaths(),s=(0,ae.resolveDraggedPathsForStart)(e,l);return!1!==(0,Zt.default)(this,n)[n].canDrag?.(s)&&(l.includes(e)||(0,Zt.default)(this,pt)[pt]([e],e,!1),(0,Zt.default)(this,Ht)[Ht](e),(0,Zt.default)(this,h)[h]={draggedPaths:s,primaryPath:e,target:null},(0,Zt.default)(this,Tt)[Tt](),!0)}setDragTarget(t){const e=(0,Zt.default)(this,h)[h];if(null==e)return;let l=t;if(null!=l){const t=(0,ae.createDropContext)(e.draggedPaths,l);((0,ae.isSelfOrDescendantDrop)(e.draggedPaths,l)||!1===(0,Zt.default)(this,n)[n]?.canDrop?.(t))&&(l=null)}(0,ae.dropTargetsEqual)(e.target,l)||((0,Zt.default)(this,h)[h]=Object.assign({},e,{target:l}),(0,Zt.default)(this,Tt)[Tt]())}cancelDrag(){null!=(0,Zt.default)(this,h)[h]&&((0,Zt.default)(this,h)[h]=null,(0,Zt.default)(this,Tt)[Tt]())}completeDrag(){const t=(0,Zt.default)(this,h)[h];if(null==t)return!1;(0,Zt.default)(this,h)[h]=null;const e=null==t.target?null:Object.assign({},t.target);if(null==e)return(0,Zt.default)(this,Tt)[Tt](),!1;const l=(0,ae.createDropContext)(t.draggedPaths,e);if((0,ae.isSelfOrDescendantDrop)(t.draggedPaths,e)||!1===(0,Zt.default)(this,n)[n]?.canDrop?.(l))return(0,Zt.default)(this,Tt)[Tt](),!1;const s=(0,ae.buildDropOperations)(t.draggedPaths,e);if(null==s)return(0,Zt.default)(this,Tt)[Tt](),!1;try{if(1===s.operations.length){const t=s.operations[0];if(null==t||"move"!==t.type)throw new Error("Expected a single move operation for one-item drops");(0,Zt.default)(this,X)[X].move(t.from,t.to,{collision:t.collision})}else(0,Zt.default)(this,bt)[bt](s.operations),(0,Zt.default)(this,X)[X].batch(s.operations)}catch(t){return(0,Zt.default)(this,Tt)[Tt](),(0,Zt.default)(this,n)[n]?.onDropError?.(t instanceof Error?t.message:String(t),l),!1}return(0,Zt.default)(this,n)[n]?.onDropComplete?.(s.result),!0}subscribe(t){return(0,Zt.default)(this,s)[s].add(t),t(),()=>{(0,Zt.default)(this,s)[s].delete(t)}}add(t){(0,Zt.default)(this,X)[X].add(t)}remove(t,e={}){(0,Zt.default)(this,X)[X].remove(t,e)}move(t,e,l={}){(0,Zt.default)(this,X)[X].move(t,e,l)}batch(t){(0,Zt.default)(this,X)[X].batch(t)}onMutation(t,e){const l=t,s=e;let n=(0,Zt.default)(this,u)[u].get(l);return null==n&&(n=new Set,(0,Zt.default)(this,u)[u].set(l,n)),n.add(s),()=>{const t=(0,Zt.default)(this,u)[u].get(l);t?.delete(s),0===t?.size&&(0,Zt.default)(this,u)[u].delete(l)}}setSearch(t){(0,Zt.default)(this,At)[At](t,!0)}openSearch(t=""){(0,Zt.default)(this,At)[At](t,!0)}closeSearch(){(0,Zt.default)(this,At)[At](null,!0)}isSearchOpen(){return null!==(0,Zt.default)(this,N)[N]}getSearchValue(){return(0,Zt.default)(this,N)[N]??""}getSearchMatchingPaths(){return(0,Zt.default)(this,k)[k]}focusNextSearchMatch(){(0,Zt.default)(this,Rt)[Rt](1)}focusPreviousSearchMatch(){(0,Zt.default)(this,Rt)[Rt](-1)}startRenaming(t=(0,Zt.default)(this,p)[p]??"",e={}){if(!(0,Zt.default)(this,F)[F])return!1;const l=(0,Zt.default)(this,X)[X].getPathInfo(t);if(null==l)return!1;const s=l.path,u=(0,ue.isCanonicalDirectoryPath)(s),n=(0,ne.toRenameHelperPath)(s);if(!1===(0,Zt.default)(this,V)[V]?.({isFolder:u,path:n}))return!1;for(const t of(0,ue.getAncestorDirectoryPaths)(s))(0,Zt.default)(this,X)[X].isExpanded(t)||(0,Zt.default)(this,X)[X].expand(t);return(0,Zt.default)(this,pt)[pt]([s],s,!1),null!=(0,Zt.default)(this,N)[N]&&((0,Zt.default)(this,At)[At](null,!1),(0,Zt.default)(this,D)[D]?.((0,Zt.default)(this,N)[N])),(0,Zt.default)(this,Ht)[Ht](s),(0,Zt.default)(this,R)[R]=s,(0,Zt.default)(this,A)[A]=(0,ne.getRenameLeafName)(s),(0,Zt.default)(this,B)[B]=e.removeIfCanceled??!1,(0,Zt.default)(this,Tt)[Tt](),!0}resetPaths(t,e={}){const s=!Array.isArray(t),u=s?void 0:t,n=s?t:e,h=(0,Zt.default)(this,X)[X].list().length,f=(0,Zt.default)(this,tt)[tt],o=(0,ie.resolveFileTreeInput)({paths:u,preparedInput:n.preparedInput},"resetPaths",(0,Zt.default)(this,l)[l].sort),c=(0,Zt.default)(this,yt)[yt](o.paths,o.preparedInput,n.initialExpandedPaths),P=(0,Zt.default)(this,p)[p],b=(0,Zt.default)(this,R)[R],v=this.getSelectedPaths(),S=(0,Zt.default)(this,G)[G];(0,Zt.default)(this,et)[et]?.(),(0,Zt.default)(this,X)[X]=c,(0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,It)[It]();const O=v.map(t=>c.getPathInfo(t)?.path??null).filter(t=>null!=t),j=!(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],O);(0,Zt.default)(this,J)[J]=new Set(O),j&&((0,Zt.default)(this,U)[U]+=1),(0,Zt.default)(this,G)[G]=null==S?null:c.getPathInfo(S)?.path??null,(0,Zt.default)(this,R)[R]=null==b?null:c.getPathInfo(b)?.path??null,null==(0,Zt.default)(this,R)[R]&&((0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1),(0,Zt.default)(this,_t)[_t](P,null!=P||O.length>0||null!=(0,Zt.default)(this,G)[G]),(0,Zt.default)(this,et)[et]=(0,Zt.default)(this,Jt)[Jt](),(0,Zt.default)(this,Tt)[Tt](),(0,Zt.default)(this,zt)[zt]({canonicalChanged:!0,operation:"reset",pathCountAfter:o.paths.length,pathCountBefore:h,projectionChanged:!0,usedPreparedInput:null!=n.preparedInput,visibleCountDelta:(0,Zt.default)(this,tt)[tt]-f})}},Object.defineProperty(e.prototype,he,{configurable:!0,value(){return{cancel:()=>{(0,Zt.default)(this,lt)[lt]()},commit:()=>{(0,Zt.default)(this,at)[at]()},getPath:()=>(0,Zt.default)(this,R)[R],getValue:()=>(0,Zt.default)(this,A)[A],isActive:()=>null!=(0,Zt.default)(this,R)[R],setValue:t=>{(0,Zt.default)(this,it)[it](t)}}},writable:!0}),e);function ce(){if(null==(0,Zt.default)(this,R)[R])return;const t=(0,Zt.default)(this,R)[R],e=(0,Zt.default)(this,B)[B];(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,e?this.remove(t,(0,ue.isCanonicalDirectoryPath)(t)?{recursive:!0}:void 0):((0,Zt.default)(this,Ht)[Ht](t),(0,Zt.default)(this,Tt)[Tt]())}function pe(){const t=(0,Zt.default)(this,R)[R];if(null==t)return;if((0,Zt.default)(this,B)[B]&&0===(0,Zt.default)(this,A)[A].trim().length)return(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,void this.remove(t,(0,ue.isCanonicalDirectoryPath)(t)?{recursive:!0}:void 0);const e=(0,ue.isCanonicalDirectoryPath)(t),l=(0,le.renameFileTreePaths)({files:(0,Zt.default)(this,X)[X].list(),isFolder:e,nextBasename:(0,Zt.default)(this,A)[A],path:(0,ne.toRenameHelperPath)(t)});return(0,Zt.default)(this,R)[R]=null,(0,Zt.default)(this,A)[A]="",(0,Zt.default)(this,B)[B]=!1,"error"in l?((0,Zt.default)(this,Ht)[Ht](t),(0,Zt.default)(this,x)[x]?.(l.error),void(0,Zt.default)(this,Tt)[Tt]()):l.sourcePath===l.destinationPath?((0,Zt.default)(this,Ht)[Ht](t),void(0,Zt.default)(this,Tt)[Tt]()):((0,Zt.default)(this,w)[w]?.({destinationPath:l.destinationPath,isFolder:l.isFolder,sourcePath:l.sourcePath}),void this.move((0,ne.toCanonicalRenamePath)(l.sourcePath,e),(0,ne.toCanonicalRenamePath)(l.destinationPath,e)))}function Pe(t){null!=(0,Zt.default)(this,R)[R]&&(0,Zt.default)(this,A)[A]!==t&&((0,Zt.default)(this,A)[A]=t,(0,Zt.default)(this,Tt)[Tt]())}function ge(t){(0,Zt.default)(this,Wt)[Wt]();const e=(0,ue.getImmediateParentPath)(t),l=(0,ue.getSiblingComparisonKey)(t,e);let s=null,u=null;for(const t of(0,Zt.default)(this,Ct)[Ct]()){if((0,ue.getImmediateParentPath)(t)!==e)continue;const n=(0,ue.getSiblingComparisonKey)(t,e);if(n<l)s=t;else if(n>l){u=t;break}}return s??u}function be(t){const e=(0,Zt.default)(this,Ft)[Ft](t);if(-1!==e)return e;const l=(0,ue.getAncestorDirectoryPaths)(t);for(let t=l.length-1;t>=0;t-=1){const e=l[t];if(null==e)continue;const s=(0,Zt.default)(this,Ft)[Ft](e);if(-1!==s)return s}return(0,Zt.default)(this,Ct)[Ct]().length>0?0:-1}function ye(t,e){const l=(0,Zt.default)(this,y)[y].get(t);if(null!=l)return l;const s=e??(0,Zt.default)(this,X)[X].getPathInfo(t);if(null==s)return null;const u="directory"===s.kind?(0,Zt.default)(this,Pt)[Pt](s.path):(0,Zt.default)(this,gt)[gt](s.path);return(0,Zt.default)(this,y)[y].set(s.path,u),u}function ve(t,e,l,s){return{ancestorPaths:s.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map(t=>({isTerminal:t.isTerminal,name:t.name,path:t.path})),hasChildren:t.hasChildren,index:e,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:s.path===(0,Zt.default)(this,p)[p],isSelected:(0,Zt.default)(this,J)[J].has(s.path),kind:t.kind,level:t.depth,name:t.name,path:s.path,posInSet:s.posInSet??(0,Zt.default)(this,C)[C][l]??0,setSize:s.setSize??(0,Zt.default)(this,M)[M][l]??0}}function me(t){return(0,Zt.default)(this,dt)[dt](t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}function Se(t,e){const l=(0,Zt.default)(this,X)[X].getVisibleRowContext(t);if(null==l)return;const s=l.ancestorRows[e];return null!=s?s:e===l.ancestorRows.length&&"directory"===l.row.kind&&l.row.isExpanded?l:void 0}function Oe(t){const e=(0,Zt.default)(this,f)[f].get(t);if(null!=e)return e;const l=(0,Zt.default)(this,b)[b](t),s=l<0?[]:[...(0,Zt.default)(this,ft)[ft](l),l];return(0,Zt.default)(this,f)[f].set(t,s),s}function je(t){const e=(0,Zt.default)(this,o)[o].get(t);if(null!=e)return e;const l=(0,Zt.default)(this,ft)[ft](t).map(t=>(0,Zt.default)(this,E)[E][t]??"").filter(t=>""!==t);return(0,Zt.default)(this,o)[o].set(t,l),l}function Ie(t){(0,Zt.default)(this,X)[X].collapse(t)}function we(t,e=(0,Zt.default)(this,G)[G],l=!0){const s=[...new Set(t)],u=!(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],s),n=(0,Zt.default)(this,G)[G]!==e;(u||n)&&((0,Zt.default)(this,J)[J]=new Set(s),(0,Zt.default)(this,G)[G]=e,u&&((0,Zt.default)(this,U)[U]+=1),l&&(0,Zt.default)(this,Tt)[Tt]())}function xe(t){return{collapse:()=>{(0,Zt.default)(this,ct)[ct](t)},deselect:()=>{this.deselectPath(t)},expand:()=>{(0,Zt.default)(this,kt)[kt](t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>(0,Zt.default)(this,X)[X].isExpanded(t),isFocused:()=>(0,Zt.default)(this,p)[p]===t,isSelected:()=>(0,Zt.default)(this,J)[J].has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{(0,Zt.default)(this,Ut)[Ut](t)}}}function De(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>(0,Zt.default)(this,p)[p]===t,isSelected:()=>(0,Zt.default)(this,J)[J].has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}function Ee(t){const e=(0,Zt.default)(this,X)[X].list();(0,Zt.default)(this,yt)[yt](e).batch(t)}function Ce(t,e,s){return new ee.PathStore(Object.assign({},(0,Zt.default)(this,l)[l],{paths:t,preparedInput:e},void 0!==s?{initialExpandedPaths:s}:{}))}function Me(){return null!=(0,Zt.default)(this,j)[j]||((0,Zt.default)(this,j)[j]=(0,Zt.default)(this,X)[X].list()),(0,Zt.default)(this,j)[j]}function Ve(){if(null!=(0,Zt.default)(this,O)[O])return(0,Zt.default)(this,O)[O];const t=new Set;for(const e of(0,Zt.default)(this,vt)[vt]()){t.add(e);for(const l of(0,ue.getAncestorDirectoryPaths)(e))t.add(l)}return(0,Zt.default)(this,O)[O]=[...t].sort(),(0,Zt.default)(this,O)[O]}function Fe(){return null!=(0,Zt.default)(this,I)[I]||((0,Zt.default)(this,I)[I]=(0,Zt.default)(this,vt)[vt]().map(ue.toLowerCaseSearchPath)),(0,Zt.default)(this,I)[I]}function Re(){return null!=(0,Zt.default)(this,v)[v]||((0,Zt.default)(this,v)[v]=(0,Zt.default)(this,mt)[mt]().filter(t=>t.endsWith("/"))),(0,Zt.default)(this,v)[v]}function Ae(){return null!=(0,Zt.default)(this,S)[S]||((0,Zt.default)(this,S)[S]=(0,Zt.default)(this,Ot)[Ot]().map(ue.toLowerCaseSearchPath)),(0,Zt.default)(this,S)[S]}function Be(){(0,Zt.default)(this,v)[v]=null,(0,Zt.default)(this,S)[S]=null,(0,Zt.default)(this,O)[O]=null,(0,Zt.default)(this,j)[j]=null,(0,Zt.default)(this,I)[I]=null}function Te(){return(0,Zt.default)(this,Ot)[Ot]().filter(t=>(0,Zt.default)(this,X)[X].isExpanded(t))}function ze(t){const e=new Set((0,Zt.default)(this,_)[_]??[]);if(t)for(const t of(0,Zt.default)(this,J)[J])for(const l of(0,ue.getAncestorDirectoryPaths)(t))e.add(l);(0,Zt.default)(this,Dt)[Dt](e)}function ke(t){(0,Zt.default)(this,Z)[Z]=!0;try{for(const e of(0,Zt.default)(this,Ot)[Ot]()){const l=t.has(e),s=(0,Zt.default)(this,X)[X].isExpanded(e);l&&!s?(0,Zt.default)(this,X)[X].expand(e):!l&&s&&(0,Zt.default)(this,X)[X].collapse(e)}}finally{(0,Zt.default)(this,Z)[Z]=!1}}function Le(){if(null==(0,Zt.default)(this,N)[N]||0===(0,Zt.default)(this,N)[N].length)return(0,Zt.default)(this,K)[K]=null,(0,Zt.default)(this,W)[W]=null,(0,Zt.default)(this,H)[H]=null,void((0,Zt.default)(this,tt)[tt]=(0,Zt.default)(this,Y)[Y]);const t=(0,Zt.default)(this,E)[E];if("hide-non-matches"!==(0,Zt.default)(this,L)[L]||0===(0,Zt.default)(this,z)[z].size)return(0,Zt.default)(this,K)[K]=null,(0,Zt.default)(this,W)[W]=null,(0,Zt.default)(this,H)[H]=null,void((0,Zt.default)(this,tt)[tt]=(0,Zt.default)(this,Y)[Y]);const e=[],l=[],s=new Map,u=(0,Zt.default)(this,q)[q];for(const[n,h]of t.entries())!0===u?.has(h)&&(s.set(h,l.length),e.push(n),l.push(h));(0,Zt.default)(this,K)[K]=e,(0,Zt.default)(this,W)[W]=l,(0,Zt.default)(this,H)[H]=s,(0,Zt.default)(this,tt)[tt]=l.length}function Ne(){return(0,Zt.default)(this,W)[W]??(0,Zt.default)(this,E)[E]}function qe(t){return null!=(0,Zt.default)(this,W)[W]?(0,Zt.default)(this,H)[H]?.get(t)??-1:(0,Zt.default)(this,X)[X].getVisibleIndex(t)??-1}function He(t){return(0,Zt.default)(this,K)[K]?.[t]??t}function Ke(t){const e=(0,Zt.default)(this,H)[H]?.get(t);return null!=e?e:(0,Zt.default)(this,X)[X].getVisibleIndex(t)??-1}function We(t){const e=(0,Zt.default)(this,k)[k];if(0===e.length)return;const l=(0,Zt.default)(this,p)[p],s=null==l?-1:e.indexOf(l),u=e[s<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,s+t))];null!=u&&this.focusPath(u)}function Qe(t,e){const l=null==t?null:(0,de.normalizeSearchQuery)(t),s=(0,Zt.default)(this,N)[N];if(s!==l){if(null==s&&null!=l&&((0,Zt.default)(this,_)[_]=(0,Zt.default)(this,wt)[wt]()),(0,Zt.default)(this,N)[N]=l,null==l)(0,Zt.default)(this,T)[T].clear(),(0,Zt.default)(this,xt)[xt](!0),(0,Zt.default)(this,_)[_]=null,(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,q)[q]=null,(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0);else if(0===l.length)(0,Zt.default)(this,T)[T].clear(),(0,Zt.default)(this,xt)[xt](!1),(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,q)[q]=null,(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0);else{const t=(0,Zt.default)(this,Bt)[Bt]();(0,Zt.default)(this,_t)[_t](t,!0)}e&&((0,Zt.default)(this,D)[D]?.((0,Zt.default)(this,N)[N]),(0,Zt.default)(this,Tt)[Tt]())}}function $e(){if(null==(0,Zt.default)(this,N)[N]||0===(0,Zt.default)(this,N)[N].length)return(0,Zt.default)(this,z)[z].clear(),(0,Zt.default)(this,k)[k]=[],(0,Zt.default)(this,p)[p];(0,Zt.default)(this,Qt)[Qt]();const t=(0,Zt.default)(this,N)[N],e=(0,Zt.default)(this,vt)[vt](),l=(0,Zt.default)(this,St)[St](),s=[],u=new Set;let n=null;for(let h=0;h<e.length;h+=1){if(!l[h].includes(t))continue;const f=e[h];s.push(f),u.add(f),n??=f}const h=(0,Zt.default)(this,Ot)[Ot](),f=(0,Zt.default)(this,jt)[jt]();for(let e=0;e<h.length;e+=1){if(!f[e].includes(t))continue;const l=h[e];u.has(l)||(s.push(l),u.add(l),n??=l)}(0,Zt.default)(this,z)[z]=u,(0,Zt.default)(this,k)[k]=s;const o="hide-non-matches"===(0,Zt.default)(this,L)[L]&&s.length>0?new Set:null;(0,Zt.default)(this,q)[q]=o;const c="expand-matches"===(0,Zt.default)(this,L)[L]?new Set((0,Zt.default)(this,_)[_]??[]):new Set;for(const t of s){null!=o&&o.add(t),t.endsWith("/")&&c.add(t);for(const e of(0,ue.getAncestorDirectoryPaths)(t))c.add(e),null!=o&&o.add(e)}for(const t of(0,Zt.default)(this,T)[T])if(c.delete(t),null!=o){o.add(t);for(const e of(0,ue.getAncestorDirectoryPaths)(t))o.add(e)}return(0,Zt.default)(this,Dt)[Dt](c),n??(0,Zt.default)(this,p)[p]}function Ge(){for(const t of(0,Zt.default)(this,s)[s])t()}function Je(t){(0,Zt.default)(this,u)[u].get(t.operation)?.forEach(e=>{e(t)}),(0,Zt.default)(this,u)[u].get("*")?.forEach(e=>{e(t)})}function Ue(t){for(const e of(0,ue.getAncestorDirectoryPaths)(t))(0,Zt.default)(this,X)[X].isExpanded(e)||(0,Zt.default)(this,X)[X].expand(e);(0,Zt.default)(this,X)[X].isExpanded(t)||(0,Zt.default)(this,X)[X].expand(t)}function Xe(t){const e=(0,Zt.default)(this,tt)[tt];if(0===e)return;const l=-1===(0,Zt.default)(this,c)[c]?0:(0,Zt.default)(this,c)[c],s=Math.min(e-1,Math.max(0,l+t));s===l&&-1!==(0,Zt.default)(this,c)[c]||(!(0,Zt.default)(this,P)[P]&&null==(0,Zt.default)(this,K)[K]&&s>=(0,Zt.default)(this,E)[E].length&&(0,Zt.default)(this,Wt)[Wt](),(0,Zt.default)(this,Kt)[Kt](s))}function Ye(t,e=!0){const l=(0,Zt.default)(this,X)[X].getVisibleCount();(0,Zt.default)(this,Y)[Y]=l;const s=fe((0,Zt.default)(this,X)[X].getVisibleTreeProjectionData(e?void 0:Math.min(l,512)),t,e?t=>(0,Zt.default)(this,X)[X].getVisibleIndex(t):void 0);(0,Zt.default)(this,f)[f].clear(),(0,Zt.default)(this,o)[o].clear(),(0,Zt.default)(this,P)[P]=s.paths.length>=l,(0,Zt.default)(this,b)[b]=s.getParentIndex,(0,Zt.default)(this,E)[E]=s.paths,(0,Zt.default)(this,C)[C]=s.posInSetByIndex,(0,Zt.default)(this,M)[M]=s.setSizeByIndex,(0,Zt.default)(this,Et)[Et](),(0,Zt.default)(this,c)[c]=null==t?(0,Zt.default)(this,Ct)[Ct]().length>0?0:-1:(0,Zt.default)(this,ut)[ut](t),(0,Zt.default)(this,p)[p]=(0,Zt.default)(this,c)[c]<0?null:(0,Zt.default)(this,Nt)[Nt]((0,Zt.default)(this,c)[c])}function Ze(t){const e=(0,Zt.default)(this,Ct)[Ct]()[t];return null!=e?e:null!=(0,Zt.default)(this,K)[K]?null:(0,Zt.default)(this,X)[X].getVisibleRowContext(t)?.row.path??null}function tl(t){return(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null}function el(t){if(null==t)return;const e=(0,Zt.default)(this,ut)[ut](t);e>=0&&(0,Zt.default)(this,Kt)[Kt](e,!1)}function ll(t,e=!0){const l=(0,Zt.default)(this,Nt)[Nt](t);null!=l&&((0,Zt.default)(this,c)[c]===t&&(0,Zt.default)(this,p)[p]===l||((0,Zt.default)(this,c)[c]=t,(0,Zt.default)(this,p)[p]=l,e&&(0,Zt.default)(this,Tt)[Tt]()))}function al(){(0,Zt.default)(this,P)[P]||(0,Zt.default)(this,_t)[_t]((0,Zt.default)(this,p)[p],!0)}function il(){if(0!==(0,Zt.default)(this,T)[T].size)for(const t of[...(0,Zt.default)(this,T)[T]])this.resolveMountedDirectoryPathFromInput(t)!==t&&(0,Zt.default)(this,T)[T].delete(t)}function sl(t){if(0===(0,Zt.default)(this,T)[T].size)return;const e=new Set;for(const l of(0,Zt.default)(this,T)[T]){const s=(0,se.remapPathThroughMutation)(l,t);if(null==s)continue;const u=(0,Zt.default)(this,X)[X].getPathInfo(s)?.path??null;null!=u&&u.endsWith("/")&&e.add(u)}(0,Zt.default)(this,T)[T]=e}function ul(t){(0,Zt.default)(this,$t)[$t](t);const e=(0,se.remapPathThroughMutation)((0,Zt.default)(this,R)[R],t);null==e&&null!=(0,Zt.default)(this,R)[R]&&((0,Zt.default)(this,A)[A]=""),(0,Zt.default)(this,R)[R]=e;const l=(0,se.remapPathThroughMutation)((0,Zt.default)(this,p)[p],t,!0),s=[...(0,Zt.default)(this,J)[J]].map(e=>(0,se.remapPathThroughMutation)(e,t)).filter(t=>null!=t).map(t=>(0,Zt.default)(this,X)[X].getPathInfo(t)?.path??null).filter(t=>null!=t),u=(0,se.remapPathThroughMutation)((0,Zt.default)(this,G)[G],t),n=null==u?null:(0,Zt.default)(this,X)[X].getPathInfo(u)?.path??null,h=[...new Set(s)];return(0,ue.arePathSetsEqual)((0,Zt.default)(this,J)[J],h)||((0,Zt.default)(this,J)[J]=new Set(h),(0,Zt.default)(this,U)[U]+=1),(0,Zt.default)(this,G)[G]=n,l}function nl(){return(0,Zt.default)(this,X)[X].on("*",t=>{if((0,Zt.default)(this,Z)[Z])return;t.canonicalChanged&&((0,Zt.default)(this,y)[y].clear(),(0,Zt.default)(this,It)[It]()),null!=(0,Zt.default)(this,h)[h]&&(0,se.isPathMutationEvent)(t)&&((0,Zt.default)(this,h)[h]=null);const e=(0,se.isPathMutationEvent)(t)?(0,Zt.default)(this,Gt)[Gt](t):(0,Zt.default)(this,p)[p];let l;if(null!=(0,Zt.default)(this,N)[N]&&(0,Zt.default)(this,N)[N].length>0){const t=(0,Zt.default)(this,Bt)[Bt]();l=null!=(0,Zt.default)(this,p)[p]&&!0===(0,Zt.default)(this,q)[q]?.has((0,Zt.default)(this,p)[p])?(0,Zt.default)(this,p)[p]:t}else l=""===(0,Zt.default)(this,N)[N]?(0,Zt.default)(this,p)[p]:e;const s=null!=(0,Zt.default)(this,N)[N]||"expand"!==t.operation&&"collapse"!==t.operation;(0,Zt.default)(this,_t)[_t](l,s),(0,Zt.default)(this,Tt)[Tt]();const u=(0,se.toTreesMutationEvent)(t);null!=u&&(0,Zt.default)(this,zt)[zt](u)})}function dl(t){(0,Zt.default)(this,X)[X].isExpanded(t)?(0,Zt.default)(this,ct)[ct](t):(0,Zt.default)(this,kt)[kt](t)}},1265,[25,30,31,1242,1266,1268,1269,1270,1271,1272,1273]);
|
|
34
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"remapExpandedPathsForFolderRename",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"renameFileTreePaths",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t){const n=t.lastIndexOf("/");return n<0?{parentPath:"",baseName:t}:{parentPath:t.slice(0,n),baseName:t.slice(n+1)}}function s(t,n){return""===t?n:`${t}/${n}`}function o({expandedPaths:t,sourcePath:n,destinationPath:s}){if(0===t.length||n===s)return t;const o=`${n}/`,l=[],c=new Set;let u=!1;for(let h=0;h<t.length;h++){const f=t[h],P=f===n?s:f.startsWith(o)?`${s}${f.slice(n.length)}`:f;P!==f&&(u=!0),c.has(P)?u=!0:(c.add(P),l.push(P))}return u?l:t}function l({files:o,path:l,isFolder:c,nextBasename:u}){const h=(0,t.getSelectionPath)(l),f=u.trim();if(0===f.length)return{error:"Name cannot be empty."};if(f.includes("/"))return{error:"Name cannot include \"/\"."};const{parentPath:P,baseName:$}=n(h);if(f===$)return{nextFiles:o,sourcePath:h,destinationPath:h,isFolder:c};const p=s(P,f),x=new Array(o.length),F=new Set;if(!c){const t=`${p}/`;let n=!1;for(let s=0;s<o.length;s++){const l=o[s];if(l!==h&&l.startsWith(t))return{error:`"${p}" already exists.`};const c=l===h?p:l;if(F.has(c))return{error:`"${p}" already exists.`};F.add(c),x[s]=c,l===h&&(n=!0)}return n?{nextFiles:x,sourcePath:h,destinationPath:p,isFolder:c}:{error:"Could not find the selected file to rename."}}const b=`${h}/`,y=`${p}/`;let N=0;for(let t=0;t<o.length;t++){const n=o[t],s=n===h||n.startsWith(b);if(!s&&(n===p||n.startsWith(y)))return{error:`"${p}" already exists.`};const l=s?`${p}${n.slice(h.length)}`:n;if(F.has(l))return{error:`"${p}" already exists.`};F.add(l),x[t]=l,s&&N++}return 0===N?{error:"Could not find the selected folder to rename."}:{nextFiles:x,sourcePath:h,destinationPath:p,isFolder:c}}},1266,[1267]);
|
|
35
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getSelectionPath",{enumerable:!0,get:function(){return t}}),r(d[0]);const t=t=>t.startsWith("f::")?t.slice(3):t},1267,[1236]);
|
|
36
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.endsWith("/")}function n(t){const n=t.endsWith("/")?t.slice(0,-1):t,o=n.lastIndexOf("/"),u=o<0?n:n.slice(o+1);return t.endsWith("/")?`${u}/`:u}function o(t){const n=[],o=new Set;for(const u of t)o.has(u)||(o.add(u),n.push(u));const u=new Set;for(const t of n.toSorted((t,n)=>t.length!==n.length?t.length-n.length:t.localeCompare(n))){const n=(t.endsWith("/")?t.slice(0,-1):t).split("/");let o=!1;for(let t=0;t<n.length-1;t+=1){const c=`${n.slice(0,t+1).join("/")}/`;if(u.has(c)){o=!0;break}}o||u.add(t)}return n.filter(t=>u.has(t))}function u(t,n){return n.includes(t)?o(n):[t]}function c(t,n){return t===n||null!=t&&null!=n&&(t.kind===n.kind&&t.directoryPath===n.directoryPath&&t.flattenedSegmentPath===n.flattenedSegmentPath&&t.hoveredPath===n.hoveredPath)}function l(t,n){return{draggedPaths:t,target:n}}function s(n,o){if("directory"!==o.kind||null==o.directoryPath)return!1;for(const u of n)if(t(u)&&(o.directoryPath===u||o.directoryPath.startsWith(u)))return!0;return!1}function f(t,o){return"root"===o.kind||null==o.directoryPath?n(t):o.directoryPath}function h(t,n){const o=t.map(t=>{const o=f(t,n);return o===t?null:{from:t,to:o,type:"move"}}).filter(t=>null!=t);return 0===o.length?null:{operations:o,result:{draggedPaths:t,operation:1===o.length?"move":"batch",target:n}}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"buildDropOperations",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"createDropContext",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"dropTargetsEqual",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isSelfOrDescendantDrop",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"normalizeDraggedPaths",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"resolveDraggedPathsForStart",{enumerable:!0,get:function(){return u}})},1268,[]);
|
|
37
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveFileTreeInput",{enumerable:!0,get:function(){return p}});var t=r(d[0]);function n(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;for(let p=0;p<t.length;p+=1)if(t[p]!==n[p])return!1;return!0}function p(p,u,l){const{paths:o,preparedInput:s}=p;if(null==s){if(null==o)throw new Error("FileTree requires paths or preparedInput");return{paths:o,preparedInput:void 0}}const f=s.paths;if(null==o)return{paths:f,preparedInput:s};if(!n(t.PathStore.preparePaths(o,null==l?{}:{sort:l}),f))throw new Error(`FileTree ${u} received paths and preparedInput for different path lists`);return{paths:f,preparedInput:s}}},1269,[1242]);
|
|
38
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return"add"===t.operation||"remove"===t.operation||"move"===t.operation||"batch"===t.operation}function n(t,n,o){if(t===n)return o;const c=n.endsWith("/")?n:`${n}/`;return t.startsWith(c)?`${o.endsWith("/")?o:`${o}/`}${t.slice(c.length)}`:t}function o(t,n){if(t===n)return!0;const o=n.endsWith("/")?n:`${n}/`;return t.startsWith(o)}function c(t,u,s=!1){if(null==t)return null;switch(u.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return t;case"remove":return o(t,u.path)?s?t:null:t;case"move":return n(t,u.from,u.to);case"batch":{let n=t;for(const t of u.events)if(n=c(n,t,s),null==n)return null;return n}}}function u(t){return{canonicalChanged:t.canonicalChanged,projectionChanged:t.projectionChanged,visibleCountDelta:t.visibleCountDelta}}function s(t){switch(t.operation){case"add":return Object.assign({},u(t),{operation:"add",path:t.path});case"remove":return Object.assign({},u(t),{operation:"remove",path:t.path,recursive:t.recursive});case"move":return Object.assign({},u(t),{from:t.from,operation:"move",to:t.to})}}function l(t){return Object.assign({},u(t),{events:t.events.filter(t=>"add"===t.operation||"remove"===t.operation||"move"===t.operation).map(t=>s(t)),operation:"batch"})}function p(t){switch(t.operation){case"add":case"remove":case"move":return s(t);case"batch":return l(t);default:return null}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isPathMutationEvent",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"remapPathThroughMutation",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"toTreesMutationEvent",{enumerable:!0,get:function(){return p}})},1270,[]);
|
|
39
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){if(t.size!==n.length)return!1;for(const u of n)if(!t.has(u))return!1;return!0}function n(t){const n=t.endsWith("/")?t.slice(0,-1):t;if(0===n.length)return[];const u=n.split("/");return u.slice(0,-1).map((t,n)=>`${u.slice(0,n+1).join("/")}/`)}function u(t){return n(t).at(-1)??null}function o(t,n){return null==n?t:t.startsWith(n)?t.slice(n.length):t}function c(t){return t.endsWith("/")}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"arePathSetsEqual",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"getAncestorDirectoryPaths",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getImmediateParentPath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getSiblingComparisonKey",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isCanonicalDirectoryPath",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"toLowerCaseSearchPath",{enumerable:!0,get:function(){return s}});const s=t=>t.toLowerCase()},1271,[]);
|
|
40
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){const t=n.endsWith("/")?n.slice(0,-1):n,u=t.lastIndexOf("/");return u<0?t:t.slice(u+1)}function t(n){return n.endsWith("/")?n.slice(0,-1):n}function u(n,t){return t&&!n.endsWith("/")?`${n}/`:n}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getRenameLeafName",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"toCanonicalRenamePath",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"toRenameHelperPath",{enumerable:!0,get:function(){return t}})},1272,[]);
|
|
41
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"normalizeSearchQuery",{enumerable:!0,get:function(){return t}});const t=t=>{const n=t.trim();return 0===n.length?"":(n.includes("\\")?n.replaceAll("\\","/"):n).toLowerCase()}},1273,[]);
|
|
42
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"applyFileTreeGitStatusPatch",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"resolveFileTreeGitStatusState",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);function o(t){const n=t.endsWith("/")?t.slice(0,-1):t;if(0===n.length)return[];const o=[];let s=0;for(;;){const t=n.indexOf("/",s);if(-1===t)break;o.push(n.slice(0,t+1)),s=t+1}return o}function s(t,n){return n?`${t}/`:t}function c(n,o=null){const s=(0,t.getGitStatusSignature)(null==n?void 0:[...n]);if("0"===s)return null;if(o?.signature===s)return o;const c=new Map,u=new Set,l=new Set,y=new Map;for(const t of n??[]){const n=h(t);null!=n&&P({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:y,directoriesWithChanges:u,ignoredDirectoryPaths:l,isDirectory:n.isDirectory,status:t.status,statusByPath:c})}return 0===c.size?null:{changeCountByDirectoryPath:y,directoriesWithChanges:u,ignoredDirectoryPaths:l,signature:s,statusByPath:c}}function u(t,n){const o=n?.remove??[],s=n?.set??[];if(0===o.length&&0===s.length)return t;const c=new Map(t?.statusByPath),u=new Set(t?.directoriesWithChanges),f=new Set(t?.ignoredDirectoryPaths),D=new Map(t?.changeCountByDirectoryPath);let C=!1;for(const t of o){const n=l(t);null!=n&&(C=y({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,statusByPath:c})||C)}for(const t of s){const n=h(t);null!=n&&(C=P({canonicalPath:n.canonicalPath,changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,isDirectory:n.isDirectory,status:t.status,statusByPath:c})||C)}return C?0===c.size?null:{changeCountByDirectoryPath:D,directoriesWithChanges:u,ignoredDirectoryPaths:f,signature:B(c),statusByPath:c}:t}function h(t){return l(t.path)}function l(t){const o=(0,n.normalizeInputPath)(t);if(null!=o)return{canonicalPath:s(o.path,o.isDirectory),isDirectory:o.isDirectory}}function y({canonicalPath:t,changeCountByDirectoryPath:n,directoriesWithChanges:o,ignoredDirectoryPaths:s,statusByPath:c}){const u=c.get(t);return null!=u&&(c.delete(t),"ignored"===u&&t.endsWith("/")&&s.delete(t),D(n,o,t),!0)}function P({canonicalPath:t,changeCountByDirectoryPath:n,directoriesWithChanges:o,ignoredDirectoryPaths:s,isDirectory:c,status:u,statusByPath:h}){const l=h.get(t);return l!==u&&(null==l&&f(n,o,t),h.set(t,u),"ignored"===u&&c?s.add(t):c&&s.delete(t),!0)}function f(t,n,s){for(const c of o(s))t.set(c,(t.get(c)??0)+1),n.add(c)}function D(t,n,s){for(const c of o(s)){const o=(t.get(c)??0)-1;o>0?t.set(c,o):(t.delete(c),n.delete(c))}}function B(t){let n=`${t.size}`;for(const[o,s]of t)n+=`\0${o}\0${s}`;return n}},1274,[1275,1276]);
|
|
43
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getGitStatusSignature",{enumerable:!0,get:function(){return t}});const t=t=>{if(null==t||0===t.length)return"0";let n=`${t.length}`;for(const u of t)n+=`\0${u.path}\0${u.status}`;return n}},1275,[]);
|
|
44
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";function t(t){const n=t.endsWith("/");let i="",o=-1;for(let n=0;n<=t.length;n+=1)"/"===t[n]||n===t.length?-1!==o&&(""!==i&&(i+="/"),i+=t.slice(o,n),o=-1):-1===o&&(o=n);return""===i?null:{isDirectory:n,path:i}}function n(t,n,i){const o=t.lastIndexOf("/");if(-1===o)return void(n&&i(t));const l=n?t.length:o;let c=t.indexOf("/");for(;-1!==c&&c<=l;)i(t.slice(0,c)),c=t.indexOf("/",c+1);n&&i(t)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"forEachFolderInNormalizedPath",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"normalizeInputPath",{enumerable:!0,get:function(){return t}})},1276,[]);
|
|
45
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["name"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeView",{enumerable:!0,get:function(){return de}});var t,n=r(d[0]),l=(t=n)&&t.__esModule?t:{default:t},o=r(d[1]),u=r(d[2]),c=r(d[3]),s=r(d[4]),f=r(d[5]),h=r(d[6]),p=r(d[7]),v=r(d[8]),y=r(d[9]),w=r(d[10]),x=r(d[11]),b=r(d[12]),E=r(d[13]),T=r(d[14]),R=r(d[15]),k=r(d[16]),M=r(d[17]),P=r(d[18]);function S(e,t=null,n=null){const l=e.flattenedSegments;return null==l||0===l.length?t??e.name:(0,P.jsx)("span",{"data-item-flattened-subitems":!0,children:l.map((e,o)=>{const u=o===l.length-1;return(0,P.jsxs)(k.Fragment,{children:[(0,P.jsx)("span",{"data-item-flattened-subitem":e.path,"data-item-flattened-subitem-drag-target":n===e.path?"true":void 0,children:u&&null!=t?t:(0,P.jsx)(p.Truncate,{children:e.name})}),o<l.length-1?" / ":""]},e.path)})})}function D(e){return e.isFlattened?e.flattenedSegments?.findLast(e=>e.isTerminal)?.path??e.path:e.path}function L(e){const t=e.flattenedSegments;return null==t||0===t.length?e.name:t.map(e=>e.name).join(" / ")}function A(e,t,n,l){return e.map((e,o)=>{const u=o*n,c=e.subtreeEndIndex+1;if(c>=l)return{row:e.row,top:u};const s=c*n-t;return{row:e.row,top:Math.min(u,s-n)}}).filter(e=>e.top+n>0)}function C({controller:e,itemHeight:t,overscan:n,scrollTop:l,stickyFolders:o,viewportHeight:u}){const c=e.getVisibleCount(),s=o&&c>0?e.getStickyRowCandidates(l,t):[],f=null==s&&o&&c>0?e.getVisibleRows(0,c-1):[],h=null==s?void 0:A(s,l,t,c),p=(0,v.computeFileTreeLayout)(f,{itemHeight:t,overscan:n,scrollTop:l,stickyRows:h,totalRowCount:c,viewportHeight:u}),y=o&&l<=0&&c>0?e.getStickyRowCandidates(1,t):[],w=null!=y&&l<=0?A(y,1,t,c):o&&l<=0&&f.length>0?(0,v.computeStickyRows)(f,1,t):p.sticky.rows;return{overlayHeight:w.reduce((e,n)=>Math.max(e,n.top+t),0),overlayRows:w,snapshot:p,visibleRows:f}}const F=400,I=40,j=18;function O(e,t,n){const l=e,o=document.elementFromPoint?.bind(document)??null,u=l.elementFromPoint?.(t,n)??o?.(t,n)??null;return e instanceof ShadowRoot&&(null==u||!e.contains(u))?H(e,t,n):u instanceof HTMLElement?u:null}function H(e,t,n){const l=Array.from(e.querySelectorAll("[data-type=\"item\"], [data-item-flattened-subitem]"));for(let e=l.length-1;e>=0;e--){const o=l[e],u=o.getBoundingClientRect();if(t>=u.left&&t<=u.right&&n>=u.top&&n<=u.bottom)return o}return null}function _(e){const t=e?.closest?.("[data-type=\"item\"]");if(!(t instanceof HTMLElement))return null;const n=t.dataset.itemPath??null;if(null==n)return null;const l=e?.closest?.("[data-item-flattened-subitem]"),o=l instanceof HTMLElement?l.getAttribute("data-item-flattened-subitem")??null:null;if(null!=o&&o.endsWith("/"))return{directoryPath:o,flattenedSegmentPath:o,hoveredPath:n,kind:"directory"};if("folder"===t.dataset.itemType)return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};const u=t.dataset.itemParentPath??null;return null==u||0===u.length?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:u,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function V(e){const t=e.cloneNode(!0);return t.removeAttribute("id"),t.dataset.fileTreeDragPreview="true",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,Object.assign(t.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),t}function $(e,t){const n=e-t.top;if(n<I)return-Math.ceil((I-Math.max(0,n))/I*j);const l=t.bottom-e;return l<I?Math.ceil((I-Math.max(0,l))/I*j):0}function N(e,t,n){if(null!=e){const t=y.GIT_STATUS_LABEL[e];return null==t?null:{text:t,title:n.gitStatusTitles[e]}}return t?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:n.containsGitStatusTitle}:null}function B(e,t,n){if(null==t||0===t.size)return null;const l=[];for(let o=e.length-1;o>=0;o-=1){const u=e[o],c=n.get(u);if(null!=c){for(const e of l)n.set(e,c);return c?"ignored":null}if(t.has(u)){n.set(u,!0);for(const e of l)n.set(e,!0);return"ignored"}l.push(u)}for(const e of l)n.set(e,!1);return null}function K(e){return null!=e&&"toggle"in e}function X(e){return"Space"===e.code||" "===e.key||"Spacebar"===e.key}function U(e){return 1===e.key.length&&/^[\p{L}\p{N}]$/u.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function Y(e){return e.shiftKey&&"F10"===e.key||"ContextMenu"===e.key}function G(e,t){return!(!t||!Y(e))||(!(!e.ctrlKey&&!e.metaKey||!X(e))||("ArrowDown"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key))}const z=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function q(e){for(const t of e.composedPath())if(t instanceof HTMLElement){if("true"===t.dataset.fileTreeContextMenuRoot)return!0;if("context-menu-anchor"===t.dataset.type||"context-menu-trigger"===t.dataset.type)return!0;if("context-menu"===t.getAttribute("slot"))return!0}return!1}function W(e,t){if(null==e)return t.offsetTop;const n=t.getBoundingClientRect(),l=e.getBoundingClientRect();return n.top-l.top}function J(e,t,n){null!=n?e.set(t,n):e.delete(t)}function Q(e,t,n){if(null==e)return null;const l=t.get(e)??null;if(null!=l)return l;const o=n.get(e)??null;return"true"===o?.dataset.itemParked?null:o}function Z(e){if(null==e)return[];const t=[];for(const n of e.querySelectorAll("button[data-file-tree-sticky-row=\"true\"]")){if(!(n instanceof HTMLElement))continue;const e=n.dataset.fileTreeStickyPath;null!=e&&t.push(e)}return t}function ee(e,t){if(null==e||null==t)return null;for(const n of e.querySelectorAll("button[data-item-focused=\"true\"][data-item-parked=\"true\"]"))if(n instanceof HTMLElement&&n.dataset.itemPath===t)return n;return null}function te(e,t,n,l,o,u,c){const s=Math.max(0,u-o),f=t?.getBoundingClientRect()??null,h=null==f||null==n?null:n.getBoundingClientRect().top-f.top,p=ee(e,l),v=null==f||null==p?null:p.getBoundingClientRect().top-f.top;return Math.max(0,Math.min(v??Math.max(h??0,s),Math.max(0,c-o)))}function ne(e,t){return{kind:e.kind,name:L(e),path:t}}function re(e){return null==e?void 0:`${e}__tree`}function le(e,t,n){if(null!=e)return`${e}__focused-item-${encodeURIComponent(t)}${n?"__parked":""}`}function oe(e){return"file-tree-icon-chevron"===e||"file-tree-icon-dot"===e||"file-tree-icon-file"===e||"file-tree-icon-lock"===e}function ue(t,n){if(null==t)return null;if("text"in t)return null!=t.parts?(0,P.jsx)("span",{title:t.title,children:t.parts.map((e,t)=>(0,P.jsx)("span",{style:{color:e.color},children:e.text},t))}):(0,P.jsx)("span",{title:t.title,children:t.text});const o="string"==typeof t.icon?oe(t.icon)?n(t.icon):{name:t.icon}:oe(t.icon.name)?(()=>{const o=n(t.icon.name),u=t.icon,c=(0,l.default)(u,e);return Object.assign({},o,c)})():t.icon;return(0,P.jsx)("span",{title:t.title,children:(0,P.jsx)(h.Icon,Object.assign({},o))})}function ie(e){if(null==e)return;const t=e.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[tabindex]:not([tabindex=\"-1\"])"].join(", "));(0,x.focusElement)(t??e)}function ae(e,t,{actionLaneEnabled:n=!1,customDecoration:l=null,decorationLaneEnabled:o=!1,dragTargetFlattenedSegmentPath:u=null,gitDecoration:c=null,gitLaneActive:s=!1,renameInput:f=null,showDecorativeActionAffordance:v=!1}={}){const y=D(e);return(0,P.jsxs)(k.Fragment,{children:[e.depth>0?(0,P.jsx)("div",{"data-item-section":"spacing",children:Array.from({length:e.depth}).map((t,n)=>(0,P.jsx)("div",{"data-item-section":"spacing-item","data-ancestor-path":e.ancestorPaths[n]},n))}):null,(0,P.jsx)("div",{"data-item-section":"icon",children:"directory"===e.kind?(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-chevron"))):(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-file",y)))}),(0,P.jsx)("div",{"data-item-section":"content",children:e.isFlattened?S(e,f,u):f??(0,P.jsx)(p.MiddleTruncate,{minimumLength:5,split:"extension",children:e.name})}),o?(0,P.jsx)("div",{"data-item-section":"decoration",children:null!=l?ue(l,t):null}):null,s?(0,P.jsx)("div",{"data-item-section":"git",children:ue(c,t)}):null,n?(0,P.jsx)("div",{"data-item-section":"action",children:v?(0,P.jsx)("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:(0,P.jsx)(h.Icon,Object.assign({},t("file-tree-icon-ellipsis")))}):null}):null]})}function ce(e,t,n,l={}){const{controller:o,renameView:u,visualFocusPath:c,contextHoverPath:s,draggedPathSet:f,dragTarget:h,dragAndDropEnabled:p,shouldSuppressContextMenu:v,handleRowDragStart:y,handleRowDragEnd:w,handleRowTouchStart:x,instanceId:b,itemHeight:R,gitStatusByPath:k,ignoredGitDirectories:M,ignoredInheritanceCache:S,directoriesWithGitChanges:A,gitLaneActive:C,labels:F,contextMenuEnabled:I,contextMenuTriggerMode:j,contextMenuButtonTriggerEnabled:O,contextMenuButtonVisibility:H,contextMenuRightClickEnabled:_,registerRenameInput:V,registerButton:$,resolveIcon:K,renderDecorationForRow:X,openContextMenuForRow:U,onRowClick:Y,onKeyDown:G}=e,z=D(t),{isParked:q=!1,mode:W="flow",style:J}=l,Q="sticky"===W,Z=k?.get(z)??null??B(t.ancestorPaths,M,S),ee="directory"===t.kind&&(A?.has(z)??!1),te=X(t,z),ne=N(Z,ee,F),re=I&&O,oe=null!=te||C||re,ue=re&&"always"===H,ie=u.getPath()===z,ce=ie?u.getValue():"",se=Q||!ie?null:(0,P.jsx)(E.RenameInput,{ref:V,ariaLabel:F.renameItem(L(t)),isFlattened:t.isFlattened,value:ce,onBlur:()=>{u.commit()},onInput:e=>{u.setValue(e.currentTarget.value)}}),de=ae(t,K,{actionLaneEnabled:re,customDecoration:te,decorationLaneEnabled:oe,dragTargetFlattenedSegmentPath:h?.flattenedSegmentPath??null,gitDecoration:ne,gitLaneActive:C,renameInput:se,showDecorativeActionAffordance:ue}),fe=Object.assign({},(0,T.computeFileTreeRowElementAttributes)({ariaLabel:L(t),domId:t.isFocused?le(b,z,q):void 0,extraStyle:J,features:{actionLaneEnabled:re,contextMenuButtonVisibility:re?H:null,contextMenuEnabled:I,contextMenuTriggerMode:I?j:null,gitLaneActive:C},isParked:q,itemHeight:R,mode:W,row:t,state:{containsGitChange:ee,effectiveGitStatus:Z,isContextHovered:s===z,isDragTarget:"directory"===h?.kind&&h.directoryPath===z,isDragging:!0===f?.has(z),isFocusRinged:t.isFocused&&c===z},targetPath:z}),{key:n,onContextMenu:I||p?e=>{var n,l;v()?e.preventDefault():I&&(e.preventDefault(),_&&(o.focusMountedPathFromInput(z),U(t,z,{anchorRect:(n=e.clientX,l=e.clientY,{bottom:l,height:0,left:n,right:n,top:l,width:0,x:n,y:l}),source:"right-click"})))}:void 0,onFocus:Q?void 0:()=>{o.focusMountedPathFromInput(z)},onKeyDown:Q?void 0:G,ref:e=>{$(z,e)}});return!Q&&ie?(0,P.jsx)("div",Object.assign({},fe,{children:de})):(0,P.jsx)("button",Object.assign({},fe,{type:"button",draggable:p&&!q,onDragEnd:p&&!q?w:void 0,onDragStart:p&&!q?e=>{y(e,t,z)}:void 0,onMouseDown:e=>{(Q||o.isSearchOpen())&&e.preventDefault()},onTouchStart:p&&!q?e=>{x(e,t,z)}:void 0,onClick:e=>{Y(e,t,z,W)},children:de}))}function se(e,t,n){return t.end<t.start?[]:e.controller.getVisibleRows(t.start,t.end).filter(e=>!n.has(D(e))).map((n,l)=>ce(e,n,t.start+l))}function de({composition:e,controller:t,gitStatusByPath:n,ignoredGitDirectories:l,directoriesWithGitChanges:p,icons:v,instanceId:y,itemHeight:E=s.FILE_TREE_DEFAULT_ITEM_HEIGHT,labels:T=c.DEFAULT_FILE_TREE_LABELS,overscan:k=10,renamingEnabled:S=!1,renderRowDecoration:L,searchBlurBehavior:A="close",searchEnabled:I=!1,searchFakeFocus:j=!1,slotHost:H,stickyFolders:N=!1,initialViewportHeight:B=420}){const ee=(0,M.useRef)(null),oe=(0,M.useRef)(null),ue=(0,M.useRef)(!1),ae=(0,M.useRef)(null),de=(0,M.useRef)(null),fe=(0,M.useRef)(null),he=(0,M.useRef)(null),ge=(0,M.useRef)(null),pe=(0,M.useRef)(new Map),me=(0,M.useRef)(new Map),ve=(0,M.useRef)(()=>{}),ye=(0,M.useRef)(null),we=(0,M.useRef)(0),xe=(0,M.useRef)(!1),be=(0,M.useRef)(null);be.current!==t&&(xe.current=!1,be.current=t);const Ee=(0,M.useRef)(!1),Te=(0,M.useRef)(null),Re=(0,M.useRef)(null),ke=(0,M.useRef)(!1),Me=(0,M.useRef)(null),Pe=(0,M.useRef)(null),Se=(0,M.useRef)(null),De=(0,M.useRef)(null),Le=(0,M.useRef)(null),Ae=(0,M.useRef)(null),Ce=(0,M.useRef)(null),Fe=(0,M.useRef)(null),Ie=(0,M.useRef)(!1),je=(0,M.useRef)(null),Oe=(0,M.useRef)(null),He=(0,M.useRef)(null),Ve=(0,M.useRef)(null),$e=(0,M.useMemo)(()=>new Map,[]),[,Ne]=(0,M.useState)(0),Be=(0,M.useRef)(!1),[Ke,Xe]=(0,M.useState)(null),[Ue,Ye]=(0,M.useState)(null),[Ge,ze]=(0,M.useState)(null),[qe,We]=(0,M.useState)(null),[Je,Qe]=(0,M.useState)(0),[Ze,et]=(0,M.useState)(null),tt=(0,M.useRef)(Ze);tt.current=Ze;const nt=(0,M.useRef)(0),rt=(0,M.useCallback)((e,t)=>{const n=tt.current;return null!=n&&n.path===e&&n.source===t?n.token:(nt.current+=1,nt.current)},[]),lt=(0,M.useRef)(null),ot=(0,M.useRef)(null),ut=(0,M.useRef)(null),it=(0,M.useRef)(null),at=(0,M.useRef)(null),ct=(0,M.useRef)(!1),st=(e,t)=>{ot.current=e,ut.current=null,it.current=null==t?null:{path:e,scrollTop:t}},dt=(0,M.useRef)("retain"===A&&t.isSearchOpen()),[ft,ht]=(0,M.useState)(j);(0,M.useEffect)(()=>{j||ht(!1)},[j]);const gt=(0,M.useRef)(!1),pt=(0,M.useCallback)(()=>{gt.current=!0,ht(e=>!e&&e)},[]),[mt,vt]=(0,M.useState)(()=>C({controller:t,itemHeight:E,overscan:k,scrollTop:0,stickyFolders:N,viewportHeight:B})),[yt,wt]=(0,M.useState)(!1);(0,M.useEffect)(()=>{wt(!0)},[]);const xt=!0===e?.contextMenu?.enabled||null!=e?.contextMenu?.render||null!=e?.contextMenu?.onOpen||null!=e?.contextMenu?.onClose,bt=e?.contextMenu?.triggerMode??(xt?"right-click":"both"),Et="both"===bt||"button"===bt,Tt=e?.contextMenu?.buttonVisibility??"when-needed",Rt="both"===bt||"right-click"===bt;(0,M.useLayoutEffect)(()=>{const e=fe.current;if(null==e)return;const t=e=>{if(!(e instanceof CustomEvent))return;const t=e.detail?.path??null;at.current=t,Ye(t),We(null==t?null:"pointer")},n=e=>{if(!(e instanceof CustomEvent))return;const t=e.detail;ct.current=!0===t?.disabled};return e.addEventListener("file-tree-debug-set-context-menu-trigger",t),e.addEventListener("file-tree-debug-set-scroll-suppression",n),()=>{e.removeEventListener("file-tree-debug-set-context-menu-trigger",t),e.removeEventListener("file-tree-debug-set-scroll-suppression",n)}},[]);const kt=(0,M.useCallback)((e,t)=>{J(pe.current,e,t)},[]),Mt=(0,M.useCallback)((e,t)=>{J(me.current,e,t)},[]),Pt=(0,M.useCallback)(e=>{de.current=e},[]),St=(0,M.useCallback)(e=>Q(e,me.current,pe.current),[]),Dt=null!=n||null!=l||null!=p,{resolveIcon:Lt}=(0,M.useMemo)(()=>(0,u.createFileTreeIconResolver)(v),[v]),At=t[f.FILE_TREE_RENAME_VIEW](),Ct=At.getPath(),Ft=null!=Ct,It=t.isSearchOpen(),jt=t.getSearchValue(),Ot=t.getFocusedPath(),Ht=t.getFocusedIndex(),_t=t.getScrollRequest(),Vt=t.isDragAndDropEnabled(),$t=t.getDragSession(),Nt=(0,M.useMemo)(()=>null==$t?null:new Set($t.draggedPaths),[$t]),Bt=$t?.target??null,Kt=$t?.primaryPath??null,Xt=re(y),{overlayHeight:Ut,overlayRows:Yt,snapshot:Gt,visibleRows:zt}=mt,qt=Gt.physical.viewportHeight,Wt=(0,M.useMemo)(()=>({end:Gt.window.endIndex,start:Gt.window.startIndex}),[Gt.window.endIndex,Gt.window.startIndex]),Jt=Yt,Qt=Gt.sticky.rows,Zt=Gt.physical.totalHeight,en=Gt.sticky.height,tn=(0,M.useMemo)(()=>new Set(Qt.map(e=>D(e.row))),[Qt]),nn=Ht>=0&&Ht>=Wt.start&&Ht<=Wt.end,rn=(0,M.useCallback)((e,t)=>L?.({item:ne(e,t),row:e})??null,[L]),ln=(0,M.useCallback)(e=>{const t=null==e?null:pe.current.get(e)??null;return!!(0,x.focusElement)(t)||(0,x.focusElement)(fe.current)},[]),on=(0,M.useCallback)(e=>{const n=t.focusNearestPath(e);ln(n)},[t,ln]),un=(0,M.useRef)(on);un.current=on;const an=(0,M.useRef)(!0),cn=(0,M.useRef)(()=>{}),sn=(0,M.useCallback)((t=!0,n)=>{const l=tt.current;null!=l&&(null!=n&&n!==l.token||(an.current=an.current&&t,et(null),e?.contextMenu?.onClose?.(),an.current&&on(l.path)))},[e?.contextMenu,on]);cn.current=sn;const dn=(0,M.useCallback)(e=>{const t=null==e?null:W(fe.current,e);ze(e=>e===t?e:t)},[]),fn=(0,M.useCallback)((e,n,l)=>{const o=t.getItem(n);if(null==o)return;const u=St(n);if("true"===u?.dataset.fileTreeStickyRow){const e=he.current;st(n,e?.scrollTop??null),Ee.current=!0,Xe(e=>e===n?e:n)}o.focus(),dn(u),an.current=!0;const c=l?.source??"keyboard";et({anchorRect:l?.anchorRect??null,item:ne(e,n),path:n,source:c,token:rt(n,c)})},[t,St,rt,dn]),hn=(0,M.useCallback)(e=>{if(S){if(t.isSearchOpen()){const e=he.current,t=(0,x.readMeasuredViewportHeight)(e,qt);Me.current=Ht<0||null==e?null:Math.max(0,Math.min(Ht*E-e.scrollTop,Math.max(0,t-E))),ke.current=!0}!1!==t.startRenaming(e)&&(We("focus"),Ne(e=>e+1))}},[t,Ht,E,S,qt]),gn=(0,M.useCallback)((e,{restoreTreeFocus:n=!0,targetOffset:l="live-overlay"}={})=>{const o=he.current;if(null==o)return!1;t.focusPath(e);const u=t.getFocusedIndex();if(u<0)return!1;const c=t.getVisibleRows(u,u)[0]??null;if(null==c)return!1;const s=(0,x.readMeasuredViewportHeight)(o,qt),f=t.getVisibleCount()*E,h="sticky-parents"===l?c.ancestorPaths.length*E:C({controller:t,itemHeight:E,overscan:k,scrollTop:o.scrollTop,stickyFolders:N,viewportHeight:s}).snapshot.sticky.height;return Ee.current=!0,(0,x.scrollFocusedRowToViewportOffset)(o,u,E,s,f,h),ve.current(),lt.current=n?e:null,!0},[t,E,k,qt,N]),pn=e=>"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):window.setTimeout(e,16),mn=()=>{null!=De.current&&(clearTimeout(De.current),De.current=null),Se.current=null},vn=()=>{Ae.current?.remove(),Ae.current=null},yn=()=>{var e;null!=(e=Pe.current)&&("function"!=typeof window.cancelAnimationFrame?window.clearTimeout(e):window.cancelAnimationFrame(e)),Pe.current=null,Le.current=null},wn=e=>{const t=fe.current?.getRootNode();t instanceof ShadowRoot?t.append(e):document.body.append(e)},xn=()=>{Fe.current?.(),Fe.current=null,null!=Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Ie.current=!1,je.current=null,He.current=null,null!=Oe.current&&(Oe.current.setAttribute("draggable","true"),Oe.current.style.removeProperty("touch-action"),Oe.current=null),vn(),mn(),yn(),Ce.current=null},bn=(e,n)=>{const l=fe.current?.getRootNode(),o=_(O(l instanceof ShadowRoot?l:document,e,n));return t.setDragTarget(o),t.getDragSession()?.target??null},En=e=>{const n=t.getDragAndDropConfig()?.openOnDropDelay??800;if(null==e||"directory"!==e.kind||null==e.directoryPath||n<=0)return void mn();const l=t.getItem(e.directoryPath),o=K(l)?l:null;if(null==o||o.isExpanded())return void mn();const u=`${e.directoryPath}::${e.flattenedSegmentPath??""}`;Se.current!==u&&(mn(),Se.current=u,De.current=setTimeout(()=>{const n=t.getDragSession()?.target;"directory"===n?.kind&&n.directoryPath===e.directoryPath&&n.flattenedSegmentPath===e.flattenedSegmentPath&&o.expand()},n))},Tn=()=>{Pe.current=null;const e=Le.current,n=he.current;if(null==e||null==n||null==t.getDragSession())return;const l=n.getBoundingClientRect(),o=$(e.clientY,l);if(0===o)return;const u=Math.max(0,n.scrollHeight-n.clientHeight),c=Math.max(0,Math.min(u,n.scrollTop+o));c!==n.scrollTop&&(n.scrollTop=c,ve.current());const s=bn(e.clientX,e.clientY);En(s),Pe.current=pn(Tn)},Rn=(e,t)=>{Le.current={clientX:e,clientY:t},Pe.current??=pn(Tn)},kn=e=>{if(null!=Ze)return"Escape"===e.key?(sn(),e.preventDefault(),void e.stopPropagation()):void(z.has(e.key)&&(e.preventDefault(),e.stopPropagation()));if(At.isActive()){if(e.isComposing||229===e.keyCode)return;if("Escape"===e.key)At.cancel();else{if("Enter"!==e.key)return;At.commit()}return We("focus"),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation()}if(S&&"F2"===e.key)return hn(Ot??void 0),e.preventDefault(),void e.stopPropagation();if(It){if("Escape"===e.key)ke.current=!1,Me.current=null,t.closeSearch();else if("Enter"===e.key){const e=t.getFocusedPath();null!=e&&t.selectOnlyPath(e)}else if("ArrowDown"===e.key)t.focusNextSearchMatch();else{if("ArrowUp"!==e.key)return;t.focusPreviousSearchMatch()}return We("focus"),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation()}if(I&&U(e))return t.openSearch(e.key),Ne(e=>e+1),e.preventDefault(),void e.stopPropagation();const n=xt&&Y(e),l=G(e,xt),o=l&&null!=fe.current?(0,x.getActiveTreeElement)(fe.current):null,u=l?new Set(Z(fe.current)):new Set,c=o?.dataset.fileTreeStickyPath??null,s="true"===o?.dataset.fileTreeStickyRow&&null!=c;if(s&&c!==Ot&&u.has(c)){const e=he.current;st(c,e?.scrollTop??null),t.focusPath(c)}const f=t.getFocusedPath(),h=t.getFocusedIndex(),p=t.getFocusedItem();if(null==p)return;const v=K(p)?p:null,y=null!=f&&(tn.has(f)||s&&c===f&&u.has(f)),w="ArrowDown"===e.key||"ArrowUp"===e.key||"ArrowRight"===e.key&&null!=v&&v.isExpanded(),b="ArrowLeft"===e.key&&y&&null!=v&&v.isExpanded(),T=he.current;let R=!0;if(e.shiftKey&&"ArrowDown"===e.key)t.extendSelectionFromFocused(1);else if(e.shiftKey&&"ArrowUp"===e.key)t.extendSelectionFromFocused(-1);else if(n&&null!=f&&h>=0){const e=t.getVisibleRows(h,h)[0]??null,n=Q(f,me.current,pe.current);null==e||null==n?R=!1:fn(e,f)}else if((e.ctrlKey||e.metaKey)&&X(e))t.toggleFocusedSelection();else if((e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase())t.selectAllVisiblePaths();else switch(e.key){case"ArrowDown":t.focusNextItem();break;case"ArrowUp":t.focusPreviousItem();break;case"ArrowRight":null==v||v.isExpanded()?t.focusNextItem():v.expand();break;case"ArrowLeft":null!=v&&v.isExpanded()?v.collapse():t.focusParentItem();break;case"Home":t.focusFirstItem();break;case"End":t.focusLastItem();break;default:R=!1}if(!R)return;We("focus");const k=t.getFocusedPath(),M=null!=k&&(tn.has(k)||u.has(k)),P=n&&s&&c===f&&k===f;if((y||P)&&null!=k&&(w&&k!==f&&M||P))st(k,T?.scrollTop??null),Ee.current=!0,Xe(e=>e===k?e:k);else{const t="ArrowUp"===e.key&&y&&k!==f;null!=k&&(t||b&&k===f)?(D=k,L=te(fe.current,T,o,f,E,en,qt),ot.current=null,ut.current={path:D,viewportOffset:L},it.current=null,Ee.current=!0,Xe(e=>e===k?e:k)):(ot.current=null,ut.current=null,it.current=null)}var D,L;Ne(e=>e+1),e.preventDefault(),e.stopPropagation()};(0,M.useLayoutEffect)(()=>{I&&It&&(dt.current?dt.current=!1:(0,x.focusElement)(ge.current))},[It,I]),(0,M.useLayoutEffect)(()=>{const e=de.current;switch((0,b.classifyFileTreeRenameHandoff)({hasRenderedInput:null!=e,previousRenamingPath:Re.current,renamingPath:Ct})){case"reset":return void(Re.current=null);case"reveal-canonical":return void(null!=Ct&&gn(Ct,{restoreTreeFocus:!1,targetOffset:"live-overlay"}));case"ignore":return;case"focus-input":return void(null!=e&&(lt.current=null,Re.current=Ct,(0,x.focusElement)(e),e.select()))}},[Wt.end,Wt.start,Ct,gn,tn]),(0,M.useLayoutEffect)(()=>{const e=fe.current;if(null==e)return;let t=null;const n=()=>{null!=t&&(clearTimeout(t),t=null)},l=()=>{const t=(0,x.getActiveTreeElement)(e)?.dataset.itemPath??null;Xe(e=>e===t?e:t)},o=()=>{n(),Ee.current=!0,l()},u=o=>{const u=o.relatedTarget;if(null==u)return n(),void(t=setTimeout(()=>{t=null,null==(0,x.getActiveTreeElement)(e)?(Ee.current=!1,Xe(null)):l()},0));if(!(u instanceof Node&&e.contains(u)))return n(),Ee.current=!1,void Xe(null);const c=u instanceof HTMLElement?u.dataset.itemPath??null:null;Xe(e=>e===c?e:c)};return e.addEventListener("focusin",o),e.addEventListener("focusout",u),()=>{n(),e.removeEventListener("focusin",o),e.removeEventListener("focusout",u)}},[]),(0,M.useLayoutEffect)(()=>{const e=fe.current;null!=e&&(Gt.physical.scrollTop<=0?e.dataset.scrollAtTop="true":delete e.dataset.scrollAtTop)},[Gt.physical.scrollTop]),(0,M.useLayoutEffect)(()=>{let e=null;const n=he.current,l=ae.current,o=fe.current;if(null==n)return;ye.current=(0,x.readMeasuredViewportHeight)(n,B);const u=()=>{const e=t.getVisibleCount(),l=(0,x.getCachedViewportHeight)(ye.current,B),o=Math.max(0,e*E-l);n.scrollTop>o&&(n.scrollTop=o),vt(C({controller:t,itemHeight:E,overscan:k,scrollTop:Math.min(n.scrollTop,o),stickyFolders:N,viewportHeight:l}))};if(!xe.current){xe.current=!0;const e=t.getFocusedIndex();if(e>=0){const l=(0,x.getCachedViewportHeight)(ye.current,B),o=t.getVisibleRows(e,e)[0]??null,u=N&&null!=o?Math.max(0,Math.min(o.ancestorPaths.length*E,Math.max(0,l-E))):0;(0,x.scrollFocusedRowIntoView)(n,e,E,l,u)}}ve.current=u;const c=t.subscribe(()=>{(0,w.shouldBumpControllerRevision)(Be)&&Ne(e=>e+1),u()}),s=()=>{!0!==ct.current&&(null!=l&&(l.dataset.isScrolling??=""),null!=o&&(o.dataset.isScrolling??=""),ue.current=!0,null!=e&&clearTimeout(e),e=setTimeout(()=>{null!=l&&delete l.dataset.isScrolling,null!=o&&delete o.dataset.isScrolling,ue.current=!1,Qe(e=>e+1),e=null},50))};let f=null;const h=()=>{null!=o&&delete o.dataset.overlayReveal,null!=f&&(clearTimeout(f),f=null)},p=()=>{u(),n.scrollTop>0&&h(),null!=tt.current&&ue.current&&cn.current(),!0!==ct.current?(Ye(e=>null==e?e:null),s()):ue.current=!1},v=()=>{s(),null!=o&&!0!==ct.current&&(n.scrollTop>0||(o.dataset.overlayReveal="true",null!=f&&clearTimeout(f),f=setTimeout(()=>{h()},200)))},y=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),b=e=>{y.has(e.key)&&v()};n.addEventListener("scroll",p,{passive:!0}),n.addEventListener("wheel",v,{passive:!0}),n.addEventListener("touchmove",v,{passive:!0}),n.addEventListener("keydown",b);const T="undefined"!=typeof ResizeObserver?new ResizeObserver(e=>{const t=null==e[0]?null:(0,x.getResizeObserverViewportHeight)(e[0]);ye.current=t??(0,x.readMeasuredViewportHeight)(n,B),u()}):null;return T?.observe(n),()=>{ve.current=()=>{},c(),n.removeEventListener("scroll",p),n.removeEventListener("wheel",v),n.removeEventListener("touchmove",v),n.removeEventListener("keydown",b),null!=e&&clearTimeout(e),null!=f&&clearTimeout(f),null!=l&&delete l.dataset.isScrolling,null!=o&&(delete o.dataset.isScrolling,delete o.dataset.overlayReveal),ue.current=!1,ye.current=null,T?.disconnect()}},[t,B,E,k,N]),(0,M.useLayoutEffect)(()=>{xt||null==Ze||sn(!1)},[sn,xt,Ze]);const Mn=(0,M.useMemo)(()=>null==Ze?null:`${Ze.path}::${Ze.source}`,[Ze]);(0,M.useLayoutEffect)(()=>{if(null==Mn)return void H?.clearSlotContent(o.CONTEXT_MENU_SLOT_NAME);const t=tt.current;if(null==t)return;const n=oe.current??ee.current;if(null==n)return;const l={anchorElement:n,anchorRect:t.anchorRect??(u=n.getBoundingClientRect(),{bottom:u.bottom,height:u.height,left:u.left,right:u.right,top:u.top,width:u.width,x:u.x,y:u.y}),close:e=>{cn.current(e?.restoreFocus??!0,t.token)},restoreFocus:()=>{an.current&&un.current(tt.current?.path??null)}};var u;const c=e?.contextMenu?.render?.(t.item,l)??null;return H?.setSlotContent(o.CONTEXT_MENU_SLOT_NAME,c),e?.contextMenu?.onOpen?.(t.item,l),ie(c),queueMicrotask(()=>{null!=c&&c.isConnected&&document.activeElement===c&&ie(c)}),()=>{H?.clearSlotContent(o.CONTEXT_MENU_SLOT_NAME)}},[Mn,e?.contextMenu,H]),(0,M.useLayoutEffect)(()=>{null!=Ze&&null==t.getItem(Ze.path)&&sn()},[sn,Ze,t]),(0,M.useLayoutEffect)(()=>{if(null==Ze)return;const e=fe.current?.getRootNode(),t=e instanceof ShadowRoot?e.host:fe.current,n=e=>{const n=e.target;n instanceof Node&&(q(e)||!0!==ee.current?.contains(n)&&!0!==t?.contains(n)&&sn())},l=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),sn())};return document.addEventListener("mousedown",n,!0),document.addEventListener("keydown",l,!0),()=>{document.removeEventListener("mousedown",n,!0),document.removeEventListener("keydown",l,!0)}},[sn,Ze]),(0,M.useLayoutEffect)(()=>{const e=he.current,n=fe.current;if(null==e||null==n)return void(Te.current=Ot);const l=null==Ot?null:pe.current.get(Ot)??null,o=(0,x.getActiveTreeElement)(n),u=o?.dataset.itemPath??null,c=Ft&&de.current===o,s=I&&ge.current===o,f=ke.current&&!It,h=Me.current??0,p=lt.current,v=ot.current,y=ut.current,w=it.current,b=null!=o,T=Ee.current||b,R=Te.current!==Ot,k=null!=v&&v===Ot&&null!=Ot;let M=!1,P=!1;if(null!=_t&&_t.id!==we.current){we.current=_t.id;const n=_t.visibleIndex,l=t.getVisibleRows(n,n)[0]??null;if(null!=l){const t=N?Math.max(0,Math.min(l.ancestorPaths.length*E,Math.max(0,qt-E))):en;M=!0,P=(0,x.scrollFocusedRowToOffset)(e,n,E,qt,Zt,_t.offset,t)}t.clearScrollRequest(_t.id)}const S=!M&&f&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,h),D=!M&&null!=p&&p===Ot&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,en),L=!M&&null!=y&&y.path===Ot&&(0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,y.viewportOffset),A=!M&&null!=w&&w.path===Ot&&e.scrollTop!==w.scrollTop;if(A&&(e.scrollTop=w.scrollTop),(A||P||D||L||S||T&&R&&p!==Ot&&!k&&(0,x.scrollFocusedRowIntoView)(e,Ht,E,qt,en))&&ve.current(),M)Te.current=Ot;else if(T)if(c)Te.current=Ot;else if(!s||f){if(null==l)return f&&Ht>=0&&((0,x.scrollFocusedRowToViewportOffset)(e,Ht,E,qt,Zt,h),ve.current()),void(Te.current=Ot);(R||f||p===Ot||v===Ot||y?.path===Ot||w?.path===Ot||null==u||u!==Ot)&&((0,x.focusElement)(l),p===Ot&&(lt.current=null),v===Ot&&(ot.current=null),y?.path===Ot&&(ut.current=null),w?.path===Ot&&(it.current=null),ke.current=!1,Me.current=null),Te.current=Ot}else Te.current=Ot;else Te.current=Ot},[t,Ht,Ot,nn,E,Ft,It,Wt,qt,I,_t,N,en,Zt,zt]);const Pn=Ht>=0&&Ht>=Gt.visible.startIndex&&Ht<=Gt.visible.endIndex,Sn=null!=Ot&&Jt.some(e=>D(e.row)===Ot),Dn=Pn||Sn,Ln=Et&&!0===Ee.current&&Dn?Ot:null,An="pointer"===qe?Ue:null,Cn=Ze?.path??at.current??An??Ln??Ue,Fn="right-click"===Ze?.source;(0,M.useLayoutEffect)(()=>{ue.current&&null==Ze||dn(St(Cn))},[Ze,St,Wt,qt,Je,Jt,Cn,dn,zt]);const In=(0,M.useCallback)(e=>{if(ue.current)return;if(q(e))return;const t=e.target;if(!(t instanceof HTMLElement))return;if(null!=t.closest?.("[data-type=\"context-menu-trigger\"]"))return;const n=t.closest?.("[data-file-tree-sticky-row=\"true\"]"),l=t.closest?.("[data-type=\"item\"]"),o=n instanceof HTMLElement?n.dataset.fileTreeStickyPath??null:l instanceof HTMLElement?l.dataset.itemPath??null:null;null!=o&&We(e=>"pointer"===e?e:"pointer"),Ye(e=>e===o?e:o)},[]),jn=(0,M.useCallback)(()=>{Ye(null)},[]);(0,M.useLayoutEffect)(()=>{if(!Vt)return;const e=()=>{xn(),t.cancelDrag()};return window.addEventListener("dragend",e),()=>{window.removeEventListener("dragend",e),xn(),t.cancelDrag()}},[t,Vt]);const On=Gt.window.height,Hn=Gt.window.offsetTop,_n=Math.min(0,qt-On),Vn=Math.min(0,qt-On-en),$n=Ke===Ot||ke.current,Nn=null!=Ot&&$n&&!nn&&Ht>=0?zt[Ht]??t.getVisibleRows(Ht,Ht)[0]??null:null,Bn=null==Nn?null:(0,x.getParkedFocusedRowOffset)(Ht,E,Wt,On),Kn=Ce.current,Xn=null!=Kt&&null!=Kn&&Kn.path===Kt&&Kn.index>=Wt.start&&Kn.index<=Wt.end,Un=null==Kt||null==Kn||Kn.path!==Kt||Xn||Kn.path===Nn?.path?null:Kn,Yn=null==Un?null:(0,x.getParkedFocusedRowOffset)(Un.index,E,Wt,On),Gn=null==(zn=(Ht>=0?zt[Ht]??t.getVisibleRows(Ht,Ht)[0]??null:null)?.ancestorPaths.at(-1)??null)?"":`[data-item-section="spacing-item"][data-ancestor-path="${zn.replaceAll("\\","\\\\").replaceAll("\"","\\\"")}"] { opacity: 1; }`;var zn;const qn=It&&null!=Ot?le(y,Ot,!nn):void 0,Wn=Ze?.path??(It?Ot:Ke),Jn=Ze?.path??Ue,Qn=St(Cn),Zn=xt&&Et&&!Fn&&!Ft&&null!=Qn&&null!=Ge&&null!=Cn,er=xt&&(Zn||null!=Ze),tr=Ze?.anchorRect,nr=null!=tr||null==Qn||null==Ge||null==Ze&&!Zn?null:Ge,rr=null!=tr?{left:`${tr.left}px`,position:"fixed",right:"auto",top:`${tr.top}px`}:null!=nr?{top:`${nr}px`}:void 0,lr=Fn?{opacity:"0"}:void 0,or=(0,M.useCallback)((e,n,l,o)=>{const u=(0,R.computeFileTreeRowClickPlan)({event:{ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey},isDirectory:"directory"===n.kind,isSearchOpen:It,mode:o}),c=u.toggleDirectory&&"directory"===n.kind,s=c?t.resolveMountedDirectoryPathFromInput(l):null;if(c&&null==s)return;const f=s??l;switch(u.selection.kind){case"range":t.selectPathRange(f,u.selection.additive);break;case"toggle":t.togglePathSelectionFromInput(f);break;case"single":t.selectOnlyMountedPathFromInput(f)}const h=e.currentTarget instanceof HTMLElement?e.currentTarget:null,p=n.index>=Gt.visible.startIndex&&n.index<=Gt.visible.endIndex,v="flow"===o&&p&&null!=h&&"true"!==h.dataset.itemParked;t.focusMountedPathFromInput(f),v&&(Ee.current=!0,Xe(e=>e===f?e:f),We("focus")),c&&t.toggleMountedDirectoryFromInput(f),u.closeSearch&&t.closeSearch(),u.revealCanonical&&gn(f,{targetOffset:"sticky-parents"})},[t,It,Gt.visible.endIndex,Gt.visible.startIndex,gn]),ur=()=>{if(ue.current)return;if(!Et)return;if(null==Cn||null==Qn)return;const e=t.getItem(Cn);if(null==e)return;dn(Qn),an.current=!0;const n=e.getPath();et({anchorRect:null,item:{kind:e.isDirectory()?"directory":"file",name:Qn.getAttribute("aria-label")??Cn,path:n},path:n,source:"button",token:rt(n,"button")})},ir={contextHoverPath:Jn,contextMenuButtonTriggerEnabled:Et,contextMenuButtonVisibility:Tt,contextMenuEnabled:xt,contextMenuRightClickEnabled:Rt,contextMenuTriggerMode:bt,controller:t,directoriesWithGitChanges:p,dragAndDropEnabled:Vt,draggedPathSet:Nt,dragTarget:Bt,gitLaneActive:Dt,gitStatusByPath:n,handleRowDragEnd:()=>{vn(),mn(),yn(),Ce.current=null,t.cancelDrag()},handleRowDragStart:(e,n,l)=>{const o=e.currentTarget;if(null!=o)if(xn(),vn(),mn(),yn(),!1!==t.startDrag(l)){if(Ce.current=n,null!=e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.dropEffect="move",e.dataTransfer.setData("text/plain",l),"Apple Computer, Inc."!==navigator.vendor)){const t=V(o),n=o.getBoundingClientRect();Object.assign(t.style,{height:`${n.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${n.width}px`}),wn(t),Ae.current=t,e.dataTransfer.setDragImage(t,Math.max(0,e.clientX-n.left),Math.max(0,e.clientY-n.top))}}else e.preventDefault()},handleRowTouchStart:(e,n,l)=>{if(null!=Ve.current||Ie.current)return;const o=e.touches[0],u=e.currentTarget;if(null==o||null==u)return;He.current={clientX:o.clientX,clientY:o.clientY},Oe.current=u,u.setAttribute("draggable","false");const c=(e={})=>{const t=e.restoreNativeDraggable??!Ie.current;null!=Ve.current&&(clearTimeout(Ve.current),Ve.current=null),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",f),document.removeEventListener("touchcancel",f),Fe.current===c&&(Fe.current=null),t&&(u.setAttribute("draggable","true"),Oe.current===u&&(Oe.current=null),He.current=null)},s=e=>{const t=e.touches[0],n=He.current;if(null==t||null==n)return;const l=t.clientX-n.clientX,o=t.clientY-n.clientY;l*l+o*o<=100||c()},f=()=>{c()};document.addEventListener("touchmove",s,{passive:!0}),document.addEventListener("touchend",f),document.addEventListener("touchcancel",f),Fe.current=c,Ve.current=setTimeout(()=>{if(c({restoreNativeDraggable:!1}),!1===t.startDrag(l))return u.setAttribute("draggable","true"),Oe.current===u&&(Oe.current=null),void(He.current=null);Ie.current=!0,Oe.current=u,u.setAttribute("draggable","false"),u.style.setProperty("touch-action","none"),Ce.current=n;const e=u.getBoundingClientRect(),s=V(u);Object.assign(s.style,{height:`${e.height}px`,opacity:"0.85",transform:`translate3d(${e.left}px, ${e.top}px, 0)`,width:`${e.width}px`}),wn(s),Ae.current=s,je.current={x:o.clientX-e.left,y:o.clientY-e.top};const f=e=>{const t=e.touches[0];if(null==t)return;e.preventDefault();const n=je.current;null!=n&&null!=Ae.current&&(Ae.current.style.transform=`translate3d(${t.clientX-n.x}px, ${t.clientY-n.y}px, 0)`);const l=bn(t.clientX,t.clientY);En(l),Rn(t.clientX,t.clientY)},h=e=>{const n=e.changedTouches[0];null!=n&&bn(n.clientX,n.clientY),t.completeDrag(),xn()},p=()=>{t.cancelDrag(),xn()};Fe.current=()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",h),document.removeEventListener("touchcancel",p)},document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",h),document.addEventListener("touchcancel",p)},F)},ignoredGitDirectories:l,ignoredInheritanceCache:$e,instanceId:y,itemHeight:E,labels:T,onKeyDown:kn,onRowClick:or,openContextMenuForRow:fn,registerButton:kt,registerRenameInput:Pt,renameView:At,renderDecorationForRow:rn,resolveIcon:Lt,shouldSuppressContextMenu:()=>!0===ue.current||null!=Ve.current||!0===Ie.current,visualFocusPath:Wn},ar=Object.assign({},ir,{registerButton:Mt});return(0,P.jsxs)("div",{ref:fe,id:Xt,"data-file-tree-context-menu-button-visibility":xt&&Et?Tt:void 0,"data-file-tree-context-menu-trigger-mode":xt?bt:void 0,"data-file-tree-has-context-menu-action-lane":xt&&Et?"true":void 0,"data-file-tree-has-git-lane":Dt?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:Vt?e=>{if(!Vt||null==t.getDragSession()||Ie.current)return;const n=e.relatedTarget;n instanceof Node&&!0===fe.current?.contains(n)||(mn(),yn(),t.setDragTarget(null))}:void 0,onDragOver:Vt?e=>{if(!Vt||null==t.getDragSession()||Ie.current)return;const n=_(e.target instanceof HTMLElement?e.target:null);t.setDragTarget(n);const l=t.getDragSession()?.target??null;En(l),Rn(e.clientX,e.clientY),null!=e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}:void 0,onDrop:Vt?e=>{Vt&&null!=t.getDragSession()&&!Ie.current&&(e.preventDefault(),bn(e.clientX,e.clientY),t.completeDrag(),vn(),mn(),yn(),Ce.current=null)}:void 0,onKeyDown:kn,onPointerLeave:xt?jn:void 0,onPointerOver:xt?In:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[(0,P.jsx)("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Gn}}),(0,P.jsx)("slot",{name:o.HEADER_SLOT_NAME,"data-type":"header-slot"}),I?(0,P.jsx)("div",{"data-file-tree-search-container":!0,"data-open":It?"true":"false",children:(0,P.jsx)("input",{ref:ge,"aria-activedescendant":qn,"aria-controls":Xt,placeholder:T.searchPlaceholder,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":ft?"true":void 0,value:jt,onBlur:()=>{("retain"!==A||gt.current)&&t.closeSearch()},onFocus:pt,onPointerDown:pt,onInput:e=>{pt();const n=e.currentTarget;t.setSearch(n.value)}})}):null,(0,P.jsxs)("div",{ref:he,"data-file-tree-virtualized-scroll":"true",children:[N&&yt&&Jt.length>0?(0,P.jsx)("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:(0,P.jsx)("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${Ut}px`},children:Jt.map((e,t)=>ce(ar,e.row,`sticky:${D(e.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${e.top}px`,zIndex:""+(Jt.length-t)}}))})}):null,(0,P.jsxs)("div",{ref:ae,"data-file-tree-virtualized-list":"true",style:{height:`${Zt}px`},children:[(0,P.jsx)("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${Hn}px`}}),(0,P.jsxs)("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${On}px`,top:`${_n}px`,bottom:`${Vn}px`},children:[se(ir,Wt,tn),null!=Nn&&null!=Bn?ce(ir,Nn,`parked:${Nn.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Kt===Nn.path?"none":void 0,position:"absolute",right:"0",top:`${Bn}px`}}):null,null!=Un&&null!=Yn?ce(ir,Un,`parked-drag:${Un.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${Yn}px`}}):null]})]})]}),xt?(0,P.jsxs)("div",{ref:ee,"data-type":"context-menu-anchor","data-visible":er?"true":"false",style:rr,children:[(0,P.jsx)("button",{ref:oe,type:"button","data-type":o.CONTEXT_MENU_TRIGGER_TYPE,"aria-label":T.contextMenuTrigger,"aria-haspopup":"menu","aria-expanded":null!=Ze?"true":"false","data-visible":Zn?"true":"false",onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.preventDefault(),e.stopPropagation(),null==Ze?ur():sn()},tabIndex:-1,style:lr,children:(0,P.jsx)(h.Icon,Object.assign({},Lt("file-tree-icon-ellipsis")))}),null!=Ze?(0,P.jsx)("slot",{name:o.CONTEXT_MENU_SLOT_NAME}):null]}):null,null!=Ze?(0,P.jsx)("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:e=>{e.preventDefault(),sn()},onTouchStartCapture:e=>{e.preventDefault(),e.stopPropagation(),sn()},onTouchMoveCapture:e=>{e.preventDefault(),e.stopPropagation()},onWheelCapture:e=>{e.preventDefault(),e.stopPropagation()}}):null]})}},1277,[25,1236,1237,1240,1259,1265,1278,1281,1282,1283,1284,1285,1287,1288,1289,1290,1280,1291,1279]);
|
|
46
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Icon",{enumerable:!0,get:function(){return c}});var t=r(d[0]);const n=16,o=16,l={};function c({name:c,remappedFrom:h,token:s,width:u,height:p,viewBox:w,label:b,alignCapitals:f=!1}){const v=`#${c.replace(/^#/,"")}`,{width:j,height:x,viewBox:_}=l[c]??{width:n,height:o},B=u??j,O=p??x,$=w??_??`0 0 ${j} ${x}`;return(0,t.jsx)("svg",Object.assign({"data-icon-name":h??c,"data-icon-token":s,"data-align-capitals":f},null!=b?{"aria-label":b,role:"img"}:{"aria-hidden":!0},{viewBox:$,width:B,height:O,children:(0,t.jsx)("use",{href:v})}))}},1278,[1279]);
|
|
47
|
+
__d(function(g,_r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Fragment",{enumerable:!0,get:function(){return e.Fragment}}),Object.defineProperty(_e,"jsx",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"jsxAttr",{enumerable:!0,get:function(){return a}}),Object.defineProperty(_e,"jsxDEV",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"jsxEscape",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"jsxTemplate",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"jsxs",{enumerable:!0,get:function(){return u}});var e=_r(d[0]),t=/["&<]/;function r(e){if(0===e.length||!1===t.test(e))return e;for(var r=0,n=0,o="",u="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:u=""";break;case 38:u="&";break;case 60:u="<";break;default:continue}n!==r&&(o+=e.slice(r,n)),o+=u,r=n+1}return n!==r&&(o+=e.slice(r,n)),o}var n=0,o=Array.isArray;function u(t,r,o,u,f,i){r||(r={});var c,a,l=r;if("ref"in l&&"function"!=typeof t)for(a in l={},r)"ref"==a?c=r[a]:l[a]=r[a];var s={type:t,props:l,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--n,__i:-1,__u:0,__source:f,__self:i};return e.options.vnode&&e.options.vnode(s),s}function f(t){var r=u(e.Fragment,{tpl:t,exprs:[].slice.call(arguments,1)});return r.key=r.__v,r}var i={},c=/[A-Z]/g;function a(t,n){if(e.options.attr){var o=e.options.attr(t,n);if("string"==typeof o)return o}if(n=null!==(u=n)&&"object"==typeof u&&"function"==typeof u.valueOf?u.valueOf():u,"ref"===t||"key"===t)return"";var u;if("style"===t&&"object"==typeof n){var f="";for(var a in n){var l=n[a];null!=l&&""!==l&&(f=f+("-"==a[0]?a:i[a]||(i[a]=a.replace(c,"-$&").toLowerCase()))+":"+l+";")}return t+'="'+r(f)+'"'}return null==n||!1===n||"function"==typeof n||"object"==typeof n?"":!0===n?t:t+'="'+r(""+n)+'"'}function l(e){if(null==e||"boolean"==typeof e||"function"==typeof e)return null;if("object"==typeof e){if(void 0===e.constructor)return e;if(o(e)){for(var t=0;t<e.length;t++)e[t]=l(e[t]);return e}}return r(""+e)}},1279,[1280]);
|
|
48
|
+
__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Component",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"Fragment",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"cloneElement",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"createContext",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"createElement",{enumerable:!0,get:function(){return m}}),Object.defineProperty(_e,"createRef",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"h",{enumerable:!0,get:function(){return m}}),Object.defineProperty(_e,"hydrate",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"isValidElement",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"options",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"toChildArray",{enumerable:!0,get:function(){return T}});var e,n,t,_,l,r,o,u,i,c,f,s,p={},a=[],h=Array.isArray,d=a.slice,g=Object.assign;function y(e){e&&e.parentNode&&e.remove()}function m(e,n,t){var _,l,r,o={};for(r in n)"key"==r?_=n[r]:"ref"==r&&"function"!=typeof e?l=n[r]:o[r]=n[r];return arguments.length>2&&(o.children=arguments.length>3?d.call(arguments,2):t),v(e,o,_,l,null)}function v(t,_,l,r,o){var u={type:t,props:_,key:l,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++n:o,__i:-1,__u:0};return null==o&&null!=e.vnode&&e.vnode(u),u}function b(){return{current:null}}function k(e){return e.children}function w(e,n){this.props=e,this.context=n,this.__g=0}function C(e,n){if(null==n)return e.__?C(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?C(e):null}function P(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=t.__e;break}return P(e)}}function x(n){(8&n.__g||!(n.__g|=8)||!_.push(n)||r++)&&l==e.debounceRendering||((l=e.debounceRendering)||queueMicrotask)(S)}function S(){for(var n,t,l,u,i,c,f,s,p=1;_.length;)_.length>p&&_.sort(o),n=_.shift(),p=_.length,8&n.__g&&(l=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((l=g({},u)).__v=u.__v+1,e.vnode&&e.vnode(l),L(s,l,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?C(u):i,!!(32&u.__u),f,s.ownerDocument),l.__v=u.__v,l.__.__k[l.__i]=l,A(c,l,f),l.__e!=i&&P(l)));r=0}function U(e,n,t,_,l,r,o,u,i,c,f,s){var h,d,g,y,m,v,b,k=_&&_.__k||a,w=n.length;for(i=j(t,n,k,i,w),h=0;h<w;h++)null!=(g=t.__k[h])&&(d=-1==g.__i?p:k[g.__i]||p,g.__i=h,v=L(e,g,d,l,r,o,u,i,c,f,s),y=g.__e,g.ref&&d.ref!=g.ref&&(d.ref&&R(d.ref,null,g),f.push(g.ref,g.__c||y,g)),null==m&&null!=y&&(m=y),(b=!!(4&g.__u))||d.__k===g.__k?i=O(g,i,e,b):"function"==typeof g.type&&void 0!==v?i=v:y&&(i=y.nextSibling),g.__u&=-7);return t.__e=m,i}function j(e,n,t,_,l){var r,o,u,i,c,f=t.length,s=f,p=0;for(e.__k=new Array(l),r=0;r<l;r++)null!=(o=n[r])&&"boolean"!=typeof o&&"function"!=typeof o?(i=r+p,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?v(null,o,null,null,null):h(o)?v(k,{children:o},null,null,null):null==o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,u=null,-1!=(c=o.__i=D(o,t,i,s))&&(s--,(u=t[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof o.type&&(o.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,o.__u|=4))):e.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=t[r])&&!(2&u.__u)&&(u.__e==_&&(_=C(u)),H(u,u));return _}function O(e,n,t,_){var l,r;if("function"==typeof e.type){for(l=e.__k,r=0;l&&r<l.length;r++)l[r]&&(l[r].__=e,n=O(l[r],n,t,_));return n}e.__e!=n&&(_&&(n&&e.type&&!n.parentNode&&(n=C(e)),t.insertBefore(e.__e,n||null)),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function T(e,n){return n=n||[],null==e||"boolean"==typeof e||(h(e)?e.some(function(e){T(e,n)}):n.push(e)),n}function D(e,n,t,_){var l,r,o,u=e.key,i=e.type,c=n[t],f=null!=c&&!(2&c.__u);if(null===c&&null==e.key||f&&u==c.key&&i==c.type)return t;if(_>(f?1:0))for(l=t-1,r=t+1;l>=0||r<n.length;)if(null!=(c=n[o=l>=0?l--:r++])&&!(2&c.__u)&&u==c.key&&i==c.type)return o;return-1}function M(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":t}function E(e,n,t,_,l){var r;e:if("style"==n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||M(e.style,n,"");if(t)for(n in t)_&&t[n]==_[n]||M(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])r=n!=(n=n.replace(u,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),e.__l||(e.__l={}),e.__l[n+r]=t,t?_?t.l=_.l:(t.l=i,e.addEventListener(n,r?f:c,r)):e.removeEventListener(n,r?f:c,r);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!=n[4]?e.removeAttribute(n):e.setAttribute(n,"popover"==n&&1==t?"":t))}}function W(n){return function(t){if(this.__l){var _=this.__l[t.type+n];if(null==t.u)t.u=i++;else if(t.u<_.l)return;return _(e.event?e.event(t):t)}}}function L(n,t,_,l,r,o,u,i,c,f,s){var p,a,d,m,v,b,C,P,x,S,j,O,T,D,M,E,W,L,A,R,H,I=t.type;if(null!=t.constructor)return null;128&_.__u&&(c=!!(32&_.__u),_.__c.__z&&(i=t.__e=_.__e=(o=_.__c.__z)[0],_.__c.__z=null)),(p=e.__b)&&p(t);e:if("function"==typeof I)try{if(P=t.props,x="prototype"in I&&I.prototype.render,S=(p=I.contextType)&&l[p.__c],j=p?S?S.props.value:p.__:l,_.__c?2&(a=t.__c=_.__c).__g&&(a.__g|=1,C=!0):(x?t.__c=a=new I(P,j):(t.__c=a=new w(P,j),a.constructor=I,a.render=$),S&&S.sub(a),a.props=P,a.state||(a.state={}),a.context=j,a.__n=l,d=!0,a.__g|=8,a.__h=[],a._sb=[]),x&&null==a.__s&&(a.__s=a.state),x&&null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=g({},a.__s)),g(a.__s,I.getDerivedStateFromProps(P,a.__s))),m=a.props,v=a.state,a.__v=t,d)x&&null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),x&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(x&&null==I.getDerivedStateFromProps&&P!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(P,j),!(4&a.__g)&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(P,a.__s,j)||t.__v==_.__v){for(t.__v!=_.__v&&(a.props=P,a.state=a.__s,a.__g&=-9),t.__e=_.__e,t.__k=_.__k,t.__k.some(function(e){e&&(e.__=t)}),O=0;O<a._sb.length;O++)a.__h.push(a._sb[O]);a._sb=[],a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(P,a.__s,j),x&&null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(m,v,b)})}if(a.context=j,a.props=P,a.__P=n,a.__g&=-5,T=e.__r,D=0,x){for(a.state=a.__s,a.__g&=-9,T&&T(t),p=a.render(a.props,a.state,a.context),M=0;M<a._sb.length;M++)a.__h.push(a._sb[M]);a._sb=[]}else do{a.__g&=-9,T&&T(t),p=a.render(a.props,a.state,a.context),a.state=a.__s}while(8&a.__g&&++D<25);a.state=a.__s,null!=a.getChildContext&&(l=g({},l,a.getChildContext())),x&&!d&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,v)),E=p,null!=p&&p.type===k&&null==p.key&&(E=N(p.props.children)),i=U(n,h(E)?E:[E],t,_,l,r,o,u,i,c,f,s),t.__u&=-161,a.__h.length&&u.push(a),C&&(a.__g&=-4)}catch(n){if(t.__v=null,c||null!=o)if(n.then){for(W=0,L=!1,t.__u|=c?160:128,t.__c.__z=[],A=0;A<o.length;A++)null==(R=o[A])||L||(8==R.nodeType&&"$s"==R.data?(W>0&&t.__c.__z.push(R),W++,o[A]=null):8==R.nodeType&&"/$s"==R.data?(--W>0&&t.__c.__z.push(R),L=0===W,i=o[A],o[A]=null):W>0&&(t.__c.__z.push(R),o[A]=null));if(!L){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;o[o.indexOf(i)]=null,t.__c.__z=[i]}t.__e=i}else{for(H=o.length;H--;)y(o[H]);z(t)}else t.__e=_.__e,t.__k=_.__k,n.then||z(t);e.__e(n,t,_)}else i=t.__e=F(_.__e,t,_,l,r,o,u,c,f,s);return(p=e.diffed)&&p(t),128&t.__u?void 0:i}function z(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(z)}function A(n,t,_){for(var l=0;l<_.length;l++)R(_[l],_[++l],_[++l]);e.__c&&e.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(e){e.call(t)})}catch(n){e.__e(n,t.__v)}})}function N(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:h(e)?e.map(N):g({},e)}function F(n,t,_,l,r,o,u,i,c,f){var s,a,g,m,v,b,k,w,P=_.props,x=t.props,S=t.type;if("svg"==S?r="http://www.w3.org/2000/svg":"math"==S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(s=0;s<o.length;s++)if((v=o[s])&&"setAttribute"in v==!!S&&(S?v.localName==S:3==v.nodeType)){n=v,o[s]=null;break}if(null==n){if(null==S)return f.createTextNode(x);n=f.createElementNS(r,S,x.is&&x),i&&(e.__m&&e.__m(t,o),i=!1),o=null}if(null==S)P===x||i&&n.data==x||(n.data=x);else{if(o=o&&d.call(n.childNodes),P=_.props||p,!i&&null!=o)for(P={},s=0;s<n.attributes.length;s++)P[(v=n.attributes[s]).name]=v.value;for(s in P)if(v=P[s],"children"==s);else if("dangerouslySetInnerHTML"==s)g=v;else if(!(s in x)){if("value"==s&&"defaultValue"in x||"checked"==s&&"defaultChecked"in x)continue;E(n,s,null,v,r)}for(s in w=1&_.__u,x)v=x[s],"children"==s?m=v:"dangerouslySetInnerHTML"==s?a=v:"value"==s?b=v:"checked"==s?k=v:i&&"function"!=typeof v||P[s]===v&&!w||E(n,s,v,P[s],r);if(a)i||g&&(a.__html==g.__html||a.__html==n.innerHTML)||(n.innerHTML=a.__html),t.__k=[];else if(g&&(n.innerHTML=""),U("template"==S?n.content:n,h(m)?m:[m],t,_,l,"foreignObject"==S?"http://www.w3.org/1999/xhtml":r,o,u,o?o[0]:_.__k&&C(_,0),i,c,f),null!=o)for(s=o.length;s--;)y(o[s]);i||(s="value","progress"==S&&null==b?n.removeAttribute("value"):null==b||b===n[s]&&("progress"!==S||b)||E(n,s,b,P[s],r),s="checked",null!=k&&k!=n[s]&&E(n,s,k,P[s],r))}return n}function R(n,t,_){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==t||(n.__u=n(t))}else n.current=t}catch(n){e.__e(n,_)}}function H(n,t,_){var l,r;if(e.unmount&&e.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||R(l,null,t)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){e.__e(n,t)}l.__P=null}if(l=n.__k)for(r=0;r<l.length;r++)l[r]&&H(l[r],t,_||"function"!=typeof n.type);_||y(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function $(e,n,t){return this.constructor(e,t)}function I(n,t){var _,l,r,o;t==document&&(t=document.documentElement),e.__&&e.__(n,t),l=(_=!!(n&&32&n.__u))?null:t.__k,n=t.__k=m(k,null,[n]),r=[],o=[],L(t,n,l||p,p,t.namespaceURI,l?null:t.firstChild?d.call(t.childNodes):null,r,l?l.__e:t.firstChild,_,o,t.ownerDocument),A(r,n,o)}function B(e,n){e.__u|=32,I(e,n)}function V(e,n,t){var _,l,r,o=g({},e.props);for(r in n)"key"==r?_=n[r]:"ref"==r&&"function"!=typeof e.type?l=n[r]:o[r]=n[r];return arguments.length>2&&(o.children=arguments.length>3?d.call(arguments,2):t),v(e.type,o,_||e.key,l||e.ref,null)}function q(e){function n(e){var t,_;return this.getChildContext||(t=new Set,(_={})[n.__c]=this,this.getChildContext=function(){return _},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach(function(e){e.__g|=4,x(e)})},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return n.__c="__cC"+s++,n.__=e,n.Provider=n.__l=(n.Consumer=function(e,n){return e.children(n)}).contextType=n,n}e={__e:function(e,n,t,_){for(var l,o,u;n=n.__;)if((l=n.__c)&&!(1&l.__g)){l.__g|=4;try{if((o=l.constructor)&&null!=o.getDerivedStateFromError&&(l.setState(o.getDerivedStateFromError(e)),u=8&l.__g),null!=l.componentDidCatch&&(l.componentDidCatch(e,_||{}),u=8&l.__g),u)return void(l.__g|=2)}catch(n){e=n}}throw r=0,e}},n=0,t=function(e){return null!=e&&null==e.constructor},w.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},t),this.props)),e&&g(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),x(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),x(this))},w.prototype.render=k,_=[],r=0,o=function(e,n){return e.__v.__b-n.__v.__b},u=/(PointerCapture)$|Capture$/i,i=0,c=W(!1),f=W(!0),s=0},1280,[]);
|
|
49
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["children","mode","marker","variant"],t=["children"],n=["children"],l=["children","contents","priority","split","minimumLength","className","style"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Fruncate",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"MiddleTruncate",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"OverflowText",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"Truncate",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"splitByIndex",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"splitCenter",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"splitExtension",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"splitFirst",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"splitLast",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"splitLeafPath",{enumerable:!0,get:function(){return y}});var c,s=r(d[0]),u=(c=s)&&c.__esModule?c:{default:c},o=r(d[1]);const f=e=>void 0!==e&&/\s/.test(e),h=(e,t)=>{const n=t=>f(e[t-1])||f(e[t]);if(!n(t))return t;for(let l=1;l<e.length;l++){const c=t-l;if(c>0&&!n(c))return c;const s=t+l;if(s<e.length&&!n(s))return s}return t},j=e=>h(e,Math.ceil(e.length/2)),p=e=>{if(e.length<2)return[e,""];const t=j(e);return[e.slice(0,t),e.slice(t)]},b=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf(".")+1,n=e.length-t>10,l=t>=1&&!n?t:j(e);return[e.slice(0,l),e.slice(l)]},y=e=>{if(e.length<4)return[e,""];const t=e.lastIndexOf("/")+1,n=e.length-t>25,l=t>=1&&!n?t:Math.ceil(e.length/2);return[e.slice(0,l),e.slice(l)]},x=(e,{splitIndex:t}={})=>{if("number"!=typeof t){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}return[e.slice(0,t),e.slice(t)]},v=(e,{splitOffset:t}={})=>{if("number"!=typeof t||t<=0||t>=e.length){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}const n=e.length-t;return[e.slice(0,n),e.slice(n)]},O=(e,{splitOffset:t}={})=>{if("number"!=typeof t||t<=0||t>=e.length){const t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}const n=t;return[e.slice(0,n),e.slice(n)]};function P({children:e,marker:t,variant:n="default"}){return(0,o.jsx)("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:(0,o.jsx)("div",{"data-truncate-marker":!0,children:"function"==typeof t?t({children:e}):"fade"===n?(0,o.jsx)("span",{"data-truncate-fade":!0}):t})})}function M(e){const{mode:t,children:n}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{"data-truncate-content":"visible",children:"fruncate"===t?(0,o.jsx)("span",{children:n}):n}),(0,o.jsx)("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:"fruncate"===t?(0,o.jsx)("span",{children:n}):n})]})}function k(t){let{children:n,mode:l="truncate",marker:c="\u2026",variant:s="default"}=t,f=(0,u.default)(t,e);const h=(0,o.jsx)(M,{mode:l,children:n},"content"),j=(0,o.jsx)(P,{marker:c,mode:l,variant:s},"marker"),p=(0,o.jsx)("div",{"data-truncate-fill":!0},"fill");return(0,o.jsx)("div",Object.assign({"data-truncate-container":l,"data-truncate-variant":s},f,{children:(0,o.jsx)("div",{"data-truncate-grid":!0,children:"truncate"===l?[h,j]:[j,h,p]})}))}function N(e){let{children:n}=e,l=(0,u.default)(e,t);return(0,o.jsx)(k,Object.assign({mode:"truncate"},l,{children:n}))}function _(e){let{children:t}=e,l=(0,u.default)(e,n);return(0,o.jsx)(k,Object.assign({mode:"fruncate"},l,{children:t}))}function I(e){let{children:t,contents:n,priority:c="end",split:s="center",minimumLength:f=12,className:h,style:j}=e,P=(0,u.default)(e,l),M=null,k=null;if(Array.isArray(n)){if(2!==n.length)return console.error("MiddleTruncate: contents must be an array of two items"),null;M=(0,o.jsx)(N,Object.assign({},P,{children:n[0]})),k=(0,o.jsx)(_,Object.assign({},P,{children:n[1]}))}else{if("string"!=typeof t)return console.error("MiddleTruncate: children must be a string"),null;if(0===t.length)return(0,o.jsx)("div",{className:h,style:j});if(t.length<f)return"end"===c?(0,o.jsx)(_,Object.assign({},P,{className:h,style:j,children:t})):(0,o.jsx)(N,Object.assign({},P,{className:h,style:j,children:t}));let e=null,n=null,l=null;if("string"==typeof s)"center"===s?e=p:"extension"===s?e=b:"leaf-path"===s&&(e=y);else if("number"==typeof s)e=x,n=s;else if(Array.isArray(s)){const[t,n]=s;l=n,"last"===t?e=v:"first"===t&&(e=O)}else"function"==typeof s&&(e=s);e??=p;const[u,I]=e(t,{priority:c,variant:P.variant,splitIndex:"number"==typeof n?n:void 0,splitOffset:"number"==typeof l?l:void 0}),T=u.length>=I.length,q="equal"===c&&T,A={},L={};"equal"===c&&!T&&(A.marker=""),q&&(L.marker=""),M=(0,o.jsx)(N,Object.assign({},P,A,{children:u})),k=(0,o.jsx)(_,Object.assign({},P,L,{children:I}))}return(0,o.jsxs)("div",{"data-truncate-group-container":"middle",className:h,style:j,children:[(0,o.jsx)("div",{"data-truncate-segment-priority":"start"===c||"equal"===c?"1":"2",children:M}),(0,o.jsx)("div",{"data-truncate-segment-priority":"end"===c||"equal"===c?"1":"2",children:k})]})}},1281,[25,1279]);
|
|
50
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EMPTY_FILE_TREE_LAYOUT_RANGE",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"computeFileTreeLayout",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"computeStickyRows",{enumerable:!0,get:function(){return f}});const t={endIndex:-1,startIndex:-1};function n(n,o){return n<0||o<n?t:{endIndex:o,startIndex:n}}function o(t){return t.startIndex<0||t.endIndex<t.startIndex}function l(t,n){return o(t)?0:(t.endIndex-t.startIndex+1)*n}function c(t,n,o){if(n<=0)return-1;return t<=0?0:t>=n*o?n:Math.floor(t/o)}function h(t){const n=new Map;return t.forEach((t,o)=>{if("directory"!==t.kind||!t.isExpanded)return;const l=t.ancestorPaths.length,c=n.get(l);null!=c?c.push(o):n.set(l,[o])}),n}function s(t,n){let o=0,l=t.length-1,c=-1;for(;o<=l;){const h=Math.floor((o+l)/2),s=t[h];if(null==s)break;s<=n?(c=h,o=h+1):l=h-1}return c}function u(t){const n=new Map,o=[];for(let l=0;l<t.length;l+=1){const c=t[l];if(null==c)continue;const h="directory"===c.kind&&c.isExpanded?[...c.ancestorPaths,c.path]:c.ancestorPaths;let s=0;for(;s<o.length&&s<h.length&&o[s]===h[s];)s+=1;for(let t=o.length-1;t>=s;t-=1){const c=o[t];null!=c&&n.set(c,l-1)}o.length=s;for(let t=s;t<h.length;t+=1){const n=h[t];null!=n&&o.push(n)}}const l=t.length-1;for(const t of o)n.set(t,l);return n}function f(t,n,o){if(0===t.length||n<=0)return[];const l=u(t),c=h(t),f=[];for(let l=0;l<t.length;l+=1){const h=c.get(l);if(null==h||0===h.length)break;const u=n+l*o;let p=s(h,Math.min(t.length-1,Math.floor(u/o))),x=null;for(;p>=0;){const n=h[p],o=null==n?null:t[n]??null;if(null!=o&&(0===l||o.ancestorPaths[l-1]===f[l-1]?.path)){x=o;break}p-=1}if(null==x)break;f.push(x)}return f.map((c,h)=>{const s=h*o,u=(l.get(c.path)??t.length-1)+1;if(u>=t.length)return{row:c,top:s};const f=u*o-n;return{row:c,top:Math.min(s,f-o)}}).filter(t=>t.top+o>0)}function p(h,s){const u=s.totalRowCount??h.length,p=u*s.itemHeight,x=Math.max(0,s.viewportHeight),M=Math.max(0,Math.floor(s.overscan)),I=Math.max(0,p-x),H=(w=s.scrollTop,b=0,y=I,Math.min(Math.max(w,b),y));var w,b,y;const k=s.stickyRows??f(h,H,s.itemHeight),P=k.reduce((t,n)=>Math.max(t,n.top+s.itemHeight),0),T=Math.min(p,H+P),v=Math.max(0,x-P),E=Math.max(0,p-T),_=c(H,u,s.itemHeight),O=c(T,u,s.itemHeight),R=P<=0||_<0||_>=u?-1:_,j=-1===R?-1:Math.min(u-1,O-1),C=-1===R||j<R?0:j-R+1,L=v<=0||O>=u?t:n(O,(A=T+v,F=u,S=s.itemHeight,F<=0||A<=0?-1:A>=F*S?F-1:Math.ceil(A/S)-1));var A,F,S;const Y=j+1,G=o(L)?t:n(Math.max(Y,L.startIndex-M),Math.min(u-1,L.endIndex+M)),N=l(G,s.itemHeight);return{occlusion:{firstOccludedIndex:R,lastOccludedIndex:j,occludedCount:C},physical:{itemHeight:s.itemHeight,maxScrollTop:I,overscan:M,scrollTop:H,totalHeight:p,totalRowCount:u,viewportHeight:x},projected:{contentHeight:E,paneHeight:v,paneTop:T},sticky:{height:P,rows:k},visible:L,window:{endIndex:G.endIndex,height:N,offsetTop:o(G)?0:G.startIndex*s.itemHeight,startIndex:G.startIndex}}}},1282,[]);
|
|
51
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GIT_STATUS_LABEL",{enumerable:!0,get:function(){return n}});const n={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"}},1283,[]);
|
|
52
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return!!n.current||(n.current=!0,!1)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"shouldBumpControllerRevision",{enumerable:!0,get:function(){return n}})},1284,[]);
|
|
53
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"focusElement",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getActiveTreeElement",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"getCachedViewportHeight",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"getParkedFocusedRowOffset",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"getResizeObserverViewportHeight",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"readMeasuredViewportHeight",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"scrollFocusedRowIntoView",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"scrollFocusedRowToOffset",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"scrollFocusedRowToViewportOffset",{enumerable:!0,get:function(){return p}});var t=r(d[0]);function n(t){if(null==t||!t.isConnected)return!1;if(t===document.body||t===document.documentElement)return!1;t.focus({preventScroll:!0});const n=t.getRootNode();return n instanceof ShadowRoot?n.activeElement===t:document.activeElement===t}function o(t){const n=t.getRootNode();if(n instanceof ShadowRoot){const t=n.activeElement;return t instanceof HTMLElement?t:null}const o=document.activeElement;return o instanceof HTMLElement&&t.contains(o)?o:null}function c(t,n){if(null==t)return n;const o=t.getBoundingClientRect().height;return o>0?o:t.clientHeight>0?t.clientHeight:n}function u(t,n){return null!=t&&t>0?t:n}function l(t){const n=t.borderBoxSize,o=Array.isArray(n)?n[0]:n;return null!=o&&Number.isFinite(o.blockSize)&&o.blockSize>0?o.blockSize:t.contentRect.height>0?t.contentRect.height:null}function f(n,o,c,u,l=0){const f=(0,t.computeFocusedRowScrollIntoView)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,topInset:l,viewportHeight:u});return null!=f&&(n.scrollTop=f,!0)}function s(n,o,c,u,l,f,s=0){const p=(0,t.computeFocusedRowScrollTopForOffset)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,offset:f,topInset:s,totalHeight:l,viewportHeight:u});return null!=p&&(n.scrollTop=p,!0)}function p(n,o,c,u,l,f){const s=(0,t.computeViewportOffsetScrollTop)({currentScrollTop:n.scrollTop,focusedIndex:o,itemHeight:c,targetViewportOffset:f,totalHeight:l,viewportHeight:u});return null!=s&&(n.scrollTop=s,!0)}function b(t,n,o,c){return o.end<o.start?null:t<o.start?-n:t>o.end?c:null}},1285,[1286]);
|
|
54
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{currentScrollTop:n,focusedIndex:o,itemHeight:u,topInset:c=0,viewportHeight:l}=t;if(o<0)return null;const f=Math.max(0,c),s=o*u,h=s+u;if(s<n+f){const t=Math.max(0,s-f);return t===n?null:t}if(h>n+l){const t=h-l;return t===n?null:t}return null}function n(n){const{currentScrollTop:o,focusedIndex:u,itemHeight:c,offset:l,topInset:f=0,totalHeight:s,viewportHeight:h}=n;if("nearest"===l)return t({currentScrollTop:o,focusedIndex:u,itemHeight:c,topInset:f,viewportHeight:h});if(u<0)return null;const p=Math.max(0,f),x=u*c,M=Math.max(0,h-p),H="center"===l?p+Math.max(0,(M-c)/2):p,w=Math.max(0,s-h),I=Math.max(0,Math.min(x-H,w));return I===o?null:I}function o(t){const{currentScrollTop:n,focusedIndex:o,itemHeight:u,targetViewportOffset:c,totalHeight:l,viewportHeight:f}=t;if(o<0)return null;const s=Math.max(0,c),h=o*u;if(h>=n+s&&h+u<=n+f)return null;const p=Math.max(0,l-f),x=Math.max(0,Math.min(h-s,p));return x===n?null:x}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFocusedRowScrollIntoView",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"computeFocusedRowScrollTopForOffset",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"computeViewportOffsetScrollTop",{enumerable:!0,get:function(){return o}})},1286,[]);
|
|
55
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function n(n){const{renamingPath:t,previousRenamingPath:u,hasRenderedInput:o}=n;return null==t?"reset":o?u===t?"ignore":"focus-input":"reveal-canonical"}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"classifyFileTreeRenameHandoff",{enumerable:!0,get:function(){return n}})},1287,[]);
|
|
56
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RenameInput",{enumerable:!0,get:function(){return t}});var n=r(d[0]);function t({ariaLabel:t,isFlattened:o=!1,ref:u,value:p,onBlur:l,onInput:s}){return(0,n.jsx)("input",Object.assign({ref:u,"data-item-rename-input":!0},o?{"data-item-flattened-rename-input":!0}:{},{"aria-label":t,value:p,onBlur:l,onInput:s,onClick:n=>n.stopPropagation(),onMouseDown:n=>n.stopPropagation(),onPointerDown:n=>n.stopPropagation()}))}},1288,[1279]);
|
|
57
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{row:n,mode:o,targetPath:s,ariaLabel:c,domId:u,isParked:l,itemHeight:v,features:p,state:b,extraStyle:f}=t,h="sticky"===o,x=n.ancestorPaths.at(-1)??"",y={};return b.isFocusRinged&&(y["data-item-focused"]=!0),n.isSelected&&(y["data-item-selected"]=!0),b.isContextHovered&&(y["data-item-context-hover"]="true"),b.isDragTarget&&(y["data-item-drag-target"]=!0),b.isDragging&&(y["data-item-dragging"]=!0),null!=b.effectiveGitStatus&&(y["data-item-git-status"]=b.effectiveGitStatus),b.containsGitChange&&(y["data-item-contains-git-change"]="true"),Object.assign({"aria-expanded":h||"directory"!==n.kind?void 0:n.isExpanded,"aria-haspopup":p.contextMenuEnabled?"menu":void 0,"aria-label":c,"aria-level":h?void 0:n.level+1,"aria-posinset":h?void 0:n.posInSet+1,"aria-selected":h?void 0:n.isSelected?"true":"false","aria-setsize":h?void 0:n.setSize,"data-file-tree-sticky-path":h?s:void 0,"data-file-tree-sticky-row":h?"true":void 0,"data-item-context-menu-button-visibility":p.actionLaneEnabled?p.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":p.contextMenuEnabled?p.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":p.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":p.gitLaneActive?"true":void 0,"data-item-parent-path":x.length>0?x:void 0,"data-item-parked":l?"true":void 0,"data-item-path":s,"data-item-type":"directory"===n.kind?"folder":"file","data-type":"item",id:h?void 0:u,role:h?void 0:"treeitem",style:Object.assign({minHeight:`${v}px`},f),tabIndex:!h&&n.isFocused?0:-1},y)}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFileTreeRowElementAttributes",{enumerable:!0,get:function(){return t}})},1289,[]);
|
|
58
|
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{event:n,mode:c,isDirectory:o}=t,l=n.ctrlKey||n.metaKey,s=n.shiftKey||l;return{closeSearch:!1,revealCanonical:"sticky"===c,selection:n.shiftKey?{additive:l,kind:"range"}:l?{kind:"toggle"}:{kind:"single"},toggleDirectory:!s&&o}}Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"computeFileTreeRowClickPlan",{enumerable:!0,get:function(){return t}})},1290,[]);
|
|
59
|
+
__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useCallback",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"useContext",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"useDebugValue",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"useEffect",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"useErrorBoundary",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"useId",{enumerable:!0,get:function(){return C}}),Object.defineProperty(_e,"useImperativeHandle",{enumerable:!0,get:function(){return g}}),Object.defineProperty(_e,"useLayoutEffect",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"useMemo",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"useReducer",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"useRef",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"useState",{enumerable:!0,get:function(){return d}});var _,n,e,t,r=_r(_d[0]),u=Object.is,o=0,c=[],i=r.options,f=i.__b,a=i.__r,l=i.diffed,h=i.__c,s=i.unmount,m=i.__;function v(_,e){i.__h&&i.__h(n,_,o||e),o=0;var t=n.__H||(n.__H={__:[],__h:[]});return _>=t.__.length&&t.__.push({}),t.__[_]}function d(_){return o=1,p(T,_)}function p(e,t,r){var o=v(_++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):T(void 0,t),function(_){var n=o.__N?o.__N[0]:o.__[0],e=o.t(n,_);u(n,e)||(o.__N=[e,o.__[1]],o.__c.setState({}))}],o.__c=n,!n.__f)){var c=function(_,n,e){if(!o.__c.__H)return!0;var t=o.__c.__H.__.filter(function(_){return!!_.__c});if(t.every(function(_){return!_.__N}))return!i||i.call(this,_,n,e);var r=o.__c.props!==_;return t.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,u(n,_.__[0])||(r=!0)}}),i&&i.call(this,_,n,e)||r};n.__f=!0;var i=n.shouldComponentUpdate,f=n.componentWillUpdate;n.componentWillUpdate=function(_,n,e){if(4&this.__g){var t=i;i=void 0,c(_,n,e),i=t}f&&f.call(this,_,n,e)},n.shouldComponentUpdate=c}return o.__N||o.__}function b(e,t){var r=v(_++,3);!i.__s&&U(r.__H,t)&&(r.__=e,r.u=t,n.__H.__h.push(r))}function y(e,t){var r=v(_++,4);!i.__s&&U(r.__H,t)&&(r.__=e,r.u=t,n.__h.push(r))}function H(_){return o=5,P(function(){return{current:_}},[])}function g(_,n,e){o=6,y(function(){if("function"==typeof _){var e=_(n());return function(){_(null),e&&"function"==typeof e&&e()}}if(_)return _.current=n(),function(){return _.current=null}},null==e?e:e.concat(_))}function P(n,e){var t=v(_++,7);return U(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function j(_,n){return o=8,P(function(){return _},n)}function O(e){var t=n.context[e.__c],r=v(_++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(n)),t.props.value):e.__}function E(_,n){i.useDebugValue&&i.useDebugValue(n?n(_):_)}function N(e){var t=v(_++,10),r=d();return t.__=e,n.componentDidCatch||(n.componentDidCatch=function(_,n){t.__&&t.__(_,n),r[1](_)}),[r[0],function(){r[1](void 0)}]}function C(){var e=v(_++,11);if(!e.__){for(var t=n.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function A(){for(var _;_=c.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(k),_.__H.__h.forEach(q),_.__H.__h=[]}catch(n){_.__H.__h=[],i.__e(n,_.__v)}}i.__b=function(_){n=null,f&&f(_)},i.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),m&&m(_,n)},i.__r=function(t){a&&a(t),_=0;var r=(n=t.__c).__H;r&&(e===n?(r.__h=[],n.__h=[],r.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(r.__h.forEach(k),r.__h.forEach(q),r.__h=[],_=0)),e=n},i.diffed=function(_){l&&l(_);var r=_.__c;r&&r.__H&&(r.__H.__h.length&&(1!==c.push(r)&&t===i.requestAnimationFrame||((t=i.requestAnimationFrame)||F)(A)),r.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),e=n=null},i.__c=function(_,n){n.some(function(_){try{_.__h.forEach(k),_.__h=_.__h.filter(function(_){return!_.__||q(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],i.__e(e,_.__v)}}),h&&h(_,n)},i.unmount=function(_){s&&s(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{k(_)}catch(_){n=_}}),e.__H=void 0,n&&i.__e(n,e.__v))};var D="function"==typeof requestAnimationFrame;function F(_){var n,e=function(){clearTimeout(t),D&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);D&&(n=requestAnimationFrame(e))}function k(_){var e=n,t=_.__c;"function"==typeof t&&(_.__c=void 0,t()),n=e}function q(_){var e=n;_.__c=_.__(),n=e}function U(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!u(n,_[e])})}function T(_,n){return"function"==typeof n?n(_):n}},1291,[1280]);
|
|
60
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"fileTreeRenderer",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"hydrateFileTreeRoot",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"renderFileTreeRoot",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"unmountFileTreeRoot",{enumerable:!0,get:function(){return f}});var t=r(d[0]),n=r(d[1]);const o={hydrateRoot:(o,u)=>{(0,n.hydrate)((0,n.h)(t.FileTreeView,u),o)},renderRoot:(o,u)=>{(0,n.render)((0,n.h)(t.FileTreeView,u),o)},unmountRoot:t=>{(0,n.render)(null,t)}};function u(t,n){o.renderRoot(t,n)}function c(t,n){o.hydrateRoot(t,n)}function f(t){o.unmountRoot(t)}},1292,[1277,1280]);
|
|
61
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";var t,e,l,n,u;function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTreeManagedSlotHost",{enumerable:!0,get:function(){return c}});var s=o(r(d[0])),f=o(r(d[1])),c=(t=(0,f.default)("contentBySlot"),e=(0,f.default)("host"),l=(0,f.default)("getCurrentContent"),n=(0,f.default)("attachContent"),u=(0,f.default)("adoptExistingManagedContent"),class{constructor(){Object.defineProperty(this,u,{value:p}),Object.defineProperty(this,n,{value:v}),Object.defineProperty(this,l,{value:h}),Object.defineProperty(this,t,{writable:!0,value:new Map}),Object.defineProperty(this,e,{writable:!0,value:null})}clearAll(){for(const e of(0,s.default)(this,t)[t].values())e.remove();(0,s.default)(this,t)[t].clear()}clearSlotContent(e){const n=(0,s.default)(this,l)[l](e);null!=n&&(n.remove(),(0,s.default)(this,t)[t].delete(e))}setHost(l){if((0,s.default)(this,e)[e]=l,null!=l){(0,s.default)(this,u)[u](l);for(const[e,l]of(0,s.default)(this,t)[t])(0,s.default)(this,n)[n](e,l)}}setSlotContent(e,u){const o=(0,s.default)(this,l)[l](e);o!==u?(o?.remove(),null!=u?((0,s.default)(this,t)[t].set(e,u),(0,s.default)(this,n)[n](e,u)):(0,s.default)(this,t)[t].delete(e)):null!=u&&((0,s.default)(this,t)[t].set(e,u),(0,s.default)(this,n)[n](e,u))}setSlotHtml(e,u){const o=u?.trim()??"";if(0===o.length)return void this.setSlotContent(e,null);const f=(0,s.default)(this,l)[l](e);if(null!=f&&f.innerHTML===o)return(0,s.default)(this,t)[t].set(e,f),void(0,s.default)(this,n)[n](e,f);const c=document.createElement("div");c.innerHTML=o,this.setSlotContent(e,c)}});function h(l){const n=(0,s.default)(this,t)[t].get(l)??null;if(null!=n)return n;const u=(0,s.default)(this,e)[e];if(null==u)return null;for(const t of Array.from(u.children))if(t instanceof HTMLElement&&t.dataset.fileTreeManagedSlot===l)return t;return null}function v(t,l){l.slot=t,l.dataset.fileTreeManagedSlot=t,null!=(0,s.default)(this,e)[e]&&l.parentNode!==(0,s.default)(this,e)[e]&&(0,s.default)(this,e)[e].appendChild(l)}function p(e){for(const l of Array.from(e.children)){if(!(l instanceof HTMLElement))continue;const e=l.dataset.fileTreeManagedSlot;null==e||(0,s.default)(this,t)[t].has(e)||(0,s.default)(this,t)[t].set(e,l)}}},1293,[30,31]);
|
|
62
|
+
__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 H}}),Object.defineProperty(_e,"render",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"renderToStaticMarkup",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"renderToString",{enumerable:!0,get:function(){return H}}),Object.defineProperty(_e,"renderToStringAsync",{enumerable:!0,get:function(){return O}});var e=_r(_d[0]),t="diffed",n="__c",r="__s",o="__c",i="__k",a="__d",s="__s",c=/[\s\n\\/='"\0<>]/,u=/^(xlink|xmlns|xml)([A-Z])/,l=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,f=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,p=new Set(["draggable","spellcheck"]);function h(e){void 0!==e.__g?e.__g|=8:e[a]=!0}function d(e){void 0!==e.__g?e.__g&=-9:e[a]=!1}function v(e){return void 0!==e.__g?!!(8&e.__g):!0===e[a]}var g=/["&<]/;function m(e){if(0===e.length||!1===g.test(e))return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var y={},_=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),b=/[A-Z]/g;function k(e){var t="";for(var n in e){var r=e[n];if(null!=r&&""!==r){var o="-"==n[0]?n:y[n]||(y[n]=n.replace(b,"-$&").toLowerCase()),i=";";"number"!=typeof r||o.startsWith("--")||_.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function w(){this.__d=!0}function x(e,t){return{__v:e,context:t,props:e.props,setState:w,forceUpdate:w,__d:!0,__h:new Array(0)}}function C(e,t,n){if(!e.s){if(n instanceof S){if(!n.s)return void(n.o=C.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(C.bind(null,e,t),C.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}var S=(function(){function e(){}return e.prototype.then=function(t,n){var r=new e,o=this.s;if(o){var i=1&o?t:n;if(i){try{C(r,1,i(this.v))}catch(e){C(r,2,e)}return r}return this}return this.o=function(e){try{var o=e.v;1&e.s?C(r,1,t?t(o):o):n?C(r,1,n(o)):C(r,2,o)}catch(e){C(r,2,e)}},r},e})();function A(e){return e instanceof S&&1&e.s}function j(e,t,n){for(var r;;){var o=e();if(A(o)&&(o=o.v),!o)return i;if(o.then){r=0;break}var i=n();if(i&&i.then){if(!A(i)){r=1;break}i=i.s}if(t){var a=t();if(a&&a.then&&!A(a)){r=2;break}}}var s=new S,c=C.bind(null,s,2);return(0===r?o.then(l):1===r?i.then(u):a.then(f)).then(void 0,c),s;function u(r){i=r;do{if(t&&(a=t())&&a.then&&!A(a))return void a.then(f).then(void 0,c);if(!(o=e())||A(o)&&!o.v)return void C(s,1,i);if(o.then)return void o.then(l).then(void 0,c);A(i=n())&&(i=i.v)}while(!i||!i.then);i.then(u).then(void 0,c)}function l(e){e?(i=n())&&i.then?i.then(u).then(void 0,c):u(i):C(s,1,i)}function f(){(o=e())?o.then?o.then(l).then(void 0,c):l(o):C(s,1,i)}}function P(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,n)}var F,L,T,E,O=function(o,a){try{var s=e.options[r];e.options[r]=!0,F=e.options.__b,L=e.options[t],T=e.options.__r,E=e.options.unmount;var c=(0,e.h)(e.Fragment,null);return c[i]=[o],Promise.resolve(P(function(){return Promise.resolve(q(o,a||D,!1,void 0,c,!0,void 0)).then(function(e){var t,n=(function(){if($(e)){var n=function(){var e=o.join(Z);return t=1,e},r=0,o=e,i=j(function(){return!!o.some(function(e){return e&&"function"==typeof e.then})&&r++<25},void 0,function(){return Promise.resolve(Promise.all(o)).then(function(e){o=e.flat()})});return i&&i.then?i.then(n):n()}})();return n&&n.then?n.then(function(n){return t?n:e}):t?n:e})},function(t,i){if(e.options[n]&&e.options[n](o,M),e.options[r]=s,M.length=0,t)throw i;return i}))}catch(e){return Promise.reject(e)}},D={},M=[],$=Array.isArray,U=Object.assign,Z="",W="\x3c!--$s--\x3e",z="\x3c!--/$s--\x3e";function H(o,a,s){var c=e.options[r];e.options[r]=!0,F=e.options.__b,L=e.options[t],T=e.options.__r,E=e.options.unmount;var u=(0,e.h)(e.Fragment,null);u[i]=[o];try{var l=q(o,a||D,!1,void 0,u,!1,s);return $(l)?l.join(Z):l}catch(e){if(e.then)throw new Error('Use "renderToStringAsync" for suspenseful rendering.');throw e}finally{e.options[n]&&e.options[n](o,M),e.options[r]=c,M.length=0}}function N(e,t){var n,r=e.type,i=!0;return e[o]?(i=!1,(n=e[o]).state=n[s]):n=new r(e.props,t),e[o]=n,n.__v=e,n.props=e.props,n.context=t,h(n),null==n.state&&(n.state=D),null==n[s]&&(n[s]=n.state),r.getDerivedStateFromProps?n.state=U({},n.state,r.getDerivedStateFromProps(n.props,n.state)):i&&n.componentWillMount?(n.componentWillMount(),n.state=n[s]!==n.state?n[s]:n.state):!i&&n.componentWillUpdate&&n.componentWillUpdate(),T&&T(e),n.render(n.props,n.state,t)}function q(t,n,r,a,g,y,_){if(null==t||!0===t||!1===t||t===Z)return Z;var b=typeof t;if("object"!=b)return"function"==b?Z:"string"==b?m(t):t+Z;if($(t)){var w,C=Z;g[i]=t;for(var S=t.length,A=0;A<S;A++){var j=t[A];if(null!=j&&"boolean"!=typeof j){var P,O=q(j,n,r,a,g,y,_);"string"==typeof O?C+=O:(w||(w=new Array(S)),C&&w.push(C),C=Z,$(O)?(P=w).push.apply(P,O):w.push(O))}}return w?(C&&w.push(C),w):C}if(void 0!==t.constructor)return Z;t.__=g,F&&F(t);var M=t.type,H=t.props;if("function"==typeof M){var I,R,K,G=n;if(M===e.Fragment){if("tpl"in H){for(var J=Z,Q=0;Q<H.tpl.length;Q++)if(J+=H.tpl[Q],H.exprs&&Q<H.exprs.length){var X=H.exprs[Q];if(null==X)continue;"object"!=typeof X||void 0!==X.constructor&&!$(X)?J+=X:J+=q(X,n,r,a,t,y,_)}return J}if("UNSTABLE_comment"in H)return"\x3c!--"+m(H.UNSTABLE_comment)+"--\x3e";R=H.children}else{if(null!=(I=M.contextType)){var Y=n[I.__c];G=Y?Y.props.value:I.__}var ee=M.prototype&&"function"==typeof M.prototype.render;if(ee)R=N(t,G),K=t[o];else{t[o]=K=x(t,G);for(var te=0;v(K)&&te++<25;){d(K),T&&T(t);try{R=M.call(K,H,G)}catch(e){throw y&&e&&"function"==typeof e.then&&(t._suspended=!0),e}}h(K)}if(null!=K.getChildContext&&(n=U({},n,K.getChildContext())),ee&&e.options.errorBoundaries&&(M.getDerivedStateFromError||K.componentDidCatch)){R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R;try{return q(R,n,r,a,t,y,!1)}catch(i){return M.getDerivedStateFromError&&(K[s]=M.getDerivedStateFromError(i)),K.componentDidCatch&&K.componentDidCatch(i,D),v(K)?(R=N(t,n),null!=(K=t[o]).getChildContext&&(n=U({},n,K.getChildContext())),q(R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R,n,r,a,t,y,_)):Z}finally{L&&L(t),E&&E(t)}}}R=null!=R&&R.type===e.Fragment&&null==R.key&&null==R.props.tpl?R.props.children:R;try{var ne=q(R,n,r,a,t,y,_);return L&&L(t),e.options.unmount&&e.options.unmount(t),t._suspended?"string"==typeof ne?W+ne+z:$(ne)?(ne.unshift(W),ne.push(z),ne):ne.then(function(e){return W+e+z}):ne}catch(o){if(!y&&_&&_.onError){var re=(function e(o){return _.onError(o,t,function(t,o){try{return q(t,n,r,a,o,y,_)}catch(t){return e(t)}})})(o);if(void 0!==re)return re;var oe=e.options.__e;return oe&&oe(o,t),Z}if(!y)throw o;if(!o||"function"!=typeof o.then)throw o;return o.then(function e(){try{var o=q(R,n,r,a,t,y,_);return t._suspended?W+o+z:o}catch(t){if(!t||"function"!=typeof t.then)throw t;return t.then(e)}})}}var ie,ae="<"+M,se=Z;for(var ce in H){var ue=H[ce];if("function"!=typeof(ue=V(ue)?ue.value:ue)||"class"===ce||"className"===ce){switch(ce){case"children":ie=ue;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in H)continue;ce="for";break;case"className":if("class"in H)continue;ce="class";break;case"defaultChecked":ce="checked";break;case"defaultSelected":ce="selected";break;case"defaultValue":case"value":switch(ce="value",M){case"textarea":ie=ue;continue;case"select":a=ue;continue;case"option":a!=ue||"selected"in H||(ae+=" selected")}break;case"dangerouslySetInnerHTML":se=ue&&ue.__html;continue;case"style":"object"==typeof ue&&(ue=k(ue));break;case"acceptCharset":ce="accept-charset";break;case"httpEquiv":ce="http-equiv";break;default:if(u.test(ce))ce=ce.replace(u,"$1:$2").toLowerCase();else{if(c.test(ce))continue;"-"!==ce[4]&&!p.has(ce)||null==ue?r?f.test(ce)&&(ce="panose1"===ce?"panose-1":ce.replace(/([A-Z])/g,"-$1").toLowerCase()):l.test(ce)&&(ce=ce.toLowerCase()):ue+=Z}}null!=ue&&!1!==ue&&(ae=!0===ue||ue===Z?ae+" "+ce:ae+" "+ce+'="'+("string"==typeof ue?m(ue):ue+Z)+'"')}}if(c.test(M))throw new Error(M+" is not a valid HTML tag name in "+ae+">");if(se||("string"==typeof ie?se=m(ie):null!=ie&&!1!==ie&&!0!==ie&&(se=q(ie,n,"svg"===M||"foreignObject"!==M&&r,a,t,y,_))),L&&L(t),E&&E(t),!se&&B.has(M))return ae+"/>";var le="</"+M+">",fe=ae+">";return $(se)?[fe].concat(se,[le]):"string"!=typeof se?[fe,se,le]:fe+se+le}var B=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),I=H,R=H;function V(e){return null!==e&&"object"==typeof e&&"function"==typeof e.peek&&"value"in e}},1294,[1280]);
|
|
63
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FileTree",{enumerable:!0,get:function(){return t.FileTree}}),Object.defineProperty(e,"useFileTree",{enumerable:!0,get:function(){return n.useFileTree}}),Object.defineProperty(e,"useFileTreeSearch",{enumerable:!0,get:function(){return c.useFileTreeSearch}}),Object.defineProperty(e,"useFileTreeSelection",{enumerable:!0,get:function(){return l.useFileTreeSelection}}),Object.defineProperty(e,"useFileTreeSelector",{enumerable:!0,get:function(){return u.useFileTreeSelector}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),l=r(d[3]),c=r(d[4])},1295,[1296,1297,1298,1299,1300]);
|
|
64
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["header","id","model","preloadedData","renderContextMenu"];Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FileTree",{enumerable:!0,get:function(){return _}});var n,t=r(d[0]),l=(n=t)&&n.__esModule?n:{default:n},o=r(d[1]),u=r(d[2]),s=r(d[3]);const c="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function f(e,n,t){const l=null!=e?(0,s.jsx)("div",{slot:o.HEADER_SLOT_NAME,children:e}):null,u=null!=n&&null!=t?(0,s.jsx)("div",{slot:o.CONTEXT_MENU_SLOT_NAME,children:n(t.item,t.context)}):null;return null==l&&null==u?null:(0,s.jsxs)(s.Fragment,{children:[l,u]})}function p(e,n){return"undefined"==typeof window&&null!=n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:n.shadowHtml}}),e]}):(0,s.jsx)(s.Fragment,{children:e})}function h(e){const n=e.shadowRoot;return n?.querySelector("[data-file-tree-id]")instanceof HTMLElement||n?.querySelector("[data-file-tree-id]")instanceof SVGElement||e.querySelector("template[shadowrootmode=\"open\"]")instanceof HTMLTemplateElement}function x(e,n,t,l,o){const u=Object.assign({},e??{});if(null!=n&&delete u.header,t){const n=e?.contextMenu,t=n?.onClose,s=n?.onOpen;u.contextMenu=Object.assign({},n??{},{enabled:!0,onClose:()=>{t?.(),l()},onOpen:(e,n)=>{o(e,n),s?.(e,n)}}),delete u.contextMenu.render}return null!=u.header||null!=u.contextMenu?u:void 0}function M(e){const n=(0,u.useRef)(e.getComposition()),t=(0,u.useRef)(e);return t.current!==e&&(t.current=e,n.current=e.getComposition()),n.current}function _(n){let{header:t,id:_,model:y,preloadedData:E,renderContextMenu:C}=n,j=(0,l.default)(n,e);const[T,b]=(0,u.useState)(null),[O,S]=(0,u.useState)(null),w=M(y),H=null!=C,[L,v]=(0,u.useState)(H);L!==H&&(v(H),null!=T&&b(null));const F=(0,u.useCallback)(()=>{b(null)},[]),A=(0,u.useCallback)((e,n)=>{b({context:n,item:e})},[]),N=(0,u.useMemo)(()=>x(w,t,H,F,A),[w,F,A,H,t]),R=(0,u.useCallback)(e=>{S(e)},[]);c(()=>{y.setComposition(N)},[N,y]),c(()=>{if(null!=O)return null!=E&&h(O)?y.hydrate({fileTreeContainer:O}):y.render({fileTreeContainer:O}),()=>{y.unmount(),y.setComposition(w)}},[w,O,y,E]);const D=p(f(t,C,T),E),k=_??E?.id,q=Object.assign({"--trees-item-height":`${String(y.getItemHeight())}px`,"--trees-density-override":y.getDensityFactor()},j.style);return(0,s.jsx)(o.FILE_TREE_TAG_NAME,Object.assign({},j,{id:k,ref:R,style:q,suppressHydrationWarning:null!=E,children:D}))}},1296,[25,1236,15,7]);
|
|
65
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTree",{enumerable:!0,get:function(){return n}});var t=r(d[0]),u=r(d[1]);function n(n){const[o]=(0,u.useState)(()=>new t.FileTree(n)),l=(0,u.useRef)({timeout:null,model:o});return(0,u.useEffect)(()=>{const{current:t}=l;return null!=t.timeout&&(clearTimeout(t.timeout),t.timeout=null),()=>{t.timeout=setTimeout(()=>t.model.cleanUp(),1)}},[]),{model:o}}},1297,[1260,15]);
|
|
66
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"areArraysEqual",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"useFileTreeSelector",{enumerable:!0,get:function(){return l}});var t=r(d[0]);function n(t,n){if(t===n)return!0;if(t.length!==n.length)return!1;for(let u=0;u<t.length;u+=1)if(!Object.is(t[u],n[u]))return!1;return!0}function u(t,n,u){return Object.is(t,n)||!0===u?.(t,n)}function l(n,l,c){const o=(0,t.useRef)({hasValue:!1,model:null,selector:null,value:void 0}),s=(0,t.useCallback)(t=>n.subscribe(t),[n]),f=(0,t.useCallback)(()=>{const t=o.current,s=l(n);if(t.model!==n||t.selector!==l||!t.hasValue)return t.hasValue=!0,t.model=n,t.selector=l,t.value=s,s;const f=t.value;return u(f,s,c)?f:(t.value=s,s)},[c,n,l]);return(0,t.useSyncExternalStore)(s,f,f)}},1298,[15]);
|
|
67
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTreeSelection",{enumerable:!0,get:function(){return n}});var t=r(d[0]);function n(n){return(0,t.useFileTreeSelector)(n,t=>t.getSelectedPaths(),t.areArraysEqual)}},1299,[1298]);
|
|
68
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFileTreeSearch",{enumerable:!0,get:function(){return n}});var t=r(d[0]),c=r(d[1]);function s(c,s){return c.isOpen===s.isOpen&&c.value===s.value&&(0,t.areArraysEqual)(c.matchingPaths,s.matchingPaths)}function n(n){const u=(0,t.useFileTreeSelector)(n,t=>({isOpen:t.isSearchOpen(),matchingPaths:t.getSearchMatchingPaths(),value:t.getSearchValue()}),s);return(0,c.useMemo)(()=>Object.assign({},u,{close:()=>{n.closeSearch()},focusNextMatch:()=>{n.focusNextSearchMatch()},focusPreviousMatch:()=>{n.focusPreviousSearchMatch()},open:t=>{n.openSearch(t)},setValue:t=>{n.setSearch(t)}}),[n,u])}},1300,[1298,15]);
|