@karan171996/metricflow 0.15.1 → 0.17.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/.next/BUILD_ID +1 -1
- package/.next/build/chunks/{[root-of-the-server]__05i36w1._.js → [root-of-the-server]__05i36w1t4lzaf._.js} +20 -18
- package/.next/build/chunks/{[root-of-the-server]__1kki86f._.js → [root-of-the-server]__1kki86fknkq7y._.js} +26 -41
- package/.next/build/chunks/{[turbopack-node]_transforms_postcss_ts_1gfkiq9._.js → [turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js} +2 -2
- package/.next/build/chunks/[turbopack]_runtime.js +146 -16
- package/.next/build/chunks/{node_modules__pnpm_1x2anb_._.js → node_modules__pnpm_1x2anb_hbin35._.js} +96 -94
- package/.next/build/chunks/{pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2v._.js → pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js} +3 -3
- package/.next/build-manifest.json +109 -9
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +9 -9
- package/.next/required-server-files.js +19 -2
- package/.next/required-server-files.json +19 -2
- package/.next/server/app/_global-error/page/build-manifest.json +8 -6
- package/.next/server/app/_global-error/page.js +9 -8
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +17 -13
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +19 -15
- package/.next/server/app/_global-error.segments/_full.segment.rsc +17 -13
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -1
- package/.next/server/app/_not-found/page/build-manifest.json +8 -6
- package/.next/server/app/_not-found/page.js +15 -14
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +49 -41
- package/.next/server/app/_not-found.segments/_full.segment.rsc +49 -41
- package/.next/server/app/_not-found.segments/_index.segment.rsc +36 -32
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +24 -19
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -2
- package/.next/server/app/api/analyze/route.js +8 -7
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/connect/route.js +8 -7
- package/.next/server/app/api/connect/route.js.nft.json +1 -1
- package/.next/server/app/api/health/route.js +6 -5
- package/.next/server/app/api/health/route.js.nft.json +1 -1
- package/.next/server/app/api/lighthouse/route.js +8 -6
- package/.next/server/app/api/lighthouse/route.js.nft.json +1 -1
- package/.next/server/app/api/metrics/route.js +11 -9
- package/.next/server/app/api/metrics/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +7 -6
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/ai/route.js +8 -6
- package/.next/server/app/api/setup/ai/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js +11 -9
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/timings/route.js +7 -5
- package/.next/server/app/api/timings/route.js.nft.json +1 -1
- package/.next/server/app/connect/page/build-manifest.json +8 -6
- package/.next/server/app/connect/page.js +16 -15
- package/.next/server/app/connect/page.js.nft.json +1 -1
- package/.next/server/app/connect/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connect.html +2 -2
- package/.next/server/app/connect.rsc +50 -42
- package/.next/server/app/connect.segments/_full.segment.rsc +50 -42
- package/.next/server/app/connect.segments/_index.segment.rsc +36 -32
- package/.next/server/app/connect.segments/_tree.segment.rsc +4 -2
- package/.next/server/app/connect.segments/connect/__PAGE__.segment.rsc +32 -25
- package/.next/server/app/icon.svg/route.js +6 -6
- package/.next/server/app/icon.svg/route.js.nft.json +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +51 -42
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +25 -18
- package/.next/server/app/index.segments/_full.segment.rsc +51 -42
- package/.next/server/app/index.segments/_index.segment.rsc +36 -32
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -2
- package/.next/server/app/page/build-manifest.json +8 -6
- package/.next/server/app/page.js +16 -15
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/[slug]/page/build-manifest.json +8 -6
- package/.next/server/app/performance/[slug]/page.js +20 -19
- package/.next/server/app/performance/[slug]/page.js.nft.json +1 -1
- package/.next/server/app/performance/[slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/page/build-manifest.json +8 -6
- package/.next/server/app/performance/page.js +18 -16
- package/.next/server/app/performance/page.js.nft.json +1 -1
- package/.next/server/app/performance/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance.html +2 -2
- package/.next/server/app/performance.rsc +57 -49
- package/.next/server/app/performance.segments/_full.segment.rsc +57 -49
- package/.next/server/app/performance.segments/_index.segment.rsc +36 -32
- package/.next/server/app/performance.segments/_tree.segment.rsc +4 -2
- package/.next/server/app/performance.segments/performance/__PAGE__.segment.rsc +42 -35
- package/.next/server/app/settings/page/build-manifest.json +8 -6
- package/.next/server/app/settings/page.js +19 -17
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup/page/build-manifest.json +8 -6
- package/.next/server/app/setup/page.js +16 -15
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup.html +2 -2
- package/.next/server/app/setup.rsc +51 -43
- package/.next/server/app/setup.segments/_full.segment.rsc +51 -43
- package/.next/server/app/setup.segments/_index.segment.rsc +36 -32
- package/.next/server/app/setup.segments/_tree.segment.rsc +4 -2
- package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +33 -26
- package/.next/server/app/tools/[tool]/page/build-manifest.json +8 -6
- package/.next/server/app/tools/[tool]/page.js +19 -16
- package/.next/server/app/tools/[tool]/page.js.nft.json +1 -1
- package/.next/server/app/tools/[tool]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[externals]__034cn-2lv9fc5._.js +3 -0
- package/.next/server/chunks/[externals]__0m-k585k1ynvq._.js +3 -0
- package/.next/server/chunks/[externals]__0m1eyv0382orw._.js +3 -0
- package/.next/server/chunks/{[externals]__1rfyr-i._.js → [externals]__1rfyr-i_6_4of._.js} +1 -1
- package/.next/server/chunks/[externals]__1z442xhqm4-q4._.js +3 -0
- package/.next/server/chunks/{[externals]_chrome-launcher_1k_yki1._.js → [externals]_chrome-launcher_1k_yki1d1gvqj._.js} +1 -1
- package/.next/server/chunks/{[externals]_lighthouse_1su6d37._.js → [externals]_lighthouse_1su6d37ybt6tk._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__021zfu6-7cc23._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__06wfj6ibmc2nc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__07-t7hocjiwp-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__07qwm-ol7lj-f._.js +3 -0
- package/.next/server/chunks/{[externals]__0k9wda_._.js → [root-of-the-server]__08dump-5r93r3._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__09fryu78vrxh2._.js +10 -0
- package/.next/server/chunks/[root-of-the-server]__0unt2gweawji4._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1180bcvq825ef._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1lt0tsd3d01sd._.js +3 -0
- package/.next/server/chunks/[turbopack]_runtime.js +146 -16
- package/.next/server/chunks/_0gf6dylf3zjfv._.js +3 -0
- package/.next/server/chunks/_0osv2v2oxu5cl._.js +22 -0
- package/.next/server/chunks/_0rxn0u4e1o4b3._.js +3 -0
- package/.next/server/chunks/_0rzna9d4n439r._.js +3 -0
- package/.next/server/chunks/_0s9eekzfwdkl-._.js +3 -0
- package/.next/server/chunks/_0soa3p92n2fo7._.js +3 -0
- package/.next/server/chunks/_0y45n89gcozoo._.js +61 -0
- package/.next/server/chunks/_1-tdo5u11b168._.js +3 -0
- package/.next/server/chunks/_10k_8ykwywloj._.js +3 -0
- package/.next/server/chunks/_1_v0zb-qciv_j._.js +3 -0
- package/.next/server/chunks/_1luopd-0ilby5._.js +6 -0
- package/.next/server/chunks/_1z5i56hgk-jwq._.js +3 -0
- package/.next/server/chunks/{_next-internal_server_app_api_analyze_route_actions_0lx-23h.js → _next-internal_server_app_api_analyze_route_actions_0lx-23h7r4czj.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_connect_route_actions_1r5w03m.js → _next-internal_server_app_api_connect_route_actions_1r5w03mk355_9.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_health_route_actions_1ryftkb.js → _next-internal_server_app_api_health_route_actions_1ryftkbeskq31.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_lighthouse_route_actions_1_4ee8x.js → _next-internal_server_app_api_lighthouse_route_actions_1_4ee8xkkof6q.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_metrics_route_actions_0qn5q3s.js → _next-internal_server_app_api_metrics_route_actions_0qn5q3sml2oxr.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_settings_route_actions_1bpm9ac.js → _next-internal_server_app_api_settings_route_actions_1bpm9acuq1z18.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_setup_ai_route_actions_0-ay8t8.js → _next-internal_server_app_api_setup_ai_route_actions_0-ay8t8qf99q5.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_setup_route_actions_0txsuev.js → _next-internal_server_app_api_setup_route_actions_0txsuev7wlgqs.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_api_timings_route_actions_1tsq7j6.js → _next-internal_server_app_api_timings_route_actions_1tsq7j6wf3hxu.js} +1 -1
- package/.next/server/chunks/{_next-internal_server_app_icon_svg_route_actions_1r2h_ub.js → _next-internal_server_app_icon_svg_route_actions_1r2h_ubdhjtcp.js} +1 -1
- package/.next/server/chunks/lib_analytics_index_ts_00-ju4e5xwlcg._.js +20 -0
- package/.next/server/chunks/lib_hosted-stub_proxy_ts_17ed5vy81u-ak._.js +3 -0
- package/.next/server/chunks/lib_lighthouseRun_ts_1mjhbdn7ve63z._.js +3 -0
- package/.next/server/chunks/node_modules__pnpm_0in3pkq9pbn4f._.js +8 -0
- package/.next/server/chunks/ssr/0hs5_cn_dist_index_1l1fs8y5rr27h.js +3 -0
- package/.next/server/chunks/ssr/{10ci_lucide-react_dist_esm_Icon_mjs_05sy43t._.js → 10ci_lucide-react_dist_esm_Icon_mjs_05sy43tai5etd._.js} +2 -2
- package/.next/server/chunks/ssr/10ci_lucide-react_dist_esm_icons_zap_mjs_1e_yn93pbl2or._.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_03us230sc4s0h._.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_1vwwe2eezpy_7._.js +32 -0
- package/.next/server/chunks/ssr/1mf__next_dist_20egvxrcd7_ds._.js +6 -0
- package/.next/server/chunks/ssr/1mf__next_dist_client_components_1x7wpramfovhf._.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_client_components_builtin_forbidden_1502kx65fl78d.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_client_components_builtin_global-error_0kfn1fe4yos5o.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_client_components_builtin_unauthorized_177yqp0_cu2ez.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_00afil-v8lomb.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_07vwo673qz7bv.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_0urvugn9l2jex.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1ex5k-ovn8oo7.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1frvip0wwhdua.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1k42o4ycmnm1d.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1ugswt9vavizo.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1uzrphmi_cdb_.js +3 -0
- package/.next/server/chunks/ssr/1mf__next_dist_esm_build_templates_app-page_1z3poc4gqjwz-.js +3 -0
- package/.next/server/chunks/ssr/{[externals]_chrome-launcher_1k_yki1._.js → [externals]_chrome-launcher_1k_yki1d1gvqj._.js} +1 -1
- package/.next/server/chunks/ssr/{[externals]_lighthouse_1su6d37._.js → [externals]_lighthouse_1su6d37ybt6tk._.js} +1 -1
- package/.next/server/chunks/ssr/[externals]_next_dist_server_app-render_1m3jdi0t8hc-e._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__045sn1hct_tin._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06lsjfhk7q07d._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06x7snv1kcukh._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__07t859l_zmk0y._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0_-9rlragciyf._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ge_a6b3kff2i._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0p5esqtz_gjsm._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0x-gl_3kv4dvu._.js +14 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0zj7u9hi7p069._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1j747xcnawxvq._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1pvl_-x1p353o._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1q0s-a72-963f._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1tt4fc9o1flme._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1tw35y2g9muco._.js +3 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +146 -16
- package/.next/server/chunks/ssr/_04dkb8_-u70c9._.js +3 -0
- package/.next/server/chunks/ssr/_05048jmmcpbt_._.js +25 -0
- package/.next/server/chunks/ssr/_05g2g4e1n40vo._.js +3 -0
- package/.next/server/chunks/ssr/_0lyj2fhh-71bs._.js +3 -0
- package/.next/server/chunks/ssr/_0oigw1lf_-al4._.js +3 -0
- package/.next/server/chunks/ssr/_0x410-rr056-t._.js +23 -0
- package/.next/server/chunks/ssr/_13m9nev1lpq46._.js +3 -0
- package/.next/server/chunks/ssr/_14i08_i-23tuv._.js +3 -0
- package/.next/server/chunks/ssr/_18i8t72qyqvj2._.js +3 -0
- package/.next/server/chunks/ssr/_19n6wbo1l46do._.js +3 -0
- package/.next/server/chunks/ssr/_1lcqytrznpg6z._.js +3 -0
- package/.next/server/chunks/ssr/_1ncvmplpjc121._.js +3 -0
- package/.next/server/chunks/ssr/_1qf8b2zwn1vs4._.js +3 -0
- package/.next/server/chunks/ssr/_1ykoks44xsk1-._.js +3 -0
- package/.next/server/chunks/ssr/_20ize_amjuoiv._.js +3 -0
- package/.next/server/chunks/ssr/{_next-internal_server_app__global-error_page_actions_0zi5s8-.js → _next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app__not-found_page_actions_0pt47yr.js → _next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_connect_page_actions_1g-s_3i.js → _next-internal_server_app_connect_page_actions_1g-s_3iey9c04.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_page_actions_0hhsz1j.js → _next-internal_server_app_page_actions_0hhsz1jew5ls7.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_performance_[slug]_page_actions_1pzv3w1.js → _next-internal_server_app_performance_[slug]_page_actions_1pzv3w11cuux3.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_performance_page_actions_0vi13cc.js → _next-internal_server_app_performance_page_actions_0vi13ccve174w.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_settings_page_actions_11x4dq5.js → _next-internal_server_app_settings_page_actions_11x4dq5dxd520.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_setup_page_actions_0u1sm0s.js → _next-internal_server_app_setup_page_actions_0u1sm0sllb5ji.js} +1 -1
- package/.next/server/chunks/ssr/{_next-internal_server_app_tools_[tool]_page_actions_0-u-_p-.js → _next-internal_server_app_tools_[tool]_page_actions_0-u-_p-s2s4kf.js} +1 -1
- package/.next/server/chunks/ssr/{app_performance_[slug]_loading_tsx_0d5z78a._.js → app_performance_[slug]_loading_tsx_0d5z78aya8__5._.js} +2 -2
- package/.next/server/chunks/ssr/{app_performance_loading_tsx_1bq2nq9._.js → app_performance_loading_tsx_1bq2nq9lqcbph._.js} +2 -2
- package/.next/server/chunks/ssr/app_settings_loading_tsx_0nv_78vvetpph._.js +3 -0
- package/.next/server/chunks/ssr/components_18w8egp7qpjjt._.js +3 -0
- package/.next/server/chunks/ssr/components_1riaczrknh270._.js +3 -0
- package/.next/server/chunks/ssr/components_Analytics_10du3pppo4ase._.js +3 -0
- package/.next/server/chunks/ssr/components_Connect_ConnectPage_tsx_0b0vsklxlkki5._.js +13 -0
- package/.next/server/chunks/ssr/components_EmptyState_tsx_14lsjecfunxtu._.js +3 -0
- package/.next/server/chunks/ssr/components_Setup_15a--oq28y7ah._.js +3 -0
- package/.next/server/chunks/ssr/components_Skeletons_index_tsx_0u35wgc1zx7_r._.js +3 -0
- package/.next/server/chunks/ssr/components_ToolInsights_1f6cy0p-ah6w8._.js +3 -0
- package/.next/server/chunks/ssr/components_ui_0fae3sxyejqkf._.js +3 -0
- package/.next/server/chunks/ssr/components_ui_0ow-v6i1pfvwb._.js +3 -0
- package/.next/server/chunks/ssr/components_ui_1eqtkk6j8c1wg._.js +3 -0
- package/.next/server/chunks/ssr/components_ui_card_tsx_1ijgg6979qdv1._.js +3 -0
- package/.next/server/chunks/ssr/lib_useNotificationPrefs_ts_1pc6xgs7erjti._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0qyyzor7935s5._.js +32 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_15uzg3c048r_s._.js +33 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_1qq__y4frffjg._.js +33 -0
- package/.next/server/functions-config-manifest.json +4 -0
- package/.next/server/middleware-build-manifest.js +109 -9
- package/.next/server/middleware.js +4 -4
- package/.next/server/middleware.js.nft.json +1 -1
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/preview-props.json +5 -0
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/{server/chunks/ssr/node_modules__pnpm_20_uz79._.js → static/chunks/02d29qi4_pbbu.js} +2 -4
- package/.next/static/chunks/05l-4yyvaol7z.js +1 -0
- package/.next/static/chunks/0qo0f4cebeqml.js +1 -0
- package/.next/static/chunks/1_5l4q55pqn4k.js +1 -0
- package/.next/static/chunks/{2gp4docstg2a8.js → 1h07paelwfasb.js} +1 -1
- package/.next/static/chunks/{3eqgnx_zoya2q.css → 1yu174qlyg0sr.css} +1 -1
- package/.next/static/chunks/1ze1mg9mb0rxm.js +1 -0
- package/.next/static/chunks/21aqw71jtdbyt.js +1 -0
- package/.next/static/chunks/2q28qc_voku-m.js +1 -0
- package/.next/static/chunks/2seflj_4e3fgy.js +22 -0
- package/.next/static/chunks/2wje_rdg6693f.js +1 -0
- package/.next/static/chunks/35qv7olver6_f.js +1 -0
- package/.next/static/chunks/35s3suo7qypsf.js +11 -0
- package/.next/static/chunks/396lmbjx9ezjw.js +1 -0
- package/.next/static/chunks/3dq6tq6lvwk0p.js +1 -0
- package/.next/static/chunks/3k6gx3lp7rf1u.js +1 -0
- package/.next/static/chunks/3y20fa9od78jj.js +1 -0
- package/.next/static/chunks/3y4u-f4g35u_2.js +1 -0
- package/.next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
- package/.next/static/{8LtMJdCno9wkpYotBJePk → cnwu-5GQTytUkc3anzoBk}/_clientMiddlewareManifest.js +4 -0
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/bin/cli.mjs +2 -0
- package/package.json +9 -5
- package/.next/server/chunks/[externals]__0_9e0si._.js +0 -3
- package/.next/server/chunks/[externals]__1f7xi3d._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05mqvyo._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0_6kr31._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0az11z3._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0dv0ig6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0egyynf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0fkj1-q._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0vbatar._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1231g--._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__12lkcy1._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1mj-h97._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1o9k4jf._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1wcikrf._.js +0 -5
- package/.next/server/chunks/_08xo8nu._.js +0 -22
- package/.next/server/chunks/_0j7t8f9._.js +0 -3
- package/.next/server/chunks/_0w8wvdn._.js +0 -3
- package/.next/server/chunks/_0wct7-r._.js +0 -3
- package/.next/server/chunks/_1f80q3b._.js +0 -158
- package/.next/server/chunks/_1l9d64o._.js +0 -6
- package/.next/server/chunks/lib_analytics_index_ts_00-ju4e._.js +0 -20
- package/.next/server/chunks/node_modules__pnpm_1qoj6e0._.js +0 -8
- package/.next/server/chunks/ssr/0hs5_cn_dist_index_1l1fs8y.js +0 -3
- package/.next/server/chunks/ssr/0x0c_next_dist_03da18h._.js +0 -6
- package/.next/server/chunks/ssr/0x0c_next_dist_0lkq344._.js +0 -3
- package/.next/server/chunks/ssr/0x0c_next_dist_1icgwks._.js +0 -151
- package/.next/server/chunks/ssr/0x0c_next_dist_client_components_1z4ahr3._.js +0 -3
- package/.next/server/chunks/ssr/0x0c_next_dist_client_components_builtin_forbidden_0pm41ij.js +0 -3
- package/.next/server/chunks/ssr/0x0c_next_dist_client_components_builtin_global-error_1-wtk5-.js +0 -3
- package/.next/server/chunks/ssr/0x0c_next_dist_client_components_builtin_unauthorized_0v3_y-3.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__02c3m72._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0g1dtzd._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0hifh__._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0l4t71c._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0tikq3c._.js +0 -14
- package/.next/server/chunks/ssr/[root-of-the-server]__0tz50uc._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xjblsu._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1-0b897._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__13w6d6f._.js +0 -33
- package/.next/server/chunks/ssr/[root-of-the-server]__146cm0r._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__14_2v5e._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1cl7b4r._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1mydt_n._.js +0 -33
- package/.next/server/chunks/ssr/_0aid3rp._.js +0 -25
- package/.next/server/chunks/ssr/_0cst0jv._.js +0 -3
- package/.next/server/chunks/ssr/_0vl4jhl._.js +0 -13
- package/.next/server/chunks/ssr/_0zly58v._.js +0 -3
- package/.next/server/chunks/ssr/_1-l5u-_._.js +0 -3
- package/.next/server/chunks/ssr/_12brazw._.js +0 -3
- package/.next/server/chunks/ssr/_13m9nev._.js +0 -3
- package/.next/server/chunks/ssr/_19n6wbo._.js +0 -3
- package/.next/server/chunks/ssr/_1cfwie5._.js +0 -3
- package/.next/server/chunks/ssr/_1d39141._.js +0 -3
- package/.next/server/chunks/ssr/_1h52qq9._.js +0 -3
- package/.next/server/chunks/ssr/_1lcqytr._.js +0 -6
- package/.next/server/chunks/ssr/_1n6kmjf._.js +0 -3
- package/.next/server/chunks/ssr/_1ni54_c._.js +0 -3
- package/.next/server/chunks/ssr/_1vv2tlg._.js +0 -3
- package/.next/server/chunks/ssr/app_loading_tsx_0a1flg9._.js +0 -3
- package/.next/server/chunks/ssr/app_settings_loading_tsx_0nv_78v._.js +0 -3
- package/.next/server/chunks/ssr/components_1_8btz1._.js +0 -3
- package/.next/server/chunks/ssr/node_modules__pnpm_1gezzqr._.js +0 -151
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.html +0 -2
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.meta +0 -1
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.rsc +0 -41
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_full.segment.rsc +0 -41
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_index.segment.rsc +0 -32
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -20
- package/.next/server/route-cache/APP_PAGE/41da0ef926a63354a29f601d8e8d0a5951196c45ebcd28b7d4708fb7f56f3bf1/$/_not-found.segments/_tree.segment.rsc +0 -2
- package/.next/static/chunks/04rlo5538j7rr.js +0 -4
- package/.next/static/chunks/09gd7q3y6k-9o.js +0 -1
- package/.next/static/chunks/0_gj-5u7ifqf4.js +0 -1
- package/.next/static/chunks/0hi47ko7gli7r.js +0 -1
- package/.next/static/chunks/0on9boy9udzsk.js +0 -22
- package/.next/static/chunks/0vpb-2i9p8zhe.js +0 -11
- package/.next/static/chunks/0xrcyj-flkrl1.js +0 -1
- package/.next/static/chunks/16dm0t9zkiz1_.js +0 -31
- package/.next/static/chunks/1qvxxmozdr7-c.js +0 -1
- package/.next/static/chunks/21q5shbghrpvd.js +0 -1
- package/.next/static/chunks/287u55qyslbe_.js +0 -1
- package/.next/static/chunks/2wutbn1zdrzvx.js +0 -1
- package/.next/static/chunks/3q6xawepb9y62.js +0 -1
- package/.next/static/chunks/3somw8tkd8pzf.js +0 -1
- package/.next/static/chunks/3twacs-22zdwk.js +0 -1
- package/.next/static/chunks/458nt4gshcy9x.js +0 -1
- package/.next/static/chunks/turbopack-3icatqv27j50p.js +0 -1
- /package/.next/static/{8LtMJdCno9wkpYotBJePk → cnwu-5GQTytUkc3anzoBk}/_buildManifest.js +0 -0
- /package/.next/static/{8LtMJdCno9wkpYotBJePk → cnwu-5GQTytUkc3anzoBk}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23091,e=>{var t=e.i(2506);e.s(["f",0,function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 64 64",fill:"none",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"M4 30H16L20 24L24 30L32 50L42 12L46 30H60"})})}])},17792,e=>{var t=e.i(2506),r=e.i(11522),n=e.i(23091),i=e.i(34813),o=e.i(73011),l=e.i(64114),a=e.i(93834);e.s(["Header",0,function(){let{toggleSidebar:e}=(0,r.useSidebar)(),{state:s}=(0,i.a)();return(0,t.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-gray-800 bg-[#0f1419] px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("h1",{className:"title-enter text-base md:text-lg font-semibold text-white tracking-tight line-clamp-1",children:"ready"===s.status&&s.project||"MetricFlow"}),(0,t.jsx)("p",{className:"line-clamp-2 text-xs text-gray-400",children:function(e){if("loading"===e.status)return"Loading…";if("error"===e.status)return"Could not load metrics";if(!e.configured)return"Not connected yet";let t=e.pages.filter(o.f),r=e.pages.reduce((e,t)=>e+(t.metrics.traffic?.count??0),0),n=e.pages.reduce((e,t)=>e+(t.metrics.errors?.count??0),0);return[(0,i.v)(e,"pages")&&`${t.length} of ${e.pages.length} pages reporting`,(0,i.v)(e,"traffic")&&`${r.toLocaleString()} ${(0,l.O)(e.pages)?"sampled page loads":"views"} in 24h`,(0,i.v)(e,"errors")&&`${n} open ${1===n?"error":"errors"}`,...e.failed.filter(a.F).map(e=>`Could not load ${a.Q[e].label} data.`),e.stale&&"Could not load the latest data.",e.timestamp&&`updated ${new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}`].filter(Boolean).join(" · ")}(s)})]}),(0,t.jsx)("button",{onClick:e,"aria-label":"Open navigation menu",className:"md:hidden flex h-10 w-10 items-center justify-center rounded-lg bg-[#3ee0a1] text-black hover:bg-[#3ee0a1]/90 transition-colors",children:(0,t.jsx)(n.f,{className:"h-7 w-7"})}),(0,t.jsx)("div",{className:"flex-1"})]})}])},67097,e=>{var t=e.i(2506),r=e.i(21631),n=e.i(51044),i=e.i(67449);let o={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};o.node;let l=(0,i.f)(o),a={name:"chart-no-axes-column",size:24,node:[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],aliases:["bar-chart-2"]};a.node;let s=(0,i.f)(a),u={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};u.node;let c=(0,i.f)(u),f={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};f.node;let d=(0,i.f)(f);var p=e.i(23091),h=e.i(11522),g=e.i(93834),m=e.i(71428),v=e.i(84626);e.s(["AppSidebar",0,function(){let{isMobile:e}=(0,h.useSidebar)(),i=(0,n.usePathname)(),o=function(){let[e,t]=(0,v.useState)(null);return(0,v.useEffect)(()=>{let e=!1;return fetch("/api/setup").then(e=>e.json()).then(r=>{!e&&Array.isArray(r.tools)&&t(r.tools)}).catch(()=>{}),()=>{e=!0}},[]),e}();return(0,t.jsxs)(h.Sidebar,{collapsible:e?"offcanvas":"none",className:"w-[70px] border-r border-[#2d3748] bg-[#131518] text-white sticky top-0 h-screen overflow-y-auto [&::-webkit-scrollbar]:hidden",children:[(0,t.jsx)(h.SidebarHeader,{className:"flex items-center justify-center py-4",children:(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[#3ee0a1] text-black",children:(0,t.jsx)(p.f,{className:"h-7 w-7"})})}),(0,t.jsx)(h.SidebarContent,{className:e?"p-4":"flex flex-col items-center justify-start gap-4 pt-6",children:[{label:"Overview",items:[{icon:l,label:"Dashboard",href:"/"},{icon:s,label:"Performance",href:"/performance"}]},{label:"Tools",items:[...(o??[]).map(e=>({icon:g.Q[e].icon,label:g.Q[e].label,href:`/tools/${e}`})),...o&&o.length<g.p.length?[{icon:c,label:"Add a tool",href:"/setup"}]:[]]}].map((n,l)=>(0,t.jsxs)("div",{className:e?"w-full":"flex w-full flex-col items-center gap-3",children:[l>0&&(0,t.jsx)("div",{className:e?"my-3 h-px bg-[#2d3748]":"h-px w-8 bg-[#2d3748]"}),(0,t.jsx)("span",{className:e?"mb-2 block px-3 text-xs font-medium uppercase tracking-wider text-dash-muted":"text-[11px] font-medium uppercase tracking-wider text-dash-muted",children:n.label}),(0,t.jsxs)(h.SidebarMenu,{className:e?"gap-2":"flex flex-col items-center gap-4",children:["Tools"===n.label&&!o&&(0,t.jsx)(m.f,{className:"h-10 w-10 bg-[#2d3748]"}),n.items.map(n=>(0,t.jsx)(h.SidebarMenuItem,{children:(0,t.jsxs)(h.SidebarMenuButton,{render:(0,t.jsx)(r.default,{href:n.href}),isActive:i===n.href,"aria-label":n.label,"aria-current":i===n.href?"page":void 0,tooltip:n.label,className:e?"w-full justify-start gap-4 p-3 rounded-lg text-gray-400 hover:bg-white/10 hover:text-white text-base":"h-10 w-10 justify-center rounded-lg text-gray-400 hover:bg-white/10 hover:text-white",children:[(0,t.jsx)(n.icon,{className:"!h-5 !w-5"}),e&&(0,t.jsx)("span",{children:n.label})]})},n.href))]})]},n.label))}),(0,t.jsx)(h.SidebarFooter,{className:e?"p-4":"flex flex-col items-center gap-4 pb-4",children:(0,t.jsx)(h.SidebarMenu,{className:e?"gap-2":"flex flex-col items-center gap-4",children:(0,t.jsx)(h.SidebarMenuItem,{children:(0,t.jsxs)(h.SidebarMenuButton,{render:(0,t.jsx)(r.default,{href:"/settings"}),isActive:"/settings"===i,"aria-label":"Settings","aria-current":"/settings"===i?"page":void 0,tooltip:"Settings",className:e?"w-full justify-start gap-4 p-3 rounded-lg text-gray-400 hover:bg-white/10 hover:text-white text-base":"h-10 w-10 justify-center rounded-lg text-gray-400 hover:bg-white/10 hover:text-white",children:[(0,t.jsx)(d,{className:"!h-5 !w-5"}),e&&(0,t.jsx)("span",{children:"Settings"})]})})})})]})}],67097)},67881,e=>{var t=e.i(2506),r=e.i(87002),n=e.i(94237),i=e.i(27152);let o=(0,n.f)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["K",0,function({className:e,variant:n="default",size:l="default",...a}){return(0,t.jsx)(r.Button,{"data-slot":"button",className:(0,i.f)(o({variant:n,size:l,className:e})),...a})},"i",0,o])},23750,66128,e=>{var t=e.i(2506),r=e.i(84626),n=e.i(73522),i=e.i(1283),o=e.i(3622),l=e.i(18835);class a{static create(){return new a}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function s(){let e=(0,o.f)(a.create).current;return(0,l.f)(e.disposeEffect),e}e.s(["U",0,a,"e",0,s],66128);var u=e.i(33191),c=e.i(17090),f=e.i(73754),d=e.i(81280),p=e.i(79517),h=e.i(3270),g=e.i(24048),m=e.i(86626),v=e.i(58247),b=e.i(15608),y=e.i(92201);let x=r.forwardRef(function(e,t){let{render:o,className:l,id:a,name:x,value:w,disabled:S=!1,onValueChange:E,defaultValue:C,autoFocus:R=!1,style:T,...k}=e,{state:P,name:A,disabled:I,setTouched:M,setDirty:O,validityData:j,setFilled:N,validationMode:L,validation:D}=(0,u.f)(),{clearErrors:$,elementRef:F,submitCountRef:z}=(0,d.f)(),H=I||S,B=A??x,_={...P,disabled:H},{labelId:W}=(0,p.f)(),U=(0,h.f)({id:a}),X=void 0!==w,V=null==w?void 0:String(w),Y=(0,i.f)(()=>D.inputRef.current?.value);(0,f.f)(D.inputRef,U,V,Y,!H,x),(0,n.f)(()=>{let e=V??D.inputRef.current?.value;void 0!==e&&N(""!==e)},[V,C,D.inputRef,N]),(0,v.f)(V,()=>{void 0!==V&&($(B),O(V!==(j.initialValue??"")),D.change(V))});let K=r.useRef(null),q=(0,c.f)(H,K),G=s();return(0,m.f)("input",e,{ref:[t,K],state:_,props:[{id:U,disabled:H,name:B,ref:D.inputRef,"aria-labelledby":W,autoFocus:R,...X?{value:w}:{defaultValue:C},onChange(e){let t=e.currentTarget.value,r=(0,b.j)(y.f.none,e.nativeEvent);E?.(t,r),!X&&(O(t!==(j.initialValue??"")),N(""!==t),e.nativeEvent.defaultPrevented||r.isCanceled||($(B),D.change(t)))},onFocus(){q(!0)},onBlur(e){if(M(!0),q(!1),"onBlur"===L){let t=e.currentTarget.value;D.commit(t),X&&queueMicrotask(()=>{let e=D.inputRef.current?.value;void 0!==e&&e!==t&&e!==(j.initialValue??"")&&D.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){M(!0);let t=e.currentTarget.value,r=e.currentTarget.form;if(r&&r===F.current&&!e.defaultPrevented){let t=e.currentTarget,r=z.current;G.start(0,()=>{z.current===r&&D.commit(t.value)})}else D.commit(t)}}},k,e=>D.getValidationProps(H,e)],stateAttributesMapping:g.s})});e.s(["Control",0,x],30140);var w=e.i(30140),w=w;let S=r.forwardRef(function(e,r){return(0,t.jsx)(w.Control,{ref:r,...e})});var E=e.i(27152);e.s(["f",0,function({className:e,type:r,...n}){return(0,t.jsx)(S,{type:r,"data-slot":"input",className:(0,E.f)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}],23750)},11522,e=>{let t;var r,n,i=e.i(2506),o=e.i(84626),l=e.i(39294),a=e.i(69322),s=e.i(94237),u=e.i(27152);let c="(max-width: 767px)";function f(e){let t=window.matchMedia(c);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}e.i(67881),e.i(23750);var d=e.i(86626),p=e.i(49133);let h=o.createContext(void 0);function g(e){let t=o.useContext(h);if(!e&&void 0===t)throw Error((0,p.f)(27));return t}var m=e.i(1293),v=e.i(19360);let b="data-open",y="data-closed",x=v.startingStyle,w=v.endingStyle,S="data-anchor-hidden";e.s(["align",0,"data-align","anchorHidden",0,S,"closed",0,y,"endingStyle",0,w,"open",0,b,"side",0,"data-side","startingStyle",0,x],99445);var E=e.i(99445),C=e.i(12074);let R={[C.popupOpen]:""};C.popupOpen,C.pressed;let T={[b]:""},k={[y]:""},P={[S]:""},A={open:e=>e?R:null},I={open:e=>e?T:k,anchorHidden:e=>e?P:null},M={...I,...m.f},O="--drawer-height",j="--drawer-swipe-movement-x",N="--drawer-swipe-movement-y",L="--drawer-snap-point-offset",D="--drawer-swipe-strength",$="--drawer-swipe-progress",F=o.forwardRef(function(e,t){let{render:r,className:n,style:i,forceRender:o=!1,...l}=e,a=g(),s=a.useState("open"),u=a.useState("nested"),c=a.useState("mounted"),f=a.useState("transitionStatus");return(0,d.f)("div",e,{state:{open:s,transitionStatus:f},ref:[a.context.backdropRef,t],stateAttributesMapping:M,props:[{role:"presentation",hidden:!c,style:{pointerEvents:s?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[$]:"0",[D]:"1"}},l],enabled:o||!u})});var z=e.i(96340),H=e.i(15608),B=e.i(61045),B=B;let _=o.forwardRef(function(e,t){let{render:r,className:n,style:i,disabled:o=!1,nativeButton:l=!0,...a}=e,s=g(),u=s.useState("open"),{getButtonProps:c,buttonRef:f}=(0,z.f)({disabled:o,native:l});return(0,d.f)("button",e,{state:{disabled:o},ref:[t,f],props:[{onClick:function(e){u&&s.setOpen(!1,(0,H.j)(B.closePress,e.nativeEvent))}},a,c]})}),W="data-drawer-content",U=o.forwardRef(function(e,t){let{render:r,className:n,style:i,...o}=e;return g(),(0,d.f)("div",e,{ref:t,props:[{[W]:""},o]})});var X=e.i(75118);let V=o.forwardRef(function(e,t){let{render:r,className:n,style:i,id:o,...l}=e,a=g(),s=(0,X.f)(o);return a.useSyncedValueWithCleanup("descriptionElementId",s),(0,d.f)("p",e,{ref:t,props:[{id:s},l]})});var Y=e.i(73522),K=e.i(1283),q=e.i(15585),G=e.i(80269),Z=e.i(32913);function J(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}var Q=e.i(80417),ee=e.i(91704),et=e.i(66128),er=e.i(62579),er=er,en=e.i(54467),ei=e.i(91616),eo=e.i(79995),el=er,er=er,ea=e.i(99334);let es=o.forwardRef(function(e,t){let[r,n]=o.useState();return(0,Y.f)(()=>{el.screenReader.voiceOver&&er.engine.webkit&&n("button")},[]),(0,i.jsx)("span",{...e,ref:t,style:ea.p,"aria-hidden":!r||void 0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var eu=e.i(39244),ec=e.i(171),ef=er,ed=e.i(58887);function ep(e){return""===e.pointerType&&!!e.isTrusted||(ef.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function eh(e){return!ed.f.env.jsdom&&(!ef.os.android&&0===e.width&&0===e.height||"pointerdown"===e.type&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType&&(ef.os.android||0===e.buttons)||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function eg(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}var em=e.i(21720);function ev(e){for(let t of Array.from(e.children))if("summary"===(0,G.A)(t))return t;return null}function eb(e){let t=e?(0,G.A)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,G.A)(e.parentElement)&&ev(e.parentElement)===e)&&("details"!==t||null==ev(e))&&("input"!==t||"hidden"!==e.type)}function ey(e){if(!eb(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,G.R)(r)?r.host:null}(t)){let r=t!==e,n="slot"===(0,G.A)(t);if(t.hasAttribute("inert")||r&&"details"===(0,G.A)(t)&&!t.open&&!function(e,t){let r=ev(t);return!!r&&(e===r||(0,eu.I)(r,e))}(e,t)||t.hasAttribute("hidden")||!n&&!function(e,t){let r=(0,G.X)(e);return t?"none"!==r.display:(0,em.v)(e,r)}(t,r))return!1}return!0}function ex(e){let t=e.tabIndex;if(t<0){let t=(0,G.A)(e);if("details"===t||"audio"===t||"video"===t||(0,G.E)(e)&&e.isContentEditable)return 0}return t}function ew(e){return"input"!==(0,G.A)(e)?null:"radio"===e.type&&""!==e.name?e:null}function eS(e){if((0,G.E)(e)&&"slot"===(0,G.A)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,G.E)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function eE(e){return ey(e)&&ex(e)>=0}function eC(e){let t=[];return!function e(t,r){eS(t).forEach(t=>{eb(t)&&r.push(t),e(t,r)})}(e,t),t.filter(ey)}function eR(e){let t=eC(e);return t.filter(e=>ex(e)>=0&&function(e,t){let r=ew(e);if(!r)return!0;let n=t.find(e=>{let t=ew(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=ew(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function eT(e,t){let r=eR(e),n=r.length;if(0===n)return;let i=(0,eu.T)((0,ei.f)(e)),o=r.indexOf(i);return r[-1===o?1===t?0:n-1:o+t]}function ek(e){return eT((0,ei.f)(e).body,1)||e}function eP(e){return eT((0,ei.f)(e).body,-1)||e}function eA(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!(0,eu.I)(r,n)}function eI(e){let t=[];!function e(t,r,n){eS(t).forEach(t=>{(0,G.E)(t)&&t.matches(r)&&n.push(t),e(t,r,n)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function eM(e,t,r=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!r||t.context?.open?[t]:[],...eM(e,t.id,r)])}function eO(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r}var ej=B,eN=B,eL=B;function eD(e){return`data-base-ui-${e}`}let e$=0;function eF(e,t={}){let{preventScroll:r=!1,sync:n=!1,shouldFocus:i}=t;function o(){(!i||i())&&e?.focus({preventScroll:r})}if(cancelAnimationFrame(e$),n)return o(),q.x;let l=requestAnimationFrame(o);return e$=l,()=>{e$===l&&(cancelAnimationFrame(l),e$=0)}}let ez="data-base-ui-inert",eH=new WeakMap,eB=new WeakSet,e_=new WeakMap,eW=0,eU=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,G.R)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),eX=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},eV=(e,t,r)=>{let n=[],i=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,G.A)(e)&&(t.has(e)?i(e):n.push(e))})};return i(e),n};function eY(e,t={}){let{ariaHidden:r=!1,mark:n=!0}=t,i=(0,ei.f)(e[0]).body;return function(e,t,r,{mark:n=!0}){let i=eU(t,e),o=n?eV(t,eX(i),new Set(i)):[],l=[],a=[];if(r){let e=eU(t,Array.from(t.querySelectorAll("[aria-live]"))),r=i.concat(e);eV(t,eX(r),new Set(r)).forEach(e=>{let t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,n=(eH.get(e)||0)+1;eH.set(e,n),l.push(e),1===n&&r&&eB.add(e),r||e.setAttribute("aria-hidden","true")})}return n&&o.forEach(e=>{let t=(e_.get(e)||0)+1;e_.set(e,t),a.push(e),1===t&&e.setAttribute(ez,"")}),eW+=1,()=>{l.forEach(e=>{let t=(eH.get(e)||0)-1;eH.set(e,t),t||(eB.has(e)||e.removeAttribute("aria-hidden"),eB.delete(e))}),n&&a.forEach(e=>{let t=(e_.get(e)||0)-1;e_.set(e,t),t||e.removeAttribute(ez)}),(eW-=1)||(eH=new WeakMap,eB=new WeakSet,e_=new WeakMap)}}(e,i,r,{mark:n})}var eK=e.i(33404),eq=e.i(63910),ej=B;let eG={style:{transition:"none"}},eZ="data-base-ui-click-trigger",eJ="data-base-ui-swipe-ignore",eQ=`[${eJ}]`,e0={fallbackAxisSide:"end"},e2={clipPath:"inset(50%)",position:"fixed",top:0,left:0},e1=o.createContext(null),e4=eD("portal");function e3(e={}){let{ref:t,container:r,componentProps:n=q.w,elementProps:i}=e,l=(0,eq.f)(),a=o.useContext(e1),s=a?.portalNode,[u,c]=o.useState(null),[f,p]=o.useState(null),h=(0,K.f)(e=>{null!==e&&p(e)}),g=o.useRef(null);(0,Y.f)(()=>{if(null===r){g.current&&(g.current=null,p(null),c(null));return}let e=(r&&((0,G.t)(r)?r:r.current))??s??document.body;if(null==e){g.current&&(g.current=null,p(null),c(null));return}g.current!==e&&(g.current=e,p(null),c(e))},[r,s]);let m=(0,d.f)("div",n,{ref:[t,h],props:[{id:l,[e4]:""},i]}),v=u&&m?eK.createPortal(m,u):null;return{node:f,nodeId:o.isValidElement(m)?m.props.id:void 0,subtree:v}}let e6=o.forwardRef(function(e,t){let{render:r,className:n,style:l,children:a,container:s,portalOwnerRole:u,...c}=e,{node:f,nodeId:d,subtree:p}=e3({container:s,ref:t,componentProps:e,elementProps:c}),h=o.useRef(null),g=o.useRef(null),m=o.useRef(null),v=o.useRef(null),[b,y]=o.useState(null),x=o.useRef(!1),w=b?.modal,S=b?.open,E=!!b&&!b.modal&&b.open&&!!f;o.useEffect(()=>{if(f&&!w)return J((0,Z.f)(f,"focusin",e,!0),(0,Z.f)(f,"focusout",e,!0));function e(e){f&&e.relatedTarget&&eA(e)&&("focusin"===e.type?x.current&&(eI(f),x.current=!1):(eR(f).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),x.current=!0))}},[f,w]),(0,Y.f)(()=>{f&&!0===S&&x.current&&(eI(f),x.current=!1)},[S,f]);let C=o.useMemo(()=>({beforeOutsideRef:h,afterOutsideRef:g,beforeInsideRef:m,afterInsideRef:v,portalNode:f,setFocusManagerState:y}),[f]);return(0,i.jsxs)(o.Fragment,{children:[p,(0,i.jsxs)(e1.Provider,{value:C,children:[E&&f&&(0,i.jsx)(es,{"data-type":"outside",ref:h,onFocus:e=>{if(eA(e,f))m.current?.focus();else{let e=eP(b?b.domReference:null);e?.focus()}}}),E&&f&&(0,i.jsx)("span",{role:u,"aria-owns":d,style:e2}),f&&eK.createPortal(a,f),E&&f&&(0,i.jsx)(es,{"data-type":"outside",ref:g,onFocus:e=>{if(eA(e,f))v.current?.focus();else{let t=ek(b?b.domReference:null);t?.focus(),b?.closeOnFocusOut&&b?.onOpenChange(!1,(0,H.j)(ej.focusOut,e.nativeEvent))}}})]})]})}),e5=o.createContext(null),e8=o.createContext(null),e9=()=>o.useContext(e5)?.id||null,e7=e=>{let t=o.useContext(e8);return e??t};var te=e.i(51816);let tt=[];function tr(){tt=tt.filter(e=>e.deref()?.isConnected)}function tn(e){tr(),e&&"body"!==(0,G.A)(e)&&(tt.push(new WeakRef(e)),tt.length>20&&(tt=tt.slice(-20)))}function ti(){return tr(),tt[tt.length-1]?.deref()}function to(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=eC(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return eE(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function tl(e){let{context:t,children:r,disabled:n=!1,initialFocus:l=!0,returnFocus:a=!0,explicitReturnFocus:s,restoreFocus:u=!1,modal:c=!0,closeOnFocusOut:f=!0,openInteractionType:d="",nextFocusableElement:p,previousFocusableElement:h,beforeContentFocusGuardRef:g,externalTree:m,getInsideElements:v}=e,b=t.useState("open"),y=t.useState("domReferenceElement"),x=t.useState("floatingElement"),{events:w,dataRef:S}=t.context,E=(0,K.f)(()=>S.current.floatingContext?.nodeId),C=(0,ec.J)(y)&&!1===l,R=(0,ee.f)(l),T=(0,ee.f)(a),k=(0,ee.f)(s),P=(0,ee.f)(d),A=(0,ee.f)(b),I=e7(m),M=o.useContext(e1),O=o.useRef(!1),j=o.useRef(!1),N=o.useRef(!1),L=o.useRef(null),D=o.useRef(""),$=o.useRef(""),F=o.useRef(null),z=o.useRef(null),B=(0,Q.A)(F,g,M?.beforeInsideRef),_=(0,Q.A)(z,M?.afterInsideRef),W=(0,et.e)(),U=(0,et.e)(),X=(0,en.z)(),V=null!=M,q=(0,ec.G)(x),el=(0,K.f)((e=q)=>e?eR(e):[]),ea=(0,K.f)(()=>v?.().filter(e=>null!=e)??[]);o.useEffect(()=>{if(n||!c)return;let e=(0,ei.f)(q);return(0,Z.f)(e,"keydown",function(e){"Tab"===e.key&&(0,eu.I)(q,(0,eu.T)((0,ei.f)(q)))&&0===el().length&&!C&&(e.preventDefault(),e.stopPropagation())})},[n,q,c,C,el]),o.useEffect(()=>{if(n||!b)return;let e=(0,ei.f)(q);function t(){N.current=!1}return J((0,Z.f)(e,"pointerdown",function(e){let t=(0,eu.Z)(e),r=ea();N.current=!((0,eu.I)(x,t)||(0,eu.I)(y,t)||(0,eu.I)(M?.portalNode,t)||r.some(e=>e===t||(0,eu.I)(e,t))),$.current=e.pointerType||"keyboard",(0,eu.h)(t,`[${eZ}]`)&&(j.current=!0,U.start(0,()=>{j.current=!1}))},!0),(0,Z.f)(e,"pointerup",t,!0),(0,Z.f)(e,"pointercancel",t,!0),(0,Z.f)(e,"keydown",function(){$.current="keyboard"},!0),t)},[n,x,y,q,b,M,U,ea]),o.useEffect(()=>{if(n||!f)return;let e=(0,ei.f)(q);function r(r){let n=r.relatedTarget,i=r.currentTarget,o=(0,eu.Z)(r);c&&null==n&&null!=o&&(0,eu.I)(x,o)&&tn(o),queueMicrotask(()=>{let l=E(),a=t.context.triggerElements,s=ea(),f=n?.hasAttribute(eD("focus-guard"))&&[F.current,z.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,(0,te.f)(h),(0,te.f)(p)].includes(n),d=!((0,eu.I)(y,n)||(0,eu.I)(x,n)||(0,eu.I)(n,x)||(0,eu.I)(M?.portalNode,n)||s.some(e=>e===n||(0,eu.I)(e,n))||a.hasMatchingElement(e=>(0,eu.I)(e,n))||f||I&&(eM(I.nodesRef.current,l).find(e=>(0,eu.I)(e.context?.elements.floating,n)||(0,eu.I)(e.context?.elements.domReference,n))||eO(I.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,ec.G)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(i===y&&q&&to(q),u&&i!==y&&!(0,em.v)(o)&&(0,eu.T)(e)===e.body){if((0,G.E)(q)&&(q.focus(),"popup"===u))return void X.request(()=>{q.focus()});let e=el(),t=L.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||q;(0,G.E)(r)&&r.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(C||!c)&&n&&d&&!j.current&&(C||n!==ti())&&(O.current=!0,t.setOpen(!1,(0,H.j)(ej.focusOut,r)))})}let i=(0,G.E)(y)?y:null;if(x||i)return J(i&&(0,Z.f)(i,"focusout",r),i&&(0,Z.f)(i,"pointerdown",function(){j.current=!0,U.start(0,()=>{j.current=!1})}),x&&(0,Z.f)(x,"focusin",function(e){let t=(0,eu.Z)(e);eE(t)&&(L.current=t)}),x&&(0,Z.f)(x,"focusout",r),x&&M&&(0,Z.f)(x,"focusout",function(){N.current||(S.current.insideReactTree=!0,W.start(0,()=>{S.current.insideReactTree=!1}))},!0))},[n,y,x,q,c,I,M,t,f,u,el,C,E,S,W,U,X,p,h,ea]),o.useEffect(()=>{if(n||!x||!b)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${eD("portal")}]`)||[]),t=I?eO(I.nodesRef.current,E()):[],r=t.find(e=>(0,ec.J)(e.context?.elements.domReference||null))?.context?.elements.domReference,i=eY([x,...e,F.current,z.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...ea(),r,(0,te.f)(h),(0,te.f)(p),C?y:null].filter(e=>null!=e),{ariaHidden:c||C,mark:!1}),o=eY([x,...e].filter(e=>null!=e));return()=>{o(),i()}},[b,n,y,x,c,M,C,I,E,p,h,ea]),(0,Y.f)(()=>{if(!b||n||!(0,G.E)(q))return;D.current="",$.current="";let e=(0,ei.f)(q),t=(0,eu.T)(e);queueMicrotask(()=>{let r,n=R.current,i="function"==typeof n?n(P.current||""):n;if(void 0===i||!1===i||(0,eu.I)(q,t))return;let o=null,l=()=>(null==o&&(o=el(q)),o[0]||q);r=(r=!0===i||null===i?l():(0,te.f)(i))||l();let a=(0,eu.I)(q,(0,eu.T)(e)),s=S.current.openEvent,u=s?.type==="mousedown"&&ep(s);eF(r,{sync:u,preventScroll:r===q,shouldFocus(){if(!A.current)return!1;if(a)return!0;let t=(0,eu.T)(e);return!(t!==r&&(0,eu.I)(q,t))}})})},[n,b,q,el,R,P,A,S]);let ef=o.useRef(null);(0,Y.f)(()=>{if(n||!q){ef.current=null;return}ef.current&&(ef.current.cancelled=!0,ef.current=null);let e=(0,ei.f)(q),t=(0,eu.T)(e),r=null==P.current;function i(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=$.current,n=(0,eo.f)((0,eu.Z)(t)),D.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||(ep(t)?"keyboard":r||"mouse"):"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),(e.reason===ej.focusOut&&e.triggerElement?.hasAttribute(eD("focus-guard"))||e.reason===eN.triggerHover&&"mouseleave"===e.nativeEvent.type)&&(O.current=!0),e.reason===eL.outsidePress)if(e.nested)O.current=!1;else if(ep(e.nativeEvent)||eh(e.nativeEvent))O.current=!1;else{let e=!1;(0,ei.f)(q).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?O.current=!1:O.current=!0}}return tn(t),w.on("openchange",i),()=>{w.off("openchange",i);let n=(0,eu.T)(e),o=ea(),l=(0,eu.I)(x,n)||o.some(e=>e===n||(0,eu.I)(e,n))||I&&eM(I.nodesRef.current,E(),!1).some(e=>(0,eu.I)(e.context?.elements.floating,n)),a=T.current,s=D.current,u=function(e){let n=T.current,i="function"==typeof n?n(e):n;if(void 0===i||!1===i)return null;null===i&&(i=!0);let o=y?.isConnected?y:null,l=t?.isConnected&&"body"!==(0,G.A)(t)?t:null,a=r?l||o:o||l;return(a||(a=ti()||null),"boolean"==typeof i)?a:(0,te.f)(i)||a||null}(s),c={cancelled:!1};ef.current=c,queueMicrotask(()=>{ef.current===c&&(ef.current=null);let t=u?eE(u)?u:eR(u)[0]||u:null,r=k.current??"boolean"!=typeof a;if(!c.cancelled&&a&&!O.current&&(0,G.E)(t)&&(r||t===n||n===e.body||l)){let e={preventScroll:!0};"keyboard"===s&&(e.focusVisible=!0),t.focus(e)}O.current=!1})}},[n,x,q,T,k,P,w,I,y,E,ea]),(0,Y.f)(()=>{if(!er.engine.webkit||b||!x)return;let e=(0,eu.T)((0,ei.f)(x));(0,G.E)(e)&&(0,ec.Q)(e)&&(0,eu.I)(x,e)&&e.blur()},[b,x]),(0,Y.f)(()=>{if(!n&&M)return M.setFocusManagerState({modal:c,closeOnFocusOut:f,open:b,onOpenChange:t.setOpen,domReference:y}),()=>{M.setFocusManagerState(null)}},[n,M,c,b,t,f,y]),(0,Y.f)(()=>{if(!n&&q)return to(q),()=>{queueMicrotask(tr)}},[n,q]);let ed=!n&&(!c||!C)&&(V||c);return(0,i.jsxs)(o.Fragment,{children:[ed&&(0,i.jsx)(es,{"data-type":"inside",ref:B,onFocus:e=>{if(c){let e=el();eF(e[e.length-1])}else if(M?.portalNode)if(O.current=!1,eA(e,M.portalNode)){let e=ek(y);e?.focus()}else(0,te.f)(h??M.beforeOutsideRef)?.focus()}}),r,ed&&(0,i.jsx)(es,{"data-type":"inside",ref:_,onFocus:e=>{if(c)eF(el()[0]);else if(M?.portalNode)if(f&&(O.current=!0),eA(e,M.portalNode)){let e=eP(y);e?.focus()}else(0,te.f)(p??M.afterOutsideRef)?.focus()}})]})}var ta=E,ts=E,tu=E,tc=E;ta.open,ts.closed,tu.startingStyle,tc.endingStyle;let tf="data-swipe-dismiss",td="data-swiping",tp=o.createContext(void 0);function th(){let e=o.useContext(tp);if(void 0===e)throw Error((0,p.f)(26));return e}var tg=e.i(65280),tm=e.i(41609);let tv=o.createContext(void 0);function tb(e){let t=o.useContext(tv);if(!0!==e&&void 0===t)throw Error((0,p.f)(90));return t}var ty=e.i(41842);function tx(e,t){let r=e+t;return r>=0?t:-Math.sqrt(-r)-e}function tw(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,ty.f)(e,0,1)*t:e:null;let n=e.trim();if(n.endsWith("px")){let e=Number.parseFloat(n);return Number.isFinite(e)?e:null}if(n.endsWith("rem")){let e=Number.parseFloat(n);return Number.isFinite(e)?e*r:null}return null}function tS(e,t){let r=-1,n=1/0;for(let i=0;i<e.length;i+=1){let o=Math.abs(e[i]-t);o<n&&(n=o,r=i)}return r}function tE(){let e=g(),{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i}=tb(),l=e.useState("viewportElement"),[a,s]=o.useState(0),[u,c]=o.useState(16),f=(0,K.f)(()=>{let e=(0,ei.f)(l).documentElement;s(l?l.offsetHeight:e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&c(t)});(0,Y.f)(()=>{if(f(),!l||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(f);return e.observe(l),()=>{e.disconnect()}},[f,l]);let d=o.useMemo(()=>{if(!t||0===t.length||a<=0||i<=0)return[];let e=Math.min(i,a),r=t.map(t=>{let r=tw(t,a,u);if(null===r)return null;let n=(0,ty.f)(r,0,e);return{value:t,height:n,offset:Math.max(0,i-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],o=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];o.some(e=>1>=Math.abs(e-t.height))||(o.push(t.height),n.push(t))}return n.reverse(),n},[i,u,t,a]),p=o.useMemo(()=>{if(null===r)return;let e=d.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(i,a),n=tw(r,a,u);if(null===n)return;let o=(0,ty.f)(n,0,t);return d[tS(d.map(e=>e.height),o)]},[r,i,d,u,a]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:i,viewportHeight:a,resolvedSnapPoints:d,activeSnapPointOffset:p?.offset??null}}let tC=o.createContext(null);var tR=e.i(3622),tT=e.i(37301),tk=e.i(2778),tP=e.i(27824),eN=B,tA=B,tI=B,tM=B,tO=e.i(92201);let tj={tabIndex:-1,[tT.Q]:""};function tN(e,t=!1){let r=(0,eq.f)(),n=null!=e9(),i=(0,tR.f)(()=>e(r,n)).current;return!function(e){let{popupStore:t,treatPopupAsFloatingElement:r=!1,floatingRootContext:n,floatingId:i,nested:o,onOpenChange:l}=e,a=t.useState("open"),s=t.useState("activeTriggerElement"),u=t.useState(r?"popupElement":"positionerElement");t.useSyncedValue("floatingId",i),(0,Y.f)(()=>{let e={open:a,floatingId:i,referenceElement:s,floatingElement:u};(0,G.m)(s)&&(e.domReferenceElement=s),n.state.positionReference===n.state.referenceElement&&(e.positionReference=s),n.update(e)},[a,i,s,u,n]),n.context.onOpenChange=l,n.context.nested=o}({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:r,nested:n,onOpenChange:i.setOpen}),i}function tL({handle:e,store:t}){return(0,Y.f)(()=>e.attachStore(t),[e,t]),null}function tD(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function t$(e,t,r,n=!1){let i=e.preventUnmountingOnClose;t?i=!1:n&&(i=!0);let o=r?.id??null,l=e.activeTriggerId,a=e.activeTriggerElement;return(o||t)&&(l=o,a=r??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:l,activeTriggerElement:a,openedWithoutTrigger:t?null==r:e.openedWithoutTrigger}}function tF(e,t,r,n){let i,l=r.useState("isMountedByTrigger",e),a=(i=o.useRef(null),(0,K.f)(t=>{let n=i.current;if(null!==n){if(n.element===t&&n.store===r&&n.id===e)return;i.current=null;let o=n.store;o.context.triggerElements.getById(n.id)===n.element&&(o.context.triggerElements.delete(n.id),tD(o))}null!==t&&void 0!==e&&(i.current={store:r,id:e,element:t},r.context.triggerElements.add(e,t),tD(r))})),s=(0,K.f)(t=>{let i=r.select("open"),o=r.select("activeTriggerId");if(o===e){let e={activeTriggerElement:t,...i?n:null};r.update(e);return}if(null==o&&i&&!r.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...n};r.update(i)}}),u=(0,K.f)(e=>{a(e),e&&s(e)});return(0,Y.f)(()=>(u(t.current),()=>u(null)),[u,t,r,e]),(0,Y.f)(()=>{if(l){let e={activeTriggerElement:t.current,...n};r.update(e)}},[l,r,t,...Object.values(n)]),{registerTrigger:u,isMountedByThisTrigger:l}}function tz(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,n=o.useRef(null),i=e.useState("open"),l=e.useState("triggerCount"),a=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");(0,Y.f)(()=>{if(!i){n.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0),e.state.openedWithoutTrigger&&e.set("openedWithoutTrigger",!1);return}let t=e.context.triggerElements.size,o={};e.state.triggerCount!==t&&(o.triggerCount=t);let l=e.select("activeTriggerId"),a=null;if(l){let t=e.context.triggerElements.getById(l);if(t)n.current=l,t!==e.state.activeTriggerElement&&(o.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){o.activeTriggerId=t,o.activeTriggerElement=r,n.current=t;break}void 0===o.activeTriggerId&&(n.current===l?a=l:n.current=null)}}else n.current=null;if(!a&&!l&&!e.state.openedWithoutTrigger&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;o.activeTriggerId=e,o.activeTriggerElement=r,n.current=e}}(void 0!==o.triggerCount||void 0!==o.activeTriggerId||void 0!==o.activeTriggerElement)&&e.update(o),a&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){let t=(0,H.j)(tO.f.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,l,a,s,r])}function tH(e,t,r,n){let{mounted:i,transitionStatus:l,forceUnmount:a}=function(e){let{open:t,ref:r,preventUnmountOnClose:n,setPreventUnmountOnClose:i,onUnmount:l,animateInitialOpen:a}=e,s=(0,K.f)(i),{mounted:u,setMounted:c,transitionStatus:f}=(0,tP.f)(t,!1,!1,a),d=!t&&n;(0,Y.f)(()=>{t&&s(!1)},[t,s]);let p=o.useRef(u),h=o.useRef(!1),g=(0,tk.f)(),m=()=>{p.current=!1,c(!1),l()};(0,Y.f)(()=>{p.current=u,h.current&&(h.current=!1,!t&&u&&m())});let v=(0,K.f)(()=>{if(p.current){if(t){h.current=!0,g();return}m()}});return(0,tg.f)({enabled:u&&!t&&!d,open:t,ref:r,onComplete(){t||v()}}),{mounted:u,transitionStatus:f,preventUnmountingOnClose:d,forceUnmount:v}}({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:e=>t.set("preventUnmountingOnClose",e),animateInitialOpen:n,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)}});return(0,tR.f)(()=>(t.set("mounted",i),null)),t.useSyncedValues({mounted:i,transitionStatus:l}),{forceUnmount:a,transitionStatus:l}}function tB(e,t){e.useSyncedValues(t),(0,Y.f)(()=>()=>{e.update({activeTriggerProps:q.w,inactiveTriggerProps:q.w,popupProps:q.w})},[e])}let t_=!1,tW={...M,expanded:e=>e?{"data-expanded":""}:null,nestedDrawerOpen:e=>e?{"data-nested-drawer-open":""}:null,nestedDrawerSwiping:e=>e?{"data-nested-drawer-swiping":""}:null,swipeDirection:e=>({"data-swipe-direction":e}),swiping:e=>e?{[td]:""}:null},tU=o.forwardRef(function(e,t){let r,{render:n,className:l,style:a,finalFocus:s,initialFocus:u,...c}=e,f=g(),p=f.context.popupRef,{swipeDirection:h,frontmostHeight:m,hasNestedDrawer:v,nestedSwiping:b,nestedSwipeProgressStore:y,onPopupHeightChange:x,notifyParentFrontmostHeight:w,notifyParentHasNestedDrawer:S}=tb(),E=f.useState("descriptionElementId"),C=f.useState("disablePointerDismissal"),R=f.useState("floatingRootContext"),T=f.useState("popupProps"),k=f.useState("modal"),P=f.useState("mounted"),A=f.useState("nested"),I=f.useState("nestedOpenDrawerCount"),M=f.useState("transitionStatus"),F=f.useState("open"),z=f.useState("openMethod"),H=f.useState("titleElementId"),B=f.useState("role"),_=R.useState("floatingId"),W=c.id??_,U=o.useContext(tC);th();let{snapPoints:X,activeSnapPoint:V,activeSnapPointOffset:G}=tE(),Z=I>0,J=U?.swiping??!1,Q=U?.swipeStrength??null,[ee,et]=o.useState(0),er=o.useRef(0),en=(0,K.f)(()=>{let e=p.current;if(!e)return;let t=e.offsetHeight;if(!(er.current>0)||!(m>er.current)||!(t>er.current)){if(er.current>0&&v){let e=er.current;et(e),x(e);return}t!==er.current&&(er.current=t,et(t),x(t))}});(0,Y.f)(()=>{if(!P){er.current=0,et(0),x(0);return}let e=p.current;if(!e||(t_||("u">typeof CSS&&"registerProperty"in CSS&&([j,N,L].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:$,initialValue:"0"},{name:D,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:t})}catch{}})),t_=!0),en(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(en);return t.observe(e),()=>{t.disconnect()}},[en,P,Z,x,p]),(0,Y.f)(()=>{let e=()=>{let e=p.current;if(!e)return;let t=y.getSnapshot();t>0?e.style.setProperty($,`${t}`):e.style.setProperty($,"0")};e();let t=y.subscribe(e),r=p.current;return()=>{t(),r&&r.style.setProperty($,"0")}},[y,p]),(0,Y.f)(()=>{if(F)return w?.(m),()=>{w?.(0)}},[m,F,w]),(0,Y.f)(()=>{if(S)return S(F||"ending"===M),()=>{S(!1)}},[S,F,M]),(0,tg.f)({open:F,ref:p,onComplete(){F&&f.context.onOpenChangeComplete?.(!0)}});let ei=void 0===u?p:u,eo=f.useStateSetter("popupElement"),el=!v&&"ending"!==M;ee&&!el&&(r=`${ee}px`);let ea=X&&X.length>0&&("down"===h||"up"===h),es=null;ea&&null!==G&&(es="up"===h?-G:G);let eu=U?U.getDragStyles():q.w;if(ea&&"down"===h){let e=Number.parseFloat(String(eu[N]));eu=J&&Number.isFinite(e)?{...eu,transform:void 0,[N]:`${tx(G??0,e)}px`}:{...eu,transform:void 0}}let ec=(0,d.f)("div",e,{state:{open:F,nested:A,transitionStatus:M,expanded:1===V,nestedDrawerOpen:Z,nestedDrawerSwiping:b,swipeDirection:h,swiping:J},props:[T,{id:W,"aria-labelledby":H,"aria-describedby":E,role:B,...tj,hidden:!P,onKeyDown(e){tm.J.has(e.key)&&e.stopPropagation()},style:{...eu,[$]:"0","--nested-drawers":I,[O]:r,[L]:"number"==typeof es?`${es}px`:"0px","--drawer-frontmost-height":m?`${m}px`:void 0,[D]:"number"==typeof Q&&Number.isFinite(Q)&&Q>0?`${Q}`:"1"}},c],ref:[t,p,eo],stateAttributesMapping:tW});return(0,i.jsx)(tl,{context:R,openInteractionType:z,disabled:!P,closeOnFocusOut:!C,initialFocus:ei,returnFocus:s,modal:!1!==k,restoreFocus:"popup",children:ec})});var tX=e.i(13574);let tV=o.forwardRef(function(e,t){let r,{cutout:n,...o}=e;if(n){let e=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})}),tY=o.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e,o=g(),l=o.useState("mounted"),a=o.useState("modal"),s=o.useState("open");return l||r?(0,i.jsx)(tp.Provider,{value:r,children:(0,i.jsxs)(e6,{ref:t,...n,children:[l&&!0===a&&(0,i.jsx)(tV,{ref:o.context.internalBackdropRef,inert:(0,tX.f)(!s)}),e.children]})}):null});var tK=e.i(51052),ef=er,tq=B,er=er,ef=er;let tG={},tZ={},tJ="";function tQ(e,t){return(0,G.B)(e)?e:t}function t0(e,t,r){return/hidden|clip/.test(e.getComputedStyle(tQ(t,r)).overflowY)}let t2=new class{lockCount=0;restore=null;timeoutLock=et.U.create();timeoutUnlock=et.U.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,r,n;if(0===this.lockCount||null!==this.restore)return;let i=(0,ei.f)(e),o=i.documentElement,l=i.body,a=(0,eo.f)(o);if(t0(a,o,l)){let t=new a.MutationObserver(()=>{t0(a,o,l)||(t.disconnect(),this.restore=null,this.lock(e))}),r={attributes:!0};t.observe(o,r),t.observe(l,r),this.restore=()=>t.disconnect();return}let s=ef.os.ios||!function(e){if("u"<typeof document)return!1;let t=(0,ei.f)(e);return(0,eo.f)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=s?(n={overflowY:(r=tQ((t=(0,ei.f)(e)).documentElement,t.body)).style.overflowY,overflowX:r.style.overflowX},Object.assign(r.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(r.style,n)}):function(e){let t=(0,ei.f)(e),r=t.documentElement,n=t.body,i=(0,eo.f)(r),o=0,l=0,a=!1,s=en.$.create();if(er.engine.webkit&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=i.getComputedStyle(r),s=i.getComputedStyle(n),u=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=r.scrollTop,l=r.scrollLeft,tG={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},tJ=r.style.scrollBehavior,tZ={position:n.style.position,height:n.style.height,width:n.style.width,boxSizing:n.style.boxSizing,overflowY:n.style.overflowY,overflowX:n.style.overflowX,scrollBehavior:n.style.scrollBehavior};let c=r.scrollHeight>r.clientHeight,f=r.scrollWidth>r.clientWidth,d="scroll"===t.overflowY||"scroll"===s.overflowY,p="scroll"===t.overflowX||"scroll"===s.overflowX,h=Math.max(0,i.innerWidth-n.clientWidth),g=Math.max(0,i.innerHeight-n.clientHeight),m=parseFloat(s.marginTop)+parseFloat(s.marginBottom),v=parseFloat(s.marginLeft)+parseFloat(s.marginRight),b=tQ(r,n);if(a=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=(0,ei.f)(e),r=t.documentElement,n=tQ(r,t.body),i=n.style.overflowY,o=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",n.style.overflowY="scroll";let l=n.offsetWidth;n.style.overflowY="hidden";let a=n.offsetWidth;return n.style.overflowY=i,r.style.scrollbarGutter=o,l===a}(e)){r.style.scrollbarGutter=u,b.style.overflowY="hidden",b.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(c||d)&&(r.style.overflowY="scroll"),(f||p)&&(r.style.overflowX="scroll"),Object.assign(n.style,{position:"relative",height:m||g?`calc(100dvh - ${m+g}px)`:"100dvh",width:v||h?`calc(100vw - ${v+h}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),n.scrollTop=o,n.scrollLeft=l,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function c(){Object.assign(r.style,tG),Object.assign(n.style,tZ),a||(r.scrollTop=o,r.scrollLeft=l,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=tJ)}u();let f=(0,Z.f)(i,"resize",function(){c(),s.request(u)});return()=>{s.cancel(),c(),"function"==typeof i.removeEventListener&&f()}}(e)}};var er=er,tI=B,tM=B,eL=B;function t1(){return!1}function t4(e,t={}){let{enabled:r=!0,escapeKey:n=!0,outsidePress:i=!0,outsidePressEvent:l="sloppy",referencePress:a=t1,bubbles:s,externalTree:u}=t,c=e.useState("open"),f=e.useState("floatingElement"),{dataRef:d,events:p}=e.context,h=e7(u),g=(0,K.f)("function"==typeof i?i:()=>!1),m="function"==typeof i?g:i,v=!1!==m,b=(0,K.f)(()=>l),{escapeKey:y,outsidePress:x}={escapeKey:"boolean"==typeof s?s:s?.escapeKey??!1,outsidePress:"boolean"==typeof s?s:s?.outsidePress??!0},w=o.useRef(!1),S=o.useRef(!1),E=o.useRef(!1),C=o.useRef(!1),R=o.useRef(!1),T=o.useRef(""),k=o.useRef(null),P=(0,et.e)(),A=(0,et.e)(),I=(0,et.e)(),M=(0,K.f)(()=>{A.clear(),d.current.insideReactTree=!1}),O=(0,K.f)(e=>{let t=d.current.floatingContext?.nodeId;return(h?eM(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=(0,K.f)(t=>(0,ec.V)(t,e.select("floatingElement"))||(0,ec.V)(t,e.select("domReferenceElement"))),N=(0,K.f)(t=>{a()&&e.setOpen(!1,(0,H.j)(tI.triggerPress,t.nativeEvent))}),L=(0,K.f)(t=>{if(!c||!r||!n||"Escape"!==t.key)return;let i="nativeEvent"in t?t.nativeEvent:t;if(R.current||i.isComposing||!y&&O("__escapeKeyBubbles"))return;let o=(0,H.j)(tM.escapeKey,i);e.setOpen(!1,o),o.isCanceled||t.preventDefault(),y||o.isPropagationAllowed||t.stopPropagation()}),D=(0,K.f)(()=>{d.current.insideReactTree=!0,A.start(0,M)}),$=(0,K.f)(t=>{if(!c||!r||0!==t.button)return;let n=(0,eu.Z)(t.nativeEvent);(0,eu.I)(e.select("floatingElement"),n)&&(w.current||(w.current=!0,S.current=!1))}),F=(0,K.f)(e=>{!c||!r||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(S.current=!0)});o.useEffect(()=>{function e(e){e.open||(C.current=!1)}return p.on("openchange",e),()=>{p.off("openchange",e)}},[p]),o.useEffect(()=>M,[M]),o.useEffect(()=>{if(!c||!r)return c||(C.current=!1,R.current=!1,T.current="",k.current=null),M;d.current.__escapeKeyBubbles=y,d.current.__outsidePressBubbles=x;let t=new et.U,i=(0,ei.f)(f);function o(){E.current=!0,t.start(0,()=>{E.current=!1})}function l(){w.current=!1,S.current=!1}function a(){let e=T.current,t=b(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function s(e){let t=d.current.floatingContext?.nodeId,r=h&&eM(h.nodesRef.current,t).some(t=>(0,ec.V)(e,t.context?.elements.floating));return j(e)||r}function u(r){let n;if("intentional"===(n=a())&&"click"!==r.type||"sloppy"===n&&"click"===r.type){"click"===r.type||j(r)||(t.clear(),E.current=!1),M();return}if(d.current.insideReactTree)return void M();let i=(0,eu.Z)(r),o=`[${eD("inert")}]`,l=(0,G.m)(i)?i.getRootNode():null,u=Array.from(((0,G.R)(l)?l:(0,ei.f)(e.select("floatingElement"))).querySelectorAll(o)),c=e.context.triggerElements;if(i&&(c.hasElement(i)||c.hasMatchingElement(e=>(0,eu.I)(e,i))))return;let f=(0,G.m)(i)?i:null;for(;f&&!(0,G.Z)(f);){let e=(0,G.J)(f);if((0,G.Z)(e)||!(0,G.m)(e))break;f=e}if(!(u.length&&(0,G.m)(i)&&!(0,ec.X)(i)&&!(0,eu.I)(i,e.select("floatingElement"))&&u.every(e=>!(0,eu.I)(f,e)))){if((0,G.E)(i)&&!("touches"in r)){let e=(0,G.Z)(i),t=(0,G.X)(i),n=/auto|scroll/,o=e||n.test(t.overflowX),l=e||n.test(t.overflowY),a=o&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,s=l&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,u="rtl"===t.direction,c=s&&(u?r.offsetX<=i.offsetWidth-i.clientWidth:r.offsetX>i.clientWidth),f=a&&r.offsetY>i.clientHeight;if(c||f)return}if(!s(r)){if("intentional"===a()){if(0!==r.detail&&!ep(r)&&!C.current)return;if(E.current){t.clear(),E.current=!1;return}}"function"==typeof m&&!m(r)||O("__outsidePressBubbles")||(e.setOpen(!1,(0,H.j)(eL.outsidePress,r)),M())}}}function p(t){if("sloppy"!==a()||!e.select("open")||!r||j(t))return;let n=t.touches[0];n&&(k.current={startTime:Date.now(),startX:n.clientX,startY:n.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},P.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function g(e,t){let r=(0,eu.Z)(e);if(!r)return;let n=(0,Z.f)(r,e.type,()=>{t(e),n()})}function A(t){P.clear(),"pointerdown"===t.type&&(0===t.button&&(C.current=!0),T.current=t.pointerType),("mousedown"!==t.type||!k.current||k.current.dismissOnMouseDown)&&g(t,t=>{if("pointerdown"===t.type)"sloppy"!==a()||"touch"===t.pointerType||!e.select("open")||!r||j(t)||u(t);else u(t)})}function N(e){if("pointercancel"===e.type&&(C.current=!1),!w.current)return;let r=S.current;if(l(),"intentional"===a()){if("pointercancel"===e.type){r&&o();return}s(e)||(r?o():("function"!=typeof m||m(e))&&(t.clear(),E.current=!0,M()))}}function D(e){if("sloppy"!==a()||!k.current||j(e))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-k.current.startX),n=Math.abs(t.clientY-k.current.startY),i=Math.sqrt(r*r+n*n);i>5&&(k.current.dismissOnTouchEnd=!0),i>10&&(u(e),P.clear(),k.current=null)}function $(e){"sloppy"!==a()||!k.current||j(e)||(k.current.dismissOnTouchEnd&&u(e),P.clear(),k.current=null)}let F=J(n&&J((0,Z.f)(i,"keydown",L),(0,Z.f)(i,"compositionstart",function(){I.clear(),R.current=!0}),(0,Z.f)(i,"compositionend",function(){R.current=!0,I.start(5*!!er.engine.webkit,()=>{R.current=!1})})),v&&J((0,Z.f)(i,"click",A,!0),(0,Z.f)(i,"pointerdown",A,!0),(0,Z.f)(i,"pointerup",N,!0),(0,Z.f)(i,"pointercancel",N,!0),(0,Z.f)(i,"mousedown",A,!0),(0,Z.f)(i,"mouseup",N,!0),(0,Z.f)(i,"touchstart",function(e){T.current="touch",g(e,p)},{capture:!0,passive:!0}),(0,Z.f)(i,"touchmove",function(e){g(e,D)},{capture:!0,passive:!0}),(0,Z.f)(i,"touchend",function(e){g(e,$)},{capture:!0,passive:!0})));return()=>{F(),t.clear(),l(),E.current=!1}},[d,f,n,v,m,c,r,y,x,L,M,b,O,j,h,e,P,I]);let z=o.useMemo(()=>({onKeyDown:L,onPointerDown:N,onClick:N}),[L,N]),B=o.useMemo(()=>({onKeyDown:L,onPointerDown:F,onMouseDown:F,onClickCapture:D,onMouseDownCapture(e){D(),$(e)},onPointerDownCapture(e){D(),$(e)},onMouseUpCapture:D,onTouchEndCapture:D,onTouchMoveCapture:D}),[L,D,$,F]);return o.useMemo(()=>r?{reference:z,floating:B,trigger:z}:{},[r,z,B])}function t3({store:e,parentContext:t,isDrawer:r}){let n=e.useState("open"),i=e.useState("mounted"),l=e.useState("disablePointerDismissal"),a=e.useState("modal"),s=e.useState("popupElement"),u=e.useState("floatingRootContext"),[c,f]=o.useState(0),[d,p]=o.useState(0),h=0===c,g=t4(u,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===a?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let r=(0,eu.Z)(t);if(h&&!l){if(a){let t=e.context.internalBackdropRef.current,n=e.context.backdropRef.current;return!t&&!n||t===r||n===r||(0,eu.I)(r,s)&&!r?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:h});return!function(e=!0,t=null){(0,Y.f)(()=>{if(e)return t2.acquire(t)},[e,t])}(n&&!0===a,s),e.useContextCallback("onNestedDialogOpen",(t,r)=>{(e.select("open")||e.select("mounted"))&&(f(t),p(r))}),(0,Y.f)(()=>{n||i||(f(0),p(0))},[n,i]),(0,Y.f)(()=>(t?.onNestedDialogOpen&&n&&t.onNestedDialogOpen(c+1,d+ +!!r),()=>{t?.onNestedDialogOpen&&n&&t.onNestedDialogOpen(0,0)}),[r,n,c,d,t]),tB(e,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:c,nestedOpenDrawerCount:d}),null}var t6=e.i(5245),t5=e.i(77205),t8=e.i(74636);let t9=[];function t7(e){let r=(r,n)=>{let i,o=(0,tR.f)(rt).current;try{for(let e of(t=o,t9))e.before(o);for(let t of(i=e(r,n),t9))t.after(o);o.didInitialize=!0}finally{t=void 0}return i};return r.displayName=e.displayName||e.name,r}function re(e){return o.forwardRef(t7(e))}function rt(){return{didInitialize:!1}}let rr=(0,t8.f)(19)?function(e,r,n,i,l){let a,s=t;if(!s){let t;return t=o.useCallback(()=>r(e.getSnapshot(),n,i,l),[e,r,n,i,l]),(0,t6.useSyncExternalStore)(e.subscribe,t,t)}let u=s.syncIndex;return s.syncIndex+=1,s.didInitialize?(a=s.syncHooks[u]).store===e&&a.selector===r&&Object.is(a.a1,n)&&Object.is(a.a2,i)&&Object.is(a.a3,l)||(a.store!==e&&(s.didChangeStore=!0),a.store=e,a.selector=r,a.a1=n,a.a2=i,a.a3=l,a.value=r(e.getSnapshot(),n,i,l)):(a={store:e,selector:r,a1:n,a2:i,a3:l,value:r(e.getSnapshot(),n,i,l)},s.syncHooks.push(a)),a.value}:function(e,t,r,n,i){return(0,t5.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,n,i))};t9.push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],i=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,i)||(t=!0,n.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,t6.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class rn{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,r,n){return rr(this,e,t,r,n)}}class ri extends rn{constructor(e,t={},r){super(e),this.context=t,this.selectors=r}useSyncedValue(e,t){o.useDebugValue(e);let r=this;(0,Y.f)(()=>{r.state[e]!==t&&r.set(e,t)},[r,e,t])}useSyncedValueWithCleanup(e,t){let r=this;(0,Y.f)(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this,r=Object.values(e);(0,Y.f)(()=>{t.update(e)},[t,...r])}useControlledProp(e,t){o.useDebugValue(e);let r=this,n=void 0!==t;(0,Y.f)(()=>{n&&!Object.is(r.state[e],t)&&r.setState({...r.state,[e]:t})},[r,e,t,n])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}useState(e,t,r,n){return o.useDebugValue(e),rr(this,this.selectors[e],t,r,n)}useContextCallback(e,t){o.useDebugValue(e);let r=(0,K.f)(t??q.x);this.context[e]=r}useStateSetter(e){let t=o.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let i=r(e);if(!Object.is(n,i)){let e=n;n=i,t(i,e,this)}})}}let ro={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class rl extends ri{constructor(e){let t,{syncOnly:r,nested:n,onOpenChange:i,triggerElements:o,...l}=e;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:(t=new Map,{emit(e,r){t.get(e)?.forEach(e=>e(r))},on(e,r){t.has(e)||t.set(e,new Set),t.get(e).add(r)},off(e,r){t.get(e)?.delete(r)}}),nested:n,triggerElements:o},ro),this.syncOnly=r}syncOpenEvent=(e,t)=>{let r;e&&this.state.open&&(null==t||"click"!==(r=t.type)&&"mousedown"!==r&&"keydown"!==r&&"keyup"!==r)||(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function ra(e,t,r=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new rl({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:r,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:q.w,inactiveTriggerProps:q.w,popupProps:q.w}}let rs=e=>e.triggerIdProp??e.activeTriggerId,ru=e=>e.openProp??e.open,rc=e=>(e.popupElement?.id??e.floatingId)||void 0;function rf(e,t){return void 0!==t&&ru(e)&&rs(e)===t}let rd={open:ru,mounted:e=>e.mounted,transitionStatus:e=>ru(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:rs,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:rc,isTriggerActive:(e,t)=>void 0!==t&&rs(e)===t,isOpenedByTrigger:(e,t)=>rf(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&rs(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>rf(e,t)||void 0!==t&&ru(e)&&null==rs(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?rc(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};class rp{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}let rh={...rd,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class rg extends ri{constructor(e,t,r){var n;let i=new rp;super(function(e,t,r,n=!1){return{...ra(t,r,n),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,i,t,r),(n=i,{popupRef:o.createRef(),backdropRef:o.createRef(),internalBackdropRef:o.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0}),rh)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(t$(this.state,e,t.trigger)))}}var rm=B;let rv=o.createContext(void 0);function rb(){return o.useContext(rv)}function ry(){let e=0,t=new Set;return{getSnapshot:()=>e,set(r){let n=Number.isFinite(r)?r:0;n!==e&&(e=n,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function rx(){let e=rb(),t=g(!1),r=e?.setDrawerOpen,n=e?.removeDrawer,i=t.useState("open"),l=t.useState("nestedOpenDialogCount"),a=t.useState("popupElement"),s=0===l;return(0,Y.f)(()=>{if(n)return()=>{n(t)}},[n,t]),(0,Y.f)(()=>{r?.(t,i)},[i,r,t]),o.useEffect(()=>{if(!i||!s||!ef.os.android)return;let e=(0,eo.f)(a).CloseWatcher;if(!e)return;let r=new e,n=(0,Z.f)(r,"cancel",function(e){if(!t.select("open"))return;let r=(0,H.j)(tq.closeWatcher,e);e.cancelable||(r.cancel=q.x),t.setOpen(!1,r),r.isCanceled&&e.preventDefault()});return()=>{n(),r.destroy()}},[t,s,i,a]),null}let rw=o.forwardRef(function(e,t){let{render:r,className:n,style:i,id:o,...l}=e,a=g(),s=(0,X.f)(o);return a.useSyncedValueWithCleanup("titleElementId",s),(0,d.f)("h2",e,{ref:t,props:[{id:s},l]})});function rS(e){let t=o.useCallback(t=>void 0===e?q.x:e.subscribeStore(t),[e]),r=o.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,t6.useSyncExternalStore)(t,r,()=>e?.serverStore)}var tI=B,ef=er;let rE=re(function(e,t){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:a=!0,id:s,payload:u,handle:c,...f}=e,h=g(!0),m=rS(c)??h;if(!m)throw Error((0,p.f)(79));let v=(0,X.f)(s),b=m.useState("floatingRootContext"),y=m.useState("isOpenedByTrigger",v),x=m.useState("triggerPopupId",v),w=o.useRef(null),{registerTrigger:S,isMountedByThisTrigger:E}=tF(v,w,m,{payload:u}),{getButtonProps:C,buttonRef:R}=(0,z.f)({disabled:l,native:a}),T=function(e,t={}){let{enabled:r=!0,event:n="click",toggle:i=!0,ignoreMouse:l=!1,stickIfOpen:a=!0,touchOpenDelay:s=0,reason:u=tI.triggerPress}=t,c=e.context.dataRef,f=o.useRef(void 0),d=(0,en.z)(),p=(0,et.e)(),h=o.useMemo(()=>{function t(t,r,n,i){let o=(0,H.j)(u,r,n);t&&"touch"===i&&s>0?p.start(s,()=>{e.setOpen(!0,o)}):e.setOpen(t,o)}function r(t,r,n){let o=c.current.openEvent,l=e.select("domReferenceElement")!==r;return!!t&&!!l||!t||!i||!!(o&&("function"==typeof a?a():a))&&!n(o.type)}return{onPointerDown(e){f.current=eg(e.pointerType,!0)&&eh(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(i){let o=f.current,a=i.nativeEvent,s=e.select("open");if(0!==i.button||"click"===n||eg(o,!0)&&l)return;let u=r(s,i.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,eu.Z)(a),p=(0,ec.Q)(c);if(p||"virtual"===o)return void t(u,a,p?c:i.currentTarget,o);let h=i.currentTarget;d.request(()=>{t(u,a,h,o)})},onClick(i){if("mousedown-only"===n)return;let o=f.current;if("mousedown"===n&&o){f.current=void 0;return}eg(o,!0)&&l||t(r(e.select("open"),i.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),i.nativeEvent,i.currentTarget,o)},onKeyDown(){f.current=void 0}}},[c,n,l,u,e,a,i,d,p,s]);return o.useMemo(()=>r?{reference:h}:q.w,[r,h])}(b),k=function(e,t){var r;let n,i,{onClick:l,onPointerDown:a}=(r=(0,K.f)((r,n)=>{("function"==typeof e?e():e)||t(n||(ef.os.ios?"touch":""))}),n=o.useRef(""),i=o.useCallback(e=>{e.defaultPrevented||(n.current=e.pointerType,r(e,e.pointerType))},[r]),{onClick:o.useCallback(e=>{0===e.detail?r(e,"keyboard"):("pointerType"in e?r(e,e.pointerType):r(e,n.current),n.current="")},[r]),onPointerDown:i});return o.useMemo(()=>({onClick:l,onPointerDown:a}),[l,a])}(()=>m.select("open"),e=>{m.set("openMethod",e)}),P=m.useState("triggerProps",E);return(0,d.f)("button",e,{state:{disabled:l,open:y},ref:[R,t,S,w],props:[T.reference,P,k,{[eZ]:"",id:v,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":x},f,C],stateAttributesMapping:A})});var ta=E,ts=E,tu=E,tc=E;ta.open,ts.closed,tu.startingStyle,tc.endingStyle;let rC={...I,...m.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null},rR=o.forwardRef(function(e,t){let{render:r,className:n,style:i,children:o,...l}=e,a=th(),s=g(),u=s.useState("open"),c=s.useState("nested"),f=s.useState("transitionStatus"),p=s.useState("nestedOpenDialogCount"),h=s.useState("mounted"),m=s.useStateSetter("viewportElement");return(0,d.f)("div",e,{enabled:a||h,state:{open:u,nested:c,transitionStatus:f,nestedDialogOpen:p>0},ref:[t,m],stateAttributesMapping:rC,props:[{role:"presentation",hidden:!h,style:{pointerEvents:u?void 0:"none"},children:o},l]})});var ta=E,ts=E,tu=E,tc=E;function rT(e,t,r=!1){return"vertical"===t?function(e,t=!1){let{overflowY:r}=(0,G.X)(e);return("auto"===r||"scroll"===r)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}(e,r):function(e,t=!1){let{overflowX:r}=(0,G.X)(e);return("auto"===r||"scroll"===r)&&(t?e.clientWidth>0:e.scrollWidth>e.clientWidth)}(e,r)}function rk(e,t,r,n=!1){let i=e;for(;(0,G.m)(i)&&i!==t&&!(0,G.Z)(i);){if((0,G.E)(i)&&rT(i,r,n))return i;i=(0,G.J)(i)}return null}function rP(e,t,r="vertical",n=!1){return rk(e,t,r,n)??(rT(t,r,n)?t:null)}function rA(e,t,r){return"function"==typeof e?.elementFromPoint?e.elementFromPoint(t,r):null}function rI(e,t,r){switch(e){case"up":return-r;case"down":return r;case"left":return-t;case"right":return t;default:return 0}}function rM(e){return Number.isFinite(e)&&e>0?e:null}function rO(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function rj(e,t,r){let n=e[r];if("function"==typeof n)try{n.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}ta.open,ts.closed,tu.startingStyle,tc.endingStyle;var rN=B,rL=e.i(67503);let rD=o.createContext(void 0),r$=`[${W}]`,rF={horizontal:`[${eJ}="x"]`,vertical:`[${eJ}="y"]`},rz=o.forwardRef(function(e,t){let{render:r,className:n,style:a,children:s,...u}=e,c=g(),f=c.context.popupRef,d=c.context.backdropRef,{swipeDirection:p,notifyParentSwipingChange:h,notifyParentSwipeProgressChange:m,frontmostHeight:v,snapToSequentialPoints:b,swipeAreaActiveRef:y}=tb(),x=rb(),{snapPoints:w,resolvedSnapPoints:S,activeSnapPoint:E,activeSnapPointOffset:C,setActiveSnapPoint:R,popupHeight:T}=tE(),k=c.useState("open"),P=c.useState("mounted"),A=c.useState("nested"),I=c.useState("nestedOpenDrawerCount"),M=c.useState("viewportElement"),L=c.useState("popupElement"),D=x?.visualStateStore,F=I>0,z="left"===p||"right"===p?"horizontal":"vertical",B="vertical"===z,_=B?"horizontal":"vertical",[W,U]=o.useState(null),X=o.useRef(void 0),V=o.useRef(null),q=(0,en.z)(),J=o.useRef(!1),Q=o.useRef(!1),ee=o.useRef(""),et=o.useRef(!1),er=o.useRef(!1),el=o.useRef(null),ea=o.useContext(rD),es=o.useMemo(()=>{if(!w||w.length<2||S.length<2||"down"!==p&&"up"!==p)return null;let e=S.map(e=>e.offset).sort((e,t)=>e-t),t=e[0];return{minOffset:t,range:e[1]-t}},[S,w,p]),ec=o.useMemo(()=>es&&null!==C?(0,ty.f)((C-es.minOffset)/es.range,0,1):null,[C,es]),ef=o.useMemo(()=>w&&w.length>0&&("down"===p||"up"===p)?"down"===p?["down","up"]:["up","down"]:[p],[w,p]),ed=(0,K.f)(e=>{f.current?.toggleAttribute(tf,e),d.current?.toggleAttribute(tf,e)}),ep=(0,K.f)(()=>{ed(!1),f.current?.removeAttribute(rL.f.endingStyle),U(null)}),eh=(0,K.f)(()=>{Q.current&&(Q.current=!1,h?.(!1))}),eg=(0,K.f)((e,t,r)=>{let n=k&&!A&&t,i=n?e:0,o=k&&t?e:0;r&&m&&(m(o),o<=0&&eh()),D?.set({swipeProgress:i,frontmostHeight:i>0?v:0});let l=d.current;if(!l)return;let a=n&&i>0;l.style.setProperty($,a?`${i}`:"0"),a&&v>0?l.style.setProperty(O,`${v}px`):l.style.removeProperty(O)}),em=function(e){let{enabled:t,directions:r,elementRef:n,movementCssVars:i,canStart:l,ignoreSelectorWhenTouch:a=!0,ignoreScrollableAncestors:s=!1,swipeThreshold:u,onDismiss:c,onProgress:f,onCancel:d,onSwipeStart:p,onRelease:h,onSwipingChange:g,trackDrag:m=!0}=e,v=1===r.length?r[0]:void 0,b=Math.max(0,"number"==typeof u?u:40),y=r.includes("left"),x=r.includes("right"),w=r.includes("up"),S=r.includes("down"),E=y||x,C=w||S,R=E?"horizontal":"vertical",[T,k]=o.useState(void 0),[P,A]=o.useState(!1),[I,M]=o.useState(!1),O=o.useRef({x:0,y:0}),j=o.useRef({x:0,y:0}),N=o.useRef(null),L=o.useRef({x:0,y:0,scale:1}),D=o.useRef(void 0),$=o.useRef(0),F=o.useRef(!1),z=o.useRef({x:0,y:0}),H=o.useRef(!1),B=o.useRef(!1),_=o.useRef(null),W=o.useRef(!1),U=o.useRef(!1),X=o.useRef({width:0,height:0}),V=o.useRef(0),Y=o.useRef(b),q=o.useRef(null),G=o.useRef(null),Z=o.useRef(null),J=o.useRef(!1),Q=o.useRef({x:0,y:0}),ee=o.useRef(null),et=o.useRef(!1),er=o.useRef(null),en=(0,K.f)(e=>{et.current!==e&&(et.current=e,A(e),g?.(e))});function el(e){if(!e)return;let t=n.current,r=q.current;t&&r&&(Y.current=Math.max(0,r({element:t,direction:e})))}let ea=(0,K.f)((e,t)=>{let r=Number.isFinite(e)?(0,ty.f)(e,0,1):0,n=r!==V.current,i=!1;if(t){let e=ee.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(n||i)&&(V.current=r,t?ee.current=t:n&&(ee.current=null),f?.(r,t))}),es=(0,K.f)(e=>{let t=n.current;if(!m||!t){e||(er.current=null);return}let r=t.style,o=er.current;e?(o||(er.current=[r.transition,r.transform]),r.transition="none"):o&&([r.transition,r.transform]=o,er.current=null);let l=j.current,a=L.current,s=l.x-a.x,u=l.y-a.y;e&&(r.transform=rO(l,a.scale)),r.setProperty(i.x,`${s}px`),r.setProperty(i.y,`${u}px`)});function ec(e,t){if(null===t)return;let r=Z.current;if(r&&t>r.time){let n=1>Math.abs(e.x-r.x)&&1>Math.abs(e.y-r.y),i=n&&!J.current;if(J.current=n,i)return;let o=Math.max(t-r.time,4);Q.current={x:(e.x-r.x)/o,y:(e.y-r.y)/o}}Z.current={x:e.x,y:e.y,time:t}}let ef=o.useCallback(()=>{k(void 0),en(!1),M(!1),ea(0),Y.current=b,q.current=null,O.current={x:0,y:0},j.current={x:0,y:0},L.current={x:0,y:0,scale:1},D.current=void 0,$.current=0,F.current=!1,z.current={x:0,y:0},H.current=!1,N.current=null,B.current=!1,_.current=null,W.current=!1,U.current=!1,X.current={width:0,height:0},G.current=null,Z.current=null,J.current=!1,Q.current={x:0,y:0},ee.current=null,es(!1)},[en,b,es,ea]);function ed(e){if("touches"in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function ep(e){return"touches"in e||"touch"===e.pointerType}function eh(e,t){return rA(n.current?.getRootNode(),e.x,e.y)??(0,eu.Z)(t)}function eg(e,t){let r,n;return r=rP(e,t,R),n=(0,ei.f)(r),r===n.body||r===n.documentElement?null:r}function em(e,t,r){W.current=!1;let i=ep(e),o=eh(t,e.nativeEvent),l=(0,ei.f)(n.current).body,c=i&&l?eg(o,l):null,f=r?.ignoreScrollableTarget??!1;if(c&&!f||(W.current=!!(c&&f),(0,eu.h)(o,'button,a,input,select,textarea,label,[role="button"]')&&(!i||a)))return!1;let d=n.current;if(s&&d&&o&&!r?.ignoreScrollableAncestors&&null!=rk(o,d,R))return!1;if(F.current=!1,D.current=void 0,$.current=0,O.current=t,G.current=rM(e.timeStamp),Z.current=null,J.current=!1,Q.current={x:0,y:0},z.current=t,N.current=t,Y.current=b,q.current="function"==typeof u?u:null,d){X.current={width:d.offsetWidth,height:d.offsetHeight},el(v);let t=function(e){let t=((void 0)??(0,eo.f)(e).getComputedStyle(e)).transform,r=0,n=0,i=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],n=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],n=t[13],i=t[0])}}return{x:r,y:n,scale:i}}(d);L.current=t,j.current={x:t.x,y:t.y},ec({x:t.x,y:t.y},G.current),"touches"in e||rj(d,e.pointerId,"setPointerCapture")}return p?.(e.nativeEvent),en(!0),H.current=!0,ea(0),es(!0),!0}function ev(){eb(),W.current=!1,N.current=null}function eb(){B.current=!1,_.current=null}let ey=(0,K.f)(e=>{if(!t||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let r=ed(e);!r||(B.current=!0,_.current=r,W.current=!1,U.current=!("touches"in e),(!l||l(r,{nativeEvent:e.nativeEvent,direction:v}))&&em(e,r)&&eb())}),ex=(0,K.f)(e=>{let i;if(!t)return;let o=j.current,l=L.current,a=o.x-l.x,s=o.y-l.y,u={deltaX:a,deltaY:s,direction:D.current};if(!et.current){ev(),ea(0,u);return}en(!1),ev(),U.current=!1;let f=n.current;!f||"touches"in e||rj(f,e.pointerId,"releasePointerCapture");let d=G.current,p=rM(e.timeStamp),g=null!==d&&null!==p&&p>d?p-d:0,m=g>0?Math.max(g,50):0,b=m>0?a/m:0,y=m>0?s/m:0,x=Q.current.x,w=Q.current.y,S=Z.current;if(S&&null!==p&&p>=S.time){let e=p-S.time;if(e<=80){let t=Math.max(e,4),r=o.x-S.x,n=o.y-S.y;Math.abs(r)>=1&&(x=r/t),Math.abs(n)>=1&&(w=n/t)}else x=0,w=0}let E=h?.({event:e.nativeEvent,direction:D.current,deltaX:a,deltaY:s,velocityX:b,velocityY:y,releaseVelocityX:x,releaseVelocityY:w}),C="boolean"==typeof E;if(F.current&&!C){j.current={x:l.x,y:l.y},k(void 0),es(!1),ea(0,u);return}let R=!1;if(C)R=E,i=D.current??v;else for(let e of r)if(rI(e,a,s)>Y.current){R=!0,i=e;break}R&&i?(k(i),M(!0),es(!1),c?.(e.nativeEvent,{direction:i})):(j.current={x:l.x,y:l.y},k(void 0),es(!1),ea(0,u))}),ew=(0,K.f)(e=>{let r=ed(e);if(!r)return;let i=!1;if(!("touches"in e)){let t=e.buttons%2==1;if(t&&(U.current=!0),0!==e.buttons&&!t)return void function(e){if(ev(),!et.current)return;en(!1);let t=L.current;j.current={x:t.x,y:t.y},k(void 0),U.current=!1,es(!1);let r=n.current;r&&rj(r,e.pointerId,"releasePointerCapture"),ea(0,{deltaX:0,deltaY:0,direction:void 0}),d?.(e.nativeEvent)}(e);if(0===e.buttons&&U.current){if(!et.current)return void ex(e);i=!0}}if(!P&&B.current){if(!ep(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void ev();if(!l||l(r,{nativeEvent:e.nativeEvent,direction:v})){let t=_.current,i=!1;if(ep(e)){let o=n.current;if(t&&o){let n=eh(r,e.nativeEvent),l=(0,ei.f)(o).body,a=l?eg(n,l):null;if(a&&((0,eu.I)(o,a)||(0,eu.I)(a,o))){let e,n=r.x-t.x,o=r.y-t.y,l=(e=(e,t,r,n,i)=>e>0&&t<=0&&n||e<0&&t>=Math.max(0,r)&&i,C&&0!==o?e(o,a.scrollTop,a.scrollHeight-a.clientHeight,S,w):E&&0!==n?e(n,a.scrollLeft,a.scrollWidth-a.clientWidth,x,y):null);if(!1===l)return;!0===l&&(i=!0)}}}em(e,r,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(t&&i?(eb(),O.current=t,z.current=t,N.current=t,H.current=!1):(eb(),W.current=!1))}}let o=N.current,a=null===o?{x:0,y:0}:{x:r.x-o.x,y:r.y-o.y};N.current=r,function(e,r,n){let i,o,l;if(!t||!et.current)return;let a=(0,eu.Z)(e.nativeEvent);if(ep(e)&&!W.current&&eg(a,e.currentTarget))return;if("touches"in e||e.preventDefault(),H.current&&(H.current=!1,m)){O.current=r;let t=rM(e.timeStamp);null!==t&&(G.current=t),Z.current=null,J.current=!1}let s=r.x,u=r.y,c=n.x,f=n.y;(f<0&&u>z.current.y||f>0&&u<z.current.y)&&(z.current={x:z.current.x,y:u}),(c<0&&s>z.current.x||c>0&&s<z.current.x)&&(z.current={x:s,y:z.current.y});let d=s-O.current.x,p=u-O.current.y,h=u-z.current.y,g=s-z.current.x;if(D.current){let e=D.current,t=rI(e,g,h);t>Y.current?(F.current=!1,k(e)):y&&x||w&&S||!($.current-t>=10)||(F.current=!0)}else(i=Math.abs(d)>=Math.abs(p)?d>0?"right":"left":p>0?"down":"up")&&("left"===i&&y||"right"===i&&x||"up"===i&&w||"down"===i&&S)&&(D.current=i,$.current=rI(i,d,p),k(i),el(i));let b=(o=e=>Math.sign(e)*Math.abs(e)**.5,l=(e,t,r)=>!t&&e<0||!r&&e>0?o(e):e,{x:E?l(d,y,x):o(d),y:C?l(p,w,S):o(p)}),R=L.current.x,T=L.current.y;E&&(R+=b.x),C&&(T+=b.y);let P=j.current,A=R!==P.x||T!==P.y;j.current={x:R,y:T},A&&es(!0),ec({x:R,y:T},rM(e.timeStamp));let I=R-L.current.x,M=T-L.current.y,N={deltaX:I,deltaY:M,direction:D.current},B=0,_=v??D.current;if(_){let e="left"===_||"right"===_?X.current.width:X.current.height,t=L.current.scale||1,r=rI(_,I,M);e>0&&t>0&&r>0&&(B=r/(e*t))}ea(B,N)}(e,r,a),!i||"touches"in e||ex(e)}),eS=(0,K.f)((e,t)=>{ew({touches:e.touches,currentTarget:t,nativeEvent:e,defaultPrevented:e.defaultPrevented,timeStamp:e.timeStamp})}),eE=o.useCallback(()=>{let e=et.current,t=j.current,r=L.current,n=t.x-r.x,o=t.y-r.y;return e||0!==n||0!==o||I?{transition:e?"none":void 0,transform:e?rO(t,r.scale):void 0,[i.x]:`${n}px`,[i.y]:`${o}px`}:{[i.x]:"0px",[i.y]:"0px"}},[I,i]);return{swiping:P,swipeDirection:T,dragDismissed:I,getPointerProps:o.useCallback(()=>t?{onPointerDown:ey,onPointerMove:ew,onPointerUp:ex,onPointerCancel:ex}:{},[t,ex,ew,ey]),getTouchProps:o.useCallback(()=>t?{onTouchStart:ey,onTouchMove:ew,onTouchEnd:ex,onTouchCancel:ex}:{},[t,ex,ew,ey]),moveNative:eS,getDragStyles:eE,reset:ef}}({enabled:P&&!F,directions:ef,elementRef:c.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:j,y:N},onSwipeStart(e){if("touches"in e||"touch"===e.pointerType)return;let t=f.current,r=(0,ei.f)(t),n=r.getSelection?.();if(!n||n.isCollapsed)return;let i=(0,G.m)(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,o=(0,G.m)(n.focusNode)?n.focusNode:n.focusNode?.parentElement;((0,eu.I)(t,i)||(0,eu.I)(t,o))&&n.removeAllRanges()},onSwipingChange(e){J.current=e,rH(c.context.backdropRef.current,e),e||m||eh()},swipeThreshold:({element:e,direction:t})=>r_(e,t),canStart(e,t){let r=c.context.popupRef.current;if(!r)return!1;let n=t.nativeEvent,i="touches"in n||"touch"===n.pointerType,o=i?el.current:null,l=r.ownerDocument,a=rA(r.getRootNode(),e.x,e.y);return!(!o?.startedInPopup&&!(0,eu.I)(r,a)||i&&rW(l,r)||o?.hasCrossAxisGestureTarget&&!o.drawerAxisAttributed&&!0!==o.allowSwipe)},onProgress(e,t){let r=J.current;r&&(Q.current||!t||10>Math.abs(rI(t.direction??p,t.deltaX,t.deltaY))||(Q.current=!0,h?.(!0)));let n=!!(w&&w.length>0);if(r&&"down"===p&&n&&t){let e=c.context.popupRef.current;e&&(e.style.removeProperty("transform"),e.style.setProperty(N,`${tx(C??0,t.deltaY)}px`))}let i=e;if(es&&T>0){let e=C??es.minOffset;if(r&&t&&Number.isFinite(t.deltaY)){let r;r=(0,ty.f)(e+t.deltaY,0,T),i=(0,ty.f)((r-es.minOffset)/es.range,0,1)}else null!==ec&&(i=ec)}r||(m?.(0),eh()),eg(i,!0,r)},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:i,velocityY:o,releaseVelocityX:l,releaseVelocityY:a}){let s=c.context.popupRef.current;if(!s)return void ep();function u(e){eh(),ed(!0),s.style.removeProperty("transition"),s.setAttribute(rL.f.endingStyle,""),eK.flushSync(()=>{U(function(e,t,r,n,i,o,l,a){let s=rB(e,t);if(s<=0)return null;let u=Math.max(0,s-((("down"===t||"up"===t)&&w&&w.length>0?C??0:0)+rI(t,r,n)));if(u<=0)return null;let c=rI(t,l,a),f=Math.abs(c)>0?c:rI(t,i,o);if(f<=.2)return null;let d=(0,ty.f)(f,.2,4);return .1+((0,ty.f)(u/d,80,360)-80)/280*.9}(s,e,t,r,i,o,l,a))})}if(!w||0===w.length){if(!n)return void ep();let e=rI(n,t,r);if(e<=0)return ep(),!1;if(rI(n,i,o)>=.5)return u(n),!0;let l=e>r_(s,n);return l?u(n):ep(),l}if("down"!==p&&"up"!==p)return void ep();if(!T)return ep(),!1;if(0===S.length)return void ep();let f="down"===p?r:-r,d=Math.sign(f),h="down"===p?a:-a,g="down"===p?o:-o,m=h;if(0!==d&&Math.abs(f)>=10){let e=Math.sign(m);0!==e&&e!==d&&(m=g)}let v=C??0,y=(0,ty.f)(v+f,0,T),x=Math.abs(m)>=.5?300*(0,ty.f)(m,-4,4):0,k=b?y:(0,ty.f)(y+x,0,T),P=(0,H.j)(rN.swipe,e),A=()=>(eg(0,!0,!0),ep(),!1),I=e=>(R(e.value,P),A()),M=e=>n?(R(null,P),P.isCanceled)?A():(X.current=E,u(p),!0):I(e);if(b){let e=[...S].sort((e,t)=>e.offset-t.offset),t=e.map(e=>e.offset),r=tS(t,v),n=e[tS(t,k)],i=Math.sign(m),o=k;if(0!==d&&0!==i&&i===d&&Math.abs(m)>=.5){let t=(0,ty.f)(r+d,0,e.length-1);if(t!==r){let r=e[t];(d>0?k<r.offset:k>r.offset)&&(n=r,o=r.offset)}else if(d>0)return M(n)}return Math.abs(o-T)<Math.abs(o-n.offset)?M(n):I(n)}let O=S[tS(S.map(e=>e.offset),k)];return m>=.5&&f>0||Math.abs(k-T)<Math.abs(k-O.offset)?M(O):I(O)},onDismiss(e){D?.set({swipeProgress:0,frontmostHeight:0});let t=c.context.backdropRef.current;t&&(t.style.setProperty($,"0"),t.style.removeProperty(O));let r=(0,H.j)(rN.swipe,e);if(c.setOpen(!1,r),r.isCanceled){let t=X.current;void 0!==t&&R(t,(0,H.j)(rN.swipe,e)),X.current=void 0,V.current?.(),ep();return}c.select("open")?q.request(()=>{if(c.select("open")){let t=X.current;void 0!==t&&R(t,(0,H.j)(rN.swipe,e)),X.current=void 0,ep(),V.current?.()}else X.current=void 0}):(X.current=void 0,ed(!0))}}),ev=em.getPointerProps(),eb=em.getTouchProps(),{moveNative:ey,reset:ex}=em;V.current=ex,o.useEffect(()=>{let e=M??L;if(!e||!k||!P)return;let t=(0,ei.f)(e);return(0,Z.f)(t,"touchmove",function(r){var n,i;if(ea?.onTouchMove(r),er.current)return;let o=el.current,l=r.touches[0];l&&o&&(!function(r,n,i){let o=B?i.clientY-n.lastY:i.clientX-n.lastX;if(2===r.touches.length||rW(t,e)||F||function(e,t,r,n){if(e.preserveNativeCrossAxisScroll)return!0;if(e.drawerAxisAttributed||!0===e.allowSwipe||!e.hasCrossAxisGestureTarget)return!1;if(!t.cancelable)return e.preserveNativeCrossAxisScroll=!0,!0;let i=n?r.clientY-e.startY:r.clientX-e.startX,o=n?r.clientX-e.startX:r.clientY-e.startY,l=Math.abs(i),a=Math.abs(o);return a>=6&&a>l+2?(e.preserveNativeCrossAxisScroll=!0,!0):!(l>=6)||(e.drawerAxisAttributed=!0,!1)}(n,r,i,B))return;let l=n.scrollTarget;if(!l||l===t.documentElement||l===t.body){r.cancelable&&r.preventDefault(),r.stopPropagation(),ey(r,e);return}if(!(rU(l,z).max>0)){r.cancelable&&r.preventDefault(),r.stopPropagation();return}if(0!==o){var a,s,u,c;let e=(a=l,s=z,u=p,c=o,!!(rV(u,s)?c>0:c<0)&&rX(a,s,u));n.allowSwipe?r.cancelable&&r.preventDefault():r.cancelable&&e?(n.allowSwipe=!0,r.preventDefault()):n.allowSwipe=!1}!0===n.allowSwipe&&(r.stopPropagation(),ey(r,e))}(r,o,l),(n=o).lastX=(i=l).clientX,n.lastY=i.clientY)},{passive:!1,capture:!0})},[P,F,k,L,B,z,p,ey,M,ea]),(0,Y.f)(()=>{es&&!em.swiping&&eg(!k||A?0:ec??0,!0,!1)},[eg,v,A,m,k,ec,es,em.swiping,c,D]),(0,Y.f)(()=>{if(m)return k||m(0),()=>{m(0)}},[m,k]),(0,Y.f)(()=>{k&&(y.current||ex(),ep())},[ep,k,ex,y]),(0,Y.f)(()=>{let e=d.current;return()=>{D?.set({swipeProgress:0,frontmostHeight:0}),rH(e,!1);let t=d.current;t!==e&&rH(t,!1),eh()}},[d,eh,D]);let ew=o.useMemo(()=>({swiping:em.swiping,getDragStyles:em.getDragStyles,swipeStrength:W??null,setSwipeDismissed:ed}),[ed,em.getDragStyles,em.swiping,W]);function eS(e){er.current=e,el.current=null}function eE(){eS(!1),ee.current="",et.current=!1}function eC(e){return ee.current="","touch"!==e.pointerType}return(0,i.jsx)(rR,{ref:t,className:n,style:a,render:r,...(0,l.w)(u,{onPointerDown(e){var t,r;if(ee.current=e.pointerType,et.current="pen"===e.pointerType,!k||!P||F)return;let n=rA(e.currentTarget.getRootNode(),e.clientX,e.clientY);t=n,(0,eu.h)(t,eQ)||(r=n,(0,eu.h)(r,r$))||"touch"!==e.pointerType&&ev.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&ev.onPointerMove?.(e)},onPointerUp(e){eC(e)&&ev.onPointerUp?.(e)},onPointerCancel(e){eC(e)&&ev.onPointerCancel?.(e)},onTouchStart(e){var t,r,n;if("pen"===ee.current&&et.current){et.current=!1,eS(!1);return}if(!k||!P||F)return void eS(!1);let i=e.touches[0];if(!i)return;if(r=(t=e).nativeEvent,n=(0,eo.f)(t.currentTarget),r.composedPath().some(e=>e instanceof n.HTMLInputElement&&"range"===e.type))return void eS(!1);let o=e.currentTarget,l=rA(o.getRootNode(),i.clientX,i.clientY),a=(0,eu.Z)(e.nativeEvent),s=(0,G.m)(a)?a:o;if(!(0,eu.I)(o,s)||(ea?.onTouchStart(e),(0,eu.h)(l,`${eQ}:not(${rF[_]})`)))return void eS(!0);er.current=!1;let u=rP(s,o,z),c=null!=rP(s,o,_)||null!=(0,eu.h)(l,rF[_]),d=null;u&&(d=!!rX(u,z,p)&&null),el.current={startX:i.clientX,startY:i.clientY,lastX:i.clientX,lastY:i.clientY,startedInPopup:(0,eu.I)(f.current,l),scrollTarget:u,hasCrossAxisGestureTarget:c,allowSwipe:d,preserveNativeCrossAxisScroll:!1,drawerAxisAttributed:!1},eb.onTouchStart?.(e)},onTouchEnd(e){ea?.onTouchEnd(e),eE(),eb.onTouchEnd?.(e)},onTouchCancel(e){ea?.onTouchCancel(),eE(),eb.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,i.jsx)(tC.Provider,{value:ew,children:s})})});function rH(e,t){e?.toggleAttribute(td,t)}function rB(e,t){return"left"===t||"right"===t?e.offsetWidth:e.offsetHeight}function r_(e,t){return Math.max(.5*rB(e,t),10)}function rW(e,t){let r,n,i=(0,eu.T)(e);if(i&&(0,eu.I)(t,i)&&("INPUT"===i.tagName||"TEXTAREA"===i.tagName)){let{selectionStart:e,selectionEnd:t}=i;if(null!=e&&null!=t&&e<t)return!0}let o=e.getSelection?.();return!!o&&!o.isCollapsed&&(r=(0,G.m)(o.anchorNode)?o.anchorNode:o.anchorNode?.parentElement,n=(0,G.m)(o.focusNode)?o.focusNode:o.focusNode?.parentElement,o.containsNode(t,!0)||(0,eu.I)(t,r)||(0,eu.I)(t,n))}function rU(e,t){if("vertical"===t){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let r=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:r}}function rX(e,t,r){let n=rV(r,t),{offset:i,max:o}=rU(e,t);return n?i<=0:i>=o}function rV(e,t){return"vertical"===t?"down"===e:"right"===e}e.s(["Backdrop",0,F,"Close",0,_,"Content",0,U,"Description",0,V,"Popup",0,tU,"Portal",0,tY,"Root",0,function(e){let{children:t,open:l,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:u,disablePointerDismissal:c=!1,modal:f=!0,actionsRef:d,handle:p,triggerId:m,defaultTriggerId:v=null,swipeDirection:b="down",snapToSequentialPoints:y=!1,snapPoints:x,snapPoint:w,defaultSnapPoint:S,onSnapPointChange:E}=e,C=tb(!0),R=C?.onNestedSwipeProgressChange,T=C?.onNestedFrontmostHeightChange,k=C?.onNestedSwipingChange,P=C?.onNestedDrawerPresenceChange,[A,I]=o.useState(0),[M,O]=o.useState(0),[j,N]=o.useState(!1),[L,D]=o.useState(!1),[$]=o.useState(ry),F=void 0!==S?S:x?.[0]??null,z=void 0!==w,[B,_]=(0,tK.f)({controlled:w,default:F,name:"Drawer",state:"snapPoint"}),W=o.useRef(!1),U=o.useRef(!1),X=(0,K.f)((e,t)=>{let r=t??(0,H.j)(tO.f.none);E?.(e,r),r.isCanceled||_(e)}),V=o.useMemo(()=>z||!x||0===x.length||null!==B&&x.some(e=>Object.is(e,B))?B:F,[B,z,F,x]),q=(0,K.f)(e=>{I(e),!W.current&&e>0&&O(e)}),G=(0,K.f)(e=>{if(e>0){W.current=!0,O(e);return}W.current=!1,A>0&&O(A)}),Z=(0,K.f)(e=>{N(e)}),J=(0,K.f)(e=>{$.set(e),R?.(e)}),Q=(0,K.f)(e=>{D(e),k?.(e)}),ee=(0,K.f)((e,t)=>{s?.(e,t),!t.isCanceled&&!e&&x&&x.length>0&&X(F,(0,H.j)(t.reason,t.event,t.trigger))}),et=o.useMemo(()=>({swipeDirection:b,swipeAreaActiveRef:U,snapToSequentialPoints:y,snapPoints:x,activeSnapPoint:V,setActiveSnapPoint:X,frontmostHeight:M,popupHeight:A,hasNestedDrawer:j,nestedSwiping:L,nestedSwipeProgressStore:$,onNestedDrawerPresenceChange:Z,onPopupHeightChange:q,onNestedFrontmostHeightChange:G,onNestedSwipingChange:Q,onNestedSwipeProgressChange:J,notifyParentFrontmostHeight:T,notifyParentSwipingChange:k,notifyParentSwipeProgressChange:R,notifyParentHasNestedDrawer:P}),[V,M,j,L,$,P,R,k,T,Z,G,J,Q,q,A,X,x,y,U,b]),er=function(e,t){let{children:r,open:n,defaultOpen:l=!1,onOpenChange:a,onOpenChangeComplete:s,disablePointerDismissal:u=!1,modal:c=!0,actionsRef:f,handle:d,triggerId:p,defaultTriggerId:m=null}=t,v="alert-dialog"===e,b=g(!0),y={modal:!!v||c,disablePointerDismissal:v||u,nested:null!=b,role:v?"alertdialog":"dialog"},x=tN((e,t)=>new rg({open:l,openProp:n,activeTriggerId:m,triggerIdProp:p,...y},e,t),!0);x.useControlledProp("openProp",n),x.useControlledProp("triggerIdProp",p),x.useSyncedValues(y),x.useContextCallback("onOpenChange",a),x.useContextCallback("onOpenChangeComplete",s);let w=x.useState("open"),S=x.useState("mounted"),E=x.useState("payload");(0,Y.f)(()=>{w||null===x.state.openMethod||x.set("openMethod",null)},[w,x]),(0,Y.f)(()=>()=>{null!==x.state.openMethod&&x.set("openMethod",null)},[x]),tz(x);let{forceUnmount:C}=tH(w,x);o.useImperativeHandle(f,()=>({unmount:C,close:()=>x.setOpen(!1,(0,H.j)(rm.imperativeAction))}),[C,x]);let R=w||S||null!=d;return(0,i.jsxs)(h.Provider,{value:x,children:[d&&(0,i.jsx)(tL,{handle:d,store:x}),R&&(0,i.jsx)(t3,{store:x,parentContext:b?.context,isDrawer:"drawer"===e}),"function"==typeof r?r({payload:E}):r]})}("drawer",{open:l,defaultOpen:a,onOpenChange:ee,onOpenChangeComplete:u,disablePointerDismissal:c,modal:f,actionsRef:d,handle:p,triggerId:m,defaultTriggerId:v,children:"function"==typeof t?e=>(0,i.jsxs)(o.Fragment,{children:[r||(r=(0,i.jsx)(rx,{})),t(e)]}):(0,i.jsxs)(o.Fragment,{children:[n||(n=(0,i.jsx)(rx,{})),t]})});return(0,i.jsx)(tv.Provider,{value:et,children:er})},"Title",0,rw,"Trigger",0,rE,"Viewport",0,rz],25813);var rY=e.i(25813),rY=rY,rK=rY,rq=rY,rG=rY,rZ=rY,rJ=rY,rQ=rY,r0=rY;let r2=o.createContext(null);function r1({modal:e=!0,showSwipeHandle:t=!1,snapPoints:r,swipeDirection:n="down",...l}){let a=null!=r&&r.length>0,s=o.useMemo(()=>({hasSnapPoints:a,modal:e,showSwipeHandle:t,swipeDirection:n}),[a,e,t,n]);return(0,i.jsx)(r2.Provider,{value:s,children:(0,i.jsx)(rY.Root,{"data-slot":"drawer",modal:e,snapPoints:r,swipeDirection:n,...l})})}function r4({...e}){return(0,i.jsx)(rK.Portal,{"data-slot":"drawer-portal",...e})}function r3({className:e,...t}){return(0,i.jsx)(rq.Backdrop,{"data-slot":"drawer-overlay",className:(0,u.f)("fixed inset-0 z-50 min-h-dvh bg-black/10 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-backdrop-filter:backdrop-blur-xs supports-[-webkit-touch-callout:none]:absolute",e),...t})}function r6({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"drawer-swipe-handle","aria-hidden":"true",className:(0,u.f)("relative z-10 flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-muted group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-24 active:cursor-grabbing",e),...t})}function r5({className:e,children:t,...r}){let{hasSnapPoints:n,modal:l,showSwipeHandle:a,swipeDirection:s}=function(){let e=o.useContext(r2);if(!e)throw Error("useDrawer must be used within a Drawer.");return e}();return(0,i.jsxs)(r4,{"data-slot":"drawer-portal",children:[!0===l&&(0,i.jsx)(r3,{"data-snap-points":n?"":void 0}),(0,i.jsx)(rG.Viewport,{"data-slot":"drawer-viewport","data-modal":l,className:"pointer-events-none fixed inset-0 z-50 select-none data-[modal=true]:pointer-events-auto",children:(0,i.jsxs)(rZ.Popup,{"data-slot":"drawer-popup","data-swipe-axis":"down"===s||"up"===s?"y":"x","data-snap-points":n?"":void 0,className:(0,u.f)("group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col bg-popover text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [interpolate-size:allow-keywords] data-[swipe-direction=down]:rounded-t-xl data-[swipe-direction=down]:border-t data-[swipe-direction=left]:rounded-r-xl data-[swipe-direction=left]:border-r data-[swipe-direction=right]:rounded-l-xl data-[swipe-direction=right]:border-l data-[swipe-direction=up]:rounded-b-xl data-[swipe-direction=up]:border-b","data-nested-drawer-open:overflow-hidden data-nested-drawer-open:brightness-95","after:pointer-events-none after:absolute after:bg-(--drawer-bleed-background,var(--color-popover)) data-[swipe-axis=x]:after:inset-y-0 data-[swipe-axis=x]:after:w-(--bleed) data-[swipe-axis=y]:after:inset-x-0 data-[swipe-axis=y]:after:h-(--bleed) data-[swipe-direction=down]:after:top-full data-[swipe-direction=left]:after:right-full data-[swipe-direction=right]:after:left-full data-[swipe-direction=up]:after:bottom-full","[--drawer-content-height:var(--drawer-height,auto)] data-[swipe-axis=x]:[--drawer-content-width:75%] data-[swipe-axis=y]:[--drawer-content-max-height:calc(100dvh-6rem)] data-[swipe-axis=y]:data-snap-points:[--drawer-content-height:100dvh] data-[swipe-axis=x]:sm:[--drawer-content-width:24rem]","[--bleed:3rem] [--peek:1rem] [--stack-height:var(--drawer-frontmost-height,var(--drawer-height,0px))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-scale-base:max(0,calc(1-(var(--nested-drawers)*var(--stack-step))))] [--stack-scale:clamp(0,calc(var(--stack-scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--stack-shrink:calc(1-var(--stack-scale))] [--stack-step:0.05]","data-ending-style:transform-(--closed-transform) data-ending-style:opacity-[0.9999] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-nested-drawer-swiping:duration-0 data-ending-style:data-nested-drawer-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-starting-style:transform-(--closed-transform) data-swiping:duration-0 data-ending-style:data-swiping:duration-[calc(var(--drawer-swipe-strength)*400ms)]","data-[swipe-axis=y]:inset-x-0 data-[swipe-axis=y]:data-nested-drawer-open:h-(--stack-height)","data-[swipe-axis=x]:inset-y-0 data-[swipe-axis=x]:flex-row","data-[swipe-direction=down]:bottom-0 data-[swipe-direction=down]:origin-bottom data-[swipe-direction=down]:[--closed-transform:translate3d(0,calc(100%+var(--drawer-inset,0px)+2px),0)] data-[swipe-direction=down]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--stack-shrink)*var(--stack-height)))]","data-[swipe-direction=up]:top-0 data-[swipe-direction=up]:origin-top data-[swipe-direction=up]:[--closed-transform:translate3d(0,calc(-100%-var(--drawer-inset,0px)-2px),0)] data-[swipe-direction=up]:[--translate-y:calc(var(--drawer-snap-point-offset,0px)+var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--stack-shrink)*var(--stack-height)))]","data-[swipe-direction=left]:left-0 data-[swipe-direction=left]:origin-left data-[swipe-direction=left]:[--closed-transform:translate3d(calc(-100%-var(--drawer-inset,0px)-2px),0,0)] data-[swipe-direction=left]:[--translate-x:calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)+(var(--stack-shrink)*100%))]","data-[swipe-direction=right]:right-0 data-[swipe-direction=right]:origin-right data-[swipe-direction=right]:[--closed-transform:translate3d(calc(100%+var(--drawer-inset,0px)+2px),0,0)] data-[swipe-direction=right]:[--translate-x:calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)-(var(--stack-shrink)*100%))]",e),...r,children:[a&&(0,i.jsx)(r6,{}),(0,i.jsx)(rJ.Content,{"data-slot":"drawer-content",className:(0,u.f)("flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none"),children:t})]})})]})}function r8({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"drawer-header",className:(0,u.f)("flex shrink-0 flex-col gap-0.5 p-4 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-0.5 md:text-left",e),...t})}function r9({className:e,...t}){return(0,i.jsx)(rQ.Title,{"data-slot":"drawer-title",className:(0,u.f)("font-heading text-base font-medium text-foreground",e),...t})}function r7({className:e,...t}){return(0,i.jsx)(r0.Description,{"data-slot":"drawer-description",className:(0,u.f)("text-sm text-balance text-muted-foreground",e),...t})}e.i(71428);let ne=o.createContext(void 0);function nt(e){let t=o.useContext(ne);if(void 0===t&&!e)throw Error((0,p.f)(72));return t}function nr(e){return null!=e&&null!=e.clientX}var tI=B;let nn={...rd,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class ni extends ri{constructor(e,t,r){var n;let i=new rp;super(function(e,t,r,n=!1){return{...ra(t,r,n),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}(e,i,t,r),(n=i,{popupRef:o.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n}),nn)}setOpen=(e,t)=>{!function(e,t,r,n={}){let i,o=r.reason,l=o===eN.triggerHover,a=t&&o===tA.triggerFocus,s=!t&&(o===tI.triggerPress||o===tM.escapeKey),u=(i=!1,r.preventUnmountOnClose=()=>{i=!0},()=>i);if(e.context.onOpenChange?.(t,r),r.isCanceled)return;n.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,r);let c=()=>{let i=t$(e.state,t,r.trigger,u()),o={...n.extraState,...i};a?o.instantType="focus":s?o.instantType="dismiss":l&&(o.instantType=void 0),e.update(o)};l?eK.flushSync(c):c()}(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,H.j)(tI.triggerPress,e))}}var no=e.i(39221),rm=B;let nl=t7(function(e){let{disabled:t=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:l=!1,trackCursorAxis:a="none",actionsRef:s,onOpenChange:u,onOpenChangeComplete:c,handle:f,triggerId:d,defaultTriggerId:p=null,children:h}=e,g=tN((e,t)=>new ni({open:r,openProp:n,activeTriggerId:p,triggerIdProp:d},e,t));g.useControlledProp("openProp",n),g.useControlledProp("triggerIdProp",d),g.useContextCallback("onOpenChange",u),g.useContextCallback("onOpenChangeComplete",c);let m=g.useState("open"),v=!t&&m,b=g.useState("activeTriggerId"),y=g.useState("mounted"),x=g.useState("payload");g.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:l,disabled:t}),tz(g,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:w,transitionStatus:S}=tH(v,g),E=g.useState("isInstantPhase"),C=g.useState("instantType"),R=g.useState("lastOpenChangeReason"),T=o.useRef(null);(0,Y.f)(()=>{m&&t&&g.setOpen(!1,(0,H.j)(no.f.disabled))},[m,t,g]),(0,Y.f)(()=>{"ending"===S&&R===tO.f.none||"ending"!==S&&E?("delay"!==C&&(T.current=C),g.set("instantType","delay")):null!==T.current&&(g.set("instantType",T.current),T.current=null)},[S,E,R,C,g]),(0,Y.f)(()=>{v&&null==b&&g.set("payload",void 0)},[g,b,v]),o.useImperativeHandle(s,()=>({unmount:w,close:()=>g.setOpen(!1,(0,H.j)(rm.imperativeAction))}),[w,g]);let k=v||y||!t&&"none"!==a;return(0,i.jsxs)(ne.Provider,{value:g,children:[f&&(0,i.jsx)(tL,{handle:f,store:g}),k&&(0,i.jsx)(na,{store:g,disabled:t,trackCursorAxis:a}),"function"==typeof h?h({payload:x}):h]})});function na({store:e,disabled:t,trackCursorAxis:r}){let n=e.useState("floatingRootContext"),i=t4(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=function(e,t={}){let{enabled:r=!0,axis:n="both"}=t,i=e.useState("open"),l=e.useState("floatingElement"),a=e.useState("domReferenceElement"),s=e.context.dataRef,u=o.useRef(!1),c=o.useRef(null),[f,d]=o.useState(),[p,h]=o.useState([]),g=(0,K.f)(t=>{e.set("positionReference",t)}),m=(0,K.f)((t,r,i)=>{if(!u.current&&(!s.current.openEvent||nr(s.current.openEvent))){var o,l;let u,c,d;e.set("positionReference",(o=i??a,l={x:t,y:r,axis:n,dataRef:s,pointerType:f},u=null,c=null,d=!1,{contextElement:o||void 0,getBoundingClientRect(){let e=o?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===l.axis||"both"===l.axis,r="y"===l.axis||"both"===l.axis,n=["mouseenter","mousemove"].includes(l.dataRef.current.openEvent?.type||"")&&"touch"!==l.pointerType,i="y"===l.axis?e.width:0,a="x"===l.axis?e.height:0,s=e.x,f=e.y;return null==u&&l.x&&t&&(u=e.x-l.x),null==c&&l.y&&r&&(c=e.y-l.y),s-=u||0,f-=c||0,(!d||n)&&(s=t&&null!=l.x?l.x:s,f=r&&null!=l.y?l.y:f),d=!0,{width:i,height:a,x:s,y:f,top:f,right:s+i,bottom:f+a,left:s}}}))}}),v=(0,K.f)(e=>{i?c.current||(m(e.clientX,e.clientY,e.currentTarget),h([])):m(e.clientX,e.clientY,e.currentTarget)}),b=eg(f)?l:i;o.useEffect(()=>{if(!r)return void g(a);if(!b)return;function e(){c.current?.(),c.current=null}let t=(0,G.K)(l);return!s.current.openEvent||nr(s.current.openEvent)?c.current=(0,Z.f)(t,"mousemove",function(t){let r=(0,eu.Z)(t);(0,eu.I)(l,r)?e():m(t.clientX,t.clientY)}):g(a),e},[b,r,l,s,a,e,m,g,p]),o.useEffect(()=>()=>{e.set("positionReference",null)},[e]),o.useEffect(()=>{r&&!l&&(u.current=!1)},[r,l]),o.useEffect(()=>{!r&&i&&(u.current=!0)},[r,i]);let y=o.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return o.useMemo(()=>r?{reference:y,trigger:y}:{},[r,y])}(n,{enabled:!t&&"none"!==r,axis:"none"===r?void 0:r}),s=o.useMemo(()=>(0,l.w)(a.reference,i.reference),[a.reference,i.reference]);return tB(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:i.floating??q.w}),null}let ns=o.createContext(void 0),nu=.1*.1;function nc(e,t,r,n,i,o){return n>=t!=o>=t&&e<=(i-r)*(t-n)/(o-n)+r}function nf(e,t,r,n,i,o,l,a,s,u){let c=!1;return nc(e,t,r,n,i,o)&&(c=!c),nc(e,t,i,o,l,a)&&(c=!c),nc(e,t,l,a,s,u)&&(c=!c),nc(e,t,s,u,r,n)&&(c=!c),c}function nd(e,t,r,n,i,o){let l=Math.min(r,i),a=Math.max(r,i),s=Math.min(n,o),u=Math.max(n,o);return e>=l&&e<=a&&t>=s&&t<=u}function np(e,t,r){let n=null==r||eg(r)?"function"==typeof e?e():e:0;return"number"==typeof n?n:n?.[t]}function nh(e){return"function"==typeof e?e():e}function ng(e,t){return t||"click"===e||"mousedown"===e}let nm=o.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new et.U,currentIdRef:{current:null},currentContextRef:{current:null}});function nv(e){let{children:t,delay:r,timeoutMs:n=0}=e,l=o.useRef(r),a=o.useRef(r),s=o.useRef(null),u=o.useRef(null),c=(0,et.e)();return(0,Y.f)(()=>{if(a.current=r,!s.current){l.current=r;return}l.current={open:np(l.current,"open"),close:np(r,"close")}},[r,s,l,a]),(0,i.jsx)(nm.Provider,{value:o.useMemo(()=>({hasProvider:!0,delayRef:l,initialDelayRef:a,currentIdRef:s,timeoutMs:n,currentContextRef:u,timeout:c}),[n,c]),children:t})}var ef=er,er=er,tI=B,tM=B,tA=B;let nb=ef.os.mac&&er.engine.webkit;var eN=B,ny=e.i(18835);class nx{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new et.U;restTimeout=new et.U;handleCloseOptions=void 0;static create(){return new nx}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let nw=new WeakMap;function nS(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&nw.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),nw.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function nE(e,t){let{scopeElement:r,referenceElement:n,floatingElement:i}=t,o=nw.get(r);o&&o!==e&&nS(o),nS(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=r,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=i,nw.set(r,e),r.style.pointerEvents="none",n.style.pointerEvents="auto",i.style.pointerEvents="auto"}function nC(e){let t=e.context.dataRef.current,r=(0,tR.f)(()=>t.hoverInteractionState??nx.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=r),(0,ny.f)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}var nR=ec;let nT={current:null};var eN=B,nk=e.i(81568);let nP="data-base-ui-tooltip-trigger";function nA(e){let t=(0,eu.Z)(e);return(0,G.m)(t)?t:null}let nI=re(function(e,t){let{render:r,className:n,style:i,handle:l,payload:a,disabled:s,delay:u,closeOnClick:c=!0,closeDelay:f,id:h,...g}=e,m=nt(!0),v=rS(l)??m;if(!v)throw Error((0,p.f)(82));let b=(0,X.f)(h),y=v.useState("isTriggerActive",b),x=v.useState("isOpenedByTrigger",b),w=v.useState("floatingRootContext"),S=o.useRef(null),E=f??0,{registerTrigger:C,isMountedByThisTrigger:R}=tF(b,S,v,{payload:a,closeOnClick:c,closeDelay:E}),T=o.useContext(ns),{activeIdRef:k,delayRef:P,isInstantPhase:I,hasProvider:M}=function(e,t={open:!1}){let{open:r}=t,n=e.useState("floatingId"),{currentIdRef:i,delayRef:l,timeoutMs:a,initialDelayRef:s,currentContextRef:u,hasProvider:c,timeout:f}=o.useContext(nm),[d,p]=o.useState(!1),h=o.useRef(r);return(0,Y.f)(()=>{h.current=r},[r]),(0,Y.f)(()=>{function t(){u.current?.setIsInstantPhase(!1),i.current=null,u.current=null,l.current=s.current,f.clear()}if(i.current&&!r&&i.current===n){if(p(!1),a)return f.start(a,()=>{e.select("open")||i.current&&i.current!==n||t()}),()=>{(h.current||i.current!==n)&&f.clear()};t()}},[r,n,i,l,a,s,u,f,e]),(0,Y.f)(()=>{if(!r)return;let t=u.current,o=i.current;f.clear(),u.current={onOpenChange:e.setOpen,setIsInstantPhase:p},i.current=n,l.current={open:0,close:np(s.current,"close")},null!==o&&o!==n?(p(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,(0,H.j)(tO.f.none))):(p(!1),t?.setIsInstantPhase(!1))},[r,n,e,i,l,s,u,f]),(0,Y.f)(()=>()=>{i.current===n&&(u.current=null,h.current)&&(i.current=null,l.current=s.current,f.clear())},[u,i,l,n,s,f]),o.useMemo(()=>({activeIdRef:i,hasProvider:c,delayRef:l,isInstantPhase:d}),[i,c,l,d])}(w,{open:x}),O=nC(w);v.useSyncedValue("isInstantPhase",I);let j=v.useState("disabled"),N=s??j,L=(0,ee.f)(N),D=v.useState("trackCursorAxis"),$=v.useState("disableHoverablePopup"),F=o.useRef(!1),z=(0,et.e)(),B=o.useRef(void 0);function _(){return M&&null!=k.current?0:u??T??600}function W(e){let t=S.current;if(!t||!e)return!1;let r=(0,eu.h)(e,`[${nP}]`);return null!==r&&r!==t&&(0,eu.I)(t,r)}let U=function(e,t={}){let{enabled:r=!0,delay:n=0,handleClose:i=null,mouseOnly:l=!1,restMs:a=0,move:s=!0,triggerElementRef:u=nT,externalTree:c,isActiveTrigger:f=!0,getHandleCloseContext:d,isClosing:p,shouldOpen:h,guardStaleOpen:g=!1}=t,{dataRef:m,events:v}=e.context,b=e7(c),y=nC(e),x=o.useRef(!1),w=(0,ee.f)(i),S=(0,ee.f)(n),E=(0,ee.f)(a),C=(0,ee.f)(r),R=(0,ee.f)(h),T=(0,ee.f)(p),k=(0,K.f)(()=>ng(m.current.openEvent?.type,y.interactedInside)),P=(0,K.f)(()=>R.current?.()!==!1),A=(0,K.f)((t,r,n)=>{let i=e.context.triggerElements;return i.hasElement(r)?!t||!(0,eu.I)(t,r):!!(0,G.m)(n)&&i.hasMatchingElement(e=>(0,eu.I)(e,n))&&(!t||!(0,eu.I)(t,n))}),I=(0,K.f)(()=>{y.handler&&((0,ei.f)(e.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0)}),M=(0,K.f)(()=>{nS(y)});return f&&(y.handleCloseOptions=i?.__options),o.useEffect(()=>I,[I]),o.useEffect(()=>{if(r)return v.on("openchange",e),()=>{v.off("openchange",e)};function e(e){e.open?x.current=!1:(x.current=e.reason===eN.triggerHover,I(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}},[r,v,y,I]),o.useEffect(()=>{if(!r)return;function t(r,n=!0){let i=np(S.current,"close",y.pointerType);i?y.openChangeTimeout.start(i,()=>{e.setOpen(!1,(0,H.j)(eN.triggerHover,r)),b?.events.emit("floating.closed",r)}):n&&(y.openChangeTimeout.clear(),e.setOpen(!1,(0,H.j)(eN.triggerHover,r)),b?.events.emit("floating.closed",r))}let n=u.current??(f?e.select("domReferenceElement"):null);if(!(0,G.m)(n))return;function i(t){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,l&&!eg(y.pointerType))return;let r=nh(E.current),n=np(S.current,"open",y.pointerType),i=(0,eu.Z)(t),o=t.currentTarget??null,a=e.select("domReferenceElement"),s=o;if((0,G.m)(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if((0,eu.I)(t,i)){s=t;break}}(0,G.m)(o)&&(0,G.m)(a)&&!e.context.triggerElements.hasElement(o)&&(0,eu.I)(o,a)&&(s=a);let u=null!=s&&A(a,s,i),c=e.select("open"),f=T.current?.()??"ending"===e.select("transitionStatus"),d=!c&&f&&x.current,p=!u&&(0,G.m)(s)&&(0,G.m)(a)&&(0,eu.I)(a,s)&&d,h=r>0&&!n,g=!c||u;if(u&&(c||d)||p){P()&&e.setOpen(!0,(0,H.j)(eN.triggerHover,t,s));return}!h&&(n?y.openChangeTimeout.start(n,()=>{g&&P()&&e.setOpen(!0,(0,H.j)(eN.triggerHover,t,s))}):g&&P()&&e.setOpen(!0,(0,H.j)(eN.triggerHover,t,s)))}function o(r){if(k())return void M();I();let n=e.select("domReferenceElement"),i=(0,ei.f)(n);y.restTimeout.clear(),y.restTimeoutPending=!1;let o=m.current.floatingContext??d?.();if(!(0,nR.x)(r.relatedTarget,e.context.triggerElements)){if(w.current&&o){e.select("open")||y.openChangeTimeout.clear();let n=u.current;y.handler=w.current({...o,tree:b,x:r.clientX,y:r.clientY,onClose(){M(),I(),C.current&&!k()&&n===e.select("domReferenceElement")&&t(r,!0)}}),i.addEventListener("mousemove",y.handler),y.handler(r);return}"touch"===y.pointerType&&(0,eu.I)(e.select("floatingElement"),r.relatedTarget)||t(r)}}let a=g?(0,Z.f)(n,"mouseout",function(e){(0,eu.I)(n,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}):void 0;return s?J((0,Z.f)(n,"mousemove",i,{once:!0}),(0,Z.f)(n,"mouseenter",i),(0,Z.f)(n,"mouseleave",o),a):J((0,Z.f)(n,"mouseenter",i),(0,Z.f)(n,"mouseleave",o),a)},[I,M,m,S,e,r,w,y,f,A,k,l,s,E,u,b,C,d,T,P,g]),o.useMemo(()=>{if(r)return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:r}=t,n=t.currentTarget,i=e.select("domReferenceElement"),o=e.select("open"),a=A(i,n,t.target);if(l&&!eg(y.pointerType))return;if(o&&a&&y.handleCloseOptions?.blockPointerEvents){let t=e.select("floatingElement");if(t){let e=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;nE(y,{scopeElement:e,referenceElement:n,floatingElement:t})}}let s=nh(E.current);function u(){if(y.restTimeoutPending=!1,k())return;let t=e.select("open");!y.blockMouseMove&&(!t||a)&&P()&&e.setOpen(!0,(0,H.j)(eN.triggerHover,r,n))}(!o||a)&&0!==s&&(!a&&y.restTimeoutPending&&t.movementX**2+t.movementY**2<2||(y.restTimeout.clear(),"touch"===y.pointerType?eK.flushSync(()=>{u()}):a&&o?u():(y.restTimeoutPending=!0,y.restTimeout.start(s,u))))}};function t(e){y.pointerType=e.pointerType}},[r,y,k,A,l,e,E,P])}(w,{enabled:!N,mouseOnly:!0,move:!1,handleClose:$||"both"===D?null:function(e={}){let{blockPointerEvents:t=!1}=e,r=new et.U,n=({x:e,y:t,placement:n,elements:i,onClose:o,nodeId:l,tree:a})=>{let s=n?.split("-")[0],u=!1,c=null,f=null,d="u">typeof performance?performance.now():0;return function(n){r.clear();let p=i.domReference,h=i.floating;if(!p||!h||null==s||null==e||null==t)return;let{clientX:g,clientY:m}=n,v=(0,eu.Z)(n),b="mouseleave"===n.type,y=(0,eu.I)(h,v),x=(0,eu.I)(p,v);if(y&&(u=!0,!b))return;if(x&&(u=!1,!b)){u=!0;return}if(b&&(0,G.m)(n.relatedTarget)&&(0,eu.I)(h,n.relatedTarget))return;function w(){return!!(a&&eM(a.nodesRef.current,l).length>0)}function S(){w()||(r.clear(),o())}if(w())return;let E=p.getBoundingClientRect(),C=h.getBoundingClientRect(),R=e>C.right-C.width/2,T=t>C.bottom-C.height/2,k=C.width>E.width,P=C.height>E.height,A=(k?E:C).left,I=(k?E:C).right,M=(P?E:C).top,O=(P?E:C).bottom;if("top"===s&&t>=E.bottom-1||"bottom"===s&&t<=E.top+1||"left"===s&&e>=E.right-1||"right"===s&&e<=E.left+1)return void S();let j=!1;switch(s){case"top":j=nd(g,m,A,E.top+1,I,C.bottom-1);break;case"bottom":j=nd(g,m,A,C.top+1,I,E.bottom-1);break;case"left":j=nd(g,m,C.right-1,O,E.left+1,M);break;case"right":j=nd(g,m,E.right-1,O,C.left+1,M)}if(j)return;if(u&&(!(g>=E.x)||!(g<=E.x+E.width)||!(m>=E.y)||!(m<=E.y+E.height))||!b&&function(e,t){let r=performance.now(),n=r-d;if(null===c||null===f||0===n)return c=e,f=t,d=r,!1;let i=e-c,o=t-f;return c=e,f=t,d=r,i*i+o*o<n*n*nu}(g,m))return void S();let N=!1;switch(s){case"top":{let r=k?.25:2,n=t+.5+1,i=R||k?C.bottom-.5:C.top,o=R?k?C.bottom-.5:C.top:C.bottom-.5;N=nf(g,m,k||R?e+r:e-r,n,k?e-r:R?e+r:e-r,n,C.left,i,C.right,o);break}case"bottom":{let r=k?.25:2,n=t-.5,i=R||k?C.top+.5:C.bottom,o=R?k?C.top+.5:C.bottom:C.top+.5;N=nf(g,m,k||R?e+r:e-r,n,k?e-r:R?e+r:e-r,n,C.left,i,C.right,o);break}case"left":{let r=P?.25:2,n=e+.5+1,i=T||P?C.right-.5:C.left,o=T?P?C.right-.5:C.left:C.right-.5;N=nf(g,m,i,C.top,o,C.bottom,n,P||T?t+r:t-r,n,P?t-r:T?t+r:t-r);break}case"right":{let r=P?.25:2,n=e-.5,i=T||P?C.left+.5:C.right,o=T?P?C.left+.5:C.right:C.left+.5;N=nf(g,m,n,P||T?t+r:t-r,n,P?t-r:T?t+r:t-r,i,C.top,o,C.bottom)}}N?u||r.start(40,S):S()}};return n.__options={...e,blockPointerEvents:t},n}(),restMs:_,delay:()=>null==f&&M?{close:np(P.current,"close")}:{close:E},triggerElementRef:S,isActiveTrigger:y,isClosing:()=>"ending"===v.select("transitionStatus"),shouldOpen:()=>!F.current}),V=function(e,t={}){let{enabled:r=!0,delay:n}=t,{events:i,dataRef:l}=e.context,a=o.useRef(!1),s=o.useRef(null),u=o.useRef(!0),c=(0,et.e)();o.useEffect(()=>{let t=e.select("domReferenceElement");if(!r)return;let n=(0,G.K)(t);return J((0,Z.f)(n,"blur",function(){let t=e.select("domReferenceElement");!e.select("open")&&(0,G.E)(t)&&t===(0,eu.T)((0,ei.f)(t))&&(a.current=!0,s.current=t)}),nb&&(0,Z.f)(n,"keydown",function(){u.current=!0},!0),nb&&(0,Z.f)(n,"pointerdown",function(){u.current=!1},!0))},[e,r]),o.useEffect(()=>{if(r)return i.on("openchange",t),()=>{i.off("openchange",t)};function t(t){if(t.reason===tI.triggerPress||t.reason===tM.escapeKey){let t=e.select("domReferenceElement");(0,G.m)(t)&&(s.current=t,a.current=!0)}}},[i,r,e]);let f=o.useMemo(()=>{function t(){a.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(r){let i=r.currentTarget;if(a.current){if(s.current===i)return;t()}let o=(0,eu.Z)(r.nativeEvent);if((0,G.m)(o)){if(nb&&!r.relatedTarget){if(!u.current&&!(0,ec.Q)(o))return}else if(!(0,ec.F)(o))return}let l=(0,ec.x)(r.relatedTarget,e.context.triggerElements),{nativeEvent:f,currentTarget:d}=r;e.select("open")&&l||!n?e.setOpen(!0,(0,H.j)(tA.triggerFocus,f,d)):c.start(n,()=>{a.current||e.setOpen(!0,(0,H.j)(tA.triggerFocus,f,d))})},onBlur(r){t();let n=r.relatedTarget,i=r.nativeEvent,o=(0,G.m)(n)&&n.hasAttribute(eD("focus-guard"))&&"outside"===n.getAttribute("data-type");c.start(0,()=>{let t=e.select("domReferenceElement"),r=(0,eu.T)((0,ei.f)(t));if(!n&&r===t||(0,eu.I)(l.current.floatingContext?.refs.floating.current,r)||(0,eu.I)(t,r)||o)return;let a=n??r;(0,ec.x)(a,e.context.triggerElements)||e.setOpen(!1,(0,H.j)(tA.triggerFocus,i))})}}},[l,n,e,c]);return o.useMemo(()=>r?{reference:f,trigger:f}:{},[r,f])}(w,{enabled:!N}).reference,q=v.useState("appliedTriggerProps",R||"none"!==D);return(0,d.f)("button",e,{state:{open:x},ref:[t,C,S],props:[U,V,q,{onMouseOver(e){(e=>{let t,r=F.current,n=nA(e),i=(F.current=t=W(n),t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,z.clear()),t),o=S.current,l=o&&n&&(0,eu.I)(o,n);if(i&&v.select("open")&&v.select("lastOpenChangeReason")===eN.triggerHover)return v.setOpen(!1,(0,H.j)(eN.triggerHover,e));if(r&&!i&&l&&!L.current&&!v.select("open")&&o&&eg(B.current)){let t=()=>{F.current||L.current||v.select("open")||v.setOpen(!0,(0,H.j)(eN.triggerHover,e,o))},r=_();0===r?(z.clear(),t()):z.start(r,t)}})(e.nativeEvent)},onFocus(e){W(nA(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,z.clear(),B.current=void 0},onPointerEnter(e){B.current=e.pointerType},onPointerDown(e){B.current=e.pointerType,v.set("closeOnClick",c),c&&!v.select("open")&&v.cancelPendingOpen(e.nativeEvent)},onClick(e){c&&!v.select("open")&&v.cancelPendingOpen(e.nativeEvent)},id:b,[nk.f]:N?"":void 0,[nP]:N?void 0:""},g],stateAttributesMapping:A})}),nM=o.createContext(void 0),nO=o.forwardRef(function(e,t){let{children:r,container:n,className:l,render:a,style:s,...u}=e,{node:c,subtree:f}=e3({container:n,ref:t,componentProps:e,elementProps:u});return f||c?(0,i.jsxs)(o.Fragment,{children:[f,c&&eK.createPortal(r,c)]}):null}),nj=o.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e;return nt().useState("mounted")||r?(0,i.jsx)(nM.Provider,{value:r,children:(0,i.jsx)(nO,{ref:t,...n})}):null}),nN=o.createContext(void 0);function nL(){let e=o.useContext(nN);if(void 0===e)throw Error((0,p.f)(71));return e}let nD=Math.min,n$=Math.max,nF=Math.round,nz=Math.floor,nH=e=>({x:e,y:e}),nB={left:"right",right:"left",bottom:"top",top:"bottom"};function n_(e,t){return"function"==typeof e?e(t):e}function nW(e){return e.split("-")[0]}function nU(e){return e.split("-")[1]}function nX(e){return"x"===e?"y":"x"}function nV(e){return"y"===e?"height":"width"}function nY(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function nK(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let nq=["left","right"],nG=["right","left"],nZ=["top","bottom"],nJ=["bottom","top"];function nQ(e){let t=nW(e);return nB[t]+e.slice(t.length)}function n0(e){var t,r,n,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function n2(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function n1(e,t,r){let n,{reference:i,floating:o}=e,l=nY(t),a=nX(nY(t)),s=nV(a),u=nW(t),c=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,d=i[s]/2-o[s]/2;switch(u){case"top":n={x:c,y:i.y-o.height};break;case"bottom":n={x:c,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}let p=nU(t);return p&&(n[a]+=d*("end"===p?1:-1)*(r&&"y"===l?-1:1)),n}async function n4(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=n_(t,e),h=n0(p),g=a[d?"floating"===f?"reference":"floating":f],m=n2(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),y=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},x=n2(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:s}):v);return{top:(m.top-x.top+h.top)/y.y,bottom:(x.bottom-m.bottom+h.bottom)/y.y,left:(m.left-x.left+h.left)/y.x,right:(x.right-m.right+h.right)/y.x}}let n3=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=l.detectOverflow?l:{...l,detectOverflow:n4},s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=n1(u,n,s),d=n,p=0,h={};for(let r=0;r<o.length;r++){let g=o[r];if(!g)continue;let{name:m,fn:v}=g,{x:b,y:y,data:x,reset:w}=await v({x:c,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=b?b:c,f=null!=y?y:f,h[m]={...h[m],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=n1(u,d,s)),r=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}},n6=new Set(["left","top"]);async function n5(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),l=nW(r),a=nU(r),s="y"===nY(r),u=n6.has(l)?-1:1,c=o&&s?-1:1,f=n_(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function n8(e){let t=(0,G.X)(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=(0,G.E)(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:n,a=nF(r)!==o||nF(n)!==l;return a&&(r=o,n=l),{width:r,height:n,$:a}}function n9(e){return(0,G.m)(e)?e:e.contextElement}function n7(e){let t=n9(e);if(!(0,G.E)(t))return nH(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=n8(t),l=(o?nF(r.width):r.width)/n,a=(o?nF(r.height):r.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ie=nH(0);function it(e){let t=(0,G.K)(e);return(0,G.i)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ie}function ir(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),l=n9(e),a=nH(1);t&&(n?(0,G.m)(n)&&(a=n7(n)):a=n7(e));let s=(void 0===(i=r)&&(i=!1),n&&i&&n===(0,G.K)(l))?it(l):nH(0),u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(l&&n){let e=(0,G.K)(l),t=(0,G.m)(n)?(0,G.K)(n):n,r=e,i=(0,G.w)(r);for(;i&&t!==r;){let e=n7(i),t=i.getBoundingClientRect(),n=(0,G.X)(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=o,c+=l,r=(0,G.K)(i),i=(0,G.w)(r)}}return n2({width:f,height:d,x:u,y:c})}function ii(e,t){let r=(0,G.Q)(e).scrollLeft;return t?t.left+r:ir((0,G.I)(e)).left+r}function io(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ii(e,r),y:r.top+t.scrollTop}}function il(e,t,r){var n;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,i=(0,G.K)(e),o=(0,G.I)(e),l=i.visualViewport,a=o.clientWidth,s=o.clientHeight,u=0,c=0;if(l){let e=!(0,G.i)()||"fixed"===t;n?e||(u=-l.offsetLeft,c=-l.offsetTop):(a=l.width,s=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=ii(o)){let e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(a-=l)}return{width:a,height:s,x:u,y:c}}(e,r,t);else if("document"===t){let t,r,o,l,a,s;n=(0,G.I)(e),t=(0,G.Q)(n),r=n.ownerDocument.body,o=n$(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),l=n$(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight),a=-t.scrollLeft+ii(n),s=-t.scrollTop,"rtl"===(0,G.X)(r).direction&&(a+=n$(n.clientWidth,r.clientWidth)-o),i={width:o,height:l,x:a,y:s}}else if((0,G.m)(t)){let e,n,o,l,a,s;n=(e=ir(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,l=n7(t),a=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:a,height:s,x:o*l.x,y:n*l.y}}else{let r=it(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return n2(i)}function ia(e){return"static"===(0,G.X)(e).position}function is(e,t){if(!(0,G.E)(e)||"fixed"===(0,G.X)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,G.I)(e)===r&&(r=r.ownerDocument.body),r}function iu(e,t){let r=(0,G.K)(e);if((0,G.D)(e))return r;if(!(0,G.E)(e)){let t=(0,G.J)(e);for(;t&&!(0,G.Z)(t);){if((0,G.m)(t)&&!ia(t))return t;t=(0,G.J)(t)}return r}let n=is(e,t);for(;n&&(0,G.S)(n)&&ia(n);)n=is(n,t);return n&&(0,G.Z)(n)&&ia(n)&&!(0,G.e)(n)?r:n||(0,G.f)(e)||r}let ic=async function(e){let t=this.getOffsetParent||iu,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=(0,G.E)(t),i=(0,G.I)(t),o="fixed"===r,l=ir(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=nH(0);if((n||!o)&&(("body"!==(0,G.A)(t)||(0,G.B)(i))&&(a=(0,G.Q)(t)),n)){let e=ir(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!n&&i&&(s.x=ii(i));let u=!i||n||o?nH(0):io(i,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},id={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,l=(0,G.I)(n),a=!!t&&(0,G.D)(t.floating);if(n===l||a&&o)return r;let s={scrollLeft:0,scrollTop:0},u=nH(1),c=nH(0),f=(0,G.E)(n);if((f||!o)&&(("body"!==(0,G.A)(n)||(0,G.B)(l))&&(s=(0,G.Q)(n)),f)){let e=ir(n);u=n7(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let d=!l||f||o?nH(0):io(l,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:r.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:G.I,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?(0,G.D)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,G.G)(e,[],!1).filter(e=>(0,G.m)(e)&&"body"!==(0,G.A)(e)),i=null,o="fixed"===(0,G.X)(e).position,l=o?(0,G.J)(e):e;for(;(0,G.m)(l)&&!(0,G.Z)(l);){let e=(0,G.X)(l),t=(0,G.e)(l),r=i?i.position:o?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:n=n.filter(e=>e!==l),l=(0,G.J)(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=il(t,o[0],i),a=l.top,s=l.right,u=l.bottom,c=l.left;for(let e=1;e<o.length;e++){let r=il(t,o[e],i);a=n$(r.top,a),s=nD(r.right,s),u=nD(r.bottom,u),c=n$(r.left,c)}return{width:s-c,height:u-a,x:c,y:a}},getOffsetParent:iu,getElementRects:ic,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=n8(e);return{width:t,height:r}},getScale:n7,isElement:G.m,isRTL:function(e){return"rtl"===(0,G.X)(e).direction}};function ip(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ih(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=n9(e),f=o||l?[...c?(0,G.G)(c):[],...t?(0,G.G)(t):[]]:[];f.forEach(e=>{o&&e.addEventListener("scroll",r),l&&e.addEventListener("resize",r)});let d=c&&s?function(e,t,r){let n,i=null,o=(0,G.I)(e);function l(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function a(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),l();let u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(r||t(),!d||!p)return;let h={rootMargin:-nz(f)+"px "+-nz(o.clientWidth-(c+d))+"px "+-nz(o.clientHeight-(f+p))+"px "+-nz(c)+"px",threshold:n$(0,nD(1,s))||1},g=!0;function m(t){let r=t[0].intersectionRatio;if(!ip(u,e.getBoundingClientRect()))return a();if(r!==s){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{i=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(m,h)}i.observe(e)}let s=(0,G.K)(e),u=()=>a(r);return s.addEventListener("resize",u),a(!0),()=>{s.removeEventListener("resize",u),l()}}(c,r,l):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),t&&h.observe(t));let g=u?ir(e):null;return u&&function t(){let n=ir(e);g&&!ip(g,n)&&r(),g=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(i)}}var ig="u">typeof document?o.useLayoutEffect:function(){};function im(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!im(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!im(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function iv(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ib(e,t){let r=iv(e);return Math.round(t*r)/r}function iy(e){let t=o.useRef(e);return ig(()=>{t.current=e}),t}function ix(e){let{nodeId:t,externalTree:r,rootContext:n}=e,i=n.useState("referenceElement"),l=n.useState("floatingElement"),a=n.useState("domReferenceElement"),s=n.useState("open"),u=n.useState("floatingId"),[c,f]=o.useState(null),d=o.useRef(null),p=e7(r),h=o.useMemo(()=>({reference:i,floating:l,domReference:a}),[i,l,a]),g=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(n);im(p,n)||h(n);let[g,m]=o.useState(null),[v,b]=o.useState(null),y=o.useCallback(e=>{e!==E.current&&(E.current=e,m(e))},[]),x=o.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[]),w=l||g,S=a||v,E=o.useRef(null),C=o.useRef(null),R=o.useRef(f),T=null!=u,k=iy(u),P=iy(i),A=iy(c),I=o.useCallback(()=>{var e,n;let i,o,l;if(!E.current||!C.current)return;let a={placement:t,strategy:r,middleware:p};P.current&&(a.platform=P.current),(e=E.current,n=C.current,i=new Map,o=null!=a?a:{},l={...id,...o.platform,_c:i},n3(e,n,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==A.current};M.current&&!im(R.current,t)&&(R.current=t,eK.flushSync(()=>{d(t)}))})},[p,t,r,P,A]);ig(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let M=o.useRef(!1);ig(()=>(M.current=!0,()=>{M.current=!1}),[]),ig(()=>{if(w&&(E.current=w),S&&(C.current=S),w&&S){if(k.current)return k.current(w,S,I);I()}},[w,S,I,k,T]);let O=o.useMemo(()=>({reference:E,floating:C,setReference:y,setFloating:x}),[y,x]),j=o.useMemo(()=>({reference:w,floating:S}),[w,S]),N=o.useMemo(()=>{let e={position:r,left:0,top:0};if(!j.floating)return e;let t=ib(j.floating,f.x),n=ib(j.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...iv(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,j.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:I,refs:O,elements:j,floatingStyles:N}),[f,I,O,j,N])}({...e,elements:{...h,...c&&{reference:c}}}),m=o.useCallback(e=>{let t=(0,G.m)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),g.refs.setReference(t)},[g.refs]),v=o.useMemo(()=>({...g.refs,setPositionReference:m,domReference:d}),[g.refs,m]),b=o.useMemo(()=>({...g.elements,domReference:a}),[g.elements,a]),y=o.useMemo(()=>({...g,dataRef:n.context.dataRef,open:s,onOpenChange:n.setOpen,events:n.context.events,floatingId:u,refs:v,elements:b,nodeId:t,rootStore:n}),[g,v,b,t,n,s,u]);return(0,Y.f)(()=>{a&&(d.current=a)},[a]),(0,Y.f)(()=>{n.context.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),o.useMemo(()=>({...g,context:y,refs:v,elements:b,rootStore:n}),[g,v,b,y,n])}var iw=e.i(61105);let iS={name:"hide",async fn(e){let{width:t,height:r,x:n,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-r>=0||o.right-t>=0||o.bottom-r>=0||o.left-t>=0||0===t&&0===r&&0===n&&0===i}}}},iE={sideX:"left",sideY:"top"},iC="--available-width",iR="--available-height";function iT(e,t,r){let n="inline-start"===e||"inline-end"===e;return({top:"top",right:n?r?"inline-start":"inline-end":"right",bottom:"bottom",left:n?r?"inline-end":"inline-start":"left"})[t]}function ik(e,t,r){let{rects:n,placement:i}=e;return{side:iT(t,nW(i),r),align:nU(i)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function iP(e){return null!=e&&"current"in e}function iA(e){return"starting"===e?eG:q.w}let iI=o.forwardRef(function(e,t){let{render:r,className:n,anchor:l,positionMethod:a="absolute",side:s="top",align:u="center",sideOffset:c=0,alignOffset:f=0,collisionBoundary:h="clipping-ancestors",collisionPadding:g=5,arrowPadding:m=5,sticky:v=!1,disableAnchorTracking:b=!1,collisionAvoidance:y=e0,style:x,...w}=e,S=nt(),E=function(){let e=o.useContext(nM);if(void 0===e)throw Error((0,p.f)(70));return e}(),C=S.useState("open"),R=S.useState("mounted"),T=S.useState("trackCursorAxis"),k=S.useState("disableHoverablePopup"),P=S.useState("floatingRootContext"),A=S.useState("instantType"),M=S.useState("transitionStatus"),O=function(e,t){var r,n,i,l,a,s,u,c,f,d,p,h;let g,m,v,b,{anchor:y,positionMethod:x="absolute",side:w="bottom",sideOffset:S=0,align:E="center",alignOffset:C=0,collisionBoundary:R,collisionPadding:T=5,sticky:k=!1,arrowPadding:P=5,disableAnchorTracking:A=!1,inline:I,keepMounted:M=!1,floatingRootContext:O,mounted:j,collisionAvoidance:N,shift:L,nodeId:D,adaptiveOrigin:$,lazyFlip:F=!1,externalTree:z}=e,H=N.side||"flip",B=N.align||"flip",_=N.fallbackAxisSide||"end",W=L?.crossAxis??!1,U=L?.rootBoundary,X="function"==typeof y?y:void 0,V=(0,K.f)(X),q=X?V:y,G=(0,ee.f)(y),Z=(0,ee.f)(j),J="rtl"===(0,iw.f)(),[Q,et]=o.useState(null);j||null===Q||et(null);let er="placement"===F,en=Q?nW(Q):null,el=Q&&er?nU(Q)||"center":null,ea=en||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":J?"left":"right","inline-start":J?"right":"left"})[w],es=el||E,eu="center"===es?ea:`${ea}-${es}`,ec=T;"number"==typeof ec?ec={top:ec,right:ec,bottom:ec,left:ec}:ec&&(ec={top:ec.top||0,right:ec.right||0,bottom:ec.bottom||0,left:ec.left||0});let ef=+("bottom"===w),ed=+("top"===w),ep=+("right"===w),eh=+("left"===w),eg={boundary:"clipping-ancestors"===R?"clippingAncestors":R,padding:ec},em=o.useRef(null),ev=(0,ee.f)(S),eb=(0,ee.f)(C),ey=[];I&&ey.push(I),ey.push((r=e=>{let t=ik(e,w,J),r="function"==typeof ev.current?ev.current(t):ev.current,n="function"==typeof eb.current?eb.current(t):eb.current;return{mainAxis:r,crossAxis:n,alignmentAxis:n}},n=["function"!=typeof S?S:0,"function"!=typeof C?C:0,J,w],void 0===(i=r)&&(i=0),{name:(g={name:"offset",options:i,async fn(e){var t,r;let{x:n,y:o,placement:l,middlewareData:a}=e,s=await n5(e,i);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:l}}}}).name,fn:g.fn,options:[r,n]}));let ex="none"===B&&"shift"!==H,ew=!ex&&(k||W||"shift"===H),eS="none"===H?null:{name:(m={name:"flip",options:a=l={...eg,padding:{top:ec.top+1+ef,right:ec.right+1+eh,bottom:ec.bottom+1+ed,left:ec.left+1+ep},mainAxis:!W&&"flip"===H,crossAxis:"flip"===B&&"alignment",fallbackAxisSideDirection:_},async fn(e){var t,r,n,i,o,l,s,u;let c,f,d,{placement:p,middlewareData:h,rects:g,initialPlacement:m,platform:v,elements:b}=e,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...R}=n_(a,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let T=nW(p),k=nY(m),P=nW(m)===m,A=await (null==v.isRTL?void 0:v.isRTL(b.floating)),I=w||(P||!C?[nQ(m)]:(c=nQ(m),[nK(m),c,nK(c)])),M="none"!==E;!w&&M&&I.push(...(f=nU(m),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?nG:nq;return t?nq:nG;case"left":case"right":return t?nZ:nJ;default:return[]}}(nW(m),"start"===E,A),f&&(d=d.map(e=>e+"-"+f),C&&(d=d.concat(d.map(nK)))),d));let O=[m,...I],j=await v.detectOverflow(e,R),N=[],L=(null==(r=h.flip)?void 0:r.overflows)||[];if(y&&N.push(j[T]),x){let e,t,r,n,i=(l=p,s=g,void 0===(u=A)&&(u=!1),e=nU(l),r=nV(t=nX(nY(l))),n="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=nQ(n)),[n,nQ(n)]);N.push(j[i[0]],j[i[1]])}if(L=[...L,{placement:p,overflows:N}],!N.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=O[e];if(t&&("alignment"!==x||k===nY(t)||L.every(e=>nY(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let r=null==(i=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(S){case"bestFit":{let e=null==(o=L.filter(e=>{if(M){let t=nY(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=m}if(p!==r)return{reset:{placement:r}}}return{}}}).name,fn:m.fn,options:[l,void 0]},eE=ex?null:(c={...eg,rootBoundary:U,mainAxis:"none"!==B,crossAxis:ew,limiter:k||W?void 0:{fn:(void 0===(u=s=e=>{if(!em.current)return{};let{width:t,height:r}=em.current.getBoundingClientRect(),n=nY(nW(e.placement)),i="y"===n?ec.left+ec.right:ec.top+ec.bottom;return{offset:("y"===n?t:r)/2+i/2}})&&(u={}),{options:u,fn(e){var t,r,n,i;let{x:o,y:l,placement:a,rects:s,middlewareData:c}=e,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=n_(u,e),h={x:o,y:l},g=nY(a),m=nX(g),v=h[m],b=h[g],y=n_(f,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(t=y.mainAxis)?t:0,crossAxis:null!=(r=y.crossAxis)?r:0};if(d){let e="y"===m?"height":"width",t=s.reference[m]-s.floating[e]+x.mainAxis,r=s.reference[m]+s.reference[e]-x.mainAxis;v<t?v=t:v>r&&(v=r)}if(p){let e="y"===m?"width":"height",t=n6.has(nW(a)),r=s.reference[g]-s.floating[e]+(t&&(null==(n=c.offset)?void 0:n[g])||0)+(t?0:x.crossAxis),o=s.reference[g]+s.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[g])||0)-(t?x.crossAxis:0);b<r?b=r:b>o&&(b=o)}return{[m]:v,[g]:b}}}).fn,options:[s,void 0]}},f=[eg,k,W,U,ec,B],void 0===(d=c)&&(d={}),{name:(v={name:"shift",options:d,async fn(e){let{x:t,y:r,placement:n,platform:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=n_(d,e),u={x:t,y:r},c=await i.detectOverflow(e,s),f=nY(n),p=nX(f),h=u[p],g=u[f],m=(e,t)=>n$(t+c["y"===e?"top":"left"],nD(t,t-c["y"===e?"bottom":"right"]));o&&(h=m(p,h)),l&&(g=m(f,g));let v=a.fn({...e,[p]:h,[f]:g});return{...v,data:{x:v.x-t,y:v.y-r,enabled:{[p]:o,[f]:l}}}}}).name,fn:v.fn,options:[c,f]});"shift"===H||"shift"===B||"center"===es?ey.push(eE,eS):ey.push(eS,eE),ey.push({name:(b={name:"size",options:h=p={...eg,apply({elements:{floating:e},availableWidth:t,availableHeight:r,rects:n}){if(!Z.current)return;let i=e.style;i.setProperty(iC,`${t}px`),i.setProperty(iR,`${r}px`);let o=(0,eo.f)(e).devicePixelRatio||1,{x:l,y:a,width:s,height:u}=n.reference,c=(Math.round((l+s)*o)-Math.round(l*o))/o,f=(Math.round((a+u)*o)-Math.round(a*o))/o;i.setProperty("--anchor-width",`${c}px`),i.setProperty("--anchor-height",`${f}px`)}},async fn(e){let t,r,{placement:n,rects:i,platform:o,elements:l}=e,{apply:a=()=>{},...s}=n_(h,e),u=await o.detectOverflow(e,s),c=nW(n),f=nU(n),d="y"===nY(n),{width:p,height:g}=i.floating;"top"===c||"bottom"===c?(t=c,r=f===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(r=c,t="end"===f?"top":"bottom");let m=g-u.top-u.bottom,v=p-u.left-u.right,b=nD(g-u[t],m),y=nD(p-u[r],v),x=e.middlewareData.shift,w=!x,S=b,E=y;null!=x&&x.enabled.x&&(E=v),null!=x&&x.enabled.y&&(S=m),w&&!f&&(d?E=p-2*n$(u.left,u.right):S=g-2*n$(u.top,u.bottom)),await a({...e,availableWidth:E,availableHeight:S});let C=await o.getDimensions(l.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}).name,fn:b.fn,options:[p,void 0]},((e,t)=>{let{name:r,fn:n}={name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=n_(e,t)||{};if(null==u)return{};let f=n0(c),d={x:r,y:n},p=nX(nY(i)),h=nV(p),g=await l.getDimensions(u),m="y"===p,v=o.reference[h]+o.reference[p]-d[p]-o.floating[h],b=d[p]-o.reference[p],y=a.floating[m?"clientHeight":"clientWidth"]||o.floating[h],x=y/2-g[h]/2-1,w=Math.min(f[m?"top":"left"],x),S=Math.min(f[m?"bottom":"right"],x),E=y-g[h]-S,C=y/2-g[h]/2+(v/2-b/2),R=n$(w,nD(C,E)),T=!s.arrow&&null!=nU(i)&&C!==R&&o.reference[h]/2-(C<w?w:S)-g[h]/2<0,k=T?C<w?C-w:C-E:0;return{[p]:d[p]+k,data:{[p]:R,centerOffset:C-R-k,...T&&{alignmentOffset:k}},reset:T}}};return{name:r,fn:n,options:[e,t]}})(e=>({element:em.current||(0,ei.f)(e.elements.floating).createElement("div"),padding:em.current?P:0}),[P]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:n,placement:i,platform:o,rects:l,y:a}=e,s=nW(i),u=nU(i),c="y"===nY(s),f=em.current,d="function"==typeof S?S(ik(e,w,J)):S;if(!f&&u&&1>=Math.abs(c?n.shift?.x||0:n.shift?.y||0))t="start"===u===(c&&o.isRTL?.(r)===!0)?"100%":"0%";else{let e=c?n.arrow?.x||0:n.arrow?.y||0,r=c?f?.clientWidth||0:f?.clientHeight||0;t=`${e+r/2}px`}let p="top"===s||"left"===s?`calc(100% + ${d}px)`:`${-d}px`;return ew&&c&&Math.abs(n.shift?.y||0)>d&&(p=`${l.reference.y+l.reference.height/2-a}px`),r.style.setProperty("--transform-origin",c?`${t} ${p}`:`${p} ${t}`),{}}},iS,$),(0,Y.f)(()=>{!j&&O&&O.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[j,O]);let eC=o.useMemo(()=>({ancestorScroll:!A,elementResize:!A&&"u">typeof ResizeObserver,layoutShift:!A&&"u">typeof IntersectionObserver}),[A]),{refs:eR,elements:eT,x:ek,y:eP,middlewareData:eA,update:eI,placement:eM,context:eO,isPositioned:ej,floatingStyles:eN}=t({rootContext:O,open:M?j:void 0,placement:eu,middleware:ey,strategy:x,whileElementsMounted:M?void 0:(...e)=>ih(...e,eC),nodeId:D,externalTree:z}),{sideX:eL,sideY:eD}=eA.adaptiveOrigin||iE,e$=ej?x:"fixed",eF=o.useMemo(()=>{let e;return(e=ej?$?{position:e$,[eL]:ek,[eD]:eP}:{...eN,position:e$}:{position:e$,top:0,left:0})[iC]="100vw",e[iR]="100vh",ej||(e.opacity=0),e},[$,e$,eL,ek,eD,eP,eN,ej]),ez=o.useRef(null);(0,Y.f)(()=>{if(!j)return;let e=G.current,t="function"==typeof e?e():e,r=(iP(t)?t.current:t)||null;r!==ez.current&&(eR.setPositionReference(r),ez.current=r)},[j,eR,q,G]),o.useEffect(()=>{if(!j)return;let e=G.current;"function"!=typeof e&&iP(e)&&e.current!==ez.current&&(eR.setPositionReference(e.current),ez.current=e.current)},[j,eR,q,G]),o.useEffect(()=>{if(M&&j&&eT.reference&&eT.floating)return ih(eT.reference,eT.floating,eI,eC)},[M,j,eT,eI,eC]);let eH=nW(eM),eB=iT(w,eH,J),e_=nU(eM)||"center",eW=!!eA.hide?.referenceHidden;(0,Y.f)(()=>{F&&j&&ej&&(eH!==ea||er&&e_!==es)&&et(eM)},[F,er,j,ej,eM,eH,e_,ea,es]);let eU=o.useMemo(()=>({position:"absolute",top:eA.arrow?.y,left:eA.arrow?.x}),[eA.arrow]),eX=eA.arrow?.centerOffset!==0;return o.useMemo(()=>({positionerStyles:eF,arrowStyles:eU,arrowRef:em,arrowUncentered:eX,side:eB,align:e_,physicalSide:eH,anchorHidden:eW,refs:eR,context:eO,isPositioned:ej,update:eI}),[eF,eU,em,eX,eB,e_,eH,eW,eR,eO,ej,eI])}({anchor:l,positionMethod:a,floatingRootContext:P,mounted:R,side:s,sideOffset:c,align:u,alignOffset:f,collisionBoundary:h,collisionPadding:g,sticky:v,arrowPadding:m,disableAnchorTracking:b,keepMounted:E,collisionAvoidance:y,adaptiveOrigin:S.useState("adaptiveOrigin")},ix),j=function(e,t,{styles:r,transitionStatus:n,props:i,refs:o,hidden:l,inert:a=!1}){let s={...r};return a&&(s.pointerEvents="none"),(0,d.f)("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:l,style:s},iA(n),i],stateAttributesMapping:I})}(e,o.useMemo(()=>({open:C,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:"none"!==T?"tracking-cursor":A}),[C,O.side,O.align,O.anchorHidden,T,A]),{styles:O.positionerStyles,transitionStatus:M,props:w,refs:[t,S.useStateSetter("positionerElement")],hidden:!R,inert:!C||"both"===T||k});return(0,i.jsx)(nN.Provider,{value:O,children:j})});var eN=B,nR=ec;let iM=o.forwardRef(function(e,t){let{render:r,className:n,style:i,...l}=e,a=nt(),{side:s,align:u}=nL(),c=a.useState("open"),f=a.useState("instantType"),p=a.useState("transitionStatus"),h=a.useState("popupProps"),g=a.useState("floatingRootContext"),m=a.useState("disabled"),v=a.useState("closeDelay");(0,tg.f)({open:c,ref:a.context.popupRef,onComplete(){c&&a.context.onOpenChangeComplete?.(!0)}}),function(e,t={}){let{enabled:r=!0,closeDelay:n=0,nodeId:i}=t,l=e.useState("open"),a=e.useState("floatingElement"),s=e.useState("domReferenceElement"),{dataRef:u}=e.context,c=e7(),f=e9(),d=nC(e),p=(0,et.e)(),h=(0,K.f)(()=>ng(u.current.openEvent?.type,d.interactedInside)),g=(0,K.f)(()=>{var e;return e=u.current.openEvent?.type,e?.includes("mouse")&&"mousedown"!==e}),m=(0,K.f)(()=>{nS(d)});(0,Y.f)(()=>{l||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,m())},[l,d,m]),o.useEffect(()=>m,[m]),(0,Y.f)(()=>{if(r&&l&&d.handleCloseOptions?.blockPointerEvents&&g()&&(0,G.m)(s)&&a){let e=(0,ei.f)(a),t=c?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;t&&(t.style.pointerEvents="");let r=d.pointerEventsScopeElement!==a?d.pointerEventsScopeElement:null,n=t!==a?t:null,i=d.handleCloseOptions?.getScope?.()??r??n??(0,eu.h)(s,"[data-rootownerid]")??e.body;return nE(d,{scopeElement:i,referenceElement:s,floatingElement:a}),()=>{m()}}},[r,l,s,a,d,g,c,f,m]),o.useEffect(()=>{if(r)return J(a&&(0,Z.f)(a,"mouseenter",function(){d.openChangeTimeout.clear(),p.clear(),c?.events.off("floating.closed",o),m()}),a&&(0,Z.f)(a,"mouseleave",function(r){if(t()&&c)return void c.events.on("floating.closed",o);if((0,nR.x)(r.relatedTarget,e.context.triggerElements))return;let l=u.current.floatingContext?.nodeId??i,a=r.relatedTarget;if(!(c&&l&&(0,G.m)(a)&&eM(c.nodesRef.current,l,!1).some(e=>(0,eu.I)(e.context?.elements.floating,a)))){let t,i;if(d.handler)return void d.handler(r);m(),g()&&!h()&&(t=np(n,"close",d.pointerType),i=()=>{e.setOpen(!1,(0,H.j)(eN.triggerHover,r)),c?.events.emit("floating.closed",r)},t?d.openChangeTimeout.start(t,i):(d.openChangeTimeout.clear(),i()))}}),a&&(0,Z.f)(a,"pointerdown",function(e){let t=(0,eu.Z)(e);if(!(0,ec.W)(t)){d.interactedInside=!1;return}d.interactedInside=null!=(0,eu.h)(t,"[aria-haspopup]")},!0),()=>{c?.events.off("floating.closed",o)});function t(){return!!(c&&f&&eM(c.nodesRef.current,f).length>0)}function o(r){!c||!f||t()||p.start(0,()=>{c.events.off("floating.closed",o),e.setOpen(!1,(0,H.j)(eN.triggerHover,r)),c.events.emit("floating.closed",r)})}},[r,a,e,u,n,i,g,h,m,d,c,f,p])}(g,{enabled:!m,closeDelay:v});let b=a.useStateSetter("popupElement");return(0,d.f)("div",e,{state:{open:c,side:s,align:u,instant:f,transitionStatus:p},ref:[t,a.context.popupRef,b],props:[tj,h,iA(p),l],stateAttributesMapping:M})}),iO=o.forwardRef(function(e,t){let{render:r,className:n,style:i,...o}=e,l=nt(),{arrowRef:a,side:s,align:u,arrowUncentered:c,arrowStyles:f}=nL(),p=l.useState("open"),h=l.useState("instantType");return(0,d.f)("div",e,{state:{open:p,side:s,align:u,uncentered:c,instant:h},ref:[t,a],props:[{style:f,"aria-hidden":!0},o],stateAttributesMapping:I})});e.s(["Arrow",0,iO,"Popup",0,iM,"Portal",0,nj,"Positioner",0,iI,"Provider",0,function(e){let{delay:t,closeDelay:r,timeout:n=400}=e,l=o.useMemo(()=>({open:t,close:r}),[t,r]);return(0,i.jsx)(ns.Provider,{value:t,children:(0,i.jsx)(nv,{delay:l,timeoutMs:n,children:e.children})})},"Root",0,nl,"Trigger",0,nI],21548);var ij=e.i(21548),ij=ij,iN=ij,iL=ij,iD=ij,i$=ij,iF=ij,iz=ij;function iH({...e}){return(0,i.jsx)(iN.Root,{"data-slot":"tooltip",...e})}function iB({...e}){return(0,i.jsx)(iL.Trigger,{"data-slot":"tooltip-trigger",...e})}function i_({className:e,side:t="top",sideOffset:r=4,align:n="center",alignOffset:o=0,children:l,...a}){return(0,i.jsx)(iD.Portal,{children:(0,i.jsx)(i$.Positioner,{align:n,alignOffset:o,side:t,sideOffset:r,className:"isolate z-50",children:(0,i.jsxs)(iF.Popup,{"data-slot":"tooltip-content",className:(0,u.f)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a,children:[l,(0,i.jsx)(iz.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}var iW=e.i(67449);let iU={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};iU.node,(0,iW.f)(iU);let iX=o.createContext(null);function iV(){let e=o.useContext(iX);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let iY=(0,s.f)("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Sidebar",0,function({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...l}){let{isMobile:a,state:s,openMobile:c,setOpenMobile:f}=iV();return"none"===r?(0,i.jsx)("div",{"data-slot":"sidebar",className:(0,u.f)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",n),...l,children:o}):a?(0,i.jsx)(r1,{open:c,onOpenChange:f,swipeDirection:"left",...l,children:(0,i.jsxs)(r5,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground p-0 w-64 max-h-screen h-full",children:[(0,i.jsxs)(r8,{className:"sr-only",children:[(0,i.jsx)(r9,{children:"Sidebar"}),(0,i.jsx)(r7,{children:"Displays the mobile sidebar."})]}),(0,i.jsx)("div",{className:"flex w-full flex-col overflow-y-auto p-4",children:o})]})}):(0,i.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":s,"data-collapsible":"collapsed"===s?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[(0,i.jsx)("div",{"data-slot":"sidebar-gap",className:(0,u.f)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,i.jsx)("div",{"data-slot":"sidebar-container","data-side":e,className:(0,u.f)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...l,children:(0,i.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})]})},"SidebarContent",0,function({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,u.f)("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})},"SidebarFooter",0,function({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,u.f)("flex flex-col gap-2 p-2",e),...t})},"SidebarHeader",0,function({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,u.f)("flex flex-col gap-2 p-2",e),...t})},"SidebarInset",0,function({className:e,...t}){return(0,i.jsx)("main",{"data-slot":"sidebar-inset",className:(0,u.f)("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})},"SidebarMenu",0,function({className:e,...t}){return(0,i.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,u.f)("flex w-full min-w-0 flex-col gap-0",e),...t})},"SidebarMenuButton",0,function({render:e,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:s,...c}){let{isMobile:f,state:d}=iV(),p=(0,a.f)({defaultTagName:"button",props:(0,l.w)({className:(0,u.f)(iY({variant:r,size:n}),s)},c),render:o?(0,i.jsx)(iB,{render:e}):e,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:n,active:t}});return o?("string"==typeof o&&(o={children:o}),(0,i.jsxs)(iH,{children:[p,(0,i.jsx)(i_,{side:"right",align:"center",hidden:"collapsed"!==d||f,...o})]})):p},"SidebarMenuItem",0,function({className:e,...t}){return(0,i.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,u.f)("group/menu-item relative",e),...t})},"SidebarProvider",0,function({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:l,children:a,...s}){let d=o.useSyncExternalStore(f,()=>window.matchMedia(c).matches,()=>!1),[p,h]=o.useState(!1),[g,m]=o.useState(e),v=t??g,b=o.useCallback(e=>{let t="function"==typeof e?e(v):e;r?r(t):m(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[r,v]),y=o.useCallback(()=>d?h(e=>!e):b(e=>!e),[d,b,h]);o.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y]);let x=v?"expanded":"collapsed",w=o.useMemo(()=>({state:x,open:v,setOpen:b,isMobile:d,openMobile:p,setOpenMobile:h,toggleSidebar:y}),[x,v,b,d,p,h,y]);return(0,i.jsx)(iX.Provider,{value:w,children:(0,i.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...l},className:(0,u.f)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",n),...s,children:a})})},"useSidebar",0,iV],11522)},71428,e=>{var t=e.i(2506),r=e.i(27152);e.s(["f",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,r.f)("animate-pulse rounded-md bg-muted",e),...n})}])},64114,e=>{var t=e.i(93961),r=e.i(73011);function n(e){let t=e.filter(e=>void 0!==e);return t.length?t.reduce((e,t)=>e+t,0)/t.length:0}let i="No prior data yet",o="#9ca3af";function l(e,t,r){if(null===t||0===t)return{change:i,changeClass:"text-dash-muted"};let n=e-t,o=n/t*100,l=o>0?"+":"";return{change:`${l}${o.toFixed(1)}% from last check`,changeClass:0===n?"text-dash-blue":(r?n>0:n<0)?"text-dash-success":"text-dash-warning"}}function a(e){return e.length>=2?e[e.length-2].pages:null}let s=e=>e.some(e=>e.metrics.traffic?.sampled),u=e=>e.reduce((e,t)=>e+(t.metrics.traffic?.count??0),0),c=e=>void 0===e.metrics.apdex?void 0:100*e.metrics.apdex;function f(e,t){return e.map((e,r)=>{let i=e.pages.map(t);return{label:String(r+1),value:i.some(e=>void 0!==e)?n(i):null}})}function d(e,t,r){if(null===t||0===t)return{change:i,direction:null,isPositive:null,color:o};let n=e-t;return r(Math.abs(n))===r(0)?{change:"No change",direction:null,isPositive:null,color:o}:{change:r(Math.abs(n)),direction:n<0?"down":"up",isPositive:n<0,color:n<0?"#3ee0a1":"#ef4444"}}let p={high:"critical",medium:"warning",low:"warning"};e.s(["K",0,function(e){return e?[...(e.alerts??[]).map(e=>{let t;return{page:e.page,type:p[e.severity],suggestion:e.message,badge:(t=e.metric.split(/[\s,]/)[0]).length>14?`${t.slice(0,14)}…`:t}}),...(e.recommendations??[]).map(e=>({page:"All Pages",type:"optimize",suggestion:e,badge:"Tip"}))]:[]},"L",0,function(e,t){return t("apdex")?{title:"Apdex Trend",points:f(e,c).map((t,r)=>({month:new Date(e[r].timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),value:null===t.value?null:Math.round(t.value)}))}:null},"z",0,function(e,i,o,c){let f=a(i),d=(t,n)=>{let i=(0,r.i)(t,e.some(e=>void 0!==e.metrics[t])?n:void 0,c);return i&&{status:i,limit:(0,r.a)(t,c)}},p=n(e.map(e=>e.metrics.loadTime)),h=n(e.map(e=>e.metrics.errorRate)),g=u(e),m=n(e.map(e=>e.metrics.apdex)),v=f?n(f.map(e=>e.metrics.loadTime)):null,b=f?n(f.map(e=>e.metrics.errorRate)):null,y=f?u(f):null,x=f?n(f.map(e=>e.metrics.apdex)):null;return[o("loadTime")&&{label:"Avg Page Load Time",value:(0,t.f)(p),...l(p,v,!1),...d("loadTime",p)},o("errorRate")&&{label:"Error Rate",value:`${h.toFixed(2)}%`,...l(h,b,!1),...d("errorRate",h)},o("traffic")&&{label:s(e)?"Sampled page loads (24h)":"Page views (24h)",value:g.toLocaleString(),...l(g,y,!0)},o("apdex")&&{label:"Apdex Score",value:m.toFixed(2),...l(m,x,!0),...d("apdex",m)}].filter(e=>!!e)},"l",0,function(e,t,i,o){if(!i("apdex")||!i("loadTime"))return null;let l=a(t),s=e=>"Healthy"===(0,r.i)("apdex",e.metrics.apdex,o),u=e=>"Healthy"===(0,r.i)("loadTime",e.metrics.loadTime,o),d=100*n(e.map(e=>e.metrics.apdex)),p=e.filter(s).length,h=e.filter(u).length,g=l&&n(l.map(e=>e.metrics.apdex)),m=l&&n(l.map(e=>e.metrics.loadTime)),v=l&&g?Math.round((d-100*g)*10)/10:null,b=l&&g?p-l.filter(s).length:null,y=l&&m?h-l.filter(u).length:null;return{avgScore:Math.round(10*d)/10,scoreDelta:v,isPositive:null!==v&&v>=0,trend:f(t,c).map(e=>({value:e.value})),stats:[{label:`Pages with Apdex ${+o.apdexMin.toFixed(2)} or higher`,value:`${p}/${e.length}`,delta:b,isPositive:null!==b&&b>=0},{label:`Pages Within Load Budget (${+o.loadSeconds.toFixed(1)}s)`,value:`${h}/${e.length}`,delta:y,isPositive:null!==y&&y>=0}]}},"r",0,function(e,r,i){if(!i("vitals"))return null;let o=a(r),l=n(e.map(e=>e.metrics.vitals?.ttfb)),s=n(e.map(e=>e.metrics.vitals?.lcp)),u=n(e.map(e=>e.metrics.vitals?.cls)),c=o?n(o.map(e=>e.metrics.vitals?.ttfb)):null,p=o?n(o.map(e=>e.metrics.vitals?.lcp)):null,h=o?n(o.map(e=>e.metrics.vitals?.cls)):null;return{ttfb:{title:"TTFB",description:"Time to First Byte",value:(0,t.f)(l),...d(l,c,t.f),data:f(r,e=>e.metrics.vitals?.ttfb)},lcp:{title:"LCP",description:"Largest Contentful Paint",value:(0,t.f)(s),...d(s,p,t.f),data:f(r,e=>e.metrics.vitals?.lcp)},cls:{title:"CLS",description:"Cumulative Layout Shift",value:u.toFixed(2),...d(u,h,e=>e.toFixed(2)),data:f(r,e=>e.metrics.vitals?.cls)}}},"O",0,s])},73011,e=>{var t=e.i(93961);let r=["loadTime","errorRate","apdex"];function n(e,t,r){let n="loadTime"===e?t/1e3/r.loadSeconds:"errorRate"===e?t/r.errorPercent:r.apdexMin/Math.max(t,0);return Number.isNaN(n)?0:n}function i(e,t,r){if(void 0===t)return;let i=n(e,t,r);return i>2&&"apdex"!==e?"Critical":i>1?"Warning":"Healthy"}function o(e,t){return"apdex"===e?`min ${+t.apdexMin.toFixed(2)}`:"loadTime"===e?`limit ${+t.loadSeconds.toFixed(1)}s`:`limit ${+t.errorPercent.toFixed(2)}%`}function l(e,t){let r=[i("loadTime",e.loadTime,t),i("errorRate",e.errorRate,t),i("apdex",e.apdex,t)];if(!r.includes(void 0))return r.includes("Critical")?"Critical":r.includes("Warning")?"Warning":"Healthy"}function a(e){let t=e.metrics;return(t.traffic?.count??0)>0||(t.loadTime??0)>0||(t.errors?.count??0)>0||t.lighthouse?.score!==void 0}function s(e){return(e.metrics.traffic?.count??0)>0||(e.metrics.loadTime??0)>0}let u=e=>Number.isFinite(e)?e:0,c={loadTime:e=>`load time ${(0,t.f)(e)}`,errorRate:e=>`error rate ${e.toFixed(2)}%`,apdex:e=>`Apdex ${e.toFixed(2)}`};e.s(["q",0,{loadSeconds:1.5,errorPercent:2,apdexMin:.9,uptimeSLA:99.9},"k",0,function(e,t){let l=e.metrics;return s(e)?r.filter(e=>["Warning","Critical"].includes(i(e,l[e],t)??"")).sort((e,r)=>n(r,l[r],t)-n(e,l[e],t)||0).map(e=>`${c[e](l[e])} (${o(e,t)})`):[]},"B",0,l,"f",0,a,"m",0,s,"a",0,o,"i",0,i,"Q",0,function(e,t){let i=e.map(e=>{let i=a(e),o=s(e)?l(e.metrics,t):void 0,c=u(e.metrics.errors?.count),f=i?"Critical"===o?0:"Warning"===o?1:"Healthy"===o?3:c>0?2:4:5,d=o?Math.max(...r.map(r=>n(r,e.metrics[r],t))):0;return{page:{...e,status:o},group:f,ratio:d,errors:c,traffic:u(e.metrics.traffic?.count)}});return i.sort((e,t)=>e.group-t.group||t.ratio-e.ratio||t.errors-e.errors||t.traffic-e.traffic||e.page.name.localeCompare(t.page.name)||(e.page.slug<t.page.slug?-1:+(e.page.slug>t.page.slug))),i.map(e=>e.page)}])},93834,e=>{var t=e.i(86242),r=e.i(67449);let n={name:"bug",size:24,node:[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]};n.node;let i=(0,r.f)(n);var o=e.i(98948),l=e.i(93961);let a=["pages","traffic","loadTime","apdex","vitals","ajax","errorRate","errors","lighthouse"],s=e=>e.length?e.reduce((e,t)=>e+t,0)/e.length:0,u=e=>void 0===e?"—":(0,l.f)(e),c=e=>e.byTool?.sentry?.errors??(e.sentry&&{count:e.sentry.errorCount,latest:e.sentry.latestErrors}),f=e=>e.byTool?.lighthouse?.lighthouse,d=(e,t)=>{let r=[];for(let n of e){let e=f(n),i=void 0===e?void 0:t(e);void 0!==i&&r.push(i)}return r.length?s(r):void 0},p=e=>void 0===e?"—":String(Math.round(e)),h=e=>void 0===e?"—":e.toFixed(2),g=e=>c(e)?.count??0,m={"new-relic":{label:"New Relic",icon:t.f,description:"Real-user performance per page: load time, Core Web Vitals, throughput and Apdex.",connectReason:"Add your New Relic keys to see load time and Core Web Vitals for each page.",setupNote:"The key that sends events (Ingest - License) is separate and is added later on the Connect page.",keys:{required:["NEWRELIC_API_KEY","NEXT_PUBLIC_NEWRELIC_ACCOUNT_ID"],optional:["NEWRELIC_INSERT_KEY"],derived:["NEWRELIC_REGION"]},capabilities:["pages","traffic","loadTime","apdex","vitals","ajax","errorRate"],stats:e=>[{label:"Avg Load Time",value:(0,l.f)(s(e.map(e=>e.newRelic.loadTime)))},{label:"Avg LCP",value:(0,l.f)(s(e.map(e=>e.newRelic.lcp)))},{label:"Avg TTFB",value:(0,l.f)(s(e.map(e=>e.newRelic.ttfb)))},{label:"Avg Apdex",value:s(e.map(e=>e.newRelic.apdexScore)).toFixed(2)}],columns:[{needs:"loadTime",header:"Load",cell:e=>(0,l.f)(e.newRelic.loadTime)},{needs:"vitals",header:"LCP",cell:e=>(0,l.f)(e.newRelic.lcp)},{needs:"vitals",header:"TTFB",cell:e=>(0,l.f)(e.newRelic.ttfb)},{needs:"vitals",header:"CLS",cell:e=>e.newRelic.cls.toFixed(2)},{needs:"vitals",header:"INP",cell:e=>{let t=e.newRelic.inp;return void 0===t?"—":(0,l.f)(t)}},{needs:"errorRate",header:"Error Rate",cell:e=>`${e.newRelic.errorRate.toFixed(2)}%`},{needs:"traffic",header:"Throughput",cell:e=>e.newRelic.throughput.toLocaleString()},{needs:"apdex",header:"Apdex",cell:e=>e.newRelic.apdexScore.toFixed(2)}]},sentry:{label:"Sentry",icon:i,description:"Errors per page over the last 24 hours, with page loads and web vitals when your site sends traces.",connectReason:"Add your Sentry keys to see the errors on each page.",keys:{required:["SENTRY_API_KEY","SENTRY_DSN"],optional:[]},capabilities:["pages","traffic","vitals","errors"],stats:e=>{let t=e.reduce((e,t)=>g(t)>(e?g(e):0)?t:e,null);return[{label:"Total Errors",value:String(e.map(g).reduce((e,t)=>e+t,0))},{label:"Pages With Errors",value:`${e.filter(e=>g(e)>0).length} of ${e.length}`},{label:"Noisiest Page",value:t?.name??"None"}]},columns:[{needs:"errors",header:"Errors",cell:e=>String(g(e))},{needs:"errors",header:"Latest Error",cell:e=>c(e)?.latest[0]?.title??"—"},{needs:"errors",header:"Last Seen",cell:e=>{let t=Date.parse(c(e)?.latest[0]?.lastSeen??"");return Number.isNaN(t)?"—":new Date(t).toLocaleString()}},{needs:"traffic",header:"Page loads (sampled)",cell:e=>e.byTool?.sentry?.traffic?.count.toLocaleString()??"—"},{needs:"vitals",header:"LCP",cell:e=>u(e.byTool?.sentry?.vitals?.lcp)},{needs:"vitals",header:"TTFB",cell:e=>u(e.byTool?.sentry?.vitals?.ttfb)},{needs:"vitals",header:"CLS",cell:e=>e.byTool?.sentry?.vitals?.cls?.toFixed(2)??"—"},{needs:"vitals",header:"INP",cell:e=>u(e.byTool?.sentry?.vitals?.inp)}]},lighthouse:{label:"Lighthouse CI",icon:o.f,description:"Lab scores per page, from Lighthouse runs on your project or a Lighthouse CI report: performance score, LCP, CLS and total blocking time.",connectReason:"Add your project's address and MetricFlow runs Lighthouse on its pages, or add the path or URL of a Lighthouse CI JSON report.",setupNote:"Fill in one of the two. If both are set, the project address is used and the report is ignored.",keys:{required:[],optional:[],anyOf:["LIGHTHOUSE_REPORT","LIGHTHOUSE_TARGET"]},capabilities:["pages","lighthouse"],stats:e=>[{label:"Avg Score",value:p(d(e,e=>e.score))},{label:"Avg LCP",value:u(d(e,e=>e.lcp))},{label:"Avg CLS",value:h(d(e,e=>e.cls))},{label:"Avg TBT",value:u(d(e,e=>e.tbt))}],columns:[{needs:"lighthouse",header:"Score",cell:e=>p(f(e)?.score)},{needs:"lighthouse",header:"LCP",cell:e=>u(f(e)?.lcp)},{needs:"lighthouse",header:"CLS",cell:e=>h(f(e)?.cls)},{needs:"lighthouse",header:"TBT",cell:e=>u(f(e)?.tbt)}]}},v={NEWRELIC_API_KEY:{label:"New Relic User API key",secret:!0,help:'READS your data (starts NRAK-). Create it under API keys > key type "User".'},NEXT_PUBLIC_NEWRELIC_ACCOUNT_ID:{label:"New Relic account ID",secret:!1,help:"A plain number, shown next to your keys in New Relic."},SENTRY_API_KEY:{label:"Sentry auth token",secret:!0,help:"Lets the dashboard read issues (scopes: project:read, event:read)."},SENTRY_DSN:{label:"Sentry DSN",secret:!1,help:"Project settings, then Client Keys (DSN). The project and host are read from it."},LIGHTHOUSE_REPORT:{label:"Lighthouse report",secret:!1,help:"A Lighthouse CI JSON report, or a folder of them. A relative path starts from the project folder. URLs must be public http(s); for a report on localhost, use its file path. Spaces, #, $, quotes and backslashes are not accepted.",placeholder:".lighthouseci/ or https://example.com/lhr.json"},LIGHTHOUSE_TARGET:{label:"Project address",secret:!1,help:"Your dev server or site, such as http://localhost:3001. MetricFlow finds up to 20 pages (sitemap.xml, or the links on the home page) and runs Lighthouse on each in headless Chrome, again every hour while the dashboard is open. About 10-30 seconds per page. Needs Google Chrome and Node 22.19 or newer on this machine.",placeholder:"http://localhost:3001"}};Object.fromEntries(Object.entries(v).map(([e,t])=>[e,t.label]));let b=Object.keys(m);e.s(["w",0,v,"R",0,"Scores take about 10-30 seconds per page, up to a few minutes for 20 pages.","Q",0,m,"p",0,b,"F",0,e=>Object.hasOwn(m,e),"k",0,function(e,t,r){let n={};for(let[i,o]of Object.entries(t)){let t=r.includes(o)?void 0:e[o]?.[i];void 0!==t&&(n[i]=t)}return n},"_",0,function(e){let t={};for(let r of a){let n=b.find(t=>e.includes(t)&&m[t].capabilities.includes(r));n&&(t[r]=n)}return t},"Y",0,e=>{let{columns:t,capabilities:r}=m[e];return t.filter(e=>r.includes(e.needs))}],93834)},34813,26107,e=>{var t=e.i(84626),r=e.i(93834);function n(e,t,n){return e.map(e=>{let i,o;if(e.metrics&&e.byTool)return e;let l={...e.newRelic&&{"new-relic":{traffic:{count:(i=e.newRelic).throughput},loadTime:i.loadTime,apdex:i.apdexScore,vitals:{lcp:i.lcp,cls:i.cls,inp:i.inp,ttfb:i.ttfb,fid:i.fid},...void 0!==i.ajaxLatency&&{ajax:{latency:i.ajaxLatency,failRate:i.ajaxFailRate??0}},errorRate:i.errorRate}},...e.sentry&&{sentry:{errors:{count:(o=e.sentry).errorCount,latest:o.latestErrors}}}};return{...e,metrics:(0,r.k)(l,t,n),byTool:l}})}function i(e){let t=e.failed??[],i=e.sources??(0,r._)((e.tools??[]).filter(r.F));return{...e,tools:e.tools??[],failed:t,sources:i,pages:e.pages&&n(e.pages,i,t),history:e.history?.map(e=>({...e,sources:e.sources??i,pages:n(e.pages,e.sources??i,[])}))}}e.s(["f",0,i],26107);var o=e.i(73011),l=e.i(50762);let a="metricflow:metrics-refresh";e.s(["u",0,a,"v",0,(e,t)=>void 0!==e.sources[t]&&!e.failed.includes(e.sources[t]),"a",0,function(){let[e,r]=(0,t.useState)({status:"loading"}),[n,s]=(0,t.useState)(0);(0,t.useEffect)(()=>{let e=!1,t=()=>fetch("/api/metrics").then(async t=>{let n=await t.json();if(!t.ok)throw Error(n.error??`HTTP ${t.status}`);let o=i(n);e||r({status:"ready",configured:o.configured,tools:o.tools,failed:o.failed,sources:o.sources,pages:o.pages,project:o.project,timestamp:o.timestamp})}).catch(t=>{e||r(e=>"ready"===e.status?{...e,stale:!0}:{status:"error",message:t instanceof Error?t.message:"Request failed"})});t();let n=setInterval(t,3e4);return window.addEventListener(a,t),()=>{e=!0,clearInterval(n),window.removeEventListener(a,t)}},[n]);let u=(0,l.B)();return{state:"ready"===e.status?{...e,pages:e.pages.map(e=>({...e,status:(0,o.B)(e.metrics,u)}))}:e,retry:()=>{r({status:"loading"}),s(e=>e+1)}}}],34813)},50762,e=>{var t=e.i(84626),r=e.i(73011);let n="perf-thresholds",i=new Set,o=null;function l(e){let t={...r.q};for(let r of Object.keys(t)){let n=e?.[r];"number"==typeof n&&Number.isFinite(n)&&(t[r]=n)}return t}function a(){if(o)return o;try{o=l(JSON.parse(localStorage.getItem(n)??"{}"))}catch{o=r.q}return o}function s(e){o=e;try{localStorage.setItem(n,JSON.stringify(e))}catch{}i.forEach(e=>e())}let u=!1;function c(e){e.key===n&&(o=null,i.forEach(e=>e()))}function f(e){return i.add(e),u||(u=!0,fetch("/api/settings").then(e=>e.ok?e.json():null).then(e=>e&&s(l(e))).catch(()=>{u=!1})),window.addEventListener("storage",c),()=>{i.delete(e),window.removeEventListener("storage",c)}}e.s(["s",0,function(e){s({...a(),...e}),fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(()=>{})},"B",0,function(){return(0,t.useSyncExternalStore)(f,a,()=>r.q)}])},87002,e=>{e.i(84132);var t=e.i(84626),r=e.i(96340),n=e.i(86626);let i=t.forwardRef(function(e,t){let{render:i,className:o,disabled:l=!1,focusableWhenDisabled:a=!1,nativeButton:s=!0,style:u,...c}=e,{getButtonProps:f,buttonRef:d}=(0,r.f)({disabled:l,focusableWhenDisabled:a,native:s});return(0,n.f)("button",e,{state:{disabled:l},ref:[t,d],props:[c,f]})});e.s(["Button",0,i])},21720,e=>{e.i(84132);var t=e.i(80269);function r(e,{startingIndex:t=-1,decrement:i=!1,disabledIndices:o,amount:l=1}={}){let a=t;do a+=i?-l:l;while(a>=0&&a<=e.length-1&&n(e,a,o))return a}function n(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!!(!i(n)||n.matches(":disabled"))||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function i(e,r=e?(0,t.X)(e):null){var n;return!!e&&!!e.isConnected&&!!r&&"hidden"!==(n=r).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==r.display&&"contents"!==r.display)}e.s(["e",0,r,"_",0,function(e,t){return r(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"J",0,function(e,t){return r(e.current,{disabledIndices:t})},"v",0,i,"c",0,function(e,t){return t<0||t>=e.length},"K",0,n])},67503,e=>{var t=e.i(19360);e.s(["f",0,t])},41609,61105,e=>{var t=e.i(80269);let r="ArrowUp",n="ArrowDown",i="ArrowLeft",o="ArrowRight",l="Home",a=new Set([r,n,i,o,l,"End"]);function s(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);)t=t.offsetParent;return i}function u(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["e",0,n,"b",0,i,"q",0,o,"V",0,r,"J",0,a,"C",0,"End","Z",0,l,"a",0,["Shift","Control","Alt","Meta"],"I",0,"PageDown","v",0,"PageUp","X",0,function(e){return!!((0,t.E)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.E)(e)&&"TEXTAREA"===e.tagName)},"l",0,function(e,t,r,n){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,o=e.scrollTop,l=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(l&&"vertical"!==n){let n=s(e,t,"left"),o=u(e),l=u(t);"ltr"===r&&(n+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight?i=n+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:n-l.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft&&(i=n-l.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===r&&(n-l.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft?i=n-l.scrollMarginLeft-o.scrollPaddingLeft:n+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(i=n+t.offsetWidth+l.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(a&&"horizontal"!==n){let r=s(e,t,"top"),n=u(e),i=u(t);r-i.scrollMarginTop<e.scrollTop+n.scrollPaddingTop?o=r-i.scrollMarginTop-n.scrollPaddingTop:r+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-n.scrollPaddingBottom&&(o=r+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+n.scrollPaddingBottom)}e.scrollTo({left:i,top:o,behavior:"auto"})}],41609);var c=e.i(84626);let f=c.createContext(void 0);e.s(["f",0,function(){let e=c.useContext(f);return e?.direction??"ltr"}],61105)},15608,61045,e=>{var t=e.i(15585);e.s(["j",0,function(e,r,n,i){let o=!1,l=!1,a=i??t.w;return{reason:e,event:r??new Event("base-ui"),cancel(){o=!0},allowPropagation(){l=!0},get isCanceled(){return o},get isPropagationAllowed(){return l},trigger:n,...a}},"U",0,function(e,r,n){let i=n??t.w;return{reason:e,event:r??new Event("base-ui"),...i}}],15608),e.s(["closePress",0,"close-press","closeWatcher",0,"close-watcher","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","initial",0,"initial","inputChange",0,"input-change","keyboard",0,"keyboard","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press"],61045)},33191,24048,17090,73754,81280,79517,3270,58247,e=>{var t=e.i(49133),r=e.i(84626),n=e.i(15585);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1};e.s(["q",0,o,"t",0,i,"s",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],24048);let l={invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:n.x,disabled:void 0,setTouched:n.x,setDirty:n.x,setFilled:n.x,setFocused:n.x,focusOwnerRef:{current:void 0},validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:o,registerFieldControl:n.x,validation:{getValidationProps:(e,t=n.w)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:n.x,getInputControl:()=>null,commit:async()=>{},change:n.x}},a=r.createContext(l);function s(e=!0){let i=r.useContext(a);if(i.setValidityData===n.x&&!e)throw Error((0,t.f)(28));return i}e.s(["f",0,s],33191);var u=e.i(73522),c=e.i(1283);e.s(["f",0,function(e,t,r){let{setFocused:n,focusOwnerRef:i}=s(),o=(0,c.f)(t=>{(t?e:i.current!==o)||(i.current=t&&o,r?.(t),n(t))});return(0,u.f)(()=>{let e=t.current,r=e?.getRootNode();return r?.activeElement===e&&o(!0),()=>o(!1)},[e,t,o]),o}],17090);var f=e.i(3622);e.s(["f",0,function(e,t,r,n,i=!0,o){let{registerFieldControl:l}=s(),a=(0,f.f)(()=>Symbol());(0,u.f)(()=>{let s=a.current;i?l(s,{controlRef:e,getValue:n,id:t,name:o,value:r}):l(s,void 0)},[e,i,n,t,o,l,a,r]),(0,u.f)(()=>{let e=a.current;return()=>{l(e,void 0)}},[l,a])}],73754);let d=r.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:n.x,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["f",0,function(){return r.useContext(d)}],81280);let p=r.createContext({controlId:void 0,registerControlId:n.x,resetControlId:n.x,labelId:void 0,setLabelId:n.x,messageIds:[],setMessageIds:n.x,getDescriptionProps:e=>e});function h(){return r.useContext(p)}e.s(["f",0,h],79517);var g=e.i(75118);e.s(["f",0,function(e={}){let{id:t,enabled:i=!0}=e,{controlId:o,registerControlId:l,resetControlId:a}=h(),s=(0,g.f)(),d=(0,f.f)(()=>Symbol()),p=r.useRef(!1),m=r.useRef(!1),v=(0,c.f)(()=>{p.current&&l!==n.x&&(p.current=!1,l(d.current,void 0))});return(0,u.f)(()=>{let e;if(!i||l===n.x)return void v();if(void 0!==t)m.current=!0,e=t;else{if(!m.current)return void a();e=s}void 0===e?v():(p.current=!0,l(d.current,e))},[t,i,l,a,s,d,v]),(0,u.f)(()=>v,[v]),(i?o:void 0)??t??s}],3270),e.s(["f",0,function(e,t){let n=r.useRef(e),i=(0,c.f)(t);(0,u.f)(()=>{n.current!==e&&i(n.current),n.current=e},[e,i])}],58247)},39221,e=>{var t=e.i(61045);e.s(["f",0,t])},92201,e=>{var t=e.i(61045);e.s(["f",0,t])},1293,19360,e=>{let t="data-starting-style",r="data-ending-style";e.s(["endingStyle",0,r,"startingStyle",0,t],19360),e.i(19360);let n={[t]:""},i={[r]:""};e.s(["f",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?i:null}],1293)},96340,62168,49415,e=>{var t=e.i(84626),r=e.i(80269),n=e.i(1283),i=e.i(73522),o=e.i(39294),l=e.i(49133);let a=t.createContext(void 0);function s(e=!1){let r=t.useContext(a);if(void 0===r&&!e)throw Error((0,l.f)(16));return r}e.s(["e",0,a,"o",0,s],62168);var u=e.i(79995);function c(e,t,{detail:r=0,pointerType:n=""}={}){e.dispatchEvent(new((0,u.f)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,pointerType:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function f(e){return(0,r.E)(e)&&"BUTTON"===e.tagName}e.s(["f",0,c],49415),e.s(["f",0,function(e={}){let{disabled:l=!1,focusableWhenDisabled:a,tabIndex:u=0,native:d=!0,composite:p}=e,h=t.useRef(null),g=s(!0),m=p??void 0!==g,{props:v}=function(e){let{focusableWhenDisabled:r,disabled:n,composite:i=!1,tabIndex:o=0,isNativeButton:l}=e,a=i&&!1!==r,s=i&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&r&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!l&&n&&(e.tabIndex=r?o:-1)),(l&&(r||a)||!l&&n)&&(e["aria-disabled"]=n),l&&(!r||s)&&(e.disabled=n),e},[i,n,r,a,s,l,o])}}({focusableWhenDisabled:a,disabled:l,composite:m,tabIndex:u,isNativeButton:d}),b=t.useCallback(()=>{let e=h.current;f(e)&&m&&l&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[l,v.disabled,m]);return(0,i.f)(b,[b]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:i,onKeyDown:a,onPointerDown:s,...u}=e;return(0,o.w)({onClick(e){l?e.preventDefault():t?.(e)},onMouseDown(e){l||n?.(e)},onKeyDown(e){var t;if(l||((0,o.U)(e),a?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,i=e.currentTarget,s=f(i),u=!d&&(t=i,(0,r.E)(t)&&"A"===t.tagName&&!!t.href),p=n&&(d?s:!u),h="Enter"===e.key,g=" "===e.key,v=i.getAttribute("role"),b=v?.startsWith("menuitem")||"option"===v||"gridcell"===v;if(n&&m&&g){if(e.defaultPrevented&&b)return;e.preventDefault(),(!d||s)&&(e.preventBaseUIHandler(),c(i,e));return}if(!p||d||!g&&!h){n&&u&&g&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),h&&(e.preventBaseUIHandler(),c(i,e)))},onKeyUp(e){l||(((0,o.U)(e),i?.(e),e.target===e.currentTarget&&d&&m&&f(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||m||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),c(e.currentTarget,e))))},onPointerDown(e){l?e.preventDefault():s?.(e)}},d?{type:"button"}:{role:"button"},v,u)},[l,v,m,d]),buttonRef:(0,n.f)(e=>{h.current=e,b()})}}],96340)},75118,2778,63910,e=>{var t=e.i(84626),r=e.i(49078);function n(){let[,e]=t.useState({});return t.useCallback(()=>{e({})},[])}e.s(["f",0,n],2778);let i=0,o=r.f.useId;function l(e,r){if(void 0!==o){let t=o();return e??(r?`${r}-${t}`:t)}return function(e,r="mui"){let o=t.useRef(void 0),l=n(),a=e??o.current;return t.useEffect(()=>{null==o.current&&(i+=1,o.current=`${r}-${i}`,null==e&&l())},[e,r,l]),a}(e,r)}e.s(["f",0,l],63910),e.s(["f",0,function(e){return l(e,"base-ui")}],75118)},65280,51816,27824,e=>{var t=e.i(84626),r=e.i(1283),n=e.i(33404),i=e.i(54467),o=e.i(15585);function l(e){return null==e?e:"current"in e?e.current:e}function a(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}e.s(["f",0,l],51816);var s=e.i(19360);let u=null;e.s(["f",0,function(e){let{enabled:c=!0,open:f,ref:d,batch:p=!1,onComplete:h}=e,g=(0,r.f)(h),m=function(e,t=!1,c=!1){let f=(0,i.z)();return(0,r.f)((r,i=null)=>{f.cancel();let d=l(e);if(null==d)return;let p=()=>{if(!c)return void n.flushSync(r);if(!u){let e=[];u=e,queueMicrotask(()=>{u=null,n.flushSync(()=>{for(let t of e)t()})})}u.push(()=>{i?.aborted||r()})};if("function"!=typeof d.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function h(){Promise.all(a(d).map(e=>e.finished.then(o.x))).then(()=>{i?.aborted||p()},()=>{i?.aborted||(a(d).some(e=>e.pending||"finished"!==e.playState)?h():p())})}if(t){let e=s.startingStyle;if(!d.hasAttribute(e))return void f.request(h);let t=new MutationObserver(()=>{d.hasAttribute(e)||(t.disconnect(),h())});return t.observe(d,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}f.request(h)})}(d,f,p);t.useEffect(()=>{if(!c)return;let e=new AbortController;return m(g,e.signal),()=>{e.abort()}},[c,f,g,m])}],65280);var c=e.i(73522);e.s(["f",0,function(e,r=!1,n=!1,o=!1){let[l,a]=t.useState(e&&r?"idle":void 0),[s,u]=t.useState(e&&!o);return e&&!s&&(u(!0),a("starting")),e||!s||"ending"===l||n||a("ending"),e||s||"ending"!==l||a(void 0),(0,c.f)(()=>{if(!e&&s&&"ending"!==l&&n){let e=i.$.request(()=>{a("ending")});return()=>{i.$.cancel(e)}}},[e,s,l,n]),(0,c.f)(()=>{if(!e||r||void 0===l)return;let t=i.$.request(()=>{a(void 0)});return()=>{i.$.cancel(t)}},[r,e,l]),(0,c.f)(()=>{if(!e||!r)return;e&&s&&"idle"!==l&&a("starting");let t=i.$.request(()=>{a("idle")});return()=>{i.$.cancel(t)}},[r,e,s,l]),{mounted:s,setMounted:u,transitionStatus:l}}],27824)},86626,e=>{e.i(84132);var t=e.i(84626),r=e.i(80417),n=e.i(87623),i=e.i(39402);e.i(84931);var o=e.i(15585),l=e.i(38399),a=e.i(61233),s=e.i(1888),u=e.i(39294);let c=Symbol.for("react.lazy");e.s(["f",0,function(e,f,d={}){let p=f.render;!1!==d.enabled&&(p=function(e){if(e?.$$typeof!==c)return e;let r=t.Children.toArray(e)[0];return t.isValidElement(r)?r:e}(p));let h=function(e,t,c){var f;let{className:d,style:p}=e,{state:h=o.w,ref:g,props:m,stateAttributesMapping:v,enabled:b=!0}=t,y=b?(0,a.f)(d,h):void 0,x=b?(0,s.f)(p,h):void 0,w=b?(0,l.f)(h,v):o.w,S=b&&m?Array.isArray(f=m)?(0,u.b)(f):(0,u.w)(void 0,f):void 0,E=b?(0,i.f)(w,S)??{}:o.w;return("u">typeof document&&(b?Array.isArray(g)?E.ref=(0,r.f)([E.ref,(0,n.f)(c),...g]):E.ref=(0,r.A)(E.ref,(0,n.f)(c),g):(0,r.A)(null,null)),b)?(void 0!==y&&(E.className=(0,u.c)(E.className,y)),void 0!==x&&(E.style=(0,i.f)(E.style,x)),E):o.w}(f,d,p);return!1===d.enabled?null:function(e,r,n,i){var o,l;if(r){if("function"==typeof r)return r(n,i);let e=(0,u.w)(n,r.props);return e.ref=n.ref,t.cloneElement(r,e)}return o=e,l=n,"button"===o?(0,t.createElement)("button",{type:"button",...l,key:l.key}):"img"===o?(0,t.createElement)("img",{alt:"",...l,key:l.key}):t.createElement(o,l)}(e,p,h,d.state??o.w)}])},39294,e=>{var t=e.i(39402);let r={};function n(e){return l(e)?{...e(r)}:function(e){let t={...e};for(let e in t){let r=t[e];o(e,r)&&(t[e]=a(r))}return t}(e)}function i(e,r){return l(r)?r(e):function(e,r){if(!r)return e;for(let n in r){let i=r[n];switch(n){case"style":e[n]=(0,t.f)(e.style,i);break;case"className":e[n]=u(e.className,i);break;default:o(n,i)?e[n]=function(e,t){return t?e?(...r)=>{let n=r[0];if(c(n)){s(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:a(t):e}(e[n],i):e[n]=i}}return e}(e,r)}function o(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function l(e){return"function"==typeof e}function a(e){return e?(...t)=>{let r=t[0];return c(r)&&s(r),e(...t)}:e}function s(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function u(e,t){return t?e?t+" "+e:t:e}function c(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["U",0,s,"c",0,u,"w",0,function(e,t,r,o,l){if(!r&&!o&&!l&&!e)return n(t);let a=n(e);return t&&(a=i(a,t)),r&&(a=i(a,r)),o&&(a=i(a,o)),l&&(a=i(a,l)),a},"b",0,function(e){if(0===e.length)return r;if(1===e.length)return n(e[0]);let t=n(e[0]);for(let r=1;r<e.length;r+=1)t=i(t,e[r]);return t}])},69322,e=>{var t=e.i(86626);e.s(["f",0,function(e){return(0,t.f)(e.defaultTagName??"div",e,e)}])},12074,32913,91704,62579,58887,37301,81568,171,41842,e=>{e.s(["popupOpen",0,"data-popup-open","pressed",0,"data-pressed"],12074),e.s(["f",0,function(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}],32913);var t=e.i(73522),r=e.i(3622);function n(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["f",0,function(e){let i=(0,r.f)(n,e).current;return i.next=e,(0,t.f)(i.effect),i}],91704);let{userAgent:i,platform:o,maxTouchPoints:l}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},a=i.toLowerCase(),s=o.toLowerCase(),u=/^i(os$|p)/.test(s)||"macintel"===s&&l>1,c="android",f=s===c||a.includes(c),d=!u&&s.startsWith("mac"),p=s.startsWith("win"),h=!f&&/^(linux|chrome os)/.test(s),g=d||u;e.s(["android",0,f,"apple",0,g,"ios",0,u,"linux",0,h,"mac",0,d,"windows",0,p],71397);var m=e.i(71397);let v="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),b=!v&&a.includes("firefox"),y=!v&&a.includes("chrom");e.s(["blink",0,y,"gecko",0,b,"webkit",0,v],65402);var x=e.i(65402);e.s(["voiceOver",0,g],74462);var w=e.i(74462);let S=/jsdom|happydom/.test(a);e.s(["jsdom",0,S],46252);var E=e.i(46252);e.s(["engine",0,x,"env",0,E,"os",0,m,"screenReader",0,w],62579);var C=e.i(80269),R=e.i(62579);e.s(["f",0,R],58887);var R=R,T=e.i(39244);let k="data-base-ui-focusable",P="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";e.s(["Q",0,k,"n",0,P],37301);var A=e.i(12074),A=A;A.popupOpen;let I="data-trigger-disabled";function M(e){return(0,C.E)(e)&&e.matches(P)}e.s(["f",0,I],81568),e.s(["G",0,function(e){return e?e.hasAttribute(k)?e:e.querySelector(`[${k}]`)||e:null},"V",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"W",0,function(e){return null!=(0,T.h)(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${P}`)},"X",0,function(e){return e.matches("html,body")},"x",0,function(e,t){if(!(0,C.m)(e))return!1;if(t.hasElement(e))return!e.hasAttribute(I);for(let[,r]of t.entries())if((0,T.I)(r,e))return!r.hasAttribute(I);return!1},"J",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&M(e)},"Q",0,M,"F",0,function(e){if(!e||R.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],171),e.s(["f",0,function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}],41842)},49133,e=>{let t=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`};e.s(["f",0,t])},13574,e=>{var t=e.i(74636);e.s(["f",0,function(e){return(0,t.f)(19)?e:e?"true":void 0}])},39402,e=>{e.s(["f",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},91616,39244,e=>{e.s(["f",0,function(e){return e?.ownerDocument||document}],91616);var t=e.i(80269);e.s(["T",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"h",0,function(e,r){let n=e;for(;n;){if((0,t.m)(n)&&n.matches(r))return n;n=n.assignedSlot??n.parentNode??((0,t.R)(n)?n.host:null)}return null},"I",0,function(e,r){if(!e||!r)return!1;let n=r.getRootNode?.();if(e.contains(r))return!0;if(n&&(0,t.R)(n)){let t=r;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"Z",0,function(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}],39244)},54467,e=>{e.i(84132);var t=e.i(3622),r=e.i(18835);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["$",0,i,"z",0,function(){let e=(0,t.f)(i.create).current;return(0,r.f)(e.disposeEffect),e}])},51052,e=>{e.i(84132);var t=e.i(84626);e.s(["f",0,function({controlled:e,default:r,name:n,state:i="value"}){let{current:o}=t.useRef(void 0!==e),[l,a]=t.useState(()=>r),s=t.useCallback(e=>{o||a(e)},[]);return[o&&void 0!==e?e:l,s]}])},73522,e=>{var t=e.i(84626);let r="u">typeof document?t.useLayoutEffect:()=>{};e.s(["f",0,r])},80417,74636,87623,e=>{var t=e.i(3622);function r(){return{callback:null,cleanup:null,refs:[]}}function n(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}e.s(["A",0,function(e,i,o,l){var a,s,u,c,f;let d=(0,t.f)(r).current;return a=d,s=e,u=i,c=o,f=l,(a.refs[0]!==s||a.refs[1]!==u||a.refs[2]!==c||a.refs[3]!==f)&&n(d,[e,i,o,l]),d.callback},"f",0,function(e){var i,o;let l=(0,t.f)(r).current;return i=l,o=e,(i.refs.length!==o.length||i.refs.some((e,t)=>e!==o[t]))&&n(l,e),l.callback}],80417);var i=e.i(84626);let o=parseInt(i.version,10);function l(e){return o>=e}e.s(["f",0,l],74636),e.s(["f",0,function(e){if(!i.isValidElement(e))return null;let t=e.props;return(l(19)?t?.ref:e.ref)??null}],87623)},18835,e=>{var t=e.i(84626),r=e.i(15585);e.s(["f",0,function(e){t.useEffect(e,r.v)}])},3622,e=>{var t=e.i(84626);let r={};e.s(["f",0,function(e,n){let i=t.useRef(r);return i.current===r&&(i.current=e(n)),i}])},1283,49078,e=>{let t={...e.i(84626)};e.s(["f",0,t],49078);var r=e.i(3622);let n=t.useInsertionEffect,i=n&&n!==t.useLayoutEffect?n:e=>e();function o(){let e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){}e.s(["f",0,function(e){let t=(0,r.f)(o).current;return t.next=e,i(t.effect),t.trampoline}],1283)},99334,e=>{let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},r={...t,position:"fixed",margin:0,top:0,left:0},n={...t,position:"absolute"};e.s(["p",0,r,"L",0,n])},84931,15585,38399,61233,1888,e=>{e.s(["f",0,function(){}],84931);let t=Object.freeze([]),r=Object.freeze({});e.s(["v",0,t,"w",0,r,"x",0,function(){}],15585),e.s(["f",0,function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}],38399),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],61233),e.s(["f",0,function(e,t){return"function"==typeof e?e(t):e}],1888)},80269,e=>{let t;function r(){return"u">typeof window}function n(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!r()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let d=/transform|translate|scale|rotate|perspective|filter/,p=/paint|layout|strict|content/,h=e=>!!e&&"none"!==e;function g(e){let t=a(e)?b(e):e;return h(t.transform)||h(t.translate)||h(t.scale)||h(t.rotate)||h(t.perspective)||!m()&&(h(t.backdropFilter)||h(t.filter))||d.test(t.willChange||"")||p.test(t.contain||"")}function m(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(n(e))}function b(e){return i(e).getComputedStyle(e)}function y(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["X",0,b,"f",0,function(e){let t=y(e);for(;s(t)&&!v(t);){if(g(t))return t;if(f(t))break;t=y(t)}return null},"I",0,o,"w",0,x,"A",0,n,"Q",0,function(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"G",0,function e(t,r,n){var o;void 0===r&&(r=[]),void 0===n&&(n=!0);let l=function e(t){let r=y(t);return v(r)?(t.ownerDocument||t).body:s(r)&&c(r)?r:e(r)}(t),a=l===(null==(o=t.ownerDocument)?void 0:o.body),u=i(l);if(!a)return r.concat(l,e(l,[],n));{let t=x(u);return r.concat(u,u.visualViewport||[],c(l)?l:[],t&&n?e(t):[])}},"J",0,y,"K",0,i,"e",0,g,"m",0,a,"E",0,s,"Z",0,v,"t",0,l,"B",0,c,"R",0,u,"S",0,function(e){return/^(table|td|th)$/.test(n(e))},"D",0,f,"i",0,m])},79995,e=>{var t=e.i(80269);e.s(["f",()=>t.K])},94237,7284,e=>{function t(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["f",0,t],7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e;e.s(["f",0,(e,n)=>i=>{var o;if((null==n?void 0:n.variants)==null)return t(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:l,defaultVariants:a}=n,s=Object.keys(l).map(e=>{let t=null==i?void 0:i[e],n=null==a?void 0:a[e];if(null===t)return null;let o=r(t)||r(n);return l[e][o]}),u=i&&Object.entries(i).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return t(e,s,null==n||null==(o=n.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...u}[t]):({...a,...u})[t]===r})?[...e,r,n]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}],94237)},27152,e=>{let t,r,n,i,o,l,a,s,u,c,f,d,p,h,g=(e,t=0)=>{let r=new Int32Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n)-48-t;return r},m=e=>{let t=new Int32Array(e.length+1);for(let r=0;r<e.length;r++)t[r+1]=t[r]+e[r];return t},v=e=>{let t=new Int32Array(e.length),r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n)-48;r+=i>>>1^-(1&i),t[n]=r}return t},b=m(g("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")),y=m(g(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")),x=(()=>{let e=b.length-1,t=new Int32Array(e);for(let r=e-1;r>=0;r--){let e=1,n=r+1;for(let i=b[r];i<b[r+1];i++)e+=t[n],n+=t[n];t[r]=e}let r=new Int32Array(b[e]),n=0;for(let i=0;i<e;i++){let e=i+1;for(let o=b[i];o<b[i+1];o++)r[n++]=e,e+=t[e]}return r})(),w=g("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000",1),S=m(g("123333359346463635126536711576")),E=g("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"),C=g("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"),R=v("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"),T=(()=>{let e=(new Int32Array(319)).fill(-1),t=v("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"),r=v("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");for(let n=0;n<t.length;n++)e[t[n]]=r[n];return e})(),k="container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map(e=>{let t=e.split(" "),r=t.shift();for(let e=0;e<t.length;e++)t[e]=r+t[e];return t}),P=v("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"),A=v("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"),I=v("02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±"),M=new Int32Array(995),O=new Int32Array(995),j=new Int32Array(995),N="",L=new Int32Array(1038);{let e=new Map,t=0,r=0;for(let n=0;n<P.length;n++)for(let i of k[I[n]]){let o=e.get(i);void 0===o&&(o=t++,e.set(i,o),L[2*o]=N.length,L[2*o+1]=i.length,N+=i),M[r]=P[n],O[r]=A[n],j[r]=o,r++}}let D=v("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"),$=m(g("1::24444432:442:44:44>222222:44:4421322511111311111114")),F=v("24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222"),z=g("ij"),H=g("");var B,_={GROUP_COUNT:384,customValidatorNames:[],edgeStart:b,labelStart:y,labelText:"@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom",edgeTarget:x,nodeGroup:w,nodeVlist:T,vlistPat:S,vlistOps:E,vlistRef:C,vlistGroup:R,litAnchor:M,litGroup:O,litPool:j,poolOffsets:L,poolText:N,adjGid:D,adjStart:$,adjTgt:F,patGid:z,patTgt:H,postfixLookupGroups:g("1"),orderSensitiveModifiers:"* ** after backdrop before details-content file first-letter first-line marker placeholder selection"};let W="line"in Error(),U=(e,t,r)=>{let n=0x811c9dc5;for(let i=t;i<r;i++)n=Math.imul(n^e.charCodeAt(i),0x1000193);return n},X=(e,t,r)=>{let n=r-t,i=Math.imul(n,0x9e3779b1)^e.charCodeAt(t);if(n>3){let o=n>>2,l=n>>1;i=Math.imul((i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+o),0x85ebca6b))^e.charCodeAt(t+l)<<8^e.charCodeAt(t+l+o)<<16^e.charCodeAt(r-3),0xc2b2ae35)^(e.charCodeAt(r-2)<<8^e.charCodeAt(r-1)<<16);for(let n=t+3,o=r-4;n<t+8&&n<o;n++,o--)i=Math.imul(i^e.charCodeAt(n)^e.charCodeAt(o)<<8,0x1000193)}return i^i>>>15},V=(e,t)=>{if(!e)return"";if("string"==typeof e)return e;let r="";if("number"==typeof e.length&&(!t||Array.isArray(e))){for(let n=0;n<e.length;n++){let i=e[n];if(!i)continue;let o="string"==typeof i?i:V(i,t);o&&(r&&(r+=" "),r+=o)}return r}if(t){if("number"==typeof e)return""+e;if("object"==typeof e)for(let t in e)e[t]&&(r&&(r+=" "),r+=t)}return r},Y=function(){return((e,t)=>{let r="";for(let n=0;n<e.length;n++){let i=e[n];if(!i)continue;let o="string"==typeof i?i:V(i,t);o&&(r&&(r+=" "),r+=o)}return r})(arguments,!1)},K=((e,t={})=>{let{GROUP_COUNT:r,edgeStart:n,labelStart:i,labelText:o,edgeTarget:l,nodeGroup:a,nodeVlist:s,vlistPat:u,vlistOps:c,vlistRef:f,vlistGroup:d,litAnchor:p,litGroup:h,litPool:g,poolOffsets:m,poolText:v,adjGid:b,adjStart:y,adjTgt:x,patGid:w,patTgt:S,postfixLookupGroups:E,customValidatorNames:C,orderSensitiveModifiers:R}=e,T=new Int32Array(r).fill(-1);for(let e=0;e<b.length;e++)T[b[e]]=e;let k=0;for(let e=0;e+1<y.length;e++){let t=y[e+1]-y[e];t>k&&(k=t)}let P=32;for(;P<2*(1+k+w.length);)P<<=1;let A=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)A[e+1]=A[e]+u[f[e]+1]-u[f[e]];let I=new Uint8Array(r);for(let e=0;e<E.length;e++)I[E[e]]=1;let M=new Uint8Array(n.length-1),O=0,j=!0;for(let e=0;e<p.length;e++){M[p[e]]=1;let t=m[2*g[e]+1];t>O&&(O=t);let r=v.charCodeAt(m[2*g[e]]);(91===r||40===r)&&(j=!1)}let N=1;for(;N<2*p.length;)N<<=1;let L=new Int32Array(N).fill(-1);for(let e=0;e<p.length;e++){let t=m[2*g[e]],r=(U(v,t,t+m[2*g[e]+1])^Math.imul(p[e],0x9e3779b1))&N-1;for(;-1!==L[r];)r=r+1&N-1;L[r]=e}let D=(e,t,r,n)=>{let i=(U(t,r,n)^Math.imul(e,0x9e3779b1))&N-1,o=n-r;for(;;){let n=L[i];if(-1===n)return -1;if(p[n]===e&&m[2*g[n]+1]===o){let e=m[2*g[n]],i=!0;for(let n=0;n<o;n++)if(v.charCodeAt(e+n)!==t.charCodeAt(r+n)){i=!1;break}if(i)return h[n]}i=i+1&N-1}},$=t.cacheSize??8192,F=t.prefix??e.prefix??"",z=""===F?"":F+":",H=z.length,B=(C??[]).map(e=>{let t;if(!t)throw Error("cn: missing validator "+e);return t}),_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,K=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=0,Z=-1,J=-1,Q=-1,ee=-1,et=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||95===e,er=e=>/\s/.test(String.fromCharCode(e)),en=(e,t,r)=>{if(G=0,Z=-1,r-t<3)return;let n=e.charCodeAt(t),i=e.charCodeAt(r-1);if(91===n&&93===i)G=1;else{if(40!==n||41!==i)return;G=2}Q=t+1,ee=r-1;let o=t+1;if(et(e.charCodeAt(o))){for(o++;o<r-1;){let t=e.charCodeAt(o);if(!et(t)&&45!==t)break;o++}o<r-2&&58===e.charCodeAt(o)&&(Z=t+1,J=o,Q=o+1)}},ei=(e,t,r,n)=>{if(r-t!==n.length)return!1;for(let r=0;r<n.length;r++)if(e.charCodeAt(t+r)!==n.charCodeAt(r))return!1;return!0},eo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,el=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ea=e=>!!e&&!Number.isNaN(Number(e)),es=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],eu="length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map(e=>e.split(" ")),ec=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],ef=(e,t,r,n)=>{if(e>=10){if(e>=25)return B[e-25](t.slice(r,n));let i=e-10;if(G!==es[i])return!1;if(Z>=0){for(let e of eu[i])if(ei(t,Z,J,e))return!0;return!1}switch(ec[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(Q,ee);return _.test(e)&&!V.test(e)}case 3:return ea(t.slice(Q,ee));case 4:return q.test(t.slice(Q,ee));default:return K.test(t.slice(Q,ee))}}switch(e){case 0:return!0;case 1:return 0===G;case 2:return 1===G;case 3:return 2===G;case 4:return eo.test(t.slice(r,n));case 5:return ea(t.slice(r,n));case 6:{let e=t.slice(r,n);return!!e&&Number.isInteger(Number(e))}case 7:return n>r&&37===t.charCodeAt(n-1)&&ea(t.slice(r,n-1));case 8:return el.test(t.slice(r,n));default:if(n-r<11||!ei(t,r,r+10,"@container"))return!1;if(47===t.charCodeAt(r+10))return n-r>=12;let i=t.charCodeAt(r+11);return 115===i&&n-r>=17&&ei(t,r+10,r+16,"-size/")||110===i&&n-r>=19&&ei(t,r+10,r+18,"-normal/")}},ed=new Set("string"==typeof R?R.split(" "):R),ep=(e,t,r,n,i,o)=>{let l=U(t,r,n)^0x9e3779b9*!!i,a=e.get(l);if(void 0!==a)e:for(let e=0;e<a.length;e++){let o=a[e];if(o.imp===i&&o.k.length===n-r){for(let e=0;e<o.k.length;e++)if(o.k.charCodeAt(e)!==t.charCodeAt(r+e))continue e;return o.id}}else e.set(l,a=[]);let s=t.slice(r,n),u=o(s);return a.push({k:s,imp:i,id:u}),u},eh=new Map,eg=new Map,em=2,ev=(e,t)=>{let r=[],n=0,i=0,o=0;for(let t=0;t<e.length;t++){let l=e.charCodeAt(t);0===n&&0===i&&58===l?(r.push(e.slice(o,t)),o=t+1):91===l?n++:93===l?n--:40===l?i++:41===l&&i--}r.push(e.slice(o));let l=r[0];if(r.length>1){let e=[],t=[];for(let n of r)91===n.charCodeAt(0)||ed.has(n)?(t.length&&(e.push(...t.sort()),t=[]),e.push(n)):t.push(n);t.length&&e.push(...t.sort()),l=e.join(":")}let a=t?l+" !":l,s=eg.get(a);return void 0===s&&eg.set(a,s=em++),s},eb=new Map,ey=r,ex=r+4096,ew=()=>ey++,eS=new Int32Array(8192),eE=Array(8192).fill(null),eC=new Int32Array(8192),eR=new Int32Array(8192),eT=new Uint8Array(8192),ek=0,eP=(e,t,r,n,i,o,l,a)=>{let s=e;if(null!==eE[e])if(null===eE[1|e])s=1|e;else{if((3&ek++)!=0)return;s=e|ek>>2&1}eE[s]=t.slice(r,n),eS[s]=i,eC[s]=o,eR[s]=l,eT[s]=a},eA=256,eI=[new Int32Array(256),new Int32Array(eA),new Int32Array(eA),new Int32Array(eA)],[eM,eO,ej,eN]=eI,eL=new Uint8Array(eA),eD=new Uint8Array(eA),e$=()=>{eA*=2,eI=eI.map(e=>{let t=new Int32Array(eA);return t.set(e),t}),[eM,eO,ej,eN]=eI;let e=new Uint8Array(eA);e.set(eL),eL=e,eD=new Uint8Array(eA)},eF=64,ez=new Int32Array(64),eH=new Int32Array(eF),eB=new Int32Array(r),e_=2048,eW=21,eU=new Float64Array(2048),eX=new Int32Array(e_),eV=0,eY=(e,t)=>{if(0===e&&t<r)return eB[t]===eV?1:(eB[t]=eV,0);let n=2097152*e+t+1,i=Math.imul(n,0x9e3779b1)>>>eW;for(;eX[i]===eV;){if(eU[i]===n)return 1;i=i+1&e_-1}return eU[i]=n,eX[i]=eV,0},eK=(e,t,r,n,i)=>{if(r-t>=2&&91===e.charCodeAt(t)&&93===e.charCodeAt(r-1)){let n=-1;for(let i=t+1;i<r-1;i++)if(58===e.charCodeAt(i)){n=i;break}return -1===n||n===t+1?-1:ep(eb,e,t+1,n,0,ew)}if(n>=0&&a[n]>=0)return a[n];for(let t=i-1;t>=0;t--){let n=eH[t];if(n>r)continue;let i=ez[t],o=r-n;if(1===M[i]&&o>0&&o<=O){let t=e.charCodeAt(n);if(!1===j||91!==t&&40!==t){let t=D(i,e,n,r);if(t>=0)return t}}let l=s[i];if(l<0)continue;let a=f[l],p=u[a],h=u[a+1];if(p===h)continue;en(e,n,r);let g=A[l]-p;for(let t=p;t<h;t++)if(ef(c[t],e,n,r))return d[g+t]}return -1},eq=e=>{let t=e.length,a=0,u=0,c=!1;(em>4096||eh.size>4096)&&(eh=new Map,eg=new Map,em=2,eE.fill(null)),ey>ex&&(eb=new Map,ey=r,eE.fill(null));let f=0;for(;f<t;){let d,p=e.charCodeAt(f);if(32===p||p>=9&&p<=13||p>=160&&er(p)){32!==p&&(c=!0),f++;continue}let h=f,g=0;for(;f<t;){if((p=e.charCodeAt(f))<=32){if(32===p)break;if(p>=9&&p<=13){c=!0;break}}else if(p>=160&&er(p)){c=!0;break}g=Math.imul(g^p,0x1000193),f++}let m=f,v=m-h;a===eA&&e$();let b=a++;eM[b]=h,eO[b]=m,u+=v;let y=(g^=Math.imul(v,0x9e3779b1))^g>>>15,x=8190&y;{let t=-1;if(eS[x]===y&&null!==eE[x]&&eE[x].length===v?t=x:eS[1|x]===y&&null!==eE[1|x]&&eE[1|x].length===v&&(t=1|x),t>=0){let r=eE[t],n=!0;for(let t=0;t<v;t++)if(r.charCodeAt(t)!==e.charCodeAt(h+t)){n=!1;break}if(n){ej[b]=eC[t],eN[b]=eR[t],eL[b]=eT[t];continue}}}let w=h;if(0!==H){if(m-h<=H||!e.startsWith(z,h)){ej[b]=-1,eP(x,e,h,m,y,-1,0,0);continue}w=h+H}let S=0,E=0,C=-1,R=-1;for(let t=w;t<m;t++){let r=e.charCodeAt(t);if(0===S&&0===E){if(58===r){C=t;continue}if(47===r){R=t;continue}}91===r?S++:93===r?S--:40===r?E++:41===r&&E--}let T=C>=w?C+1:w,k=T,P=m,A=!1,O=0;P>k&&33===e.charCodeAt(P-1)?(A=!0,P--):P>k&&33===e.charCodeAt(k)&&(A=!0,k++,O=1);let j=-1;R>T&&(j=R+O)>=P&&(j=-1);let N=k;P-k>1&&45===e.charCodeAt(k)&&(N=k+1);let L=0,D=0,$=0,F=-1,B=0;(s[0]>=0||1===M[0])&&(ez[0]=0,eH[0]=N,B=1);let _=-1,W=0;for(let t=N;t<P;t++)if(t===j&&(_=D<$?-1:L,W=B),-1!==L){let r=e.charCodeAt(t),a=-1;if(D<$)o.charCodeAt(D)===r?++D===$&&(a=L=F):L=-1;else{let e=n[L],t=n[L+1],s=-1;for(let n=e;n<t;n++){let e=i[n];if(o.charCodeAt(e)===r){i[n+1]-e==1?a=s=l[n]:(D=e+1,$=i[n+1],F=l[n],s=L);break}}L=s}if(a>=0&&(s[a]>=0||1===M[a])&&t+1<P&&45===e.charCodeAt(t+1)){if(B===eF){let e=new Int32Array(eF*=2);e.set(ez),ez=e;let t=new Int32Array(eF);t.set(eH),eH=t}ez[B]=a,eH[B]=t+2,B++}}j===P&&(_=D<$?-1:L,W=B);let U=D<$?-1:L,X=!1;if(j>=0)if(X=!0,-1!==(d=eK(e,k,j,_,W))&&d<r&&I[d]){let t=eK(e,k,P,U,B);-1!==t&&t!==d&&(d=t,X=!1)}else -1===d&&(d=eK(e,k,P,U,B),X=!1);else d=eK(e,k,P,U,B);let V=0,Y=0;-1===d?ej[b]=-1:(Y=+!!X,V=w>=C?+!!A:ep(eh,e,w,C,+!!A,e=>ev(e,A)),ej[b]=d,eL[b]=Y,eN[b]=V),eP(x,e,h,m,y,d,V,Y)}if(0===a)return"";if(1===a)return 0===eM[0]&&eO[0]===t?e:e.slice(eM[0],eO[0]);if(a*P>e_){for(;a*P>e_;)e_<<=1,eW--;eU=new Float64Array(e_),eX=new Int32Array(e_)}if(em>=2097152||ey>=2097152)throw Error("cn: too many distinct classes in one merge");0==(eV=eV+1|0)&&(eB.fill(0),eX.fill(0),eV=1);let d=!1;for(let e=a-1;e>=0;e--){let t=ej[e];if(-1===t){eD[e]=1;continue}let n=eN[e];if(1===eY(n,t)){eD[e]=0,d=!0;continue}if(eD[e]=1,t<r){let r=T[t];if(r>=0)for(let e=y[r];e<y[r+1];e++)eY(n,x[e]);if(1&eL[e])for(let e=0;e<w.length;e++)w[e]===t&&eY(n,S[e])}}if(!d&&!c&&t===u+a-1)return e;let p="",h=0;for(;h<a;){if(!eD[h]){h++;continue}let t=eM[h],r=eO[h],n=h+1;for(;n<a&&eD[n]&&eM[n]===r+1&&32===e.charCodeAt(r);)r=eO[n],n++;p.length>0&&(p+=" "),p+=e.slice(t,r),h=n}return p},eG=new Int32Array(32768),eZ=0,eJ=1,eQ=Object.create(null),e0=Object.create(null),e2=new Map,e1=new Map,e4=0,e3=0,e6=()=>{eZ^=16384,eJ=eJ+1|0,e3=0},e5=0===$?eq:W?e=>{let t=e2.get(e);return void 0!==t?t:(e=>{let t=e2.get(e);if(void 0!==t)return t;let r=X(e,0,e.length),n=(16383&r)+eZ,i=eG[n]===(r^eJ)||eG[16384^n]===(r^eJ-1);return i&&void 0!==(t=e1.get(e))?(e2.set(e,t),t):(t=eq(e),i?(e2.set(e,t),++e4>$&&(e4=0,e1=e2,e2=new Map,e6())):(eG[n]=r^eJ,++e3>16384&&e6()),t)})(e)}:e=>{let t=eQ[e];if(void 0!==t)return t;let r=X(e,0,e.length),n=(16383&r)+eZ,i=eG[n]===(r^eJ)||eG[16384^n]===(r^eJ-1);return i&&void 0!==(t=e0[e])?(eQ[e]=t,t):(t=eq(e),i?(eQ[e]=t,++e4>$&&(e4=0,e0=eQ,eQ=Object.create(null),e6())):(eG[n]=r^eJ,++e3>16384&&e6()),t)};return{merge:function(){return 1==arguments.length&&"string"==typeof arguments[0]?e5(arguments[0]):e5(Y.apply(null,arguments))},mergeString:e5,seenBefore:0===$?()=>!1:e=>{let t=X(e,0,e.length),r=(16383&t)+eZ;return eG[r]===(t^eJ)||eG[16384^r]===(t^eJ-1)||(eG[r]=t^eJ,++e3>16384&&e6(),!1)},mergeUncached:eq}})(_),q=(B=K.mergeString,t=void 0===K?()=>!0:K.seenBefore,r=void 0===K?B:K.mergeUncached,n=new Map,i=new Map,o=0,l=null,a=null,s=[],u=[],c=0,f=(e,t,r)=>{null===a&&(a=Array(4096).fill(""),s=Array(4096).fill(""),u=Array(4096).fill(""));let n=4094&X(e,0,e.length);if(a[n]===e&&s[n]===t)return u[n];if(a[1|n]===e&&s[1|n]===t)return u[1|n];let i=B(r?t+" "+e:e),o=""===a[n]?n:n|(""===a[1|n]?1:1&c++);return a[o]=e,s[o]=t,u[o]=i,i},d=(e,t,r,n)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(r){if(r!==(0===i?e.a0:e.a1))return!1;i++}if(n){if(n!==(0===i?e.a0:1===i?e.a1:e.a2))return!1;i++}return i===e.t},p=(e,t)=>{let r=e.a,n=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==r[n])return!1;n++}}return n===e.t},h=(e,a)=>{let s=e.length,u=null===l?null:l.n;if(!a){if(null!==u&&p(u,e))return l=u,u.r;if(null!==l&&l!==u&&p(l,e))return l.r}let c="",d=-1,h=0,g=!1;for(let t=0;t<s;t++){let r=e[t];if(r){if("string"!=typeof r){if(!(r=e[t]=V(r,!0)))continue;g=!0}d<0&&(c=r,d=t),h++}}if(0===h)return"";if(1===h)return B(c);if(g){if(null!==u&&p(u,e))return l=u,u.r;if(null!==l&&l!==u&&p(l,e))return l.r}let m=n.get(c);void 0===m&&void 0!==(m=i.get(c))&&n.set(c,m);let v=null;if(void 0!==m){if(m.skip>0){m.skip--,l=null;let t=c;for(let r=d+1;r<s;r++){let n=e[r];n&&(t+=" "+n)}return f(t,"",!1)}let t=m.e;e:for(let r=0;r<t.length;r++){let n=t[r];if(n.t!==h)continue;let i=n.a,o=1;for(let t=d+1;t<s;t++){let r=e[t];if(r&&r!==i[o++])continue e}v=n;break}null!==v&&(m.miss=0)}if(null===v){let l=c,a=[c];for(let t=d+1;t<s;t++){let r=e[t];r&&(l+=" "+r,a.push(r))}if(!t(l))return r(l);v={r:B(l),t:a.length,a0:a[0],a1:a[1],a2:a[2]??"",a,n:null},void 0===m?n.set(c,m={e:[],miss:0,skip:0,at:0}):++m.miss>16&&(m.miss=16,m.skip=1024,m.e.length=0,m.at=0);let u=m.e;u.length<256?u.push(v):(u[m.at]=v,m.at=m.at+1&255),++o>1e3&&(o=0,i=n,n=new Map)}return null!==l&&l!==v&&(l.n=v),l=v,v.r},function(e,t,r){let i=arguments.length;if((1|i)==3){let o=l;if(null!==o){let n=o.n;if(null!==n&&d(n,e,t,r))return l=n,n.r;if(o!==n&&d(o,e,t,r))return o.r}if(2===i&&"string"==typeof t&&""!==t){let r=n.get(e);if(void 0!==r&&r.skip>0)return r.skip--,l=null,f(t,e,!0)}return h([e,t,r],!0)}if(1===i)return"string"==typeof e?B(e):Array.isArray(e)?h(e.slice(),!1):B(V(e,!0));let o=l;if(null!==o){let e=o.n;if(null!==e){let t=e.a,r=0,n=!0;for(let e=0;e<i;e++){let i=arguments[e];if(i){if(i!==t[r]){n=!1;break}r++}}if(n&&r===e.t)return l=e,e.r}if(o!==e){let e=o.a,t=0,r=!0;for(let n=0;n<i;n++){let i=arguments[n];if(i){if(i!==e[t]){r=!1;break}t++}}if(r&&t===o.t)return o.r}}let a=[];for(let e=0;e<i;e++)a.push(arguments[e]);return h(a,!0)});K.merge,e.s(["f",0,q],27152)},67449,e=>{var t=e.i(84626),r=e.i(42230);e.s(["f",0,function(e,n=[],i=[]){let o,l="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,n,i):e,a=(0,t.forwardRef)(({className:e,...n},i)=>(0,t.createElement)(r.default,{ref:i,icon:l,className:e,...n}));return l.name&&(a.displayName=(o=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(l.name)).charAt(0).toUpperCase()+o.slice(1)),a}],67449)},86242,93961,e=>{var t=e.i(67449);let r={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],86242),e.s(["f",0,function(e){if(!Number.isFinite(e))return"—";let t=Math.abs(Math.round(e));if(t<1e3)return`${Math.round(e)}ms`;if(t<59950)return`${+(e/1e3).toFixed(1)}s`;let r=Math.round(t/1e3),n=e<0?"-":"";return r<3600?`${n}${Math.floor(r/60)}m ${r%60}s`:`${n}${Math.floor(r/3600)}h ${Math.floor(r%3600/60)}m`}],93961)},98948,e=>{var t=e.i(67449);let r={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],98948)},21631,(e,t,r)=>{e.i(84132),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return y}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(56421),l=e.r(2506),a=o._(e.r(84626)),s=e.r(25662),u=e.r(14532),c=e.r(46664),f=e.r(66905),d=e.r(21104),p=e.r(66186),h=e.r(643),g=e.r(95074),m=e.r(46357);function v(t){var r;let n,i,o,[v,y]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:w,as:S,children:E,prefetch:C=null,passHref:R,replace:T,shallow:k,scroll:P,onClick:A,onMouseEnter:I,onTouchStart:M,legacyBehavior:O=!1,onNavigate:j,transitionTypes:N,ref:L,unstable_dynamicOnHover:D,...$}=t;n=E,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let F=a.default.useContext(u.AppRouterContext),z=!1!==C,H=!1===C?"none":!0===C?"full":"auto",B="none"!==H?"auto"===H?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,_="string"==typeof(r=S||w)?r:(0,s.formatUrl)(r);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");i=a.default.Children.only(n)}let W=O?i&&"object"==typeof i&&i.ref:L,U,X=a.default.useCallback(e=>(null!==F&&(x.current=(0,h.mountLinkInstance)(e,_,F,B,z,y,U)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[z,_,F,B,y,U]),V={ref:(0,c.useMergedRef)(X,W),onClick(t){O||"function"!=typeof A||A(t),O&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,i,o,l,a,s="none"){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(44321);f(r,i?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,a,s)}}(t,_,x,T,P,j,N,H)},onMouseEnter(e){O||"function"!=typeof I||I(e),O&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),F&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)},onTouchStart:function(e){O||"function"!=typeof M||M(e),O&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),F&&z&&(0,h.onNavigationIntent)(e.currentTarget,!0===D)}};return(0,f.isAbsoluteUrl)(_)?V.href=_:O&&!R&&("a"!==i.type||"href"in i.props)||(V.href=(0,d.addBasePath)(_)),o=O?a.default.cloneElement(i,V):(0,l.jsx)("a",{...$,...V,children:n}),(0,l.jsx)(b.Provider,{value:v,children:o})}let b=(0,a.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},46664,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(84626);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},25662,(e,t,r)=>{e.i(84132),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(56421)._(e.r(57698)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${a}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},95074,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(66905),i=e.r(12782);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},66905,(e,t,r)=>{e.i(84132),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=["CLS","FCP","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},27494,(e,t,r)=>{var n=e.r(84626),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,l=n.useEffect,a=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),s(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},49003,(e,t,r)=>{var n=e.r(84626),i=e.r(5245),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useSyncExternalStore,a=n.useRef,s=n.useEffect,u=n.useMemo,c=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=a(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=l(e,(f=u(function(){function e(e){if(!s){if(s=!0,l=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return a=t}return a=e}if(t=a,o(l,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(l=e,t):(l=e,a=r)}var l,a,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},5245,(e,t,r)=>{e.i(84132),t.exports=e.r(27494)},77205,(e,t,r)=>{e.i(84132),t.exports=e.r(49003)}])})();
|