reactiveadmin 0.2.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +88 -0
- data/LICENSE +21 -0
- data/README.md +81 -0
- data/app/assets/reactive_admin/bridge.js +89 -0
- data/app/controllers/reactive_admin/api_controller.rb +30 -0
- data/app/controllers/reactive_admin/client_errors_controller.rb +38 -0
- data/app/controllers/reactive_admin/manifest_controller.rb +10 -0
- data/app/controllers/reactive_admin/mcp_controller.rb +48 -0
- data/app/controllers/reactive_admin/openapi_controller.rb +13 -0
- data/app/controllers/reactive_admin/session_controller.rb +11 -0
- data/app/views/layouts/reactive_admin/embed.html.erb +30 -0
- data/lib/generators/reactiveadmin/install/install_generator.rb +341 -0
- data/lib/generators/reactiveadmin/install/templates/menu.rb.tt +25 -0
- data/lib/generators/reactiveadmin/install/templates/reactive_admin.rb.tt +53 -0
- data/lib/generators/reactiveadmin/install/templates/reactive_admin_annotated.rb.tt +110 -0
- data/lib/reactive_admin/aa/v3/controller.rb +76 -0
- data/lib/reactive_admin/aa/v3/forms.rb +29 -0
- data/lib/reactive_admin/aa/v3/inputs/filters/typeahead_input.rb +51 -0
- data/lib/reactive_admin/aa/v3/inputs/typeahead_input.rb +8 -0
- data/lib/reactive_admin/aa/v3/install.rb +36 -0
- data/lib/reactive_admin/aa/v3/menu.rb +67 -0
- data/lib/reactive_admin/aa/v3/presenters.rb +102 -0
- data/lib/reactive_admin/aa/v3/registry.rb +78 -0
- data/lib/reactive_admin/aa/v3/views.rb +63 -0
- data/lib/reactive_admin/aa/v3.rb +23 -0
- data/lib/reactive_admin/aa/v4.rb +59 -0
- data/lib/reactive_admin/aa.rb +46 -0
- data/lib/reactive_admin/action_items.rb +39 -0
- data/lib/reactive_admin/action_links.rb +197 -0
- data/lib/reactive_admin/action_safety.rb +19 -0
- data/lib/reactive_admin/actions.rb +95 -0
- data/lib/reactive_admin/api_errors.rb +116 -0
- data/lib/reactive_admin/api_fallback.rb +15 -0
- data/lib/reactive_admin/api_guards.rb +445 -0
- data/lib/reactive_admin/audit.rb +72 -0
- data/lib/reactive_admin/auth/guard.rb +68 -0
- data/lib/reactive_admin/auth/token_requests.rb +15 -0
- data/lib/reactive_admin/auth.rb +135 -0
- data/lib/reactive_admin/authorizer.rb +47 -0
- data/lib/reactive_admin/background_requests.rb +33 -0
- data/lib/reactive_admin/batch_actions.rb +57 -0
- data/lib/reactive_admin/choices.rb +289 -0
- data/lib/reactive_admin/client_error.rb +70 -0
- data/lib/reactive_admin/composite_keys.rb +12 -0
- data/lib/reactive_admin/configuration.rb +221 -0
- data/lib/reactive_admin/controller_extension.rb +229 -0
- data/lib/reactive_admin/csv_injection.rb +26 -0
- data/lib/reactive_admin/date_bound.rb +31 -0
- data/lib/reactive_admin/degradation.rb +72 -0
- data/lib/reactive_admin/diagnostics.rb +16 -0
- data/lib/reactive_admin/doctor.rb +466 -0
- data/lib/reactive_admin/dry_run.rb +147 -0
- data/lib/reactive_admin/dry_run_flag.rb +18 -0
- data/lib/reactive_admin/embed.rb +73 -0
- data/lib/reactive_admin/engine.rb +47 -0
- data/lib/reactive_admin/error_keys.rb +23 -0
- data/lib/reactive_admin/exposure.rb +86 -0
- data/lib/reactive_admin/filters.rb +165 -0
- data/lib/reactive_admin/fixtures/scrubber.rb +1075 -0
- data/lib/reactive_admin/fixtures.rb +161 -0
- data/lib/reactive_admin/form_content.rb +78 -0
- data/lib/reactive_admin/form_field.rb +279 -0
- data/lib/reactive_admin/form_has_many.rb +116 -0
- data/lib/reactive_admin/form_lock.rb +71 -0
- data/lib/reactive_admin/form_payload.rb +57 -0
- data/lib/reactive_admin/form_recorder.rb +192 -0
- data/lib/reactive_admin/form_schema.rb +160 -0
- data/lib/reactive_admin/frame.rb +97 -0
- data/lib/reactive_admin/html_nodes.rb +390 -0
- data/lib/reactive_admin/html_policy.rb +338 -0
- data/lib/reactive_admin/html_rich.rb +186 -0
- data/lib/reactive_admin/implicit_defaults.rb +102 -0
- data/lib/reactive_admin/index_options.rb +41 -0
- data/lib/reactive_admin/index_payload.rb +259 -0
- data/lib/reactive_admin/index_recorder.rb +115 -0
- data/lib/reactive_admin/index_views.rb +85 -0
- data/lib/reactive_admin/inline_style.rb +125 -0
- data/lib/reactive_admin/labels_payload.rb +34 -0
- data/lib/reactive_admin/ladder.rb +268 -0
- data/lib/reactive_admin/layout_classes.rb +167 -0
- data/lib/reactive_admin/legacy_inventory.rb +547 -0
- data/lib/reactive_admin/location.rb +22 -0
- data/lib/reactive_admin/lookup_audit.rb +30 -0
- data/lib/reactive_admin/lookup_payload.rb +41 -0
- data/lib/reactive_admin/manifest.rb +36 -0
- data/lib/reactive_admin/masked_json.rb +62 -0
- data/lib/reactive_admin/masking.rb +100 -0
- data/lib/reactive_admin/mcp/access.rb +111 -0
- data/lib/reactive_admin/mcp/api.rb +123 -0
- data/lib/reactive_admin/mcp/count_tool.rb +22 -0
- data/lib/reactive_admin/mcp/layout.rb +175 -0
- data/lib/reactive_admin/mcp/output.rb +46 -0
- data/lib/reactive_admin/mcp/prompts.rb +111 -0
- data/lib/reactive_admin/mcp/server.rb +134 -0
- data/lib/reactive_admin/mcp/shapes.rb +164 -0
- data/lib/reactive_admin/mcp/tools.rb +386 -0
- data/lib/reactive_admin/mcp.rb +53 -0
- data/lib/reactive_admin/media_nodes.rb +34 -0
- data/lib/reactive_admin/menu.rb +90 -0
- data/lib/reactive_admin/menu_overlay.rb +291 -0
- data/lib/reactive_admin/node_registry.rb +47 -0
- data/lib/reactive_admin/open_api/builder.rb +156 -0
- data/lib/reactive_admin/open_api/context.rb +46 -0
- data/lib/reactive_admin/open_api/core.rb +51 -0
- data/lib/reactive_admin/open_api/operation_ids.rb +18 -0
- data/lib/reactive_admin/open_api/page_doc.rb +75 -0
- data/lib/reactive_admin/open_api/parts.rb +86 -0
- data/lib/reactive_admin/open_api/resource_doc.rb +423 -0
- data/lib/reactive_admin/open_api/security.rb +55 -0
- data/lib/reactive_admin/open_api/write_schema.rb +104 -0
- data/lib/reactive_admin/open_api.rb +41 -0
- data/lib/reactive_admin/option_source.rb +36 -0
- data/lib/reactive_admin/option_sources.rb +14 -0
- data/lib/reactive_admin/options_payload.rb +61 -0
- data/lib/reactive_admin/page_controller_extension.rb +112 -0
- data/lib/reactive_admin/page_forms.rb +181 -0
- data/lib/reactive_admin/page_payload.rb +120 -0
- data/lib/reactive_admin/param_normalizer.rb +89 -0
- data/lib/reactive_admin/paths.rb +63 -0
- data/lib/reactive_admin/permissions.rb +31 -0
- data/lib/reactive_admin/provenance.rb +57 -0
- data/lib/reactive_admin/query_guard.rb +108 -0
- data/lib/reactive_admin/ransack_guard.rb +107 -0
- data/lib/reactive_admin/rate_limit.rb +59 -0
- data/lib/reactive_admin/reactive_dsl.rb +99 -0
- data/lib/reactive_admin/readiness.rb +189 -0
- data/lib/reactive_admin/registry.rb +69 -0
- data/lib/reactive_admin/resource_meta.rb +120 -0
- data/lib/reactive_admin/resource_summary.rb +41 -0
- data/lib/reactive_admin/routes.rb +60 -0
- data/lib/reactive_admin/row_errors.rb +29 -0
- data/lib/reactive_admin/rspec.rb +116 -0
- data/lib/reactive_admin/scrubbed_error.rb +22 -0
- data/lib/reactive_admin/search.rb +79 -0
- data/lib/reactive_admin/server_timing.rb +31 -0
- data/lib/reactive_admin/show_payload.rb +88 -0
- data/lib/reactive_admin/sidebars.rb +34 -0
- data/lib/reactive_admin/site.rb +55 -0
- data/lib/reactive_admin/style_report.rb +129 -0
- data/lib/reactive_admin/style_sources.rb +83 -0
- data/lib/reactive_admin/template_actions.rb +126 -0
- data/lib/reactive_admin/template_content.rb +49 -0
- data/lib/reactive_admin/template_form.rb +442 -0
- data/lib/reactive_admin/test_support.rb +31 -0
- data/lib/reactive_admin/typeahead.rb +33 -0
- data/lib/reactive_admin/ui/assets.rb +91 -0
- data/lib/reactive_admin/ui/client_build.rb +47 -0
- data/lib/reactive_admin/ui/helper.rb +24 -0
- data/lib/reactive_admin/ui/packaged_client.rb +67 -0
- data/lib/reactive_admin/ui/shell.rb +81 -0
- data/lib/reactive_admin/ui/switch.rb +38 -0
- data/lib/reactive_admin/ui.rb +43 -0
- data/lib/reactive_admin/value_payload.rb +147 -0
- data/lib/reactive_admin/value_token.rb +36 -0
- data/lib/reactive_admin/values.rb +43 -0
- data/lib/reactive_admin/version.rb +3 -0
- data/lib/reactive_admin/write_audit.rb +60 -0
- data/lib/reactive_admin/write_guards.rb +142 -0
- data/lib/reactive_admin.rb +153 -0
- data/lib/reactiveadmin.rb +1 -0
- data/lib/tasks/reactiveadmin.rake +36 -0
- data/lib/tasks/reactiveadmin_client.rake +11 -0
- data/lib/tasks/reactiveadmin_legacy.rake +7 -0
- data/lib/tasks/reactiveadmin_styles.rake +6 -0
- data/openapi/core.yaml +1643 -0
- data/vendor/client/assets/ActionPage-XUYorI8E.js +1 -0
- data/vendor/client/assets/ActionView-BsZFcsgp.js +1 -0
- data/vendor/client/assets/CommandPalette-C59HT1ip.js +1 -0
- data/vendor/client/assets/DatePicker-DuaK0iMg.js +1 -0
- data/vendor/client/assets/DateRangeCalendar-B2BDsG-X.js +1 -0
- data/vendor/client/assets/DegradedNotice-DiH5n2DO.js +1 -0
- data/vendor/client/assets/FormDialog-pmYl8Eov.js +1 -0
- data/vendor/client/assets/FormSkeleton-DuSBZO3C.js +1 -0
- data/vendor/client/assets/FrameView-2X8cFvUt.css +1 -0
- data/vendor/client/assets/FrameView-zmUeDO8d.js +1 -0
- data/vendor/client/assets/GroupOverview-DI5T3k5K.js +1 -0
- data/vendor/client/assets/InlineForm-CMEIMgeh.js +1 -0
- data/vendor/client/assets/JsonDiff-o7JWr7CH.js +3 -0
- data/vendor/client/assets/JsonEditor-D4VXdlEx.js +1 -0
- data/vendor/client/assets/JsonView-BrJLDmSN.js +1 -0
- data/vendor/client/assets/MobileMenu-GAeFOeEb.js +1 -0
- data/vendor/client/assets/Node-SQl61V4K.js +2 -0
- data/vendor/client/assets/PageView-C-laNEPZ.js +1 -0
- data/vendor/client/assets/ResourceForm-BPjsoCY6.js +1 -0
- data/vendor/client/assets/ResourceIndex-COezAw5t.js +3 -0
- data/vendor/client/assets/ResourceOrPage-CRZGCY84.js +1 -0
- data/vendor/client/assets/ResourceShow-DweRXn18.js +1 -0
- data/vendor/client/assets/Segmented-BE9TCbph.js +1 -0
- data/vendor/client/assets/Sidebars-CsB9rFqX.js +1 -0
- data/vendor/client/assets/breadcrumb-DSA3Tlyd.js +1 -0
- data/vendor/client/assets/button-CvZ4_DFC.js +1 -0
- data/vendor/client/assets/calendar-BoyMpJIf.js +1 -0
- data/vendor/client/assets/check-C5A3J16N.js +1 -0
- data/vendor/client/assets/command-CMuk0oAt.js +1 -0
- data/vendor/client/assets/dist-CqEI82S_.js +1 -0
- data/vendor/client/assets/dist-IW4yX942.js +1 -0
- data/vendor/client/assets/editor-yqRLzgsJ.js +2 -0
- data/vendor/client/assets/external-link-C2aR4slL.js +1 -0
- data/vendor/client/assets/frames-C9gPCc3N.js +1 -0
- data/vendor/client/assets/humanize-DtU_Kpr4.js +1 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- data/vendor/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- data/vendor/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
- data/vendor/client/assets/index-B51aUaAY.js +43 -0
- data/vendor/client/assets/index-Cs9rCoWM.css +2 -0
- data/vendor/client/assets/input-DByFmQPa.js +1 -0
- data/vendor/client/assets/json-De3PN-R6.css +1 -0
- data/vendor/client/assets/json-oTp7Q-d-.js +5 -0
- data/vendor/client/assets/media-D4a_En8R.js +1 -0
- data/vendor/client/assets/plus-CfJ9vo8X.js +1 -0
- data/vendor/client/assets/popover-CDtI9R8Q.js +1 -0
- data/vendor/client/assets/purify-G7QKJyJq.js +1 -0
- data/vendor/client/assets/query-CCsZN2fa.js +1 -0
- data/vendor/client/assets/recent-BrzLwL0D.js +1 -0
- data/vendor/client/assets/rich-BQc_q5T7.js +1 -0
- data/vendor/client/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- data/vendor/client/assets/select-C43qDA3k.js +1 -0
- data/vendor/client/assets/sheet-BPl2n-4n.js +1 -0
- data/vendor/client/assets/textarea-BnOphXry.js +1 -0
- data/vendor/client/assets/uiMode-z0ZbRV49.js +1 -0
- data/vendor/client/assets/uiToggle-DwnRQTH1.js +1 -0
- data/vendor/client/assets/useRecordForm-X_DExEP2.js +1 -0
- data/vendor/client/assets/useRecordVisit-BRtfMi-q.js +1 -0
- data/vendor/client/assets/utils-DwBGbDkG.js +1 -0
- data/vendor/client/assets/vendor-calendar-nTZiq9oY.js +1 -0
- data/vendor/client/assets/vendor-datefns-BoC6MCnl.js +1 -0
- data/vendor/client/assets/vendor-forms-D0h8hG_S.js +55 -0
- data/vendor/client/assets/vendor-purify-BXoPR7WT.js +3 -0
- data/vendor/client/assets/vendor-query-DZ6APRNI.js +1 -0
- data/vendor/client/assets/vendor-react-C1iE8mnY.js +9 -0
- data/vendor/client/assets/vendor-router-CI6Vh4k_.js +1 -0
- data/vendor/client/assets/vendor-table-DuQ835by.js +4 -0
- data/vendor/client/index.html +24 -0
- data/vendor/client/manifest.json +867 -0
- data/vendor/client/reactiveadmin-client.json +4 -0
- metadata +350 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CommandPalette-C59HT1ip.js","./rolldown-runtime-XKyaHtl9.js","./vendor-react-C1iE8mnY.js","./vendor-query-DZ6APRNI.js","./external-link-C2aR4slL.js","./button-CvZ4_DFC.js","./utils-DwBGbDkG.js","./vendor-router-CI6Vh4k_.js","./command-CMuk0oAt.js","./dist-CqEI82S_.js","./input-DByFmQPa.js","./textarea-BnOphXry.js","./check-C5A3J16N.js","./recent-BrzLwL0D.js","./MobileMenu-GAeFOeEb.js","./sheet-BPl2n-4n.js","./ActionPage-XUYorI8E.js","./breadcrumb-DSA3Tlyd.js","./Node-SQl61V4K.js","./dist-IW4yX942.js","./vendor-datefns-BoC6MCnl.js","./ActionView-BsZFcsgp.js","./FormSkeleton-DuSBZO3C.js","./FormDialog-pmYl8Eov.js","./useRecordForm-X_DExEP2.js","./select-C43qDA3k.js","./popover-CDtI9R8Q.js","./DatePicker-DuaK0iMg.js","./calendar-BoyMpJIf.js","./vendor-calendar-nTZiq9oY.js","./plus-CfJ9vo8X.js","./vendor-forms-D0h8hG_S.js","./humanize-DtU_Kpr4.js","./purify-G7QKJyJq.js","./vendor-purify-BXoPR7WT.js","./editor-yqRLzgsJ.js","./query-CCsZN2fa.js","./FrameView-zmUeDO8d.js","./FrameView-2X8cFvUt.css","./GroupOverview-DI5T3k5K.js","./PageView-C-laNEPZ.js","./DegradedNotice-DiH5n2DO.js","./ResourceForm-BPjsoCY6.js","./useRecordVisit-BRtfMi-q.js","./ResourceIndex-COezAw5t.js","./vendor-table-DuQ835by.js","./Sidebars-CsB9rFqX.js","./ResourceOrPage-CRZGCY84.js","./ResourceShow-DweRXn18.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,n,r,t as i}from"./vendor-react-C1iE8mnY.js";import{i as a,n as o,o as s,s as c}from"./vendor-query-DZ6APRNI.js";import{a as l,f as u,l as d,n as f,o as p,r as m,s as h,t as g,u as _}from"./vendor-router-CI6Vh4k_.js";import{n as v,t as y}from"./dist-IW4yX942.js";import{a as b,c as x,l as S,o as C,t as w}from"./button-CvZ4_DFC.js";import{t as T}from"./utils-DwBGbDkG.js";import{a as E,c as D,d as O,f as k,g as A,h as j,i as M,l as N,m as P,n as ee,o as te,p as F,r as ne,s as re,t as ie,u as I}from"./dist-CqEI82S_.js";import{t as L}from"./external-link-C2aR4slL.js";import{n as ae,r as oe}from"./uiMode-z0ZbRV49.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var R=e(t(),1),se=n(),ce=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},le=[`light`,`dark`],ue=`(prefers-color-scheme: dark)`,de=typeof window>`u`,fe=R.createContext(void 0),pe={setTheme:e=>{},themes:[]},me=()=>R.useContext(fe)??pe,he=e=>R.useContext(fe)?R.createElement(R.Fragment,null,e.children):R.createElement(_e,{...e}),ge=[`light`,`dark`],_e=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i=`theme`,themes:a=ge,defaultTheme:o=n?`system`:`light`,attribute:s=`data-theme`,value:c,children:l,nonce:u,scriptProps:d})=>{let[f,p]=R.useState(()=>ye(i,o)),[m,h]=R.useState(()=>f===`system`?xe():f),g=c?Object.values(c):a,_=R.useCallback(e=>{let i=e;if(!i)return;e===`system`&&n&&(i=xe());let a=c?c[i]:i,l=t?be(u):null,d=document.documentElement,f=e=>{e===`class`?(d.classList.remove(...g),a&&d.classList.add(a)):e.startsWith(`data-`)&&(a?d.setAttribute(e,a):d.removeAttribute(e))};if(Array.isArray(s)?s.forEach(f):f(s),r){let e=le.includes(o)?o:null,t=le.includes(i)?i:e;d.style.colorScheme=t}l?.()},[u]),v=R.useCallback(e=>{let t=typeof e==`function`?e(f):e;p(t);try{localStorage.setItem(i,t)}catch{}},[f]),y=R.useCallback(t=>{let r=xe(t);h(r),f===`system`&&n&&!e&&_(`system`)},[f,e]);R.useEffect(()=>{let e=window.matchMedia(ue);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),R.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?p(e.newValue):v(o))};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[v]),R.useEffect(()=>{_(e??f)},[e,f]);let b=R.useMemo(()=>({theme:f,setTheme:v,forcedTheme:e,resolvedTheme:f===`system`?m:f,themes:n?[...a,`system`]:a,systemTheme:n?m:void 0}),[f,v,e,m,n,a]);return R.createElement(fe.Provider,{value:b},R.createElement(ve,{forcedTheme:e,storageKey:i,attribute:s,enableSystem:n,enableColorScheme:r,defaultTheme:o,value:c,themes:a,nonce:u,scriptProps:d}),l)},ve=R.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return R.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${ce.toString()})(${u})`}})}),ye=(e,t)=>{if(de)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},be=e=>{let t=document.createElement(`style`);return e&&t.setAttribute(`nonce`,e),t.appendChild(document.createTextNode(`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},xe=e=>(e||=window.matchMedia(ue),e.matches?`dark`:`light`),Se={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`}]]};Se.node;var Ce=S(Se),we={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};we.node;var Te=S(we),Ee={name:`banknote`,size:24,node:[[`rect`,{width:`20`,height:`12`,x:`2`,y:`6`,rx:`2`,key:`9lu3g6`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`M6 12h.01M18 12h.01`,key:`113zkx`}]]};Ee.node;var De=S(Ee),Oe={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Oe.node;var ke=S(Oe),Ae={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};Ae.node;var je=S(Ae),Me={name:`boxes`,size:24,node:[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]};Me.node;var Ne=S(Me),Pe={name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};Pe.node;var Fe=S(Pe),Ie={name:`building-complex`,size:24,node:[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]],aliases:[`building-2`]};Ie.node;var Le=S(Ie),Re={name:`building`,size:24,node:[[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M16 6h.01`,key:`1x0f13`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M8 6h.01`,key:`1dz90k`}],[`path`,{d:`M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3`,key:`cabbwy`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]};Re.node;var ze=S(Re),Be={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Be.node;var Ve=S(Be),He={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};He.node;var Ue=S(He),We={name:`chart-bar`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M7 16h8`,key:`srdodz`}],[`path`,{d:`M7 11h12`,key:`127s9w`}],[`path`,{d:`M7 6h3`,key:`w9rmul`}]],aliases:[`bar-chart-horizontal`]};We.node;var Ge=S(We),Ke={name:`chart-line`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]],aliases:[`line-chart`]};Ke.node;var qe=S(Ke),Je={name:`chart-pie`,size:24,node:[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]],aliases:[`pie-chart`]};Je.node;var Ye=S(Je),Xe={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Xe.node;var Ze=S(Xe),Qe={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Qe.node;var $e=S(Qe),et={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};et.node;var tt=S(et),nt={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5`,key:`1awbb0`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};nt.node;var rt=S(nt),it={name:`clipboard-check`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`m9 14 2 2 4-4`,key:`df797q`}]]};it.node;var at=S(it),ot={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};ot.node;var st=S(ot),ct={name:`cog`,size:24,node:[[`path`,{d:`M11 10.27 7 3.34`,key:`16pf9h`}],[`path`,{d:`m11 13.73-4 6.93`,key:`794ttg`}],[`path`,{d:`M12 22v-2`,key:`1osdcq`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14 12h8`,key:`4f43i9`}],[`path`,{d:`m17 20.66-1-1.73`,key:`eq3orb`}],[`path`,{d:`m17 3.34-1 1.73`,key:`2wel8s`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`m20.66 17-1.73-1`,key:`sg0v6f`}],[`path`,{d:`m20.66 7-1.73 1`,key:`1ow05n`}],[`path`,{d:`m3.34 17 1.73-1`,key:`nuk764`}],[`path`,{d:`m3.34 7 1.73 1`,key:`1ulond`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}]]};ct.node;var lt=S(ct),ut={name:`credit-card`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}],[`path`,{d:`M6 14h2`,key:`mk7k0u`}]]};ut.node;var dt=S(ut),ft={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};ft.node;var pt=S(ft),mt={name:`dollar-sign`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M17 5H9.5a1 1 0 000 7h5a1 1 0 010 7H6`,key:`pwzcbw`}]]};mt.node;var ht=S(mt),gt={name:`factory`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};gt.node;var _t=S(gt),vt={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};vt.node;var yt=S(vt),bt={name:`files`,size:24,node:[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]};bt.node;var xt=S(bt),St={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};St.node;var Ct=S(St),wt={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};wt.node;var Tt=S(wt),Et={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};Et.node;var Dt=S(Et),Ot={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};Ot.node;var kt=S(Ot),At={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};At.node;var jt=S(At),Mt={name:`hand-coins`,size:24,node:[[`path`,{d:`M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17`,key:`geh8rc`}],[`path`,{d:`m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9`,key:`1fto5m`}],[`path`,{d:`m2 16 6 6`,key:`1pfhp9`}],[`circle`,{cx:`16`,cy:`9`,r:`2.9`,key:`1n0dlu`}],[`circle`,{cx:`6`,cy:`5`,r:`3`,key:`151irh`}]]};Mt.node;var Nt=S(Mt),Pt={name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]};Pt.node;var Ft=S(Pt),It={name:`heart-pulse`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]};It.node;var Lt=S(It),Rt={name:`hospital`,size:24,node:[[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M14 9h-4`,key:`1w2s2s`}],[`path`,{d:`M18 11h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2`,key:`1tthqt`}],[`path`,{d:`M18 21V5a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16`,key:`dw4p4i`}]]};Rt.node;var zt=S(Rt),Bt={name:`id-card`,size:24,node:[[`path`,{d:`M13 19a4 4 0 00-8 0`,key:`cugzd5`}],[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]};Bt.node;var Vt=S(Bt),Ht={name:`inbox`,size:24,node:[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]};Ht.node;var Ut=S(Ht),Wt={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Wt.node;var Gt=S(Wt),Kt={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Kt.node;var qt=S(Kt),Jt={name:`landmark`,size:24,node:[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z`,key:`yxxwt6`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]};Jt.node;var Yt=S(Jt),Xt={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Xt.node;var Zt=S(Xt),Qt={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`}]]};Qt.node;var $t=S(Qt),en={name:`layout-list`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]};en.node;var tn=S(en),nn={name:`life-buoy`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m4.93 4.93 4.24 4.24`,key:`1ymg45`}],[`path`,{d:`m14.83 9.17 4.24-4.24`,key:`1cb5xl`}],[`path`,{d:`m14.83 14.83 4.24 4.24`,key:`q42g0n`}],[`path`,{d:`m9.17 14.83-4.24 4.24`,key:`bqpfvv`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]};nn.node;var rn=S(nn),an={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};an.node;var on=S(an),sn={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};sn.node;var cn=S(sn),ln={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};ln.node;var un=S(ln),dn={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};dn.node;var fn=S(dn),pn={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};pn.node;var mn=S(pn),hn={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};hn.node;var gn=S(hn),_n={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};_n.node;var vn=S(_n),yn={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};yn.node;var bn=S(yn),xn={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};xn.node;var Sn=S(xn),Cn={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Cn.node;var wn=S(Cn),Tn={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Tn.node;var En=S(Tn),Dn={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};Dn.node;var On=S(Dn),kn={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};kn.node;var An=S(kn),jn={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]],aliases:[`sidebar-close`]};jn.node;var Mn=S(jn),Nn={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]],aliases:[`sidebar-open`]};Nn.node;var Pn=S(Nn),Fn={name:`percent`,size:24,node:[[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}],[`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`,key:`4mh3h7`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`,key:`1mdrzq`}]]};Fn.node;var In=S(Fn),Ln={name:`phone`,size:24,node:[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]};Ln.node;var Rn=S(Ln),zn={name:`pill`,size:24,node:[[`path`,{d:`m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z`,key:`wa1lgi`}],[`path`,{d:`m8.5 8.5 7 7`,key:`rvfmvr`}]]};zn.node;var Bn=S(zn),Vn={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};Vn.node;var Hn=S(Vn),Un={name:`receipt`,size:24,node:[[`path`,{d:`M12 17V7`,key:`pyj7ub`}],[`path`,{d:`M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8`,key:`1elt7d`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]};Un.node;var Wn=S(Un),Gn={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Gn.node;var Kn=S(Gn),qn={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};qn.node;var Jn=S(qn),Yn={name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]};Yn.node;var Xn=S(Yn),Zn={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Zn.node;var Qn=S(Zn),$n={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};$n.node;var er=S($n),tr={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};tr.node;var nr=S(tr),rr={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};rr.node;var ir=S(rr),ar={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`}]]};ar.node;var or=S(ar),sr={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};sr.node;var cr=S(sr),lr={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};lr.node;var ur=S(lr),dr={name:`shopping-cart`,size:24,node:[[`path`,{d:`m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18`,key:`uebgi3`}],[`path`,{d:`M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25`,key:`1j7c9p`}],[`circle`,{cx:`18`,cy:`20`,r:`2`,key:`t9985n`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]};dr.node;var fr=S(dr),pr={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};pr.node;var mr=S(pr),hr={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};hr.node;var gr=S(hr),_r={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};_r.node;var vr=S(_r),yr={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};yr.node;var br=S(yr),xr={name:`stethoscope`,size:24,node:[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]};xr.node;var Sr=S(xr),Cr={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Cr.node;var wr=S(Cr),Tr={name:`syringe`,size:24,node:[[`path`,{d:`m18 2 4 4`,key:`22kx64`}],[`path`,{d:`m17 7 3-3`,key:`1w1zoj`}],[`path`,{d:`M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5`,key:`1exhtz`}],[`path`,{d:`m9 11 4 4`,key:`rovt3i`}],[`path`,{d:`m5 19-3 3`,key:`59f2uf`}],[`path`,{d:`m14 4 6 6`,key:`yqp9t2`}]]};Tr.node;var Er=S(Tr),Dr={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Dr.node;var Or=S(Dr),kr={name:`test-tube`,size:24,node:[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]};kr.node;var Ar=S(kr),jr={name:`tags`,size:24,node:[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]};jr.node;var Mr=S(jr),Nr={name:`triangle-exclamation-point`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`,`triangle-alert`]};Nr.node;var Pr=S(Nr),Fr={name:`truck`,size:24,node:[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]};Fr.node;var Ir=S(Fr),Lr={name:`user-cog`,size:24,node:[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Lr.node;var Rr=S(Lr),zr={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};zr.node;var Br=S(zr),Vr={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Vr.node;var Hr=S(Vr),Ur={name:`wallet`,size:24,node:[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]};Ur.node;var Wr=S(Ur),Gr={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};Gr.node;var Kr=S(Gr),qr={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};qr.node;var Jr=S(qr),Yr={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Yr.node;var Xr=S(Yr),Zr={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Zr.node;var Qr=S(Zr),z=i(),$r=({...e})=>{let{theme:t=`system`,forcedTheme:n}=me();return(0,z.jsx)(y,{theme:n??t,className:`toaster group`,icons:{success:(0,z.jsx)(tt,{className:`size-4`}),info:(0,z.jsx)(Gt,{className:`size-4`}),warning:(0,z.jsx)(Pr,{className:`size-4`}),error:(0,z.jsx)(On,{className:`size-4`}),loading:(0,z.jsx)(un,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e})},ei=Object.defineProperty,ti=(e,t)=>ei(e,`name`,{value:t,configurable:!0}),ni=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ri=R.forwardRef(ti(function(e,t){return(0,z.jsx)(j.span,{...e,ref:t,style:{...ni,...e.style}})},`VisuallyHidden`)),ii=Object.defineProperty,B=(e,t)=>ii(e,`name`,{value:t,configurable:!0});function ai(e){let t=e+`CollectionProvider`,[n,r]=P(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=B(e=>{let{scope:t,children:n}=e,r=R.useRef(null),a=R.useRef(new Map).current;return(0,z.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=b(s),l=R.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(s,n),o=x(t,i.collectionRef);return(0,z.jsx)(c,{ref:o,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=b(u),p=R.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=R.useRef(null),s=x(t,o),c=a(u,n);return R.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,z.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return R.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return B(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}B(ai,`createCollection`);var oi=new WeakMap,si=class e extends Map{static{B(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],oi.set(this,!0)}set(e,t){return oi.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=ui(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=ci(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=ci(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return ci(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function ci(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=li(e,t);return n===-1?void 0:e[n]}B(ci,`at`);function li(e,t){let n=e.length,r=ui(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}B(li,`toSafeIndex`);function ui(e){return e!==e||e===0?0:Math.trunc(e)}B(ui,`toSafeInteger`);function di(e){let t=e+`CollectionProvider`,[n,r]=P(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=B(({state:e,...t})=>e?(0,z.jsx)(u,{...t,state:e}):(0,z.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=B(e=>{let t=_();return(0,z.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=B(e=>{let{scope:t,children:n,state:r}=e,a=R.useRef(null),[s,c]=R.useState(null),l=x(a,c),[u,d]=r,f=R.useRef(new si),p=R.useCallback(()=>{let e=f.current;return mi(e)||e.sort(hi),e},[]);return R.useEffect(()=>{if(!s)return;let e=gi(()=>{d(e=>{let t=e.toSorted(hi);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,z.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:p,setCollection:d,registryRef:f,children:(0,z.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=b(d),p=R.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=a(d,n),o=x(t,i.collectionElementRef);return(0,z.jsx)(f,{ref:o,children:r})});p.displayName=d;let m=e+`CollectionItemSlot`,h=b(m),g=R.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=R.useRef(null),{setCollection:s,registryRef:c}=a(m,n),l=R.useRef(i);fi(l.current,i)||(l.current=i);let u=l.current,d=R.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),f=x(t,d,o);F(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let p=R.useRef(null);return R.useEffect(()=>{let e=o.current,t=p.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(p.current=e?{element:e,itemData:u}:null,s(n=>{let r=new si(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(hi)}))}),R.useEffect(()=>()=>{let e=p.current;p.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new si(t);return n.delete(e.element),n})},[s]),(0,z.jsx)(h,{"data-radix-collection-item":``,ref:f,children:r})});g.displayName=m;function _(){return R.useState(new si)}B(_,`useInitCollection`);function v(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}B(v,`useCollection`);function y(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return B(y,`useGetCollection`),[{Provider:c,Slot:p,ItemSlot:g},{createCollectionScope:r,useCollection:v,useGetCollection:y,useInitCollection:_}]}B(di,`createCollection`);function fi(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}B(fi,`shallowEqual`);function pi(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}B(pi,`isElementPreceding`);function mi(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}B(mi,`isInDocumentOrder`);function hi(e,t){return!e[1].element||!t[1].element?0:pi(e[1].element,t[1].element)?-1:1}B(hi,`sortByDocumentPosition`);function gi(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}B(gi,`getChildListObserver`);var _i=Object.defineProperty,vi=(e,t)=>_i(e,`name`,{value:t,configurable:!0}),yi={LTR:`ltr`,RTL:`rtl`},bi=R.createContext(void 0);function xi(e){let t=R.useContext(bi);return e||t||yi.LTR}vi(xi,`useDirection`);var Si=Object.defineProperty,Ci=(e,t)=>Si(e,`name`,{value:t,configurable:!0}),wi=0,Ti=null;function Ei(e){return Di(),e.children}Ci(Ei,`FocusGuards`);function Di(){R.useEffect(()=>{Ti||={start:Oi(),end:Oi()};let{start:e,end:t}=Ti;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),wi++,()=>{wi===1&&(Ti?.start.remove(),Ti?.end.remove(),Ti=null),wi=Math.max(0,wi-1)}},[])}Ci(Di,`useFocusGuards`);function Oi(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Ci(Oi,`createFocusGuard`);var V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V.apply(this,arguments)};function ki(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ai(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ji=`right-scroll-bar-position`,Mi=`width-before-scroll-bar`,Ni=`with-scroll-bars-hidden`,Pi=`--removed-body-scroll-bar-size`;function Fi(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ii(e,t){var n=(0,R.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Li=typeof window<`u`?R.useLayoutEffect:R.useEffect,Ri=new WeakMap;function zi(e,t){var n=Ii(t||null,function(t){return e.forEach(function(e){return Fi(e,t)})});return Li(function(){var t=Ri.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Fi(e,null)}),i.forEach(function(e){r.has(e)||Fi(e,a)})}Ri.set(n,e)},[e]),n}function Bi(e){return e}function Vi(e,t){t===void 0&&(t=Bi);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Hi(e){e===void 0&&(e={});var t=Vi(null);return t.options=V({async:!0,ssr:!1},e),t}var Ui=function(e){var t=e.sideCar,n=ki(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return R.createElement(r,V({},n))};Ui.isSideCarExport=!0;function Wi(e,t){return e.useMedium(t),Ui}var Gi=Hi(),Ki=function(){},qi=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:Ki,onWheelCapture:Ki,onTouchMoveCapture:Ki}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=ki(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=zi([n,t]),C=V(V({},b),i);return R.createElement(R.Fragment,null,u&&R.createElement(x,{sideCar:Gi,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?R.cloneElement(R.Children.only(s),V(V({},C),{ref:S})):R.createElement(v,V({},C,{className:c,ref:S}),s))});qi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qi.classNames={fullWidth:Mi,zeroRight:ji};var Ji=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Yi(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ji();return t&&e.setAttribute(`nonce`,t),e}function Xi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Qi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yi())&&(Xi(t,n),Zi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$i=function(){var e=Qi();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ea=function(){var e=$i();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ta={left:0,top:0,right:0,gap:0},na=function(e){return parseInt(e||``,10)||0},ra=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[na(n),na(r),na(i)]},ia=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return ta;var t=ra(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},aa=ea(),oa=`data-scroll-locked`,sa=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
3
|
+
.${Ni} {
|
|
4
|
+
overflow: hidden ${r};
|
|
5
|
+
padding-right: ${s}px ${r};
|
|
6
|
+
}
|
|
7
|
+
body[${oa}] {
|
|
8
|
+
overflow: hidden ${r};
|
|
9
|
+
overscroll-behavior: contain;
|
|
10
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
11
|
+
padding-left: ${i}px;
|
|
12
|
+
padding-top: ${a}px;
|
|
13
|
+
padding-right: ${o}px;
|
|
14
|
+
margin-left:0;
|
|
15
|
+
margin-top:0;
|
|
16
|
+
margin-right: ${s}px ${r};
|
|
17
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.${ji} {
|
|
21
|
+
right: ${s}px ${r};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.${Mi} {
|
|
25
|
+
margin-right: ${s}px ${r};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.${ji} .${ji} {
|
|
29
|
+
right: 0 ${r};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.${Mi} .${Mi} {
|
|
33
|
+
margin-right: 0 ${r};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body[${oa}] {
|
|
37
|
+
${Pi}: ${s}px;
|
|
38
|
+
}
|
|
39
|
+
`},ca=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},la=function(){R.useEffect(function(){return document.body.setAttribute(oa,(ca()+1).toString()),function(){var e=ca()-1;e<=0?document.body.removeAttribute(oa):document.body.setAttribute(oa,e.toString())}},[])},ua=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;la();var a=R.useMemo(function(){return ia(i)},[i]);return R.createElement(aa,{styles:sa(a,!t,i,n?``:`!important`)})},da=!1;if(typeof window<`u`)try{var fa=Object.defineProperty({},"passive",{get:function(){return da=!0,!0}});window.addEventListener(`test`,fa,fa),window.removeEventListener(`test`,fa,fa)}catch{da=!1}var pa=da?{passive:!1}:!1,ma=function(e){return e.tagName===`TEXTAREA`},ha=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ma(e)&&n[t]===`visible`)},ga=function(e){return ha(e,`overflowY`)},_a=function(e){return ha(e,`overflowX`)},va=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),xa(e,r)){var i=Sa(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ya=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ba=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},xa=function(e,t){return e===`v`?ga(t):_a(t)},Sa=function(e,t){return e===`v`?ya(t):ba(t)},Ca=function(e,t){return e===`h`&&t===`rtl`?-1:1},wa=function(e,t,n,r,i){var a=Ca(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Sa(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&xa(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ta=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ea=function(e){return[e.deltaX,e.deltaY]},Da=function(e){return e&&`current`in e?e.current:e},Oa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ka=function(e){return`
|
|
40
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
41
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
42
|
+
`},Aa=0,ja=[];function Ma(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),i=R.useState(Aa++)[0],a=R.useState(ea)[0],o=R.useRef(e);R.useEffect(function(){o.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ai([e.lockRef.current],(e.shards||[]).map(Da),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=R.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Ta(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=va(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=va(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return wa(h,t,e,h===`h`?s:c,!0)},[]),c=R.useCallback(function(e){var n=e;if(ja.length&&ja[ja.length-1]===a){var r=`deltaY`in n?Ea(n):Ta(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Oa(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Da).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=R.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Na(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=R.useCallback(function(e){n.current=Ta(e),r.current=void 0},[]),d=R.useCallback(function(t){l(t.type,Ea(t),t.target,s(t,e.lockRef.current))},[]),f=R.useCallback(function(t){l(t.type,Ta(t),t.target,s(t,e.lockRef.current))},[]);R.useEffect(function(){return ja.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,pa),document.addEventListener(`touchmove`,c,pa),document.addEventListener(`touchstart`,u,pa),function(){ja=ja.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,pa),document.removeEventListener(`touchmove`,c,pa),document.removeEventListener(`touchstart`,u,pa)}},[]);var p=e.removeScrollBar,m=e.inert;return R.createElement(R.Fragment,null,m?R.createElement(a,{styles:ka(i)}):null,p?R.createElement(ua,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Na(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Pa=Wi(Gi,Ma),Fa=R.forwardRef(function(e,t){return R.createElement(qi,V({},e,{ref:t,sideCar:Pa}))});Fa.classNames=qi.classNames;var Ia=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},La=new WeakMap,Ra=new WeakMap,za={},Ba=0,Va=function(e){return e&&(e.host||Va(e.parentNode))},Ha=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Va(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ua=function(e,t,n,r){var i=Ha(t,Array.isArray(e)?e:[e]);za[n]||(za[n]=new WeakMap);var a=za[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(La.get(e)||0)+1,l=(a.get(e)||0)+1;La.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ra.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ba++,function(){o.forEach(function(e){var t=La.get(e)-1,i=a.get(e)-1;La.set(e,t),a.set(e,i),t||(Ra.has(e)||e.removeAttribute(r),Ra.delete(e)),i||e.removeAttribute(n)}),Ba--,Ba||(La=new WeakMap,La=new WeakMap,Ra=new WeakMap,za={})}},Wa=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ia(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ua(r,i,n,`aria-hidden`)):function(){return null}},Ga=Object.defineProperty,H=(e,t)=>Ga(e,`name`,{value:t,configurable:!0}),Ka=`Dialog`,[qa,Ja]=P(Ka),[Ya,U]=qa(Ka),Xa=H(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=R.useRef(null),c=R.useRef(null),{nodes:l,registry:u}=E(),[d,f]=O({prop:r,defaultProp:i??!1,onChange:a,caller:Ka}),[p,m]=R.useState(0),[h,g]=R.useState(0);return(0,z.jsx)(Ya,{scope:t,triggerRef:s,contentRef:c,contentId:N(),titleId:N(),descriptionId:N(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:R.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Za=`DialogTrigger`,Qa=R.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(Za,n),a=x(t,i.triggerRef);return(0,z.jsx)(j.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":vo(i.open),...r,ref:a,onClick:k(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),$a=`DialogPortal`,[eo,to]=qa($a,{forceMount:void 0}),no=H(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=U($a,t);return(0,z.jsx)(eo,{scope:t,forceMount:n,children:R.Children.map(r,e=>(0,z.jsx)(I,{present:n||a.open,children:(0,z.jsx)(ie,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ro=`DialogOverlay`,io=R.forwardRef(H(function(e,t){let n=to(ro,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=U(ro,e.__scopeDialog);return a.modal?(0,z.jsx)(I,{present:r||a.open,children:(0,z.jsx)(oo,{...i,ref:t})}):null},`DialogOverlay`)),ao=b(`DialogOverlay.RemoveScroll`),oo=R.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(ro,n),a=re(),o=x(t,a);return(0,z.jsx)(Fa,{as:ao,allowPinchZoom:!0,shards:R.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,z.jsx)(j.div,{"data-state":vo(i.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),so=`DialogContent`,co=R.forwardRef(H(function(e,t){let n=to(so,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=U(so,e.__scopeDialog);return(0,z.jsx)(I,{present:r||a.open,children:a.modal?(0,z.jsx)(lo,{...i,ref:t}):(0,z.jsx)(uo,{...i,ref:t})})},`DialogContent`)),lo=R.forwardRef(H(function(e,t){let n=U(so,e.__scopeDialog),r=R.useRef(null),i=x(t,n.contentRef,r);return R.useEffect(()=>{let e=r.current;if(e)return Wa(e)},[]),(0,z.jsx)(fo,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:k(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:k(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),uo=R.forwardRef(H(function(e,t){let n=U(so,e.__scopeDialog),r=R.useRef(!1),i=R.useRef(!1);return(0,z.jsx)(fo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),fo=R.forwardRef(H(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=U(so,n);return Di(),(0,z.jsx)(ne,{registry:l.branchRegistry,children:(0,z.jsx)(ee,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(te,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?_o(o,l.descriptionId):o,"data-state":vo(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),po=R.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(`DialogTitle`,n),{setTitleCount:a}=i;return F(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(j.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),mo=R.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(`DialogDescription`,n),{setDescriptionCount:a}=i;return F(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,z.jsx)(j.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),ho=`DialogClose`,go=R.forwardRef(H(function(e,t){let{__scopeDialog:n,...r}=e,i=U(ho,n);return(0,z.jsx)(j.button,{type:`button`,...r,ref:t,onClick:k(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function _o(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}H(_o,`concatAriaDescribedby`);function vo(e){return e?`open`:`closed`}H(vo,`getState`);var yo=Object.defineProperty,bo=(e,t)=>yo(e,`name`,{value:t,configurable:!0});function xo(e){let[t,n]=R.useState(void 0);return F(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}bo(xo,`useSize`);var So=[`top`,`right`,`bottom`,`left`],Co=Math.min,wo=Math.max,To=Math.round,Eo=Math.floor,W=e=>({x:e,y:e}),Do={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Oo(e,t,n){return wo(e,Co(t,n))}function ko(e,t){return typeof e==`function`?e(t):e}function Ao(e){return e.split(`-`)[0]}function jo(e){return e.split(`-`)[1]}function Mo(e){return e===`x`?`y`:`x`}function No(e){return e===`y`?`height`:`width`}function G(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Po(e){return Mo(G(e))}function Fo(e,t,n){n===void 0&&(n=!1);let r=jo(e),i=Po(e),a=No(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Wo(o)),[o,Wo(o)]}function Io(e){let t=Wo(e);return[Lo(e),t,Lo(t)]}function Lo(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ro=[`left`,`right`],zo=[`right`,`left`],Bo=[`top`,`bottom`],Vo=[`bottom`,`top`];function Ho(e,t,n){switch(e){case`top`:case`bottom`:return n?t?zo:Ro:t?Ro:zo;case`left`:case`right`:return t?Bo:Vo;default:return[]}}function Uo(e,t,n,r){let i=jo(e),a=Ho(Ao(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Lo)))),a}function Wo(e){let t=Ao(e);return Do[t]+e.slice(t.length)}function Go(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ko(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Go(e)}function qo(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Jo(e,t,n){let{reference:r,floating:i}=e,a=G(t),o=Po(t),s=No(o),c=Ao(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=jo(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Yo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ko(t,e),p=Ko(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=qo(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=qo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Xo=50,Zo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Yo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Jo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Xo&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Jo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Qo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ko(e,t)||{};if(l==null)return{};let d=Ko(u),f={x:n,y:r},p=Po(i),m=No(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Co(d[_],T),D=Co(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Oo(E,k,O),j=!c.arrow&&jo(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),$o=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ko(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ao(r),_=G(o),v=Ao(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Wo(o)]:Io(o)),x=p!==`none`;!d&&x&&b.push(...Uo(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Fo(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===G(t)||T.every(e=>G(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=G(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function es(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ts(e){return So.some(t=>e[t]>=0)}var ns=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=ko(e,t);switch(i){case`referenceHidden`:{let e=es(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ts(e)}}}case`escaped`:{let e=es(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ts(e)}}}default:return{}}}}},rs=new Set([`left`,`top`]);async function is(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ao(n),s=jo(n),c=G(n)===`y`,l=rs.has(o)?-1:1,u=a&&c?-1:1,d=ko(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var as=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await is(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},os=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ko(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=G(i),p=Mo(f),m=u[p],h=u[f],g=(e,t)=>Oo(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ss=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ko(e,t),u={x:n,y:r},d=G(i),f=Mo(d),p=u[f],m=u[d],h=ko(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=rs.has(Ao(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},cs=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=ko(e,t),c=await i.detectOverflow(t,s),l=Ao(n),u=jo(n),d=G(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Co(p-c[m],g),y=Co(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*wo(c.left,c.right):S=p-2*wo(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ls(){return typeof window<`u`}function us(e){return fs(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ds(e){return((fs(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fs(e){return ls()?e instanceof Node||e instanceof K(e).Node:!1}function q(e){return ls()?e instanceof Element||e instanceof K(e).Element:!1}function ps(e){return ls()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function ms(e){return!ls()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function hs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function gs(e){return/^(table|td|th)$/.test(us(e))}function _s(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var vs=/transform|translate|scale|rotate|perspective|filter/,ys=/paint|layout|strict|content/,bs=e=>!!e&&e!==`none`,xs;function Ss(e){let t=q(e)?J(e):e;return bs(t.transform)||bs(t.translate)||bs(t.scale)||bs(t.rotate)||bs(t.perspective)||!ws()&&(bs(t.backdropFilter)||bs(t.filter))||vs.test(t.willChange||``)||ys.test(t.contain||``)}function Cs(e){let t=Ds(e);for(;ps(t)&&!Ts(t);){if(Ss(t))return t;if(_s(t))return null;t=Ds(t)}return null}function ws(){return xs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xs}function Ts(e){return/^(html|body|#document)$/.test(us(e))}function J(e){return K(e).getComputedStyle(e)}function Es(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ds(e){if(us(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ms(e)&&e.host||ds(e);return ms(t)?t.host:t}function Os(e){let t=Ds(e);return Ts(t)?(e.ownerDocument||e).body:ps(t)&&hs(t)?t:Os(t)}function ks(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Os(e),i=r===e.ownerDocument?.body,a=K(r);if(i){let e=As(a);return t.concat(a,a.visualViewport||[],hs(r)?r:[],e&&n?ks(e):[])}return t.concat(r,ks(r,[],n))}function As(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function js(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ps(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=To(n)!==a||To(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ms(e){return q(e)?e:e.contextElement}function Ns(e){let t=Ms(e);if(!ps(t))return W(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=js(t),o=(a?To(n.width):n.width)/r,s=(a?To(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Ps=W(0);function Fs(e){let t=K(e);return!ws()||!t.visualViewport?Ps:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Is(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===K(e)}function Ls(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ms(e),o=W(1);t&&(r?q(r)&&(o=Ns(r)):o=Ns(e));let s=Is(a,n,r)?Fs(a):W(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=K(a),t=q(r)?K(r):r,n=e,i=As(n);for(;i&&t!==n;){let e=Ns(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=As(n)}}return qo({width:u,height:d,x:c,y:l})}function Rs(e,t){let n=Es(e).scrollLeft;return t?t.left+n:Ls(ds(e)).left+n}function zs(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Rs(e,n),y:n.top+t.scrollTop}}function Bs(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ds(r),s=t?_s(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=W(1),u=W(0),d=ps(r);if((d||!a)&&((us(r)!==`body`||hs(o))&&(c=Es(r)),d)){let e=Ls(r);l=Ns(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zs(o,c):W(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Hs(e){let t=Es(e),n=e.ownerDocument.body,r=wo(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=wo(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Rs(e),o=-t.scrollTop;return J(n).direction===`rtl`&&(a+=wo(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Us=25;function Ws(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=K(e),a=ds(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ws()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Rs(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Us&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Gs(e,t){let n=Ls(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ns(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ks(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Ws(e,n,t);else if(t===`document`)r=Hs(ds(e));else if(q(t))r=Gs(t,n);else{let n=Fs(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return qo(r)}function qs(e,t){let n=t.get(e);if(n)return n;let r=ks(e,[],!1).filter(e=>q(e)&&us(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Ds(e):e;for(;q(o)&&!Ts(o);){let e=J(o),t=Ss(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Ds(o)}return t.set(e,r),r}function Js(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?_s(t)?[]:qs(t,this._c):[].concat(n),r],o=Ks(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ks(t,a[e],i);s=wo(n.top,s),c=Co(n.right,c),l=Co(n.bottom,l),u=wo(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ys(e){let{width:t,height:n}=js(e);return{width:t,height:n}}function Xs(e,t,n){let r=ps(t),i=ds(t),a=n===`fixed`,o=Ls(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=W(0);if((r||!a)&&((us(t)!==`body`||hs(i))&&(s=Es(t)),r)){let e=Ls(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Rs(i));let l=i&&!r&&!a?zs(i,s):W(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Zs(e){return J(e).position===`static`}function Qs(e,t){if(!ps(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ds(e)===n&&(n=n.ownerDocument.body),n}function $s(e,t){let n=K(e);if(_s(e))return n;if(!ps(e)){let t=Ds(e);for(;t&&!Ts(t);){if(q(t)&&!Zs(t))return t;t=Ds(t)}return n}let r=Qs(e,t);for(;r&&gs(r)&&Zs(r);)r=Qs(r,t);return r&&Ts(r)&&Zs(r)&&!Ss(r)?n:r||Cs(e)||n}var ec=async function(e){let t=this.getOffsetParent||$s,n=this.getDimensions,r=await n(e.floating);return{reference:Xs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tc(e){return J(e).direction===`rtl`}var nc={convertOffsetParentRelativeRectToViewportRelativeRect:Bs,getDocumentElement:ds,getClippingRect:Js,getOffsetParent:$s,getElementRects:ec,getClientRects:Vs,getDimensions:Ys,getScale:Ns,isElement:q,isRTL:tc};function rc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ic(e,t,n){let r=null,i,a=ds(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Eo(d),h=Eo(a.clientWidth-(u+f)),g=Eo(a.clientHeight-(d+p)),_=Eo(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:wo(0,Co(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!rc(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=K(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ac(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ms(e),u=i||a?[...l?ks(l):[],...t?ks(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ic(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ls(e):null;c&&g();function g(){let t=Ls(e);h&&!rc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var oc=as,sc=os,cc=$o,lc=cs,uc=ns,dc=Qo,fc=ss,pc=(e,t,n)=>{let r=new Map,i=n??{},a={...nc,...i.platform,_c:r};return Zo(e,t,{...i,platform:a})},mc=e(r(),1),hc=typeof document<`u`?R.useLayoutEffect:function(){};function gc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!gc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function _c(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vc(e,t){let n=_c(e);return Math.round(t*n)/n}function yc(e){let t=R.useRef(e);return hc(()=>{t.current=e}),t}function bc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=R.useState(r);gc(f,r)||p(r);let[m,h]=R.useState(null),[g,_]=R.useState(null),v=R.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=R.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=R.useRef(null),C=R.useRef(null),w=R.useRef(u),T=c!=null,E=yc(c),D=yc(i),O=yc(l),k=R.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),pc(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!gc(w.current,t)&&(w.current=t,mc.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);hc(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=R.useRef(!1);hc(()=>(A.current=!0,()=>{A.current=!1}),[]),hc(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=R.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=R.useMemo(()=>({reference:b,floating:x}),[b,x]),N=R.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=vc(M.floating,u.x),r=vc(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,..._c(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return R.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var xc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:dc({element:r.current,padding:i}).fn(n):r?dc({element:r,padding:i}).fn(n):{}}}},Sc=(e,t)=>{let n=oc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cc=(e,t)=>{let n=sc(e);return{name:n.name,fn:n.fn,options:[e,t]}},wc=(e,t)=>({fn:fc(e).fn,options:[e,t]}),Tc=(e,t)=>{let n=cc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ec=(e,t)=>{let n=lc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dc=(e,t)=>{let n=uc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oc=(e,t)=>{let n=xc(e);return{name:n.name,fn:n.fn,options:[e,t]}},kc=Object.defineProperty,Ac=R.forwardRef(((e,t)=>kc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(j.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),jc=Object.defineProperty,Mc=(e,t)=>jc(e,`name`,{value:t,configurable:!0}),Nc={Partial:`partial`,Always:`always`},Pc={Optimized:`optimized`,Always:`always`},Fc=`Popper`,[Ic,Lc]=P(Fc),[Rc,zc]=Ic(Fc),Bc=Mc(e=>{let{__scopePopper:t,children:n}=e,[r,i]=R.useState(null),[a,o]=R.useState(void 0);return(0,z.jsx)(Rc,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Vc=`PopperAnchor`,Hc=R.forwardRef(Mc(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=zc(Vc,n),o=R.useRef(null),s=a.onAnchorChange,c=R.useCallback(e=>{o.current=e,e&&s(e)},[s]),l=x(t,c),u=R.useRef(null);R.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let d=a.placementState&&Qc(a.placementState),f=d?.[0],p=d?.[1];return r?null:(0,z.jsx)(j.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...i,ref:l})},`PopperAnchor`)),Uc=`PopperContent`,[Wc,Gc]=Ic(Uc),Kc=R.forwardRef(Mc(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Nc.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=Pc.Optimized,onPlaced:m,...h}=e,g=zc(Uc,n),[_,v]=R.useState(null),y=x(t,v),[b,S]=R.useState(null),C=xo(b),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),O=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],A=k.length>0,M={padding:O,boundary:k.filter(Xc),altBoundary:A},{refs:N,floatingStyles:P,placement:ee,isPositioned:te,middlewareData:ne}=bc({strategy:`fixed`,placement:E,whileElementsMounted:Mc((...e)=>ac(...e,{animationFrame:p===Pc.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Sc({mainAxis:i+T,alignmentAxis:o}),c&&Cc({mainAxis:!0,crossAxis:!1,...d===Nc.Partial?{limiter:wc()}:{},...M}),c&&Tc({...M}),Ec({...M,apply:Mc(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&Oc({element:b,padding:s}),Zc({arrowWidth:w,arrowHeight:T}),f&&Dc(A?{strategy:`referenceHidden`,...M}:{strategy:`referenceHidden`,padding:M.padding,altBoundary:M.altBoundary})]}),re=g.setPlacementState;F(()=>(re(ee),()=>{re(void 0)}),[ee,re]);let[ie,I]=Qc(ee),L=D(m);F(()=>{te&&L?.()},[te,L]);let ae=ne.arrow?.x,oe=ne.arrow?.y,se=ne.arrow?.centerOffset!==0,[ce,le]=R.useState();return F(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:N.setFloating,"data-radix-popper-content-wrapper":``,style:{...P,transform:te?P.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[ne.transformOrigin?.x,ne.transformOrigin?.y].join(` `),...ne.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Wc,{scope:n,placedSide:ie,placedAlign:I,onArrowChange:S,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,z.jsx)(j.div,{"data-side":ie,"data-align":I,...h,ref:y,style:{...h.style,animation:te?h.style?.animation:`none`}})})})},`PopperContent`)),qc=`PopperArrow`,Jc={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Yc=R.forwardRef(Mc(function(e,t){let{__scopePopper:n,...r}=e,i=Gc(qc,n),a=Jc[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(Ac,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function Xc(e){return e!==null}Mc(Xc,`isNotNull`);var Zc=Mc(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Qc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Qc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Mc(Qc,`getSideAndAlignFromPlacement`);var $c=Object.defineProperty,el=(e,t)=>$c(e,`name`,{value:t,configurable:!0}),tl=!1;function nl(){let[e,t]=R.useState(tl);return R.useEffect(()=>{tl||(tl=!0,t(!0))},[]),e}el(nl,`useIsHydrated`);var rl=R.useSyncExternalStore;function il(){return()=>{}}el(il,`subscribe`);function al(){return rl(il,()=>!0,()=>!1)}el(al,`useIsHydratedModern`);var ol=typeof rl==`function`?al:nl,sl=Object.defineProperty,cl=(e,t)=>sl(e,`name`,{value:t,configurable:!0}),ll=`rovingFocusGroup.onEntryFocus`,ul={bubbles:!1,cancelable:!0},dl=`RovingFocusGroup`,[fl,pl,ml]=ai(dl),[hl,gl]=P(dl,[ml]),_l={Vertical:`vertical`,Horizontal:`horizontal`},vl={LTR:`ltr`,RTL:`rtl`},[yl,bl]=hl(dl),xl=R.forwardRef(cl(function(e,t){return(0,z.jsx)(fl.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(fl.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,z.jsx)(Sl,{...e,ref:t})})})},`RovingFocusGroup`)),Sl=R.forwardRef(cl(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=R.useRef(null),p=x(t,f),m=xi(a),[h,g]=O({prop:o,defaultProp:s??null,onChange:c,caller:dl}),[_,v]=R.useState(!1),y=D(l),b=pl(n),S=R.useRef(!1),[C,w]=R.useState(0);return R.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(ll,y),()=>e.removeEventListener(ll,y)},[y]),(0,z.jsx)(yl,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:R.useCallback(e=>g(e),[g]),onItemShiftTab:R.useCallback(()=>v(!0),[]),onFocusableItemAdd:R.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:R.useCallback(()=>w(e=>e-1),[]),children:(0,z.jsx)(j.div,{tabIndex:_||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:k(e.onMouseDown,()=>{S.current=!0}),onFocus:k(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(ll,ul);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Ol([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:k(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Cl=`RovingFocusGroupItem`,wl=R.forwardRef(cl(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=N(),l=a||c,u=bl(Cl,n),d=u.currentTabStopId===l,f=pl(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=ol();return F(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),R.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,z.jsx)(fl.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,z.jsx)(j.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:k(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:k(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:k(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Dl(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?kl(n,r+1):n.slice(r+1)}setTimeout(()=>Ol(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Tl={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function El(e,t){return t===vl.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}cl(El,`getDirectionAwareKey`);function Dl(e,t,n){let r=El(e.key,n);if(!(t===_l.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===_l.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return Tl[r]}cl(Dl,`getFocusIntent`);function Ol(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}cl(Ol,`focusFirst`);function kl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}cl(kl,`wrapArray`);var Al=Object.defineProperty,Y=(e,t)=>Al(e,`name`,{value:t,configurable:!0}),jl=[`Enter`,` `],Ml=[`ArrowDown`,`PageUp`,`Home`],Nl=[`ArrowUp`,`PageDown`,`End`],Pl=[...Ml,...Nl];[...jl],[...jl];var Fl=`Menu`,[Il,Ll,Rl]=ai(Fl),[zl,Bl]=P(Fl,[Rl,Lc,gl]),Vl=Lc(),Hl=gl(),[Ul,Wl]=zl(Fl),[Gl,Kl]=zl(Fl),ql=Y(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Vl(t),[c,l]=R.useState(null),u=R.useRef(!1),d=D(a),f=xi(i);return R.useEffect(()=>{let e=Y(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=Y(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),R.useEffect(()=>{if(!n)return;let e=Y(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,z.jsx)(Bc,{...s,children:(0,z.jsx)(Ul,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,z.jsx)(Gl,{scope:t,onClose:R.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Jl=R.forwardRef(Y(function(e,t){let{__scopeMenu:n,...r}=e,i=Vl(n);return(0,z.jsx)(Hc,{...i,...r,ref:t})},`MenuAnchor`)),Yl=`MenuPortal`,[Xl,Zl]=zl(Yl,{forceMount:void 0}),Ql=Y(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Wl(Yl,t);return(0,z.jsx)(Xl,{scope:t,forceMount:n,children:(0,z.jsx)(I,{present:n||a.open,children:(0,z.jsx)(ie,{asChild:!0,container:i,children:r})})})},`MenuPortal`),$l=`MenuContent`,[eu,tu]=zl($l),nu=R.forwardRef(Y(function(e,t){let n=Zl($l,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Wl($l,e.__scopeMenu),o=Kl($l,e.__scopeMenu);return(0,z.jsx)(Il.Provider,{scope:e.__scopeMenu,children:(0,z.jsx)(I,{present:r||a.open,children:(0,z.jsx)(Il.Slot,{scope:e.__scopeMenu,children:o.modal?(0,z.jsx)(ru,{...i,ref:t}):(0,z.jsx)(iu,{...i,ref:t})})})})},`MenuContent`)),ru=R.forwardRef(Y(function(e,t){let n=Wl($l,e.__scopeMenu),r=R.useRef(null),i=x(t,r);return R.useEffect(()=>{let e=r.current;if(e)return Wa(e)},[]),(0,z.jsx)(ou,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:k(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),iu=R.forwardRef(Y(function(e,t){let n=Wl($l,e.__scopeMenu);return(0,z.jsx)(ou,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),au=b(`MenuContent.ScrollLock`),ou=R.forwardRef(Y(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=Wl($l,n),_=Kl($l,n),v=Vl(n),y=Hl(n),b=Ll(n),[S,C]=R.useState(null),w=R.useRef(null),[T,D]=R.useState(null);M(T);let{nodes:O,registry:A}=E(),j=!!(i||m),N=x(t,w,g.onContentChange,D),P=R.useRef(0),F=R.useRef(``),re=R.useRef(0),ie=R.useRef(null),I=R.useRef(`right`),L=R.useRef(0),ae=R.useMemo(()=>m?[w,...O.map(e=>({current:e}))]:[],[w,O,m]),oe=m?Fa:R.Fragment,se=m?{as:au,allowPinchZoom:!0,shards:ae}:void 0,ce=Y(e=>{let t=F.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=wu(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){F.current=e,window.clearTimeout(P.current),e!==``&&(P.current=window.setTimeout(()=>s(``),1e3))}Y(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);R.useEffect(()=>()=>window.clearTimeout(P.current),[]),Di();let le=R.useCallback(e=>I.current===ie.current?.side&&Eu(e,ie.current?.area),[]);return(0,z.jsx)(eu,{scope:n,searchRef:F,onItemEnter:R.useCallback(e=>{le(e)&&e.preventDefault()},[le]),onItemLeave:R.useCallback(e=>{le(e)||(w.current?.focus(),C(null))},[le]),onTriggerLeave:R.useCallback(e=>{le(e)&&e.preventDefault()},[le]),pointerGraceTimerRef:re,onPointerGraceIntentChange:R.useCallback(e=>{ie.current=e},[]),children:(0,z.jsx)(ne,{registry:j?A:null,children:(0,z.jsx)(oe,{...se,children:(0,z.jsx)(ee,{asChild:!0,trapped:i,branches:O,onMountAutoFocus:k(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,z.jsx)(te,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,z.jsx)(xl,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:k(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,z.jsx)(Kc,{role:`menu`,"aria-orientation":`vertical`,"data-state":yu(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:N,style:{outline:`none`,...h.style},onKeyDown:k(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ce(e.key));let i=w.current;if(e.target!==i||!Pl.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);Nl.includes(e.key)&&a.reverse(),Su(a)}),onBlur:k(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),F.current=``)}),onPointerMove:k(e.onPointerMove,Du(e=>{let t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>L.current?`right`:`left`;I.current=t,L.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),su=R.forwardRef(Y(function(e,t){let{__scopeMenu:n,...r}=e;return(0,z.jsx)(j.div,{...r,ref:t})},`MenuLabel`)),cu=`MenuItem`,lu=`menu.itemSelect`,uu=R.forwardRef(Y(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=R.useRef(null),o=Kl(cu,e.__scopeMenu),s=tu(cu,e.__scopeMenu),c=x(t,a),l=R.useRef(!1),u=Y(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(lu,{bubbles:!0,cancelable:!0});e.addEventListener(lu,e=>r?.(e),{once:!0}),A(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,z.jsx)(du,{...i,ref:c,disabled:n,onClick:k(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:k(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:k(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&jl.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),du=R.forwardRef(Y(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=tu(cu,n),s=Hl(n),c=R.useRef(null),l=x(t,c),[u,d]=R.useState(!1),[f,p]=R.useState(``);return R.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,z.jsx)(Il.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,z.jsx)(wl,{asChild:!0,...s,focusable:!r,children:(0,z.jsx)(j.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:k(e.onPointerMove,Du(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:k(e.onPointerLeave,Du(e=>o.onItemLeave(e))),onFocus:k(e.onFocus,()=>d(!0)),onBlur:k(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[fu,pu]=zl(`MenuRadioGroup`,{value:void 0,onValueChange:Y(()=>{},`onValueChange`)}),[mu,hu]=zl(`MenuItemIndicator`,{checked:!1}),gu=R.forwardRef(Y(function(e,t){let{__scopeMenu:n,...r}=e;return(0,z.jsx)(j.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[_u,vu]=zl(`MenuSub`);function yu(e){return e?`open`:`closed`}Y(yu,`getOpenState`);function bu(e){return e===`indeterminate`}Y(bu,`isIndeterminate`);function xu(e){return bu(e)?`indeterminate`:e?`checked`:`unchecked`}Y(xu,`getCheckedState`);function Su(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}Y(Su,`focusFirst`);function Cu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Y(Cu,`wrapArray`);function wu(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Cu(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Y(wu,`getNextMatch`);function Tu(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Y(Tu,`isPointInPolygon`);function Eu(e,t){return t?Tu({x:e.clientX,y:e.clientY},t):!1}Y(Eu,`isPointerInGraceArea`);function Du(e){return t=>t.pointerType===`mouse`?e(t):void 0}Y(Du,`whenMouse`);var Ou=Object.defineProperty,ku=(e,t)=>Ou(e,`name`,{value:t,configurable:!0}),Au=`DropdownMenu`,[ju,Mu]=P(Au,[Bl]),Nu=Bl(),[Pu,Fu]=ju(Au),Iu=ku(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Nu(t),l=R.useRef(null),[u,d]=O({prop:i,defaultProp:a??!1,onChange:o,caller:Au});return(0,z.jsx)(Pu,{scope:t,triggerId:N(),triggerRef:l,contentId:N(),open:u,onOpenChange:d,onOpenToggle:R.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,z.jsx)(ql,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Lu=`DropdownMenuTrigger`,Ru=R.forwardRef(ku(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Fu(Lu,n),o=Nu(n),s=x(t,a.triggerRef);return(0,z.jsx)(Jl,{asChild:!0,...o,children:(0,z.jsx)(j.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:k(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:k(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),zu=ku(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Nu(t);return(0,z.jsx)(Ql,{...r,...n})},`DropdownMenuPortal`),Bu=`DropdownMenuContent`,Vu=R.forwardRef(ku(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Fu(Bu,n),a=Nu(n),o=R.useRef(!1);return(0,z.jsx)(nu,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:k(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:k(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Hu=R.forwardRef(ku(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Nu(n);return(0,z.jsx)(su,{...i,...r,ref:t})},`DropdownMenuLabel`)),Uu=R.forwardRef(ku(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Nu(n);return(0,z.jsx)(uu,{...i,...r,ref:t})},`DropdownMenuItem`)),Wu=R.forwardRef(ku(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Nu(n);return(0,z.jsx)(gu,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Gu=Object.defineProperty,X=(e,t)=>Gu(e,`name`,{value:t,configurable:!0}),[Ku,qu]=P(`Tooltip`,[Lc]),Ju=Lc(),Yu=`TooltipProvider`,Xu=700,Zu=`tooltip.open`,[Qu,$u]=Ku(Yu),ed=X(e=>{let{__scopeTooltip:t,delayDuration:n=Xu,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=R.useRef(!0),s=R.useRef(!1),c=R.useRef(0);return R.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(Qu,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:R.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:R.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:R.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),td=`Tooltip`,[nd,rd]=Ku(td),id=X(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=$u(td,e.__scopeTooltip),l=Ju(t),[u,d]=R.useState(null),[f,p]=R.useState(void 0),m=N(),h=R.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=R.useRef(!1),[y,b]=O({prop:r,defaultProp:i??!1,onChange:X(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zu))):c.onClose(),a?.(e)},`onChange`),caller:td}),x=R.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=R.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=R.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=R.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);R.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,z.jsx)(Bc,{...l,children:(0,z.jsx)(nd,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:R.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:R.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),ad=`TooltipTrigger`,od=R.forwardRef(X(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=rd(ad,n),o=$u(ad,n),s=Ju(n),c=R.useRef(null),l=x(t,c,a.onTriggerChange),u=R.useRef(!1),d=R.useRef(!1),f=R.useCallback(()=>u.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,z.jsx)(Hc,{asChild:!0,...s,children:(0,z.jsx)(j.button,{"aria-describedby":a.open?Cd(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:k(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:k(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:k(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:k(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:k(e.onBlur,a.onClose),onClick:k(e.onClick,a.onClose)})})},`TooltipTrigger`)),sd=`TooltipPortal`,[cd,ld]=Ku(sd,{forceMount:void 0}),ud=X(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=rd(sd,t);return(0,z.jsx)(cd,{scope:t,forceMount:n,children:(0,z.jsx)(I,{present:n||a.open,children:(0,z.jsx)(ie,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),dd=`TooltipContent`,fd=R.forwardRef(X(function(e,t){let n=ld(dd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=rd(dd,e.__scopeTooltip);return(0,z.jsx)(I,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(hd,{side:i,...a,ref:t}):(0,z.jsx)(pd,{side:i,...a,ref:t})})},`TooltipContent`)),pd=R.forwardRef(X(function(e,t){let n=rd(dd,e.__scopeTooltip),r=$u(dd,e.__scopeTooltip),i=R.useRef(null),a=x(t,i),[o,s]=R.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=R.useCallback(()=>{s(null),d(!1)},[d]),p=R.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=vd(r,_d(r,n.getBoundingClientRect())),a=yd(t.getBoundingClientRect()),o=xd([...i,...a]);s(o),d(!0)},[d]);return R.useEffect(()=>()=>f(),[f]),R.useEffect(()=>{if(c&&u){let e=X(e=>p(e,u),`handleTriggerLeave`),t=X(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),R.useEffect(()=>{if(o){let e=X(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!bd(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(hd,{...e,ref:a})},`TooltipContentHoverable`)),md=C(`TooltipContent`),hd=R.forwardRef(X(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=rd(dd,n),u=Ju(n),{onClose:d}=l,[f,p]=R.useState(null),m=x(t,p);M(f),R.useEffect(()=>(document.addEventListener(Zu,d),()=>document.removeEventListener(Zu,d)),[d]),R.useEffect(()=>{if(l.trigger){let e=X(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return F(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,z.jsx)(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,z.jsxs)(Kc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(md,{children:r}),i?(0,z.jsx)(ri,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),gd=R.forwardRef(X(function(e,t){let{__scopeTooltip:n,...r}=e,i=Ju(n);return(0,z.jsx)(Yc,{...i,...r,ref:t})},`TooltipArrow`));function _d(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}X(_d,`getExitSideFromRect`);function vd(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}X(vd,`getPaddedExitPoints`);function yd(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}X(yd,`getPointsFromRect`);function bd(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}X(bd,`isPointInPolygon`);function xd(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Sd(t)}X(xd,`getHull`);function Sd(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}X(Sd,`getHullPresorted`);function Cd(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}X(Cd,`concatAriaDescribedby`);function wd({delayDuration:e=0,...t}){return(0,z.jsx)(ed,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Td({...e}){return(0,z.jsx)(id,{"data-slot":`tooltip`,...e})}function Ed({...e}){return(0,z.jsx)(od,{"data-slot":`tooltip-trigger`,...e})}function Dd({className:e,sideOffset:t=0,children:n,...r}){return(0,z.jsx)(ud,{children:(0,z.jsxs)(fd,{"data-slot":`tooltip-content`,sideOffset:t,className:T(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-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=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),...r,children:[n,(0,z.jsx)(gd,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}var Od=e=>e.replace(/\/+$/,``),kd=e=>typeof e==`string`&&/^\/(?!\/)(?!.*\.\.)[\w\-./]*$/.test(e)?Od(e):void 0;function Ad(e,t={BASE_URL:`./`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1}){let n=e?.querySelector(`meta[name="reactiveadmin-config"]`)?.content,r;try{r=n?JSON.parse(n):void 0}catch{r=void 0}let i=kd(r?.admin_path)??kd(t.VITE_ADMIN_PATH)??`/admin`;return{adminPath:i,hosted:!!r,routerBase:r?i:kd(t.VITE_ROUTER_BASE)??``,mountPath:kd(r?.mount_path)??`/api`}}var{adminPath:jd,hosted:Md,routerBase:Nd,mountPath:Pd}=Ad(globalThis.document),Fd=e=>`You're doing that too fast — try again in ${e?`${e}s`:`a moment`}`,Id=e=>v.warning(Fd(e),{id:`rate-limited`,duration:Math.min(Math.max((e??5)*1e3,4e3),15e3)});function Ld(){try{Array.from({length:localStorage.length},(e,t)=>localStorage.key(t)??``).filter(e=>e.startsWith(`ra:`)).forEach(e=>localStorage.removeItem(e))}catch{}}var Rd={"X-Reactiveadmin-Background":`1`},zd=/\/_(meta|options\/lookup|options|session|manifest|labels)(\?|$)/,Bd=(e,t=`GET`)=>t.toUpperCase()===`GET`?zd.exec(e)?.[1]:void 0,Z=class extends Error{status;code;body;retryAfter;constructor(e,t,n,r,i){super(n??`Request failed (${e})`),this.status=e,this.code=t,this.body=r,this.retryAfter=i}},Vd=e=>e instanceof Z&&e.status===409&&e.code===`stale`,Hd=e=>e instanceof Z&&e.status===409&&e.code===`retry`,Ud=e=>e instanceof Z&&e.status===429;function Wd(e,t=Date.now()){let n=e?.trim();if(!n)return;let r=/^\d+$/.test(n)?Number(n):(Date.parse(n)-t)/1e3;return Number.isFinite(r)?Math.max(1,Math.ceil(r)):void 0}var Gd=5,Kd=new Map,qd=e=>Math.ceil(((Kd.get(e)??0)-Date.now())/1e3),Jd=e=>e instanceof Z?e.body?.base?.join(` `)||e.message:e instanceof Error?e.message:`Something went wrong`,Yd,Xd=()=>Yd,Zd,Qd=()=>Zd??=rf(`/admin/_session`).catch(e=>{throw Zd=void 0,e}),$d=()=>Qd().then(e=>e.csrf_token);async function ef({fresh:e=!1}={}){if(Zd&&!e)return Zd.catch(()=>void 0);let t=await fetch(nf(`/admin/_session`),{credentials:`include`,headers:{Accept:`application/json`,...Rd}}).catch(()=>void 0);return t?.ok?await t.json().catch(()=>void 0):void 0}var tf=()=>{Zd=void 0},nf=e=>e.startsWith(`${Pd}/`)?e:`${Pd}${e}`;async function rf(e,t={},n=!1){let r=![`GET`,`HEAD`].includes((t.method??`GET`).toUpperCase()),i=Bd(e,t.method),a=i!==void 0;if(i&&qd(i)>0)throw new Z(429,`rate_limited`,void 0,void 0,qd(i));let o={Accept:`application/json`,...a&&Rd,...t.headers};r&&Object.assign(o,{"X-CSRF-Token":await $d()});let s=await fetch(nf(e),{credentials:`include`,...t,headers:o});if(Yd=s.headers.get(`X-Request-Id`)??Yd,s.ok&&s.headers.get(`Content-Type`)?.startsWith(`text/csv`))return await s.blob();let c=await s.json().catch(()=>null);if(s.status===422&&c?.code===`invalid_csrf`&&!n)return tf(),rf(e,t,!0);if(s.status===401&&Ld(),s.status===429){let e=Wd(s.headers.get(`Retry-After`));throw i&&Kd.set(i,Date.now()+(e??Gd)*1e3),Id(e),new Z(429,c?.code??`rate_limited`,c?.message,c??void 0,e)}if(!s.ok)throw new Z(s.status,c?.code,c?.message,c??void 0,Wd(s.headers.get(`Retry-After`)));return c}var Q=(e,t={})=>rf(e,t),af=30,of=new a({defaultOptions:{queries:{staleTime:3e4,retry:(e,t)=>t instanceof Z?t.status===429?e<1&&(t.retryAfter??1)<=af:t.status>=500&&e<2:e<2,retryDelay:(e,t)=>t instanceof Z&&t.status===429?(t.retryAfter??1)*1e3:Math.min(1e3*2**e,3e4)}}}),sf=e=>!/\/(_meta|_manifest|_session)$/.test(String(e)),cf=e=>{let t=String(e);return t.startsWith(`${Pd}/`)?[t,t.slice(Pd.length)]:[t]},lf=e=>RegExp(`^/[^/]+(?:/[^/]+/[^/]+)*/${e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(?:[/?]|$)`),uf=(e,t,n=`active`)=>e.invalidateQueries({predicate:e=>cf(e.queryKey[0]).some(e=>lf(t).test(e))&&sf(e.queryKey[0]),refetchType:n}),df=e=>e.invalidateQueries({predicate:e=>sf(e.queryKey[0])}),ff=({resource:e,id:t,view:n})=>e&&(n===`new`?`/${e}/new`:t&&n===`edit`?`/${e}/${t}/edit`:t&&n!==`index`?`/${e}/${t}`:`/${e}`);function pf(e,t,n,r){let i=t&&(ff(t)||(t.url?r?.(t.url):void 0));if(i)return e(i);t?.url&&window.open(t.url,`_blank`,`noopener`),e(n)}var mf=/^[A-Za-z_$][\w$]{0,63}$/,hf=20,gf=5,_f=[],vf=e=>{_f=e};function yf(e){let t=u(_f,e,Nd||void 0);return t?{route:`/${t.map(e=>e.route.path).filter(Boolean).join(`/`)}`,resource:t.at(-1)?.params.resource}:{}}function bf(e){return(e??``).split(`
|
|
43
|
+
`).map(e=>/^\s*(?:at\s+)?([^\s@(]+)/.exec(e)?.[1]).filter(e=>!!e&&mf.test(e)).slice(0,hf)}function xf(e,t,n=Xd()){let{route:r,resource:i}=yf(t);return{error_name:mf.test(e.name)?e.name:`Error`,boundary:e.where,components:bf(e.componentStack),route:r,resource:i,client_version:`0.2.0`,request_id:n}}var Sf=new Set,Cf=async(e,t=!1)=>{let n=await ef({fresh:t});if(n?.ui?.client_errors!==!1)return fetch(`${Pd}/admin/_client_errors`,{method:`POST`,credentials:`include`,keepalive:!0,headers:{"Content-Type":`application/json`,Accept:`application/json`,"X-CSRF-Token":n?.csrf_token??``},body:JSON.stringify(e)})};async function wf(e){let t=[e.boundary,e.error_name,e.route,e.resource].join(`|`);if(Sf.has(t)||Sf.size>=gf)return;Sf.add(t);let n=await Cf(e);n?.status===422&&(await n.json().catch(()=>null))?.code===`invalid_csrf`&&await Cf(e,!0)}function Tf(e){wf(xf(e,globalThis.location.pathname)).catch(()=>{})}var Ef=class extends R.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){Tf({where:this.props.where,name:e instanceof Error?e.name:`unknown`,componentStack:t.componentStack})}componentDidUpdate(e){this.state.failed&&e.resetKey!==this.props.resetKey&&this.reset()}reset=()=>this.setState({failed:!1});render(){return this.state.failed?this.props.fallback(this.reset):this.props.children}};function Df({href:e}){return(0,z.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 rounded-md border border-dashed bg-muted/40 px-3 py-2 text-sm text-muted-foreground`,children:[(0,z.jsx)(`span`,{children:`Couldn't display this section`}),(0,z.jsxs)(`a`,{href:e,className:`inline-flex shrink-0 items-center gap-1 underline-offset-4 hover:underline`,children:[`Open in classic admin`,(0,z.jsx)(L,{className:`size-3`,"aria-hidden":!0})]})]})}function Of({href:e,onRetry:t}){return(0,z.jsx)(`div`,{role:`alert`,className:`flex items-center justify-center p-6 py-10`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-md rounded-lg border bg-card p-6`,children:[(0,z.jsx)(`h1`,{className:`text-xl font-semibold`,children:`Couldn't load this page`}),(0,z.jsxs)(`div`,{className:`mt-2 flex flex-col items-start gap-4 text-muted-foreground`,children:[(0,z.jsx)(`p`,{children:`Something went wrong while showing it. Try again, or open it in the classic admin.`}),(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsx)(w,{onClick:t,children:`Try again`}),(0,z.jsx)(w,{variant:`outline`,asChild:!0,children:(0,z.jsx)(`a`,{href:e,children:`Open in classic admin`})})]})]})]})})}var kf=e=>e===jd||e.startsWith(`${jd}/`),Af=()=>globalThis.location?.origin,jf=`http://admin.local`;function Mf(e,t=Af()){try{let n=new URL(e,t);return(n.protocol===`http:`||n.protocol===`https:`)&&n.origin===new URL(t??n.origin).origin?n:void 0}catch{return}}function Nf(e){let t=Mf(e,Af()??jf);return!t||!kf(t.pathname)?e:(t.searchParams.set(`classic`,`1`),t.pathname+t.search+t.hash)}var Pf=(e,t,n=``)=>Nf(`${jd}/${e}${t?`/${t}`:``}${n}`);function Ff(e,{resources:t,pages:n},r=Af()){let i=Mf(e,r);if(!i||!kf(i.pathname)||i.searchParams.get(`classic`)===`1`)return;let[a,o,s,...c]=i.pathname.slice(jd.length).split(`/`).filter(Boolean);if(!a)return`/`;if(n.has(a))return o?void 0:`/${a}`;if(t.has(a)&&!c.length)return o?s?s===`edit`&&o!==`new`?`/${a}/${o}/edit`:void 0:`/${a}/${o}`:`/${a}${i.search}`}var If=(e,t=``)=>Nf(`${jd}${e===`/`?``:e}${t}`),Lf=(e=globalThis.location)=>If(e.pathname.slice(Nd.length)||`/`,e.search);function Rf(e){let t=new URL(e,`http://admin.local`);return t.searchParams.set(`embed`,`1`),t.pathname+t.search}function zf({children:e}){let{pathname:t}=d(),n=c();return(0,z.jsx)(Ef,{where:`route`,resetKey:t,fallback:e=>(0,z.jsx)(Of,{href:If(t),onRetry:()=>{df(n),e()}}),children:e})}function Bf({children:e}){return(0,z.jsx)(Ef,{where:`app`,fallback:e=>(0,z.jsx)(Of,{href:Lf(),onRetry:e}),children:e})}var Vf,Hf=({state:e})=>{Vf=e.location.key},Uf=e=>e===Vf,Wf=(...e)=>{let t=new Set,n=[];for(let r of e.reverse()){if(!r)continue;let e=r instanceof Headers?r.entries():Symbol.iterator in r?Array.from(r,e=>Array.from(e)):Object.entries(r),i=[];for(let[n,r]of e)r!==void 0&&!t.has(n.toLowerCase())&&i.push([n,r]);for(let[e]of i)t.add(e.toLowerCase());n.push(i)}return Object.fromEntries(n.reverse().flat())},Gf=(e,t)=>{let n={queryKey:t};for(let t of Object.keys(e))t!==`queryKey`&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,get:()=>e[t]});return n},Kf=()=>`/admin/_manifest`,qf=async e=>Q(Kf(),{...e,method:`GET`}),Jf=()=>[`/admin/_manifest`],Yf=e=>{let{query:t,request:n}=e??{};return{queryKey:t?.queryKey??Jf(),queryFn:({signal:e})=>qf({signal:e,...n}),...t}};function Xf(e,t){let n=Yf(e);return Gf(o(n,t),n.queryKey)}var Zf=e=>`/admin/${e}/_meta`,Qf=async(e,t)=>Q(Zf(e),{...t,method:`GET`}),$f=e=>[`/admin/${e}/_meta`],ep=(e,t)=>{let{query:n,request:r}=t??{};return{queryKey:n?.queryKey??$f(e),queryFn:({signal:t})=>Qf(e,{signal:t,...r}),enabled:e!=null,...n}},tp=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([e,t])=>{t!==void 0&&n.append(e,t===null?`null`:String(t))});let r=n.toString();return r.length>0?`/admin/_pages/${e}?${r}`:`/admin/_pages/${e}`},np=(e,t)=>[`/admin/_pages/${e}`,...t?[t]:[]],rp=()=>`/admin/_session`,ip=async e=>Q(rp(),{...e,method:`GET`}),ap=()=>[`/admin/_session`],op=e=>{let{query:t,request:n}=e??{};return{queryKey:t?.queryKey??ap(),queryFn:({signal:e})=>ip({signal:e,...n}),...t}};function sp(e,t){let n=op(e);return Gf(o(n,t),n.queryKey)}var cp=e=>`/admin/${e}/batch_action`,lp=async(e,t,n)=>Q(cp(e),{...n,method:`POST`,headers:Wf({"Content-Type":`application/json`},n?.headers),body:JSON.stringify(t)}),up=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([e,t])=>{t!==void 0&&n.append(e,t===null?`null`:String(t))});let r=n.toString();return r.length>0?`/admin/${e}/_labels?${r}`:`/admin/${e}/_labels`},dp=async(e,t,n)=>Q(up(e,t),{...n,method:`GET`}),fp=(e,t)=>[`/admin/${e}/_labels`,...t?[t]:[]],pp=(e,t,n)=>{let{query:r,request:i}=n??{};return{queryKey:r?.queryKey??fp(e,t),queryFn:({signal:n})=>dp(e,t,{signal:n,...i}),enabled:e!=null,...r}},mp=e=>`/admin/${e}/new`,hp=async(e,t)=>Q(mp(e),{...t,method:`GET`}),gp=e=>[`/admin/${e}/new`],_p=(e,t)=>{let{query:n,request:r}=t??{};return{queryKey:n?.queryKey??gp(e),queryFn:({signal:t})=>hp(e,{signal:t,...r}),enabled:e!=null,...n}};function vp(e,t,n){let r=_p(e,t);return Gf(o(r,n),r.queryKey)}var yp=(e,t)=>`/admin/${e}/${t}/edit`,bp=async(e,t,n)=>Q(yp(e,t),{...n,method:`GET`}),xp=(e,t)=>[`/admin/${e}/${t}/edit`],Sp=(e,t,n)=>{let{query:r,request:i}=n??{};return{queryKey:r?.queryKey??xp(e,t),queryFn:({signal:n})=>bp(e,t,{signal:n,...i}),enabled:e!=null&&t!=null,...r}};function Cp(e,t,n,r){let i=Sp(e,t,n);return Gf(o(i,r),i.queryKey)}var wp=(e,t)=>[`/admin/${e}`,...t?[t]:[]],Tp=(e,t)=>`/admin/${e}/${t}`,Ep=async(e,t,n)=>Q(Tp(e,t),{...n,method:`GET`}),Dp=(e,t)=>[`/admin/${e}/${t}`],Op=(e,t,n)=>{let{query:r,request:i}=n??{};return{queryKey:r?.queryKey??Dp(e,t),queryFn:({signal:n})=>Ep(e,t,{signal:n,...i}),enabled:e!=null&&t!=null,...r}};function kp(e,t,n,r){let i=Op(e,t,n);return Gf(o(i,r),i.queryKey)}function Ap({children:e,href:t,...n}){return(0,z.jsxs)(`a`,{...n,href:Nf(t),target:`_blank`,rel:`noopener noreferrer`,children:[e,(0,z.jsx)(L,{"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`sr-only`,children:`(opens in the classic admin, in a new tab)`})]})}var jp=e=>e instanceof Z&&e.status===403&&e.code===`api_denied`;function Mp(e){let t=jp(e)?e.body?.classic_url:void 0;v.error(Jd(e),t?{action:{label:`Open in classic admin`,onClick:()=>void window.open(t,`_blank`,`noopener,noreferrer`)}}:void 0)}function Np(e,t,n=``){let r=e?.api_denied;return r?.actions?.includes(t)&&r.classic_url?`${r.classic_url}${n}`:void 0}var Pp=(e,t)=>!!e?.api_denied?.actions?.includes(t),Fp=e=>`/groups/${e}`,Ip=({path:e,label:t})=>[...e,t].join(` / `),Lp=e=>e.resource||e.page||e.url,Rp=e=>e.flatMap(e=>{if(e.children.length===0)return Lp(e)?[e]:[];let t=Rp(e.children);return t.length?[{...e,children:t}]:[]}),zp=(e,t)=>({id:e.id,label:e.label,path:t,description:e.description,resource:e.resource,page:e.page,url:e.url,api_denied:e.api_denied}),Bp=(e,t)=>e.flatMap(e=>e.children.length?Bp(e.children,[...t,e.label]):[zp(e,t)]),Vp=e=>Bp(Rp(e),[]),Hp=(e,t)=>e.flatMap(e=>e.children.length?[zp(e,t),...Hp(e.children,[...t,e.label])]:[]),Up=e=>Hp(Rp(e),[]),Wp=(e,t)=>{for(let n of e){if(n.id===t&&n.children.length)return{group:n,path:[]};let e=Wp(n.children,t);if(e)return{group:e.group,path:[n,...e.path]}}};function Gp(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean),r=e=>{let t=`${Ip(e)} ${e.description??``}`.toLowerCase();return n.every(e=>t.includes(e))};return{leaves:Vp(e).filter(r),groups:Up(e).filter(r)}}var Kp=e=>{let[t,...n]=e.split(`/`).filter(Boolean);return t===`groups`?{group:n.join(`/`)}:{resource:t,page:t}};function qp(e,t){for(let n of e){if(n.resource&&n.resource===t.resource||n.page&&n.page===t.page||t.group&&n.children.length>0&&n.id===t.group)return[n.id];let e=qp(n.children,t);if(e.length)return[n.id,...e]}return[]}var Jp=(e,t)=>e.api_denied?void 0:e.resource?`/${e.resource}`:e.page?`/${e.page}`:e.url?t(e.url):void 0,Yp=(e=Lf())=>location.replace(e),Xp=3e3;function Zp(e=Qd,t=Xp){let n;return()=>n??=new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`session check timed out`)),t);e().then(n,r).finally(()=>clearTimeout(i))})}async function Qp(e=Qd,t=Md,n=Yp,r=ae,i=of){if(!t)return!1;try{let t=await e();if(t.ui?.available)return i.setQueryData(ap(),t),!1;r(void 0)}catch(e){if(!(e instanceof Z&&e.status===401))return!1}return n(),!0}var $p=e=>e.length===0?`index`:e.length===1?e[0]===`new`?`new`:e[0]===`actions`?void 0:`show`:e.length===2?e[0]===`actions`?`action`:e[1]===`edit`?`edit`:void 0:e.length===3&&e[1]===`actions`?`action`:void 0;function em(e,{resources:t,menu:n,site:r}){let[i,...a]=e.split(`/`).filter(Boolean);if(!i||i===`groups`)return!1;let o=t.find(e=>e.key===i);if(!o){let e=Vp([...n,...r.utility_menu]).find(e=>e.page===i);return!e||e.api_denied===!0||a.length>0}let s=$p(a),c=e=>o.actions.includes(e)&&!Pp(o,e);return!s||!c(`index`)||s!==`action`&&!c(s)}var tm=`/sign_in`;function nm({title:e,children:t,fullPage:n}){return(0,z.jsx)(`div`,{role:`alert`,className:T(`flex items-start justify-center`,n?`min-h-screen items-center p-6`:`py-10`),children:(0,z.jsxs)(`div`,{className:`w-full max-w-md rounded-lg border bg-card p-6`,children:[(0,z.jsx)(`h1`,{className:`text-xl font-semibold`,children:e}),(0,z.jsx)(`div`,{className:`mt-2 flex flex-col items-start gap-4 text-muted-foreground`,children:t})]})})}var rm=({fullPage:e})=>(0,z.jsxs)(nm,{title:`Sign in to continue`,fullPage:e,children:[(0,z.jsx)(`p`,{children:`Your session has ended or you haven't signed in yet.`}),(0,z.jsx)(w,{asChild:!0,children:(0,z.jsx)(`a`,{href:Md?Lf():tm,children:`Sign in`})})]});function im({error:e}){let t=Uf(d().key);return(0,R.useEffect)(()=>{Md&&t&&Yp()},[t]),(0,z.jsxs)(nm,{title:`Only available in the classic admin`,children:[(0,z.jsx)(`p`,{children:e.message}),e.body?.classic_url&&(0,z.jsx)(w,{asChild:!0,variant:`outline`,children:(0,z.jsx)(Ap,{href:e.body.classic_url,children:`Open in classic admin`})})]})}function am({error:e,label:t,onRetry:n,backTo:r}){let i=e instanceof Z?e.status:void 0,a=e instanceof Error?e.message:`Something went wrong`;return i===401?(0,z.jsx)(rm,{}):jp(e)?(0,z.jsx)(im,{error:e}):i===403?(0,z.jsx)(nm,{title:`You don't have access to ${t??`this page`}`,children:(0,z.jsx)(`p`,{children:`Your account doesn't include this page. Ask an admin if you need it.`})}):i===404?(0,z.jsxs)(nm,{title:`Not found`,children:[(0,z.jsx)(`p`,{children:`It may have been deleted, or the link is wrong.`}),r&&(0,z.jsx)(w,{asChild:!0,variant:`outline`,children:(0,z.jsx)(g,{to:r.to,children:r.label})})]}):(0,z.jsxs)(nm,{title:`Couldn't load ${t??`this page`}`,children:[(0,z.jsxs)(`p`,{children:[a,`. Nothing was changed.`]}),n&&(0,z.jsx)(w,{variant:`outline`,onClick:n,children:`Try again`})]})}function om({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`skeleton`,className:T(`rounded-md bg-muted`,e),...t})}var sm=`ra:manifest`,cm=`${sm}:user`,lm=e=>`${sm}:v2:${e}`,um=e=>JSON.parse(localStorage.getItem(e)??`null`);function dm(){try{let e=um(cm),t=e&&um(lm(e));return t&&t.schema_version===2?t:void 0}catch{return}}function fm(e){if(e.schema_version!==2)return;let t=e.site.current_user?.id??`anonymous`;pm();try{localStorage.setItem(cm,JSON.stringify(t)),localStorage.setItem(lm(t),JSON.stringify(e))}catch{}}function pm(){try{Array.from({length:localStorage.length},(e,t)=>localStorage.key(t)??``).filter(e=>e.startsWith(sm)).forEach(e=>localStorage.removeItem(e))}catch{}}async function mm(e=Qd){let t=dm();if(t)try{let{user:n}=await e();n.id!==t.site.current_user?.id&&Ld()}catch{Ld()}}var hm=()=>Xf({query:{staleTime:1/0,initialData:dm,initialDataUpdatedAt:0}}),gm=()=>o({...Yf(),enabled:!1,staleTime:1/0}).data,_m=()=>gm()?.site,vm=[],ym=()=>_m()?.trusted_media_hosts??vm;function bm(){let e=_m();return(0,R.useMemo)(()=>({timeZone:e?.time_zone,locale:e?.locale,dateFormat:e?.date_format,dateTimeFormat:e?.datetime_format}),[e])}var xm=e=>{let{data:t,...n}=hm();return{summary:t?.resources.find(t=>t.key===e),...n}},Sm=3e5,Cm=({scope:e,parent:t}={})=>({...e&&{scope:e},...t&&{[t.param]:t.id}}),wm=(e=``,t)=>{let{summary:n,isPending:r}=xm(e),i=Cm(t),a=new URLSearchParams(i).toString(),{data:s,error:c,isPending:l,refetch:u}=o({queryKey:a?[...$f(e),i]:$f(e),queryFn:({signal:t})=>Q(`/admin/${e}/_meta${a&&`?${a}`}`,{signal:t}),enabled:!!e,staleTime:Sm,placeholderData:(t,n)=>n?.queryKey[0]===$f(e)[0]?t:void 0});return{summary:n,meta:s,error:c,refetch:u,isPending:l,manifestPending:r}},Tm=e=>e.flatMap(e=>[...e.page?[e.page]:[],...Tm(e.children)]);function Em(){let e=gm(),t=(0,R.useMemo)(()=>({resources:new Set(e?.resources.map(e=>e.key)),pages:new Set(Tm([...e?.menu??[],...e?.site.utility_menu??[]]))}),[e]);return(0,R.useCallback)(e=>Ff(e,t),[t])}function Dm(e){let t=_m()?.title;(0,R.useEffect)(()=>{document.title=[e,t].filter(Boolean).join(` – `)||`Admin`},[e,t])}var Om=`flex min-w-0 items-center gap-2 text-base font-semibold`;function km({onNavigate:e}){let t=_m();if(!t)return(0,z.jsx)(om,{className:`h-5 w-28`,"aria-hidden":!0});let n=(0,z.jsxs)(z.Fragment,{children:[t.title_image&&(0,z.jsx)(`img`,{src:t.title_image,alt:``,className:`h-6 w-auto shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:t.title})]});return t.title_link&&/^https?:/i.test(t.title_link)&&!Mf(t.title_link)?(0,z.jsx)(`a`,{href:t.title_link,className:Om,children:n}):(0,z.jsx)(f,{to:`/`,onClick:e,className:Om,children:n})}var Am=`modulepreload`,jm=function(e,t){return new URL(e,t).href},Mm={},Nm=function(e){return e.pathname.endsWith(`.css`)},Pm=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=jm(t,n);let r=s(t),i=Nm(r);return Pm(Mm,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Am,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{let i=a=>{t.removeEventListener(`load`,i),t.removeEventListener(`error`,i),a.type===`error`?n(Error(`Unable to preload CSS for ${r}`)):e(a)};t.addEventListener(`load`,i),t.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Fm=(0,R.lazy)(()=>$(()=>import(`./CommandPalette-C59HT1ip.js`).then(e=>({default:e.CommandPalette})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)),Im=(0,R.lazy)(()=>$(()=>import(`./MobileMenu-GAeFOeEb.js`).then(e=>({default:e.MobileMenu})),__vite__mapDeps([14,15,1,2,5,6]),import.meta.url));function Lm(e){let[t,n]=(0,R.useState)(e);return e&&!t&&n(!0),t}function Rm(e){return Lm(e.open)&&(0,z.jsx)(R.Suspense,{children:(0,z.jsx)(Fm,{...e})})}function zm(e){return Lm(e.open)&&(0,z.jsx)(R.Suspense,{children:(0,z.jsx)(Im,{...e})})}var Bm=/Mac|iPhone|iPad/.test(navigator.platform)?`⌘`:`Ctrl `;function Vm(e,t){let[n,r]=(0,R.useState)(()=>{try{let n=localStorage.getItem(e);return n===null?t:JSON.parse(n)}catch{return t}});return(0,R.useEffect)(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]}var Hm={Activity:Ce,Archive:Te,Banknote:De,Bell:ke,BookOpen:je,Boxes:Ne,Briefcase:Fe,Building:ze,Building2:Le,Calendar:Ue,CalendarDays:Ve,ChartBar:Ge,ChartLine:qe,ChartPie:Ye,CircleHelp:rt,ClipboardCheck:at,ClipboardList:st,Cog:lt,CreditCard:dt,Database:pt,DollarSign:ht,Factory:_t,FileText:yt,Files:xt,FlaskConical:Tt,Flag:Ct,Folder:Dt,GraduationCap:jt,Globe:kt,Handshake:Ft,HandCoins:Nt,HeartPulse:Lt,History:Jn,Hospital:zt,IdCard:Vt,Inbox:Ut,Info:Gt,KeyRound:qt,Landmark:Yt,Layers:Zt,LayoutDashboard:$t,LifeBuoy:rn,Link:on,ListChecks:cn,Lock:fn,Mail:gn,MapPin:vn,MessageSquare:Sn,MessagesSquare:wn,Package:An,Percent:In,Phone:Rn,Pill:Bn,Plug:Hn,Receipt:Wn,RefreshCw:Kn,Scale:Xn,ScrollText:Qn,Search:er,Send:nr,Server:ir,Settings:or,Shield:ur,ShieldCheck:cr,ShoppingCart:fr,SlidersHorizontal:mr,Smartphone:gr,Sparkles:vr,Star:br,Stethoscope:Sr,Syringe:Er,Tag:Or,Tags:Mr,TestTube:Ar,Truck:Ir,User:Br,UserCog:Rr,Users:Hr,Wallet:Wr,Workflow:Kr,Wrench:Jr,Zap:Qr},Um=e=>e.toLowerCase().replace(/[^a-z0-9]/g,``),Wm=new Map(Object.entries(Hm).map(([e,t])=>[Um(e),t])),Gm=e=>e?Wm.get(Um(e)):void 0;function Km({name:e,fallback:t,className:n}){let r=Gm(e)??t;return r?(0,R.createElement)(r,{"aria-hidden":!0,className:T(`size-4 shrink-0`,n)}):null}var qm=12,Jm=16,Ym=2,Xm=`relative flex h-8 w-full items-center gap-2 pr-3 text-left text-sm leading-5 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,Zm=`font-semibold text-foreground hover:bg-muted`,Qm=`bg-primary/10 font-semibold text-foreground`,$m=()=>(0,z.jsx)(`span`,{"aria-hidden":!0,className:`size-4 shrink-0`}),eh=e=>qm+Jm*Math.min(e,Ym);function th({text:e,term:t}){let n=t.split(/\s+/).find(Boolean)??``,r=n?e.toLowerCase().indexOf(n.toLowerCase()):-1;return r<0?(0,z.jsx)(`span`,{className:`truncate`,children:e}):(0,z.jsxs)(`span`,{className:`truncate`,children:[e.slice(0,r),(0,z.jsx)(`mark`,{className:`rounded-sm bg-primary/15 font-semibold text-inherit`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var nh=(e,t)=>e.flatMap(e=>e.children.length?[e.id,...t(e.id)?nh(e.children,t):[]]:[e.id]);function rh({items:e,term:t=``,onNavigate:n}){let{pathname:r}=d(),i=(0,R.useMemo)(()=>Kp(r),[r]),a=c(),o=_(),s=Em(),l=t.trim(),u=l!==``,f=(0,R.useMemo)(()=>Rp(e),[e]),p=(0,R.useMemo)(()=>u?Gp(e,l):void 0,[e,l,u]),m=(0,R.useMemo)(()=>qp(e,i),[e,i]),h=m.at(-1),[v,y]=Vm(`ra:menu:open`,[]),[b,x]=(0,R.useState)(),S=e=>v.includes(e),C=m.join(`/`);(0,R.useEffect)(()=>{let e=C.split(`/`).filter(Boolean);y(t=>e.every(e=>t.includes(e))?t:[...new Set([...t,...e])])},[C,y]);let w=p?[...p.groups,...p.leaves].map(e=>e.id):nh(f,S),E=[b,h].find(e=>e&&w.includes(e))??w[0],D=e=>y(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),O=e=>e&&a.prefetchQuery(ep(e,{query:{staleTime:3e5}})),k=e=>{let t=[...e.currentTarget.querySelectorAll(`[data-tree-item]`)],r=t.indexOf(document.activeElement);if(r<0)return;let i=t[r],a=i.getAttribute(`aria-expanded`),s=t=>{t&&(e.preventDefault(),t.focus())};e.key===`ArrowDown`?s(t[r+1]):e.key===`ArrowUp`?s(t[r-1]):e.key===`Home`?s(t[0]):e.key===`End`?s(t.at(-1)):e.key===`Enter`&&e.shiftKey&&i.dataset.group?(e.preventDefault(),n?.(),o(Fp(i.dataset.id))):e.key===`ArrowRight`?a===`false`?(e.preventDefault(),D(i.dataset.id)):a===`true`&&s(t[r+1]):e.key===`ArrowLeft`&&(a===`true`?(e.preventDefault(),D(i.dataset.id)):s(t.find(e=>e.dataset.id===i.dataset.parent)))},A=(e,t,r)=>e.map(e=>{let i={"data-tree-item":``,"data-id":e.id,"data-parent":r,"aria-level":Math.min(t,Ym)+1,tabIndex:e.id===E?0:-1,onFocus:()=>x(e.id)},a=t===0?e.icon:void 0;if(e.children.length){let r=S(e.id),o=e.id===h;return(0,z.jsxs)(`li`,{role:`none`,children:[(0,z.jsxs)(`div`,{className:`group/row relative`,children:[(0,z.jsxs)(`button`,{type:`button`,role:`treeitem`,"aria-expanded":r,"aria-current":o?`page`:void 0,"data-group":``,title:e.description??void 0,...i,onClick:()=>D(e.id),style:{paddingLeft:eh(t)},className:T(Xm,o?Qm:Zm,`pr-9`),children:[o&&(0,z.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-y-0 left-0 w-[3px] bg-primary`}),(0,z.jsx)(Ze,{"aria-hidden":!0,className:T(`size-4 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none`,r&&`rotate-90`)}),(0,z.jsx)(Km,{name:a,className:`text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.label})]}),(0,z.jsx)(g,{to:Fp(e.id),tabIndex:-1,"aria-hidden":!0,"aria-label":`${e.label} overview`,title:`Overview (Shift+Enter)`,onClick:n,className:`absolute top-1 right-2 flex size-6 items-center justify-center rounded-sm text-muted-foreground opacity-0 outline-none group-focus-within/row:opacity-100 group-hover/row:opacity-100 hover:bg-background hover:text-foreground focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring`,children:(0,z.jsx)(tn,{"aria-hidden":!0,className:`size-3.5`})})]}),r&&(0,z.jsx)(`ul`,{role:`group`,style:{"--guide":`${eh(t)+8}px`},className:`relative before:absolute before:inset-y-0 before:left-(--guide) before:w-px before:bg-border`,children:A(e.children,t+1,e.id)})]},e.id)}let o=e.id===h,c=T(Xm,o?Qm:t===0?Zm:`text-muted-foreground hover:bg-muted hover:text-foreground`),l={paddingLeft:eh(t)},u=o&&(0,z.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-y-0 left-0 w-[3px] bg-primary`}),d=Jp(e,s);return(0,z.jsx)(`li`,{role:`none`,children:d?(0,z.jsxs)(g,{to:d,role:`treeitem`,"aria-current":o?`page`:void 0,title:e.description??void 0,...i,onFocus:()=>{i.onFocus(),O(e.resource)},onPointerEnter:()=>O(e.resource),onClick:n,style:l,className:c,children:[u,(0,z.jsx)($m,{}),(0,z.jsx)(Km,{name:a,className:`text-muted-foreground`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.label})]}):(0,z.jsxs)(`a`,{href:e.url??void 0,target:`_blank`,rel:`noopener noreferrer`,role:`treeitem`,...i,style:l,className:c,children:[(0,z.jsx)($m,{}),(0,z.jsx)(`span`,{className:`truncate`,children:e.label}),(0,z.jsx)(L,{"aria-hidden":!0,className:`ml-auto size-3.5 shrink-0 text-muted-foreground`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`(opens in a new tab)`})]})},e.id)});if(p){let e=[...p.groups.map(e=>({...e,group:!0})),...p.leaves];return e.length===0?(0,z.jsxs)(`p`,{className:`px-4 py-3 text-sm text-muted-foreground`,children:[`No menu items match "`,l,`".`]}):(0,z.jsx)(`ul`,{"aria-label":`Menu results`,onKeyDown:k,children:e.map(e=>{let t=e.group?Fp(e.id):Jp(e,s),r={"data-tree-item":``,"data-id":e.id,tabIndex:e.id===E?0:-1,onFocus:()=>x(e.id)},i=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,z.jsx)(th,{text:e.label,term:l}),e.path.length>0&&(0,z.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.path.join(` / `)})]}),e.group?(0,z.jsx)(`span`,{className:`ml-auto shrink-0 text-xs text-muted-foreground`,children:`Overview`}):!t&&(0,z.jsx)(L,{"aria-hidden":!0,className:`ml-auto size-3.5 shrink-0 text-muted-foreground`})]}),a=`flex min-h-9 w-full items-center gap-2 px-4 py-1 text-left text-sm outline-none hover:bg-muted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`;return(0,z.jsx)(`li`,{title:Ip(e),children:t?(0,z.jsx)(g,{to:t,...r,onClick:n,onPointerEnter:()=>O(e.resource),className:a,children:i}):(0,z.jsx)(`a`,{href:e.url??void 0,target:`_blank`,rel:`noopener noreferrer`,...r,className:a,children:i})},`${e.group?`g`:`l`}-${e.id}`)})})}return(0,z.jsx)(`ul`,{role:`tree`,"aria-label":`Menu`,onKeyDown:k,children:A(f,0)})}function ih({className:e,size:t=`default`,...n}){return(0,z.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:T(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground border [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...n})}function ah({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-header`,className:T(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...t})}function oh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-title`,className:T(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function sh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-description`,className:T(`text-sm text-muted-foreground`,e),...t})}function ch({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-action`,className:T(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function lh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-content`,className:T(`px-(--card-spacing)`,e),...t})}function uh({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`card-footer`,className:T(`flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)`,e),...t})}function dh({...e}){return(0,z.jsx)(Iu,{"data-slot":`dropdown-menu`,...e})}function fh({...e}){return(0,z.jsx)(Ru,{"data-slot":`dropdown-menu-trigger`,...e})}function ph({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,z.jsx)(zu,{children:(0,z.jsx)(Vu,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:T(`z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground border duration-100 data-[side=bottom]:slide-in-from-top-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-[state=closed]:overflow-hidden 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),...r})})}function mh({className:e,inset:t,variant:n=`default`,...r}){return(0,z.jsx)(Uu,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:T(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function hh({className:e,inset:t,...n}){return(0,z.jsx)(Hu,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:T(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7`,e),...n})}function gh({className:e,...t}){return(0,z.jsx)(Wu,{"data-slot":`dropdown-menu-separator`,className:T(`-mx-1 my-1 h-px bg-border`,e),...t})}function _h(e){let[t,...n]=e.split(`/`).filter(Boolean),r=n.indexOf(`actions`);return r>=0&&r<=1&&r===n.length-2?{resource:t,id:r?n[0]:void 0,key:n[r+1]}:void 0}function vh(e,t,n){if(e.split(`/`).filter(Boolean)[0]===`groups`)return jd;let r=_h(e);if(!r)return;let i=t?.href&&Mf(t.href,n);return i&&kf(i.pathname)?(i.searchParams.delete(`classic`),i.pathname+i.search+i.hash):`${jd}/${r.resource}${r.id?`/${r.id}`:``}`}var yh=()=>sp({query:{staleTime:1/0,select:e=>e.ui?.available===!0}}).data;function bh(){let{pathname:e,state:t}=d(),n=c();return()=>{let r=_h(e),i=r?.id?n.getQueryData(Dp(r.resource,r.id))?.actions:void 0,a=r&&!r.id?n.getQueryData($f(r.resource))?.action_items:void 0,o=t?.action??(i??a)?.find(e=>e.key===r?.key);oe(`classic`,location,document,vh(e,o))}}function xh(){let e=bh();return yh()?(0,z.jsxs)(ih,{size:`sm`,className:`mt-4 max-w-xl`,children:[(0,z.jsxs)(ah,{children:[(0,z.jsx)(oh,{children:`You're using the new admin`}),(0,z.jsx)(sh,{children:`The classic admin has the same pages at the same addresses. You can switch back at any time.`})]}),(0,z.jsx)(lh,{children:(0,z.jsx)(w,{variant:`outline`,onClick:e,children:`Use classic admin`})})]}):null}function Sh(){let e=bh();return yh()?(0,z.jsx)(mh,{onSelect:e,children:`Use classic admin`}):null}async function Ch({url:e,method:t}){if(Ld(),t===`get`)return window.location.assign(e);let n=Object.assign(document.createElement(`form`),{method:`post`,action:e,hidden:!0}),r=(e,t)=>n.append(Object.assign(document.createElement(`input`),{type:`hidden`,name:e,value:t}));r(`_method`,t),r(`authenticity_token`,await $d()),document.body.append(n),n.submit()}var wh=e=>e.split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase();function Th({name:e}){return(0,z.jsx)(`span`,{"aria-hidden":!0,"data-initials":wh(e),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary before:content-[attr(data-initials)]`})}function Eh({compact:e,onNavigate:t}){let n=_m(),r=Em(),i=n?.current_user;if(!n||!i)return null;let a=Vp(n.utility_menu).filter(e=>!n.logout||e.url!==n.logout.url),o=a.find(e=>e.label===i.display_name),s=a.filter(e=>e!==o),c=o&&Jp(o,r);return(0,z.jsxs)(dh,{children:[(0,z.jsx)(fh,{asChild:!0,children:(0,z.jsxs)(w,{variant:`ghost`,"aria-label":`${i.display_name}, account menu`,className:T(e?`size-8 rounded-full p-0`:`h-9 min-w-0 flex-1 justify-start gap-2 px-1.5`),children:[(0,z.jsx)(Th,{name:i.display_name}),!e&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:i.display_name}),(0,z.jsx)($e,{className:`text-muted-foreground`})]})]})}),(0,z.jsxs)(ph,{side:e?`bottom`:`top`,align:e?`end`:`start`,className:`min-w-56`,children:[c?(0,z.jsx)(mh,{asChild:!0,className:`font-semibold`,children:(0,z.jsx)(g,{to:c,onClick:t,children:i.display_name})}):(0,z.jsx)(hh,{className:`truncate font-semibold text-foreground`,children:i.display_name}),s.length>0&&(0,z.jsx)(gh,{}),s.map(e=>{let n=Jp(e,r);return(0,z.jsx)(mh,{asChild:!0,children:n?(0,z.jsx)(g,{to:n,onClick:t,children:e.label}):(0,z.jsxs)(`a`,{href:e.url??void 0,target:`_blank`,rel:`noopener noreferrer`,children:[e.label,(0,z.jsx)(L,{className:`ml-auto`})]})},e.id)}),(0,z.jsx)(Sh,{}),n.logout&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(gh,{}),(0,z.jsxs)(mh,{onSelect:()=>Ch(n.logout),children:[(0,z.jsx)(mn,{}),`Sign out`]})]})]})]})}function Dh(){let{resolvedTheme:e,setTheme:t}=me();return(0,z.jsxs)(w,{variant:`ghost`,size:`icon`,"aria-label":`Toggle dark mode`,onClick:()=>t(e===`dark`?`light`:`dark`),children:[(0,z.jsx)(wr,{className:`hidden size-4 dark:block`}),(0,z.jsx)(En,{className:`size-4 dark:hidden`})]})}function Oh({items:e,failed:t,onRetry:n,onNavigate:r,onOpenPalette:i,onCollapse:a}){let[o,s]=(0,R.useState)(``);return(0,z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,z.jsx)(`div`,{className:`flex h-12 shrink-0 items-center px-4`,children:(0,z.jsx)(km,{onNavigate:r})}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 px-3 pb-3`,children:[(0,z.jsxs)(`div`,{className:`relative flex-1`,children:[(0,z.jsx)(er,{"aria-hidden":!0,className:`pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(`input`,{type:`search`,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>e.key===`Escape`&&s(``),placeholder:`Filter menu`,"aria-label":`Filter menu`,className:`h-9 w-full rounded-md border border-input bg-background pr-2 pl-8 text-sm outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50`})]}),(0,z.jsxs)(`button`,{type:`button`,onClick:i,"aria-label":`Open command palette ${Bm}K`,className:`hidden h-9 shrink-0 items-center rounded-md border border-input px-2 font-mono text-xs text-muted-foreground outline-none hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring lg:flex`,children:[Bm,`K`]})]}),(0,z.jsx)(`nav`,{"aria-label":`Main`,className:`min-h-0 flex-1 overflow-y-auto pb-4`,children:t?(0,z.jsxs)(`div`,{className:`flex flex-col items-start gap-2 px-4 text-sm text-muted-foreground`,children:[`Couldn't load the menu.`,(0,z.jsx)(w,{variant:`outline`,size:`sm`,onClick:n,children:`Retry`})]}):e?(0,z.jsx)(rh,{items:e,term:o,onNavigate:r}):(0,z.jsx)(`div`,{className:`flex flex-col gap-3 px-4`,"aria-hidden":!0,children:[40,56,48,52,36].map((e,t)=>(0,z.jsx)(om,{className:`h-4`,style:{width:`${e}%`}},t))})}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 border-t px-2 py-2`,children:[(0,z.jsx)(`div`,{className:`flex min-w-0 flex-1`,children:(0,z.jsx)(Eh,{onNavigate:r})}),(0,z.jsx)(Dh,{}),a&&(0,z.jsx)(w,{variant:`ghost`,size:`icon`,onClick:a,"aria-label":`Collapse menu`,children:(0,z.jsx)(Mn,{})})]})]})}function kh({...e}){return(0,z.jsx)(Xa,{"data-slot":`dialog`,...e})}function Ah({...e}){return(0,z.jsx)(Qa,{"data-slot":`dialog-trigger`,...e})}function jh({...e}){return(0,z.jsx)(no,{"data-slot":`dialog-portal`,...e})}function Mh({className:e,...t}){return(0,z.jsx)(io,{"data-slot":`dialog-overlay`,className:T(`fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Nh({className:e,children:t,showCloseButton:n=!0,...r}){return(0,z.jsxs)(jh,{children:[(0,z.jsx)(Mh,{}),(0,z.jsxs)(co,{"data-slot":`dialog-content`,className:T(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground border duration-100 outline-none sm:max-w-sm 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),...r,children:[t,n&&(0,z.jsx)(go,{"data-slot":`dialog-close`,asChild:!0,children:(0,z.jsxs)(w,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`,children:[(0,z.jsx)(Xr,{}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function Ph({className:e,...t}){return(0,z.jsx)(`div`,{"data-slot":`dialog-header`,className:T(`flex flex-col gap-2`,e),...t})}function Fh({className:e,showCloseButton:t=!1,children:n,...r}){return(0,z.jsxs)(`div`,{"data-slot":`dialog-footer`,className:T(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,z.jsx)(go,{asChild:!0,children:(0,z.jsx)(w,{variant:`outline`,children:`Close`})})]})}function Ih({className:e,...t}){return(0,z.jsx)(po,{"data-slot":`dialog-title`,className:T(`font-heading text-base leading-none font-medium`,e),...t})}function Lh({className:e,...t}){return(0,z.jsx)(mo,{"data-slot":`dialog-description`,className:T(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}var Rh=[{id:`palette`,label:`Open the command palette`,keys:[`k`],mod:!0,screen:`any`},{id:`help`,label:`Show keyboard shortcuts`,keys:[`?`],screen:`any`},{id:`filter`,label:`Focus the filters`,keys:[`/`],screen:`index`,needs:[`filters`]},{id:`down`,label:`Move to the next row`,keys:[`j`,`ArrowDown`],screen:`index`,needs:[`rows`]},{id:`up`,label:`Move to the previous row`,keys:[`k`,`ArrowUp`],screen:`index`,needs:[`rows`]},{id:`open`,label:`Open the current row`,keys:[`Enter`],screen:`index`,needs:[`rows`]},{id:`select`,label:`Select the current row`,keys:[`x`],screen:`index`,needs:[`rows`,`batch`]}],zh=(e,t)=>Rh.filter(n=>(n.screen===`any`||n.screen===e)&&(n.needs??[]).every(e=>t.includes(e))),Bh=(e,t)=>Rh.find(n=>!n.mod&&t.includes(n.id)&&n.keys.includes(e)),Vh=(e,t)=>!!e.mod&&(t.metaKey||t.ctrlKey)&&e.keys.includes(t.key.toLowerCase()),Hh={ArrowDown:`↓`,ArrowUp:`↑`},Uh=e=>Hh[e]??(e.length===1?e.toUpperCase():e),Wh=`[role=dialog],[role=alertdialog],[role=menu],[role=listbox],[role=combobox]`,Gh=`[data-tree-item]`,Kh=`[role=tree],summary`,qh=`[role=dialog][data-state=open],[role=alertdialog][data-state=open]`,Jh=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)||!!e.closest(Wh)),Yh=e=>e instanceof Element&&!!e.closest(Gh),Xh=e=>e instanceof Element&&!!e.closest(Kh)&&!Yh(e);function Zh(e){let t=(0,R.useEffectEvent)(t=>{if(t.defaultPrevented||t.metaKey||t.ctrlKey||t.altKey||Jh(t.target)||Xh(t.target)||document.querySelector(qh))return;let n=Object.keys(e).filter(t=>e[t]),r=Bh(t.key,n);!r||r.screen!==`any`&&Yh(t.target)||e[r.id](t)});(0,R.useEffect)(()=>(window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)),[])}var Qh={screen:`any`,caps:[]},$h=(0,R.createContext)(()=>{});function eg(e,t){let n=(0,R.use)($h),r=t.join();(0,R.useEffect)(()=>(n({screen:e,caps:r?r.split(`,`):[]}),()=>n(Qh)),[n,e,r])}var tg=({shortcut:e})=>(0,z.jsx)(`span`,{className:`flex items-center gap-1.5`,children:e.keys.map((t,n)=>(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[n>0&&(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`or`}),(0,z.jsxs)(`kbd`,{className:`rounded-sm border px-1.5 font-mono text-xs`,children:[e.mod&&Bm,Uh(t)]})]},t))});function ng({children:e}){let[t,n]=(0,R.useState)(Qh),[r,i]=(0,R.useState)(!1);return Zh({help:()=>i(!0)}),(0,z.jsxs)($h,{value:n,children:[e,(0,z.jsx)(kh,{open:r,onOpenChange:i,children:(0,z.jsxs)(Nh,{"aria-describedby":void 0,children:[(0,z.jsx)(Ph,{children:(0,z.jsx)(Ih,{children:`Keyboard shortcuts`})}),(0,z.jsx)(`ul`,{className:`flex flex-col gap-2`,children:zh(t.screen,t.caps).map(e=>(0,z.jsxs)(`li`,{className:`flex items-center justify-between gap-4`,children:[(0,z.jsx)(`span`,{children:e.label}),(0,z.jsx)(tg,{shortcut:e})]},e.id))})]})})]})}var rg=e=>(0,R.useSyncExternalStore)(t=>{let n=matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},()=>matchMedia(e).matches),ig=()=>rg(`(min-width: 1024px)`),ag=()=>rg(`(min-width: 640px)`),og=()=>rg(`(min-width: 1280px)`),sg=Rh.find(e=>e.id===`palette`);function cg({title:e,children:t}){return(0,z.jsx)(`div`,{role:`alert`,className:`flex min-h-screen items-center justify-center p-6`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-md rounded-lg border bg-card p-6`,children:[(0,z.jsx)(`h1`,{className:`text-xl font-semibold`,children:e}),(0,z.jsx)(`div`,{className:`mt-2 flex flex-col items-start gap-4 text-muted-foreground`,children:t})]})})}function lg(){let{data:e,error:t,refetch:n,isFetched:r}=hm(),{pathname:i,key:a}=d(),o=c(),s=ig(),[l,u]=Vm(`ra:rail`,!0),[f,m]=(0,R.useState)(!1),[h,g]=(0,R.useState)(!1),_=t instanceof Z&&t.status===401,v=e?.site.favicon;if((0,R.useEffect)(()=>{let e=Jf();o.getQueryData(e)&&o.getQueryState(e)?.dataUpdatedAt===0&&o.invalidateQueries({queryKey:e})},[o]),(0,R.useEffect)(()=>{e&&fm(e)},[e]),(0,R.useEffect)(()=>{Md&&r&&e&&Uf(a)&&em(i,e)&&Yp()},[r,e,a,i]),(0,R.useEffect)(()=>{_&&pm()},[_]),(0,R.useEffect)(()=>{if(!v)return;let e=document.querySelector(`link[rel~="icon"]`)??document.head.appendChild(Object.assign(document.createElement(`link`),{rel:`icon`}));e.href=v},[v]),(0,R.useEffect)(()=>{let e=e=>{Vh(sg,e)&&(e.preventDefault(),g(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),_)return(0,z.jsx)(rm,{fullPage:!0});if(e&&e.schema_version!==2)return(0,z.jsxs)(cg,{title:`Admin updated`,children:[(0,z.jsx)(`p`,{children:`The server was updated since this page loaded. Reload to continue.`}),(0,z.jsx)(w,{onClick:()=>window.location.reload(),children:`Reload`})]});let y=r=>(0,z.jsx)(Oh,{items:e?.menu,failed:!!t&&!e,onRetry:()=>n(),onOpenPalette:()=>{m(!1),g(!0)},...r}),b=s&&l;return(0,z.jsxs)(`div`,{className:`flex min-h-screen`,children:[b&&(0,z.jsx)(`aside`,{className:`sticky top-0 h-screen w-72 shrink-0 border-r bg-sidebar text-sidebar-foreground`,children:y({onCollapse:()=>u(!1)})}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[!1,!b&&(0,z.jsxs)(`div`,{className:`sticky top-0 z-30 flex h-12 shrink-0 items-center gap-2 border-b bg-background px-3`,children:[(0,z.jsx)(w,{variant:`ghost`,size:`icon`,"aria-label":`Open menu`,onClick:()=>s?u(!0):m(!0),children:s?(0,z.jsx)(Pn,{}):(0,z.jsx)(bn,{})}),(0,z.jsx)(km,{}),(0,z.jsx)(`div`,{className:`ml-auto`,children:(0,z.jsx)(Eh,{compact:!0})})]}),(0,z.jsx)(`main`,{className:`mx-auto w-full max-w-[1600px] flex-1 px-4 py-5 sm:px-6`,children:(0,z.jsx)(ng,{children:(0,z.jsx)(p,{})})})]}),(0,z.jsx)(zm,{open:f&&!s,onOpenChange:m,children:y({onNavigate:()=>m(!1)})}),(0,z.jsx)(Rm,{items:e?.menu??[],open:h,onOpenChange:g})]})}function ug(){return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,role:`status`,"aria-label":`Loading page`,children:[(0,z.jsx)(om,{className:`h-8 w-64`}),(0,z.jsx)(om,{className:`h-64 w-full`})]})}function dg({title:e,children:t}){return(0,z.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-2`,children:[(0,z.jsx)(`h1`,{className:`min-w-0 text-xl font-bold sm:text-2xl [&_button]:text-foreground`,children:e}),t&&(0,z.jsx)(`div`,{className:`flex items-center gap-2`,children:t})]})}function fg(){let{data:e,error:t}=hm(),n=Em();Dm();let r=e?.site.home,i=r?.resource?`/${r.resource}`:r?.url?n(r.url):void 0;return i&&i!==`/`?(0,z.jsx)(l,{to:i,replace:!0}):t?(0,z.jsx)(am,{error:t,label:`the admin`}):(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(dg,{title:`Welcome`}),(0,z.jsxs)(`p`,{className:`text-muted-foreground`,children:[`Pick a page from the menu, or press `,(0,z.jsxs)(`kbd`,{className:`rounded-sm border px-1.5 font-mono text-xs`,children:[Bm,`K`]}),` to jump to any page.`]}),(0,z.jsx)(xh,{})]})}function pg(){return Dm(`Not found`),(0,z.jsx)(am,{error:new Z(404),backTo:{to:`/`,label:`Back to home`}})}var mg=(0,R.lazy)(()=>$(()=>import(`./ActionPage-XUYorI8E.js`).then(e=>({default:e.ActionPage})),__vite__mapDeps([16,7,1,2,17,6,5,18,3,19,12,4,9,20,21,22,15,23,24,25,8,10,11,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url)),hg=(0,R.lazy)(()=>$(()=>import(`./GroupOverview-DI5T3k5K.js`).then(e=>({default:e.GroupOverview})),__vite__mapDeps([39,1,2,4,5,6,30,7,17]),import.meta.url)),gg=(0,R.lazy)(()=>$(()=>import(`./PageView-C-laNEPZ.js`).then(e=>({default:e.PageView})),__vite__mapDeps([40,3,1,2,7,18,19,5,6,12,4,9,20,41,36]),import.meta.url)),_g=(0,R.lazy)(()=>$(()=>import(`./ResourceForm-BPjsoCY6.js`).then(e=>({default:e.ResourceForm})),__vite__mapDeps([42,1,2,3,7,19,18,5,6,12,4,9,20,41,22,17,24,25,8,10,11,26,27,28,29,30,31,32,33,34,35,43,13]),import.meta.url)),vg=(0,R.lazy)(()=>$(()=>import(`./ResourceIndex-COezAw5t.js`).then(e=>({default:e.ResourceIndex})),__vite__mapDeps([44,1,2,30,5,6,7,18,3,19,12,4,9,20,45,25,8,10,11,41,15,26,32,46]),import.meta.url)),yg=(0,R.lazy)(()=>$(()=>import(`./ResourceOrPage-CRZGCY84.js`).then(e=>({default:e.ResourceOrPage})),__vite__mapDeps([47,7,1,2]),import.meta.url)),bg=(0,R.lazy)(()=>$(()=>import(`./ResourceShow-DweRXn18.js`).then(e=>({default:e.ResourceShow})),__vite__mapDeps([48,7,1,2,18,3,19,5,6,12,4,9,20,41,46,15,17,43,13,32]),import.meta.url)),xg=e=>(0,z.jsx)(zf,{children:(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(ug,{}),children:e})}),Sg=[{element:(0,z.jsx)(lg,{}),children:[{index:!0,element:xg((0,z.jsx)(fg,{}))},{path:`groups/*`,element:xg((0,z.jsx)(hg,{}))},{path:`:resource`,element:xg((0,z.jsx)(yg,{}))},{path:`:resource/new`,element:xg((0,z.jsx)(_g,{mode:`new`}))},{path:`:resource/actions/:key`,element:xg((0,z.jsx)(mg,{}))},{path:`:resource/:id`,element:xg((0,z.jsx)(bg,{}))},{path:`:resource/:id/edit`,element:xg((0,z.jsx)(_g,{mode:`edit`}))},{path:`:resource/:id/actions/:key`,element:xg((0,z.jsx)(mg,{}))},{path:`*`,element:xg((0,z.jsx)(pg,{}))}]}];vf(Sg);var Cg=m(Sg,{basename:Nd||void 0});Hf(Cg);function wg(){return(0,z.jsx)(Bf,{children:(0,z.jsx)(he,{attribute:`class`,defaultTheme:`system`,enableSystem:!0,children:(0,z.jsx)(s,{client:of,children:(0,z.jsxs)(wd,{children:[(0,z.jsx)(h,{router:Cg}),(0,z.jsx)($r,{})]})})})})}async function Tg(){}var Eg=Zp();Tg().then(()=>mm(Eg)).then(()=>Qp(Eg)).then(e=>{e||(0,se.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsx)(wg,{})}))});export{pp as $,xi as $t,Dm as A,Td as At,Wp as B,xo as Bt,ch as C,Jd as Ct,oh as D,tf as Dt,ah as E,Vd as Et,xm as F,gl as Ft,Jp as G,io as Gt,Fp as H,go as Ht,_m as I,Bc as It,Pp as J,Qa as Jt,Rp as K,no as Kt,ym as L,Hc as Lt,hm as M,Ed as Mt,Em as N,xl as Nt,Km as O,jd as Ot,wm as P,wl as Pt,xp as Q,Di as Qt,om as R,Kc as Rt,ih as S,$d as St,uh as T,Hd as Tt,Up as U,co as Ut,Ip as V,Xa as Vt,Vp as W,mo as Wt,Ap as X,Wa as Xt,Mp as Y,Ja as Yt,bp as Z,Fa as Zt,dh as _,df as _t,ig as a,er as an,Cp as at,gh as b,Z as bt,eg as c,Gt as cn,If as ct,Nh as d,$e as dn,kf as dt,ai as en,np as et,Lh as f,Ze as fn,Mf as ft,Ah as g,pf as gt,Ih as h,Ef as ht,ug as i,mr as in,lp as it,bm as j,Dd as jt,$ as k,Pd as kt,Zh as l,Dt as ln,Rf as lt,Ph as m,Df as mt,vg as n,Xr as nn,wp as nt,ag as o,un as on,vp as ot,Fh as p,Ue as pn,Nf as pt,Np as q,po as qt,dg as r,Pr as rn,hp as rt,og as s,tn as sn,kp as st,gg as t,ni as tn,tp as tt,kh as u,yt as un,Pf as ut,ph as v,uf as vt,lh as w,Ud as wt,fh as x,Q as xt,mh as y,ff as yt,am as z,Lc as zt};
|